openmoko works as an usb keyboard now
Timo Juhani Lindfors
timo.lindfors at iki.fi
Fri Nov 4 16:07:27 CET 2011
Hi,
2.6.39 includes g_hid.ko that can be used to make the system appear as a
usb keyboard to some usb host. It seems this is a platform driver but no
platform in linux includes it.
http://lindi.iki.fi/lindi/git/linux-hid-gadget.git/
is a fork of g_hid that works as an out-of-tree module and not a
platform driver. I tested this with the unofficial
linux-image-2.6.39-gta02-gta02 2.6.39-1gta021 package from
http://lindi.iki.fi/lindi/openmoko/linux-2.6-gta02/
and it works! From /var/log/Xorg.0.log:
...
(II) config/udev: Adding input device Linux 2.6.39-gta02-gta02 with s3c2410_udc HID Gadget (/dev/input/event7)
(**) Linux 2.6.39-gta02-gta02 with s3c2410_udc HID Gadget: Applying InputClass "evdev keyboard catchall"
(**) Linux 2.6.39-gta02-gta02 with s3c2410_udc HID Gadget: always reports core events
(**) Linux 2.6.39-gta02-gta02 with s3c2410_udc HID Gadget: Device: "/dev/input/event7"
(II) Linux 2.6.39-gta02-gta02 with s3c2410_udc HID Gadget: Found keys
(II) Linux 2.6.39-gta02-gta02 with s3c2410_udc HID Gadget: Configuring as keyboard
(II) XINPUT: Adding extended input device "Linux 2.6.39-gta02-gta02 with s3c2410_udc HID Gadget" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc105"
(**) Option "xkb_layout" "fi"
...
-Timo
More information about the community
mailing list