diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2014-08-22 11:53:46 +0200 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2014-08-22 11:53:46 +0200 |
commit | f0167e83c71879ec2e64c389e59819c9ff8d170a (patch) | |
tree | c75095e6b2e5cf961c61361110c784cc3f7509c6 /rules | |
download | display_autoset-f0167e83c71879ec2e64c389e59819c9ff8d170a.tar.xz |
Initial commit
Diffstat (limited to 'rules')
-rw-r--r-- | rules/20-display-autoset.rules | 1 | ||||
-rw-r--r-- | rules/INSTALL | 6 | ||||
-rw-r--r-- | rules/display-autoset | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/rules/20-display-autoset.rules b/rules/20-display-autoset.rules new file mode 100644 index 0000000..75dbd90 --- /dev/null +++ b/rules/20-display-autoset.rules @@ -0,0 +1 @@ +KERNEL=="card0", PROGRAM="/home/robin/bin/displays/udev_event_handler.sh" diff --git a/rules/INSTALL b/rules/INSTALL new file mode 100644 index 0000000..5b5071f --- /dev/null +++ b/rules/INSTALL @@ -0,0 +1,6 @@ +root@robin-note:~# cat /etc/udev/rules.d/20-display-autoset.rules +KERNEL=="card0", PROGRAM="/home/robin/bin/displays/udev_event_handler.sh" + +root@robin-note:~# cat /etc/acpi/events/display-autoset +event=video/switchmode VMOD 00000080 00000000 +action=/home/robin/bin/displays/acpi_event_handler.sh diff --git a/rules/display-autoset b/rules/display-autoset new file mode 100644 index 0000000..58748eb --- /dev/null +++ b/rules/display-autoset @@ -0,0 +1,2 @@ +event=video/switchmode VMOD 00000080 00000000 +action=/home/robin/bin/displays/acpi_event_handler.sh |