Results 1 to 2 of 2
I want to have a script I've created, that selects USB audio as the default alsa device, get triggered automatically when my USB speakers are plugged in (and also when ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-04-2006 #1
script trigger on USB device plug/unplug
Does anyone know what runs when a USB device is plugged in and how to add my script to that?
Thanks.HP Pavilion dv6000t
Intel Centrino Duo 2.0GHz
nVidia GeForce Go 7400
The real question is what time is it and why the hell am I still screwing around with my computer?
- 02-05-2006 #2
- Join Date
- Jan 2006
i guess that when a device is detected a file descriptor is written in /dev. you could check that in your script and run it. same idea for the reverse part.
i would do a google search in writing daemons and make one that checks for that fd every x seconds and runs your script as needed.