xorg loses display mode when I power cycle monitor

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
the Goat
Posts: 7
Joined: 2016-01-12 14:07

xorg loses display mode when I power cycle monitor

#1 Post by the Goat »

I have my home theater PC connected to the TV via HDMI through an audio receiver. Everything works fine at 4K (3840x2160) at 120Hz (119.88Hz) except if I turn the TV off and back on there is no display. I can get the display back by switching to a virtual console and then switching back to the graphical console.

The HTPC is running Debian 12 and has a Nvidia RTX 3050 GPU. I believe the GPU invalidates the EDID when the TV is turned off. I'd be happy if there was a way to force it to always output 4K @ 120Hz regardless of a display being connected or not.

The relevant portions of my xorg.conf are...

Code: Select all

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "SONY TV  *30"
    HorizSync       14.0 - 255.0
    VertRefresh     23.0 - 121.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    Option         "DynamicTwinView" "false"
    Option         "NoFlip" "false"
    Option         "NoLogo" "true"
    Option         "ModeValidation" "NoVesaModes, NoXServerModes"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 3050"
    Option         "ConnectedMonitor" "HDMI-0"
    Option         "CustomEDID" "HDMI-0:/etc/X11/edid.bin"
    Option         "IgnoreEDID" "false"
    Option         "UseEDID" "true"
EndSection

Section "Screen"

# Removed Option "metamodes" "3840x2160_60 +0+0; nvidia-auto-select +0+0 {viewportout=1920x1080+0+0}"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "ConnectedMonitor" "HDMI-0"
    Option         "nvidiaXineramaInfoOrder" "HDMI-0"
    Option         "metamodes" "3840x2160_120 +0+0; nvidia-auto-select +0+0 {viewportout=3840x2160+0+0}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    Option         "NoLogo"  "True"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Any help is appreciated.

mrmazda
Posts: 569
Joined: 2023-06-02 02:22
Has thanked: 15 times
Been thanked: 70 times

Re: xorg loses display mode when I power cycle monitor

#2 Post by mrmazda »

I'd give changing 'Option "DPMS"' to 'Option "DPMS" "off"' a try first.

Given presence of VertRefresh and HorizSync specifications provided, I'd try switching 'Option "UseEDID" "true"' to 'Option "UseEDID" "false"' and 'Option "IgnoreEDID" "false"' to 'Option "IgnoreEDID" "true"'.

If all the above didn't help, I'd be content to switching to vtty and back, or sell the RTX and get an AMD or Intel GPU, abandoning need for proprietary driver and X configuration file.

the Goat
Posts: 7
Joined: 2016-01-12 14:07

Re: xorg loses display mode when I power cycle monitor

#3 Post by the Goat »

mrmazda wrote: 2025-01-23 03:48 I'd give changing 'Option "DPMS"' to 'Option "DPMS" "off"' a try first.

Given presence of VertRefresh and HorizSync specifications provided, I'd try switching 'Option "UseEDID" "true"' to 'Option "UseEDID" "false"' and 'Option "IgnoreEDID" "false"' to 'Option "IgnoreEDID" "true"'.

If all the above didn't help, I'd be content to switching to vtty and back, or sell the RTX and get an AMD or Intel GPU, abandoning need for proprietary driver and X configuration file.
Thanks for the suggestions. Changing the "DPMS" and "IgnoreEDID" settings made no difference. Changing the "UseEDID" to false caused X to revert to a default 800x600 resolution. So no progress.

the Goat
Posts: 7
Joined: 2016-01-12 14:07

Re: xorg loses display mode when I power cycle monitor

#4 Post by the Goat »

I use the VDPAU video playback acceleration in the proprietary nvidia driver extensively. I don't think Intel or AMD GPUs have similar video playback offloading.

Post Reply