View previous topic :: View next topic |
Author |
Message |
Samplay n00b
Joined: 05 Jul 2007 Posts: 18 Location: France
|
Posted: Sat Jan 16, 2010 1:10 pm Post subject: Input drivers for X server |
|
|
Hi everyone!
I am currently doing a fresh install of Gentoo on my laptop, after a few years without using Gentoo. I must confess I am not sure what I am doing with input drivers for X server.
My problem is: In any graphic environment (with startx, or in gnome), the keyboard is not correctly loaded (qwerty instead of azerty). Furthermore, combinations such as ctrl+alt+bksp and ctrl+alt+F1/F7 do not have any effect once X started.
I am using the last stable amd64 releases of xorg-server and other packages.
Here is the keyboard section of xorg.conf :
Code: | Section "InputDevice"
Identifier "Keyboard0"
Driver "evdev"
Option "XkbLayout" "fr"
Option "XkbModel" "evdev"
#Option "XkbModel" "pc105"
Option "XkbRules" "xorg"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection |
And the file : /etc/hal/fdi/policy/10-x11-input.fdi
Code: | <?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<!-- KVM emulates a USB graphics tablet which works in absolute coordinate mode -->
<match key="input.product" contains="QEMU USB Tablet">
<merge key="input.x11_driver" type="string">evdev</merge>
</match>
<!-- FIXME: Support tablets too. -->
<match key="info.capabilities" contains="input.mouse">
<merge key="input.x11_driver" type="string">mouse</merge>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
string="Linux">
<merge key="input.x11_driver" type="string">evdev</merge>
</match>
</match>
<match key="info.capabilities" contains="input.tablet">
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
string="Linux">
<merge key="input.x11_driver" type="string">evdev</merge>
</match>
</match>
<match key="info.capabilities" contains="input.touchpad">
<merge key="input.x11_driver" type="string">mouse</merge>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
string="Linux">
<merge key="input.x11_driver" type="string">evdev</merge>
</match>
</match>
<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">xorg</merge>
<!-- If we're using Linux, we use evdev by default (falling back to
keyboard otherwise). -->
<merge key="input.x11_driver" type="string">keyboard</merge>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
string="Linux">
<merge key="input.x11_driver" type="string">evdev</merge>
</match>
<merge key="input.xkb.layout" type="string">fr</merge>
<merge key="input.xkb.variant" type="string">fr</merge>
<merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>
</match>
</device>
</deviceinfo> |
I think the problem is I am mixing different input drivers and/or input driver config in my head...
Thanks for your help with this config!
Samplay _________________ Samplay |
|
Back to top |
|
|
gami Apprentice
Joined: 02 Jun 2006 Posts: 297
|
Posted: Sat Jan 16, 2010 1:26 pm Post subject: |
|
|
Please make sure that your keyboard settings aren't overwritten at runtime by your desktop environment's (DE) keyboard tool. The settings in either xorg.conf or the fdi file only apply as the base-line. The DE is supposed to override settings on a per-user basis.
If you've built your xorg-server with hal support you can remove the "InputDevice" sections from your xorg.conf, as they won't be used any more. |
|
Back to top |
|
|
Samplay n00b
Joined: 05 Jul 2007 Posts: 18 Location: France
|
Posted: Sat Jan 16, 2010 1:33 pm Post subject: |
|
|
gami wrote: | Please make sure that your keyboard settings aren't overwritten at runtime by your desktop environment's (DE) keyboard tool. The settings in either xorg.conf or the fdi file only apply as the base-line. The DE is supposed to override settings on a per-user basis. |
I can either connect with a user on gnome or startx as root, I have the same problem. I cannot use ctrl+alt+bksp, neither can I use ctrl+alt+F1/2/3/4 from an X server (loaded as root from startx command).
I really don't know what could override my settings...?!
gami wrote: | If you've built your xorg-server with hal support you can remove the "InputDevice" sections from your xorg.conf, as they won't be used any more. |
Oh OK! I did not understand why I had the same config written in two different places. _________________ Samplay |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sat Jan 16, 2010 6:01 pm Post subject: |
|
|
In fact, there a lot of documentations about that problem. |
|
Back to top |
|
|
|