{"id":12,"date":"2006-02-16T15:30:38","date_gmt":"2006-02-16T22:30:38","guid":{"rendered":"http:\/\/www.chuonthis.com\/tips\/2006\/02\/16\/suse-autoyast-setting-x-keyboard-layout-to-german\/"},"modified":"2009-04-07T16:02:01","modified_gmt":"2009-04-07T23:02:01","slug":"suse-autoyast-setting-x-keyboard-layout-to-german","status":"publish","type":"post","link":"https:\/\/chuonthis.com\/tips\/2006\/02\/16\/suse-autoyast-setting-x-keyboard-layout-to-german\/","title":{"rendered":"SUSE AutoYaST setting X keyboard layout to German"},"content":{"rendered":"<p>Wondering why your Y and Z keys are swapped in X?  That&#8217;s probably because the keyboard layout is set to German (de) instead of English (us).  Did you say you used SUSE AutoYaST and had it configured for the english-us keyboard mapping?  Well, we had a couple of AutoYaST configuration files and the layout problem only occurred for a couple of them.  I compared the XML files and noticed that in the keyboard section, the ones that didn&#8217;t work contained extra settings before the keymap setting (I didn&#8217;t make them!).  I removed the entries and now the keyboard layout is set correctly!<!--more--><\/p>\n<p>I tried to search for the XML schema and was only able to find <a href=\"http:\/\/www.math.ucla.edu\/computing\/docindex\/yast2-schema-html-1\/autoyast.html\">this one page<\/a> with any useful information.  Looking at it, we can see that the only setting that should be defined under the keyboard section is keymap.  If there&#8217;s anything else in that section, the section is invalid and therefore skipped!  I guess the default (alphabetically?) keymap setting is German (de), hence our problem.  Here&#8217;s a little excerpt from an XML file to point out what to look for:<\/p>\n<pre>&lt;?xml version=\"1.0\"?&gt;\r\n&lt;!DOCTYPE profile SYSTEM \"\/usr\/share\/autoinstall\/dtd\/profile.dtd\"&gt;\r\n&lt;profile xmlns=\"http:\/\/www.suse.com\/1.0\/yast2ns\" xmlns:config=\"http:\/\/www.suse.com\/1.0\/configns\"&gt;\r\n  &lt;install&gt;\r\n    ...\r\n    &lt;general&gt;\r\n      ...\r\n      &lt;keyboard&gt;\r\n        &lt;keymap&gt;english-us&lt;\/keymap&gt;\r\n      &lt;\/keyboard&gt;\r\n      &lt;language&gt;en_US&lt;\/language&gt;\r\n      ...<\/pre>\n<p>There shouldn&#8217;t be anything in the keyboard section except for keymap.  Anyway, if you don&#8217;t want to go through the trouble of reinstalling the OS, you can easily change the X keyboard layout (assuming you&#8217;re using Xfree86).  At the shell, open up \/etc\/X11\/XF86Config and look for the following lines.  Make sure the XkbLayout setting is set to &#8216;us&#8217;.  Then restart the X server by pressing Ctrl-Alt-Backspace.<\/p>\n<pre>Section \"InputDevice\"\r\n  Driver       \"Keyboard\"\r\n  Identifier   \"Keyboard[0]\"\r\n  Option       \"Protocol\" \"Standard\"\r\n  Option       \"XkbLayout\" \"us\"\r\n  Option       \"XkbModel\" \"pc104\"\r\n  Option       \"XkbRules\" \"xfree86\"\r\nEndSection<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Wondering why your Y and Z keys are swapped in X? That&#8217;s probably because the keyboard layout is set to German (de) instead of English (us). Did you say you used SUSE AutoYaST and had it configured for the english-us keyboard mapping? Well, we had a couple of AutoYaST configuration files and the layout problem only occurred for a couple&hellip; <a class=\"continue-reading-link\" href=\"https:\/\/chuonthis.com\/tips\/2006\/02\/16\/suse-autoyast-setting-x-keyboard-layout-to-german\/\">Continue reading <span class=\"screen-reader-text\">SUSE AutoYaST setting X keyboard layout to German<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-computers","entry"],"_links":{"self":[{"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":0,"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/posts\/12\/revisions"}],"wp:attachment":[{"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/media?parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/categories?post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/tags?post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}