Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev rules - match all devices of my docking station
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dambacher
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 282
Location: Germany

PostPosted: Sat Feb 02, 2013 10:24 am    Post subject: udev rules - match all devices of my docking station Reply with quote

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
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4941

PostPosted: Sat Feb 02, 2013 6:15 pm    Post subject: Reply with quote

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
ProjectFootball
Back to top
View user's profile Send private message
dambacher
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 282
Location: Germany

PostPosted: Tue Feb 05, 2013 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum