X loses wireless input devices

Dan Nicholson dbn.lists at gmail.com
Wed Jun 13 07:52:34 PDT 2012


On 6/13/12, Yan Seiner <yan at seiner.com> wrote:
> 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.

Just for completeness, the one other thing systemd/udev does is change
the ACLs on the devices depending on seat. This seems to depend on
being able to query the current seat from systemd, though.

--
Dan



More information about the xorg mailing list