If you use Gnome/KDE/Xfce, they probably have a way to start programs in media insert. Otherwise you could try writing a udev rule for it:http://www.reactivated.net/writing_udev … ternal-run
anonymous_user
https://bbs.archlinux.org/profile.php?id=28548
2013-01-11T00:23:10Z
Here is instruction on how to use a udev rule to run a script when one's laptop is plugged/unplugged. Using it for your purposes would be quite similar. Of course you would have to figure out what value is changing in /sys when you flip the screen. https://wiki.archlinux.org/index.php/La … _udev_ruleThat said, here is some info on how to get started writing udev rules.http:/
I would recommend using the method that brebs suggested. Is there a reason why you are set on using udev to do this? With systemd, today I discovered I can use the tmpfile.d directory to determine my backlight setting on boot. While with SysV I used the above method in my rc.local, which also worked great.
WonderWoofy
https://bbs.archlinux.org/profile.php?id=60312
2
https://wiki.archlinux.org/index.php/Gr … boot_filesdm_mod?
WonderWoofy
https://bbs.archlinux.org/profile.php?id=60312
2012-10-07T20:18:32Z
Wow, you really left no stone unturned there, did you?
WonderWoofy
https://bbs.archlinux.org/profile.php?id=60312
2012-09-16T05:50:47Z
Oh, sorry I had read the first post and then assumed that you were the OP. In that case, start a new thread. This one is not relevent to what you are asking.
WonderWoofy
https://bbs.archlinux.org/profile.php?id=60312
2012-12-26T00:55:15Z
@cfr, you know you can simply use [[ -f /etc/profile ]] && . /etc/profile instead of the if/then statement. It will work either way, but I use the one liner because it makes my .xinitrc look a little cleaner.
WonderWoofy
https://bbs.archlinux.org/profile.php?id=60312
2012-10-13T02:13:45Z
I read this the other day.http://cl4ssic4l.wordpress.com/2011/05/ … about-pae/
WonderWoofy
https://bbs.archlinux.org/profile.php?id=60312
2012-10-06T00:22:07Z
I am now an i3 and dwb user, and it really makes me cringe to think that I spent a couple months trying to get myself used to gnome-shell when there are such great alternatives available.
WonderWoofy
https://bbs.archlinux.org/profile.php?id=60312
2012-09-30T14:31:04Z