View previous topic :: View next topic |
Author |
Message |
dambacher Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 11 Feb 2003 Posts: 290 Location: Germany
|
Posted: Sat Feb 02, 2013 10:24 am Post subject: udev rules - match all devices of my docking station |
|
|
Hi there
How can I write a udev rule which sais "tag this usb device if the parent hub has idProduct == 100a , idVendor == 17ef ? "
My Docking station has an usb hub in it and I connected a mouse and a keyboard to it.
I want to set up a multi seat xorg config and match keyboard and mouse from my docking station via Xorg.conf MatchTag
Therefore I set up udev rules to tag the different input devices.
Now I set up rules to match devices in udev and add this tag.
Code: |
SUBSYSTEM=="input", ENV{ID_INPUT.tags}="input_default"
SUBSYSTEM=="input", DEVPATH=="/sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/*", ENV{ID_INPUT.tags}="input_docking"
|
The thing with DEVPATH does not work correctly because the docking hub will show up at different positions
thanks for replying
dambacher |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DaggyStyle Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/182793287489b53393316c.gif)
Joined: 22 Mar 2006 Posts: 5941
|
Posted: Sat Feb 02, 2013 6:15 pm Post subject: |
|
|
this is my definition for a one of my seats:
Code: | SUBSYSTEM=="input", DEVPATH=="/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/*", ENV{ID_INPUT.tags}="Input_layout1"
|
all devices on that hub works only for seat1 _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dambacher Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 11 Feb 2003 Posts: 290 Location: Germany
|
Posted: Tue Feb 05, 2013 8:14 pm Post subject: |
|
|
thanks for your reply
at least i founnd out why my setup did not work at all: the "/sys"in front of the path was wrong.
this is one problem less.
bye
ud |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|