View previous topic :: View next topic |
Author |
Message |
genmich Apprentice
Joined: 03 Apr 2003 Posts: 196
|
Posted: Sun Mar 08, 2009 9:30 am Post subject: KDE 4.2.1 problems with keyboard |
|
|
Hi,
I've updated from 4.2 to 4.2.1 and also upgraded xorg-server to
Code: | [ebuild R ] x11-base/xorg-server-1.5.2 USE="dri hal ipv6 nptl xorg -3dfx -debug -dmx -kdrive -minimal -sdl -tslib" INPUT_DEVICES="evdev keyboard mouse -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -synaptics -tek4957 -tslib -ur98 -vmmouse -void -wacom" VIDEO_CARDS="fbdev fglrx vesa -apm -ark -ast -chips -cirrus -cyrix -dummy -epson -geode -glint -i128 -i740 (-impact) -imstt -intel -mach64 -mga -neomagic (-newport) -nsc -nv -nvidia -r128 -radeon -radeonhd -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vermilion -vga -via -vmware -voodoo -xgi" 0 kB |
After getting keyboard and mouse to work I still have some problems left: some keys are not working right (like arrow down, End, all FN keys (MacbookPro and apple keyboard)
xev event for key down:
Code: | KeyRelease event, serial 33, synthetic NO, window 0x2800001,
root 0x5b, subw 0x0, time 5994600, (-691,341), root:(193,366),
state 0x80, keycode 116 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
XKeysymToKeycode returns keycode: 92
XLookupString gives 0 bytes:
XFilterEvent returns: Fal
|
xev event for brightness up:
Code: | KeyRelease event, serial 35, synthetic NO, window 0x2800001,
root 0x5b, subw 0x0, time 6016444, (110,863), root:(994,888),
state 0x0, keycode 233 (keysym 0x1008ff02, XF86MonBrightnessUp), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
|
But they are not working inside KDE. I've set the keyboard layout to "evdev managed keyboard" (setxkbmap -model evdev -layout de -variant nodeadkeys)
My fdi:
cat /etc/hal/fdi/policy/10-x11-input.fdi
Code: | <?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<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.keys">
<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>
<merge key="input.xkb.layout" type="string">de</merge>
<merge key="input.xkb.variant" type="string">nodeadkeys</merge>
</match>
</match>
</device>
</deviceinfo>
|
packages:
[ebuild R ] x11-drivers/xf86-video-vesa-2.0.0
[ebuild R ] x11-drivers/xf86-video-fbdev-0.4.0
[ebuild R ] x11-drivers/xf86-video-ati-6.8.0-r1
[ebuild R ] x11-drivers/xf86-input-mouse-1.3.0
[ebuild R ] x11-drivers/xf86-input-keyboard-1.3.2
[ebuild R ] x11-drivers/xf86-input-evdev-2.0.6
[ebuild R ] x11-drivers/ati-drivers-8.582
[ebuild R ] x11-base/xorg-server-1.5.2
[ebuild R ] sys-apps/hal-0.5.11-r8
If I'm not inside X the keyboard works fine! Any hints on how to get they missing keys back? |
|
Back to top |
|
|
lindegur Apprentice
Joined: 14 Aug 2004 Posts: 292 Location: Swiss mountains
|
Posted: Sun Mar 08, 2009 10:21 am Post subject: |
|
|
I've the same problem. Did you check:
http://www.gentoo-wiki.info/X11_Keyboard/Xorg_7.3
They recommend to use:
/etc/hal/fdi/policy/99-x11-keyboard.fdi
And put in
Code: | <?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keyboard">
<merge key="input.xkb.layout" type="string">de</merge>
</match>
</device>
</deviceinfo> |
|
|
Back to top |
|
|
genmich Apprentice
Joined: 03 Apr 2003 Posts: 196
|
Posted: Sun Mar 08, 2009 10:38 am Post subject: |
|
|
I don't have 'AT keyboards' under the input devices (kernel: gentoo-2.6.27-r but I did all the HAL stuff. I does recognize the keyboard and mouse. Just some keys are wrong/gone.
As far as I understood it doesn't matter what the fdi file is called. It will just go through all the files and use them. I have a german keyboard layout (äöü is working fine). Just some keys are "gone" (it seems they have wrong keycodes or are not mapped). Keydown is ISO_Level3_Shift, Delete is Alr_R, 'Brightness up' is the right keycode but not working inside X (if I switch to a console it works!). Do I manually have to remap all keys now? Or is there a way to get the proper keycodes back (like outside X). |
|
Back to top |
|
|
lindegur Apprentice
Joined: 14 Aug 2004 Posts: 292 Location: Swiss mountains
|
Posted: Sun Mar 08, 2009 10:59 am Post subject: |
|
|
On my PC (Acer Aspire One) I managed to install compiz-fusion and it runs well. The only problem was the keyboard, where I had no reaction on the arrow keys, the delete key and probably others.
The language settings äöü worked always fine.
I had to update Xorg (Xorg-server-1.5.2, Xorg-x11-7.4) and therefore I got evdev as driver for the keyboard. Before that, the keyboard worked fine. Getting rid of evdev can not be the solution since evdev is the future. I have to learn now how to setup the keyboard, but this means finding some hints and good documentation.
I solved the issue finally. Using evdev I deleted more than I had to add:
In /etc/make.conf I have just
Code: | INPUT_DEVICES="evdev" |
This works for the keyboard and the external USB mouse (I will fix the touch pad later)
/etc/X11/xorg.conf has no keyboard definitions at all. Some people on the internet say, using evdev and HAL make /etc/X11/xorg.conf obsolete.
I use KDE where I disabled (Country/Region) keyboard layouts in the KDE Control center.
To get the Country/Region setting I added /etc/hal/fdi/policy/keyboard.fdi
Code: | <?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keyboard">
<match key="info.product" contains="AT Translated Set 2 keyboard">
<merge key="input.x11_driver" type="string">evdev</merge>
<merge key="input.x11_options.XkbLayout" type="string">ch</merge>
</match>
</match>
</device>
</deviceinfo> |
A couple of re-boots and debug sessions helped probably as well. |
|
Back to top |
|
|
playmiac n00b
Joined: 08 Nov 2005 Posts: 18
|
Posted: Sun Mar 08, 2009 5:42 pm Post subject: |
|
|
My keyboard stopped working in KDE 4.2.1 after update. Works fine in GDM and in KDE 4.1.
I updated to evdev (in make.conf added to INPUT_DEVICES="... evdev"), removed keyboard as well as mouse from xorg.conf. Mouse has been working fine all the time.
lshal | grep input gives the keyboard as event3 and event4
Code: | udi = '/org/freedesktop/Hal/devices/usb_device_413c_2002_noserial_if1_logicaldev_input'
info.addons.singleton = {'hald-addon-input'} (string list)
info.capabilities = {'input', 'input.keys', 'button'} (string list)
info.category = 'input' (string)
info.subsystem = 'input' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_413c_2002_noserial_if1_logicaldev_input' (string)
input.device = '/dev/input/event4' (string)
input.originating_device = '/org/freedesktop/Hal/devices/usb_device_413c_2002_noserial_if1' (string)
input.product = 'Dell Dell USB Keyboard Hub' (string)
input.x11_driver = 'evdev' (string)
input.x11_options.XkbOptions = 'altwin:menu' (string)
input.xkb.layout = 'ch' (string)
input.xkb.model = 'evdev' (string)
input.xkb.rules = 'base' (string)
input.xkb.variant = 'fr' (string)
linux.device_file = '/dev/input/event4' (string)
linux.subsystem = 'input' (string)
linux.sysfs_path = '/sys/class/input/input4/event4' (string)
udi = '/org/freedesktop/Hal/devices/usb_device_413c_2002_noserial_if0_logicaldev_input'
info.addons.singleton = {'hald-addon-input'} (string list)
info.capabilities = {'input', 'input.keyboard', 'input.keypad', 'input.keys','button'} (string list)
info.category = 'input' (string)
info.subsystem = 'input' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_413c_2002_noserial_if0_logicaldev_input' (string)
input.device = '/dev/input/event3' (string)
input.originating_device = '/org/freedesktop/Hal/devices/usb_device_413c_2002_noserial_if0' (string)
input.product = 'Dell Dell USB Keyboard Hub' (string)
input.x11_driver = 'evdev' (string)
input.x11_options.XkbOptions = 'altwin:menu' (string)
input.xkb.layout = 'ch' (string)
input.xkb.model = 'evdev' (string)
input.xkb.rules = 'base' (string)
input.xkb.variant = 'fr' (string)
linux.device_file = '/dev/input/event3' (string)
linux.subsystem = 'input' (string)
linux.sysfs_path = '/sys/class/input/input3/event3' (string) |
I have been trying to search in this forum as well as googling but in vain. Any advice? |
|
Back to top |
|
|
genmich Apprentice
Joined: 03 Apr 2003 Posts: 196
|
Posted: Sun Mar 08, 2009 6:29 pm Post subject: |
|
|
Ok, almost there too!
My fdi:
Code: | <match key="info.capabilities" contains="input.keys">
<merge key="input.xkb.rules" type="string">base</merge>
<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>
<merge key="input.xkb.layout" type="string">de</merge>
<merge key="input.xkb.variant" type="string">nodeadkeys</merge>
<merge key="input.xkb.options" type="strlist">altwin:swap_lalt_lwin</merge>
<append key="input.xkb.options" type="strlist">lv3:alt_switch</append>
</match>
</match>
|
Removed all xmodmap stuff and just used the KDE regional settings to remap keys.
Code: | setxkbmap -option -option altwin:ctrl_alt_win,lv3:switch |
Just the Brightness and Keyboard light is not passed to pommed. xev says its right:
Code: | KeyRelease event, serial 31, synthetic NO, window 0x3200001,
root 0x8b, subw 0x0, time 13929947, (-560,198), root:(429,561),
state 0x0, keycode 232 (keysym 0x1008ff03, XF86MonBrightnessDown), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False |
but the command isn't called. The volume keys are working though. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|