For people on mythbuntu who encounter this with a mceusb remote, here's how i'm working around it:
1) Save this file to /home/user/fix_tv_state.sh and make it executable
==============================
#!/bin/sh
#Fix TV state when HDMI link is lost.
#By Mario Limonciello <email address hidden>
For people on mythbuntu who encounter this with a mceusb remote, here's how i'm working around it:
1) Save this file to /home/user/ fix_tv_ state.sh and make it executable ======= ======= ======= ==
=======
#!/bin/sh
#Fix TV state when HDMI link is lost.
#By Mario Limonciello <email address hidden>
OUTPUT="HDMI-0" "1920x1080"
BAD_MODE="1280x720"
GOOD_MODE=
for MODE in $BAD_MODE $GOOD_MODE; do ======= ======= ======= ==
DISPLAY=:0 xrandr --output $OUTPUT --mode $MODE
sleep 2
done
=======
2) Create ~/.lirc/irexec and put these contents: ======= ======= ======= == fix_tv_ state.sh ======= ======= ======= ==
=======
begin
remote = mceusb
button = KEY_POWER
prog = irexec
repeat = 0
config = /home/user/
end
=======
3) Add to ~/.lircrc this line:
include ~/.lirc/irexec
4) Restart machine, lightdm or log out/in
Now power button on your mceusb remote will fix the HTPC video output state.