You are not logged in.

#1 2016-01-21 09:29:25

Schulteatq
Member
Registered: 2016-01-21
Posts: 2

X display deactivates after switching monitor off and on

Hi all,

I'm having an issue with the X server of my HTPC. It's connected to a Philips TV and using intel graphics. The issue is the following:
If I boot with the TV turned on, everything works like a charm. However, as soon as I switch the TV off and then on again (while the HTPC is still running), the X server silently crashes (it's still running but the TV says "no signal"). I can change to the TTY and restart X, then everything works fine again. However, using xrandr to enable the screen again does not work (see below).

Some more information:
* The issue does only happen with that TV. I connected my NEC monitor and everything was working fine.
* I tried manually specifying the EDID during boot (using the EDID file extracted from /sys) - without effect
* I tried manually setting a Xorg monitor.conf with some default modelines - no effect

When I turn the TV off for the first time, everything still seems fine in xrandr:

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected (normal left inverted right x axis y axis)
   1920x1080     60.00*+  50.00    59.94    30.00    25.00    24.00    29.97    23.98

As soon, as I switch the TV on again, it breaks (mind the missing asterisk in the modeline)

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +  50.00    59.94    30.00    25.00    24.00    29.97    23.98

If I try to use xrandr to turn on the screen again:

kodi@kodi ~ % xrandr --output HDMI2 --preferred
xrandr: Configure crtc 0 failed

The Xorg.log might be conclusive:

[   131.556] (II) AIGLX: Suspending AIGLX clients for VT switch
[   131.624] (II) systemd-logind: got pause for 13:66
[   131.624] (II) systemd-logind: got pause for 13:65
[   131.624] (II) systemd-logind: got pause for 13:64
[   131.624] (II) systemd-logind: got pause for 13:75
[   193.061] (II) systemd-logind: got resume for 13:66
[   193.061] (II) Open ACPI successful (/var/run/acpid.socket)
[   193.061] (II) AIGLX: Resuming AIGLX clients after VT switch
[   193.061] (EE) intel(0): sna_mode_check: invalid state found on pipe 0, disabling CRTC:20
[   193.101] (--) intel(0): HDMI max TMDS frequency 225000KHz
[   193.102] (II) systemd-logind: got resume for 13:65
[   193.102] (II) systemd-logind: got resume for 13:64
[   193.116] (II) systemd-logind: got resume for 13:75

This is what happens when turning the TV off and on again. However, googling for the error did not really lead me to ideas on how to solve this.


I hope someone of you guys has some ideas. smile
Cheers,
Christian

Offline

#2 2016-01-25 09:41:56

Schulteatq
Member
Registered: 2016-01-21
Posts: 2

Re: X display deactivates after switching monitor off and on

Nobody has any idea?

Offline

#3 2016-03-01 10:09:26

zhangyang
Member
Registered: 2016-03-01
Posts: 2

Re: X display deactivates after switching monitor off and on

Hi Schulteatq,

I met the similar problem.
when I switch "VGA" or "HDMI" monitor off and on with the xubuntu.
the xfce silently crashes (it's still running but the TV says "no signal"). I can change to the TTY and "killall xfce4-session" , then everything works fine again.
Did you solve the problem?

the Xorg.0.log message (see below)
[ 4348.583] (EE) intel(0): sna_mode_check: invalid state found on pipe 0, disabling CRTC:21
[ 4348.711] (II) intel(0): EDID vendor "SAM", prod id 1468
[ 4348.711] (II) intel(0): Using EDID range info for horizontal sync
[ 4348.711] (II) intel(0): Using EDID range info for vertical refresh
[ 4348.711] (II) intel(0): Printing DDC gathered Modelines:
[ 4348.711] (II) intel(0): Modeline "1440x900"x0.0 106.50 1440 1520 1672 1904 900 903 909 934 -hsync +vsync (55.9 kHz eP)
[ 4348.711] (II) intel(0): Modeline "800x600"x0.0 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 4348.711] (II) intel(0): Modeline "800x600"x0.0 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz e)
[ 4348.711] (II) intel(0): Modeline "640x480"x0.0 31.50 640 656 720 840 480 481 484 500 -hsync -vsync (37.5 kHz e)
[ 4348.711] (II) intel(0): Modeline "640x480"x0.0 31.50 640 664 704 832 480 489 492 520 -hsync -vsync (37.9 kHz e)
[ 4348.711] (II) intel(0): Modeline "640x480"x0.0 30.24 640 704 768 864 480 483 486 525 -hsync -vsync (35.0 kHz e)
[ 4348.711] (II) intel(0): Modeline "640x480"x0.0 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 4348.711] (II) intel(0): Modeline "720x400"x0.0 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz e)
[ 4348.711] (II) intel(0): Modeline "1280x1024"x0.0 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[ 4348.711] (II) intel(0): Modeline "1024x768"x0.0 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync (60.0 kHz e)
[ 4348.711] (II) intel(0): Modeline "1024x768"x0.0 75.00 1024 1048 1184 1328 768 771 777 806 -hsync -vsync (56.5 kHz e)
[ 4348.711] (II) intel(0): Modeline "1024x768"x0.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 4348.712] (II) intel(0): Modeline "832x624"x0.0 57.28 832 864 928 1152 624 625 628 667 -hsync -vsync (49.7 kHz e)
[ 4348.712] (II) intel(0): Modeline "800x600"x0.0 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync (46.9 kHz e)
[ 4348.712] (II) intel(0): Modeline "800x600"x0.0 50.00 800 856 976 1040 600 637 643 666 +hsync +vsync (48.1 kHz e)
[ 4348.712] (II) intel(0): Modeline "1152x864"x0.0 108.00 1152 1216 1344 1600 864 865 868 900 +hsync +vsync (67.5 kHz e)
[ 4348.712] (II) intel(0): Modeline "1440x900"x0.0 136.75 1440 1536 1688 1936 900 903 909 942 -hsync +vsync (70.6 kHz e)
[ 4348.712] (II) intel(0): Modeline "1280x1024"x0.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[ 4348.712] (II) intel(0): Modeline "1280x960"x0.0 108.00 1280 1376 1488 1800 960 961 964 1000 +hsync +vsync (60.0 kHz e)
[ 4348.712] (II) intel(0): Modeline "1280x800"x0.0 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync (49.7 kHz e)

Thanks
zy

Last edited by zhangyang (2016-03-01 10:10:20)

Offline

#4 2016-03-02 04:58:55

betaversion
Member
Registered: 2016-03-02
Posts: 6

Re: X display deactivates after switching monitor off and on

HI  christian

Are you using xfce? If so the same has always happened to me. xfsettingsd has a bug where it does not check for hdmi connection after the tv turns off which means you need to restart the session to reinitialize the display.
Someone patched it to rescan every time and the problem disappears.
Try google for a patched xfsettingsd in regards to hdmi, I couldn't find it real quick to post here but I 've used it and it works a charm.

Offline

#5 2016-03-04 10:49:28

zhangyang
Member
Registered: 2016-03-01
Posts: 2

Re: X display deactivates after switching monitor off and on

Hi betaversion,

I'm very grateful to you for all your help
many thanks,
I think I found what you described.I will post the web to here to help other person.

https://bugs.launchpad.net/ubuntu/+sour … ug/1308105
https://forum.manjaro.org/index.php?topic=19411.0

All the suggestion is worked.but these aren`t official solutions.
These solutions also have A little bit bugs.

Thanks again,
zy

Offline

Board footer

Powered by FluxBB