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