I have run into a problem. I've got swedish keys working fine in the console but in X it seems to use an american keyboard layout.
I have no idea on how to debug this so any ideas are welcome.
In my xorg.conf I have Option "XkbLayout" "se"

I use twm since I have yet not installed very much, but I will look into installing another WM and see if that can solve the problem. (it might be that twm is too "stupid" to be able to handle other keyboards?)durian wrote:Which DE/WM are you running? I had the same problem, which I could solve by setting the keyboard also to Swedish in the keyboard settings of XFCE.
Maybe something like that works in your case too,
-peter

Code: Select all
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keymap">
<append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
</match>
<match key="info.capabilities" contains="input.keys">
<merge key="input.xkb.rules" type="string">base</merge>
<!-- If we're using Linux, we use evdev by default (falling back to
keyboard otherwise). -->
<merge key="input.xkb.model" type="string">keyboard</merge>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
string="Linux">
<merge key="input.xkb.model" type="string">evdev</merge>
</match>
<merge key="input.xkb.layout" type="string">gb</merge>
<merge key="input.xkb.variant" type="string" />
</match>
</device>
</deviceinfo>
Code: Select all
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc101"
Option "XkbLayout" "gb"
EndSection

No clue, I just copied over one of the defauls, edited it, and well..things work nowVoidMage wrote:@cach0rr0:About half of you fdi file is redundant and IIRC adding an empty
XkbVariant tends to break things.
cach0rr0 wrote:Do you use an xorg.conf or no?
In order to get a UK keyboard layout in X, I had to have my /etc/hal/fdi/policy/10-keymap.fdi like so:
Note the 'gb' line.Code: Select all
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <match key="info.capabilities" contains="input.keymap"> <append key="info.callouts.add" type="strlist">hal-setup-keymap</append> </match> <match key="info.capabilities" contains="input.keys"> <merge key="input.xkb.rules" type="string">base</merge> <!-- If we're using Linux, we use evdev by default (falling back to keyboard otherwise). --> <merge key="input.xkb.model" type="string">keyboard</merge> <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux"> <merge key="input.xkb.model" type="string">evdev</merge> </match> <merge key="input.xkb.layout" type="string">gb</merge> <merge key="input.xkb.variant" type="string" /> </match> </device> </deviceinfo>
Or if using an xorg.conf and NOT using HAL (since HAL will take precedence)
again, change 'gb' to 'se' (I think it's 'se')Code: Select all
Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbRules" "xorg" Option "XkbModel" "pc101" Option "XkbLayout" "gb" EndSection