You are not logged in.
I have a HTPC connected to a TV via HDMI. However, 90% of the time (it's not always!) when I turn the TV off, Xorg freezes. There are no other displays connected.
I am using KDE on Intel Graphics and I'm not sure how to debug this.
The system hasn't frozen as I can still log in via SSH. If I try running xrandr via ssh it doesn't ever produce any output:
export DISPLAY=:0
xrandr
Will just hang and never produce any output. probably because it can't communicate with xorg server. I have to press ctrl-c to get out of it.
Xorg.0.log shows:
[ 55280.603] (II) intel(0): EDID vendor "SNY", prod id 46595
[ 55280.603] (II) intel(0): Using hsync ranges from config file
[ 55280.603] (II) intel(0): Using vrefresh ranges from config file
[ 55280.603] (II) intel(0): Printing DDC gathered Modelines:
[ 55280.603] (II) intel(0): Modeline "1920x1080i"x0.0 74.25 1920 2008 2052 2200 1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz eP)
[ 55280.604] (II) intel(0): Modeline "1920x1080i"x0.0 74.25 1920 2448 2492 2640 1080 1084 1094 1125 interlace +hsync +vsync (28.1 kHz e)
[ 55280.604] (II) intel(0): Modeline "1280x720"x0.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 55280.604] (II) intel(0): Modeline "1280x720"x0.0 74.25 1280 1720 1760 1980 720 725 730 750 +hsync +vsync (37.5 kHz e)
[ 55280.604] (II) intel(0): Modeline "640x480"x0.0 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 55280.604] (II) intel(0): Modeline "720x480"x0.0 27.00 720 736 798 858 480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 55280.604] (II) intel(0): Modeline "720x576"x0.0 27.00 720 732 796 864 576 581 586 625 -hsync -vsync (31.2 kHz e)
[ 55280.604] (II) intel(0): Modeline "1440x480i"x0.0 27.00 1440 1478 1602 1716 480 488 494 525 interlace -hsync -vsync (15.7 kHz e)
[ 55280.604] (II) intel(0): Modeline "1440x576i"x0.0 27.00 1440 1464 1590 1728 576 580 586 625 interlace -hsync -vsync (15.6 kHz e)
[ 55280.604] (--) intel(0): HDMI max TMDS frequency 225000KHz
[ 55281.300] (II) intel(0): switch to mode 1920x1080@60.0 on HDMI1 using pipe 0, position (0, 0), rotation normal, reflection none
Which appears correct to me. Strangely, it seems to have detected the connect, but Xorg is frozen with the picture it was displaying when I turned off the screen last night.
How else can I debug this and track down the cause of the problem?
For what it's worth, it's only in the last few weeks this has happened so it may be a new KDE, Xorg, Kernel or Intel Graphics version.
Offline
ltrace/strace/gdb the server process (pidof Xorg) - the server is either life or deadlocked.
You may also want to try to uninstall xf86-video-intel to resort to the modesetting driver and see whether that's more reliable itr.
Offline
Could try using Option "Hotplug" "false". Which should stop the event causing the problem from happening. I needed to make a xorg.conf for my htpc to stop the the window manager and or Xorg from rearranging the monitor setup everytime I shut off the TV.
Section "Device"
Identifier "Device0"
Driver "intel"
VendorName "INTEL Corporation"
Option "TripleBuffer" "false"
Option "TearFree" "false"
Option "DRI" "3"
Option "Hotplug" "false"
EndSection
Offline