[Pkg-utopia-maintainers] Bug#530585: hal: HAL registers too many keyboard devices

Michael Biebl biebl at debian.org
Tue May 26 10:44:05 UTC 2009


Josef Spillner wrote:
> Package: hal
> Version: 0.5.12~git20090406.46dc48-2
> Severity: important
> 
> Yesterday I've upgraded my X.org from 7.3 to 7.4 which included
> the removal of static kbd/mouse device configuration and their
> replacement with evdev devices which get their information from HAL.
> 
> The net effect was that while the mouse still works, the keyboard
> doesn't fully work. Some keys work without problems (e.g. enter),
> while usual characters need to be input together with a trailing
> space key to show up in order. Otherwise, the key code is alternating
> constantly.
> 
> To demonstrate the problem:
>  input = 444444 -> output = 4$4$4$
>  input = 4 4 4 4 4 4 -> output = 444444
> 
> The alternation was also checked with xev (Or rather: x e v )
> with several terminals and window managers just to make sure that
> it's not related to these. It's not.
> The key release event is always carrying the same key code and
> is therefore not affected by the alternation. Using the same example
> as above:
>   press(34) release(24) press(24) release(24) press(34) release(24)...
> 
> This makes X11 completely unusable for me. The text console still
> works, though. If you believe that due to this it is an evdev issue,
> please reassign.
> Nevertheless I suspect HAL of being the problem here. When I plug
> in an external USB keyboard, it is registered twice instead of once.
> The following two sections from lshal show that both event12 and event13
> are registered for the external keyboard, while event0 to event11 are all
> spurious other keyboard devices which I'll list further down.
> When checking the created device nodes manually, e.g. cat /dev/input/eventX,
> only event12 returns something for the external keyboard and only event1
> for the internal keyboard.
> 
> udi = '/org/freedesktop/Hal/devices/usb_device_4f2_402_noserial_if1_logicaldev_input'
>   info.addons.singleton = {'hald-addon-input'} (string list)
>   info.callouts.add = {'debian-setup-keyboard'} (string list)
>   info.capabilities = {'input', 'input.keys', 'button'} (string list)
>   info.category = 'input'  (string)
>   info.parent = '/org/freedesktop/Hal/devices/usb_device_4f2_402_noserial_if1'  (string)
>   info.product = 'Chicony USB Keyboard'  (string)
>   info.subsystem = 'input'  (string)
>   info.udi = '/org/freedesktop/Hal/devices/usb_device_4f2_402_noserial_if1_logicaldev_input'  (string)
>   input.device = '/dev/input/event13'  (string)
>   input.originating_device = '/org/freedesktop/Hal/devices/usb_device_4f2_402_noserial_if1'  (string)
>   input.product = 'Chicony USB Keyboard'  (string)
>   input.x11_driver = 'evdev'  (string)
>   input.xkb.layout = 'de'  (string)
>   input.xkb.model = 'pc105'  (string)
>   input.xkb.rules = 'base'  (string)
>   linux.device_file = '/dev/input/event13'  (string)
>   linux.hotplug_type = 2  (0x2)  (int)
>   linux.subsystem = 'input'  (string)
>   linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb5/5-1/5-1:1.1/input/input13/event13'  (string)
> 
> udi = '/org/freedesktop/Hal/devices/usb_device_4f2_402_noserial_if0_logicaldev_input'
>   info.addons.singleton = {'hald-addon-input'} (string list)
>   info.callouts.add = {'debian-setup-keyboard'} (string list)
>   info.capabilities = {'input', 'input.keyboard', 'input.keypad', 'input.keys', 'button'} (string list)
>   info.category = 'input'  (string)
>   info.parent = '/org/freedesktop/Hal/devices/usb_device_4f2_402_noserial_if0'  (string)
>   info.product = 'Chicony USB Keyboard'  (string)
>   info.subsystem = 'input'  (string)
>   info.udi = '/org/freedesktop/Hal/devices/usb_device_4f2_402_noserial_if0_logicaldev_input'  (string)
>   input.device = '/dev/input/event12'  (string)
>   input.originating_device = '/org/freedesktop/Hal/devices/usb_device_4f2_402_noserial_if0'  (string)
>   input.product = 'Chicony USB Keyboard'  (string)
>   input.x11_driver = 'evdev'  (string)
>   input.xkb.layout = 'de'  (string)
>   input.xkb.model = 'pc105'  (string)
>   input.xkb.rules = 'base'  (string)
>   linux.device_file = '/dev/input/event12'  (string)
>   linux.hotplug_type = 2  (0x2)  (int)
>   linux.subsystem = 'input'  (string)
>   linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb5/5-1/5-1:1.0/input/input12/event12'  (string)

Hm, the usb sysfs path is different. So I'm not sure, if hal is really the
culprit here. Did you plug/unplug the keyboard to different usb ports?
Do you get this problem immediately after a fresh reboot?

> I've also tried returning to manual device detection as described
> in the blog entry linked from the Xorg NEWS.Debian file.
> However, adding AutoAddDevices "off" to the Xorg ServerLayout
> section was claimed to be an unknown command by Xorg.

I think it's NoAutoAddDevices.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20090526/58c96403/attachment-0001.pgp>


More information about the Pkg-utopia-maintainers mailing list