X loses wireless input devices

Yan Seiner yan at seiner.com
Wed Jun 13 06:49:21 PDT 2012


Thank you guys for helping me out with this.  I've got it figured out.

Here's a mini-mini howto for posterity (and also for newbies like me who 
might be struggling with this)

Set up a set of rules in /etc/udev/rules.d like this, where you identify 
the USB hub that will have the peripherals plugged into:

SUBSYSTEM=="usb", ATTRS{idVendor}=="05e3", ATTRS{idProduct}=="0607", 
TAG+="seat", ENV{ID_SEAT}="akari", SYMLINK+="input/seat/akari/hub"

ENV{ID_SEAT}=="", IMPORT{parent}="ID_SEAT"
ENV{ID_SEAT}!="", TAG+="$env{ID_SEAT}"

The symlink is not strictly necessary; it is just a placeholder to let 
you know that the rules triggered.

Plug in the keyboard and check to see if ID_SEAT and TAGS are set:

udevadm info --query=all -p $(udevadm info -q path -n 
/dev/input/by-path/pci-0000:00:02.1-usb-0:1.2:1.0-event-kbd)

....
E: ID_SEAT=akari
...
E: TAGS=:akari:

(Re)start X with the -seat option set:

/usr/bin/X -sharevts -layout akari -seat akari -isolateDevice PCI:4:0:0 
-keeptty :0 vt7 -auth /var/run/xauth/A:0-gI3Qic

and check /var/log/Xorg.?.log to see if the evdev devices are recognzied.

In xorg.conf, you can let X pick its own input devices:

Section "ServerLayout"
    Identifier     "akari"
    Screen      0  "akari-scr" 0 0
#    InputDevice    "akari-kbd" "CoreKeyboard"
#    InputDevice    "akari-mouse" "CorePointer"
    Option      "AutoEnableDevices"     "true"
    Option      "AutoAddDevices"        "true"
EndSection

Now you can have multi-seat with automagic keyboard and mouse detection.

-- 
Help us raise money for my kids' swim team!

http://www.facebook.com/RiverRoadKids4Kids




More information about the xorg mailing list