summaryrefslogtreecommitdiff
path: root/recipes-core/hdmi-hotplug/files/apalis-tk1/hdmi.rules
blob: 445bd72ad8e0ccdee06a54ab1436ea8f875d2417 (plain)
1
2
3
4
5
6
7
8
9
10
11
#UDEV  [504.185864] change   /devices/virtual/switch/hdmi (switch)
#ACTION=change
#DEVPATH=/devices/virtual/switch/hdmi
#SEQNUM=1794
#SUBSYSTEM=switch
#SWITCH_NAME=hdmi
#SWITCH_STATE=0
#USEC_INITIALIZED=4180704

SUBSYSTEM=="switch", DEVPATH=="/devices/virtual/switch/hdmi", ATTR{state}=="1", RUN+="/bin/sh -c 'DISPLAY=:0.0 xrandr --output HDMI-0 --auto --primary --output LVDS-0 --auto --right-of HDMI-0'"
#SUBSYSTEM=="switch", DEVPATH=="/devices/virtual/switch/hdmi", ATTR{state}=="1", RUN+="/bin/sh -c 'DISPLAY=:0.0 xrandr --output LVDS-0 --auto --primary --output HDMI-0 --auto --right-of LVDS-0'"