You are not logged in.

#1 2008-10-10 13:12:59

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

[SOLVED] XFCE always starting with the US keyboard

Hi guys.

Recently I came back to XFCE and I have one problem: it always starts with the keymap set to US. I have to manually change it to PL (which I need) with setxkbmap. Also, when I'm using the panel plugin I cannot choose any keymaps other than the currently selected.

What can I do about it?

Last edited by JeremyTheWicked (2008-10-12 21:49:56)


arch(3) adj amused because you think you understand something better than other people ;P

Offline

#2 2008-10-10 14:16:56

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [SOLVED] XFCE always starting with the US keyboard

Set up the keymaps you need in xorg.conf
-> http://bbs.archlinux.org/viewtopic.php?id=43853 gives an example

EDIT: sorry, i guess it doesn't give an example enough smile
here's mine:

Section "InputDevice"
        Identifier      "IntegratedKeyboard"
        Option          "CoreKeyboard"
        Option          "XkbModel" "pc105"
        Option          "XkbLayout"             "us,sk,de"
# possibilites for us: basic, euro, intl, alt-intl, altgr-intl
        Option          "XkbVariant"    "altgr-intl,qwerty,"
        Option          "XkbOptions"    "grp:menu_toggle,grp_led:caps"
        Option          "XkbRules"              "xorg"
        Driver          "kbd"
EndSection

Last edited by bender02 (2008-10-10 14:18:36)

Offline

#3 2008-10-12 15:20:34

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: [SOLVED] XFCE always starting with the US keyboard

Thanks, buddy. It works for me. smile

One question, though: I couldn't find ANYWHERE on the web a list of possible options for keybords... E.g., I have a Dell laptop and I remember there is a special setting for that somewhere but I cannot find this - also my multimedia keys don't work in XFCE... Where can I look for a list of possible options?


arch(3) adj amused because you think you understand something better than other people ;P

Offline

#4 2008-10-12 16:07:09

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [SOLVED] XFCE always starting with the US keyboard

The way I deal with the multimedia keys is that
1) figure out what keycodes they generate (run 'xev' and do some presses)
2) assign the correct name to them via xmodmap
maybe 3) use xbindkeys to let them do what they should do (but this is probably not necessary, DEs like xfce should be able to act just based on having a correct name assigned to the keypresses)

the xmodmap stuff:

~/.xmodmaprc wrote:

keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop

and then have 'xmodmap ~/.xmodmaprc' executed at X start (again, some DEs do this automatically, some don't)

But! maybe figuring out the correct option for your keyboard might render all of the above steps unnecessary. I don't know a good place to look for the options, except closely inspecting the contents of /usr/share/X11/xkb - there's a lot of stuff, but that's for instance where I found out the possible variants for the us keyboard.

Offline

#5 2008-10-12 20:49:15

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: [SOLVED] XFCE always starting with the US keyboard

Topic: keyboards

http://wiki.archlinux.org/index.php/Extra_Keyboard_Keys

Another possibility is to use Keytouch program. It supports a lot of keyboard. It's maybe not the minimal approach since you install an extra program and having its daemon running. If there's a configuration file for your keyboard it makes things very easy.

Offline

#6 2008-10-12 21:49:37

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: [SOLVED] XFCE always starting with the US keyboard

bender02 wrote:

But! maybe figuring out the correct option for your keyboard might render all of the above steps unnecessary. I don't know a good place to look for the options, except closely inspecting the contents of /usr/share/X11/xkb - there's a lot of stuff, but that's for instance where I found out the possible variants for the us keyboard.

/usr/share/X11/xkb/rules was the place I was looking for. After setting option "XkbModel" to "inspiron" (I have a Dell laptop) my multimedia keys work like a charm.

Thanks for your help. I mark it solved.

Kim - thanks for the link as well. Luckily I didn't need to set anything up other than XkbModel but it was a good read anyway.


arch(3) adj amused because you think you understand something better than other people ;P

Offline

#7 2008-10-13 06:57:54

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [SOLVED] XFCE always starting with the US keyboard

Cool! I didn't know about that setting the model would correctly mark the multimedia keys. I can now (almost) ditch xmodmap smile Thanks!

Offline

#8 2008-10-13 07:17:58

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: [SOLVED] XFCE always starting with the US keyboard

Keine Ursache wink


arch(3) adj amused because you think you understand something better than other people ;P

Offline

Board footer

Powered by FluxBB