[prev in list] [next in list] [prev in thread] [next in thread]
List: mythtv-users
Subject: Re: [mythtv-users] Mythbuntu, Intel graphics and losing, monitor when off
From: Hika van den Hoven <hikavdh () gmail ! com>
Date: 2016-08-23 20:30:38
Message-ID: 166577557.20160823223038 () gmail ! com
[Download RAW message or body]
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@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@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@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@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
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic