evdev with sun type6 keyboard... also modmap gripes...

Jeremy Huddleston jeremyhu at freedesktop.org
Sun Nov 16 17:52:53 PST 2008


I have a sun type6 usb keyboard, and evdev treats it as pc105+inet:

(II) config/hal: Adding input device HID 0430:0005
(**) HID 0430:0005: always reports core events
(**) HID 0430:0005: Device: "/dev/input/event4"
(II) HID 0430:0005: Found keys
(II) HID 0430:0005: Configuring as keyboard
(II) XINPUT: Adding extended input device "HID 0430:0005" (type:  
KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) HID 0430:0005: xkb_rules: "evdev"
(**) Option "xkb_model" "pc105+inet"
(**) HID 0430:0005: xkb_model: "pc105+inet"
(**) Option "xkb_layout" "us"
(**) HID 0430:0005: xkb_layout: "us"

---

T:  Bus=02 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  7 Spd=1.5 MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0430 ProdID=0005 Rev= 1.02
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=10ms

-----

The keyboard mostly works, but it would probably be better if it were  
treated as sun6... I just use the "old-fashioned" keyboard driver with:
Option "XkbModel"    "sun6"

I looked through the xf86-input-evdev source, but I didn't see an  
obvious hash table to add this too... could someone tell me where I  
should start digging to fix this?


Also, wth is up with the default xmodmap?  This should really be  
cleaner... wth is Super_{R,L} and Hyper_{R,L}?

xmodmap:  up to 3 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3
mod4        Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3040 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20081116/846ec0fb/attachment.bin>


More information about the xorg mailing list