[mythtv-users] Mythbuntu, Intel graphics and losing, monitor when off
Hika van den Hoven
hikavdh at gmail.com
Tue Aug 23 20:30:38 UTC 2016
Hoi Nicolas,
Tuesday, August 23, 2016, 9:57:44 PM, you wrote:
> Hi guys, I had this issue as well on Mythbuntu 14.04 and solved it with
> an udev rule:
> nsk at htpc7even:~$ cat /etc/udev/rules.d/90-hdmi-hotplug.rules
> KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0",
> ENV{XAUTHORITY}="/home/htpc/.Xauthority", RUN+="/srv/bin/hdmihotplug.sh"
> nsk at htpc7even:~$ cat /srv/bin/hdmihotplug.sh
> #!/bin/bash
> export DISPLAY=:0
> export XAUTHORITY=/home/htpc/.Xauthority
> function connect()
> {
> xrandr --output HDMI2 --mode 1920x1080
> }
> function disconnect()
> {
> xrandr --output HDMI2 --off
> }
> xrandr | grep "HDMI2 connected" &> /dev/null && connect || disconnect
> nsk at htpc7even:~$
> Greetings,
> Nicolas
I'm impressed! I'm saving that one for future reference!
But small detail, please do not top-post!
Tot mails,
Hika mailto:hikavdh at gmail.com
"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"
De lerende Mens
More information about the mythtv-users
mailing list