You are not logged in.

#1 2008-09-02 04:59:18

Jacek Poplawski
Member
From: Poland
Registered: 2006-01-10
Posts: 736
Website

keyboard layout and xorg from testing

I upgraded xorg to the version from testing, finally /etc/X11/xorg.conf works, but I have some problem with keyboard layout. I need layout "pl", but:

(**) Option "CoreKeyboard"
(**) Keyboard1: always reports core events
(**) Option "Protocol" "standard"
(**) Keyboard1: Protocol: standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xorg"
(**) Keyboard1: XkbRules: "xorg"
(**) Option "XkbModel" "pc105"
(**) Keyboard1: XkbModel: "pc105"
(**) Option "XkbLayout" "pl"
(**) Keyboard1: XkbLayout: "pl"

then:

(II) config/hal: Adding input device AT Translated Set 2 keyboard
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event1"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "base"
(**) AT Translated Set 2 keyboard: xkb_rules: "base"
(**) Option "xkb_model" "evdev"
(**) AT Translated Set 2 keyboard: xkb_model: "evdev"
(**) Option "xkb_layout" "us"
(**) AT Translated Set 2 keyboard: xkb_layout: "us"

Why it detects second keyboard? How to set its layout to "pl"?

I generated config with xorgconfig but it didn't help sad

Offline

#2 2008-09-02 08:07:43

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: keyboard layout and xorg from testing

Deinstall xf86-input-evdev if you don't need it for your mouse.
HAL input hotplugging prefers this driver and it's configured through some obscure XML file. There will most probably be an announcement with more infos when this enters the main repo.

Edit: http://bugs.archlinux.org/task/11359 (last comment)

Last edited by byte (2008-09-02 08:45:36)


1000

Offline

#3 2008-09-02 10:59:50

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: keyboard layout and xorg from testing

Well.. as byte already said, don't use evdev if everything was working ok before. I noticed the

(EE) Failed to load module "evdev" (module does not exist, 0)

stuff in my xorg's log and thought I'd get the evdev driver to get rid of those.WRONG!!
After about two hours of editing a bunch of files, creating new one's and deleting them five minutes later, I got rid of the evdev driver and restored my xorg.conf the way it used to be. I'm using a thinkpad x23 with a finnish kb layout and a trackball mouse. The experiance was at best to get the keyboard almost working (won't go into details of AltGr stuff and all the kaybindings which didn't work) and the trackball I got working, but without the EmulateWheel option which is quite essential to me when not using an external mouse.
I'll live with the errors.. though this experience with evdev really reminded me of the plug n play madness I got rid of when dumping  the "you know what" to the "you know where".

Offline

#4 2008-09-02 14:55:28

Mefju
Member
From: Poland
Registered: 2006-07-12
Posts: 104

Re: keyboard layout and xorg from testing

Jacek Poplawski wrote:

I upgraded xorg to the version from testing, finally /etc/X11/xorg.conf works, but I have some problem with keyboard layout. I need layout "pl"

Just copy /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi to /etc/hal/fdi/policy/10-keymap.fdi and change layout to "pl", like I did.

10-keymap.fdi

<?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">pl</merge>
      <merge key="input.xkb.variant" type="string" />
    </match>
  </device>
</deviceinfo>

Offline

#5 2008-09-02 16:23:08

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: keyboard layout and xorg from testing

Got my DE layout working again but can't switch desktops in Xfce anymore. Seems CTRL+ALT are not working properly. Also 3rd accent `' isn't working here.

Andy idea?

Offline

#6 2008-09-02 20:08:58

damjan
Member
Registered: 2006-05-30
Posts: 451

Re: keyboard layout and xorg from testing

Or set the keyboard layout in your session (Gnome and KDE have applets, use setxkbmap in .xprofile for the others).

Offline

#7 2008-09-03 06:40:56

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: keyboard layout and xorg from testing

AndyRTR wrote:

Got my DE layout working again but can't switch desktops in Xfce anymore. Seems CTRL+ALT are not working properly. Also 3rd accent `' isn't working here.

Andy idea?

..See my above post wink
That's sounds like the behavior I ended up with and finally gave up on it. With the old drivers (kbd and mouse) everything's as it was so I'm not going to change them before evdev actually works. Funny though, it seems like the layout problems of evdev have been around for a long time and as we can see it's not fixed yet and now they're trying to push it as the default for everything? Me not gets it?!

Offline

#8 2008-09-03 11:09:01

Mefju
Member
From: Poland
Registered: 2006-07-12
Posts: 104

Re: keyboard layout and xorg from testing

AndyRTR wrote:

Got my DE layout working again but can't switch desktops in Xfce anymore. Seems CTRL+ALT are not working properly. Also 3rd accent `' isn't working here.

Andy idea?

Do you use .Xmodmap file? With evdev some keycodes were changed and I had to modify that file. It took me few hours to find out why Page Up key was putting my laptop into sleep state.

Last edited by Mefju (2008-09-03 11:10:00)

Offline

Board footer

Powered by FluxBB