Hdmi extcon will suspend automatically every 600s. How can I disable this function?

Hello Experts,

when there is no operating device for 600 seconds, the device automatically turns off the hdmi output. Even though I’ve turned these options off:

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

I found that tegradc.will blank this in kmesg log below:
[ 4.779582] tegradc tegradc.0: hdmi: get YCC quant from EDID.

[ 4.814305] extcon-disp-state extcon:disp-state: cable 47 state 1

[ 4.814307] Extcon AUX1(HDMI) enable

[ 4.823439] tegradc tegradc.0: unblank

[ 4.823451] tegradc tegradc.1: blank - powerdown

[ 5.270069] tegra-xusb 70090000.xusb: Upgrade port 0 to USB3.0

[ 5.270076] tegra-xusb 70090000.xusb: Upgrade port 1 to USB3.0

[ 5.595037] usb 2-1: new SuperSpeed USB device number 2 using tegra-xusb

[ 5.626988] usb 2-1: New USB device found, idVendor=0bda, idProduct=0411

[ 5.626995] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[ 5.626999] usb 2-1: Product: 4-Port USB 3.1 Hub

[ 5.627003] usb 2-1: Manufacturer: Generic

[ 5.630483] hub 2-1:1.0: USB hub found

[ 5.631274] hub 2-1:1.0: 4 ports detected

[ 5.782675] usb 2-1: usb_suspend_both: status 0

[ 5.782810] usb usb2: usb_suspend_both: status 0

[ 655.013019] tegradc tegradc.0: blank - powerdown

[ 655.078210] extcon-disp-state extcon:disp-state: cable 47 state 0

[ 655.078212] Extcon AUX1(HDMI) disable

[ 660.893176] tegradc tegradc.0: unblank

[ 660.911390] tegradc tegradc.0: nominal-pclk:148500000 parent:148500000 div:1.0 pclk:148500000 147015000~161865000

[ 660.912904] tegradc tegradc.0: hdmi: tmds rate:148500K prod-setting:prod_c_hdmi_75m_150m

[ 660.913909] tegradc tegradc.0: hdmi: get RGB quant from EDID.

[ 660.913916] tegradc tegradc.0: hdmi: get YCC quant from EDID.

[ 660.953925] extcon-disp-state extcon:disp-state: cable 47 state 1

[ 660.953943] Extcon AUX1(HDMI) enable

[ 660.986420] tegradc tegradc.0: unblank

[ 660.986430] tegradc tegradc.1: blank - powerdown

[ 688.342507] tegradc tegradc.0: blank - powerdown

[ 688.399258] extcon-disp-state extcon:disp-state: cable 47 state 0

[ 688.399262] Extcon AUX1(HDMI) disable

[ 688.418261] tegradc tegradc.1: blank - powerdown

[ 688.420932] tegradc tegradc.0: blank - powerdown

[ 688.420953] tegradc tegradc.0: unblank

[ 688.432553] tegradc tegradc.0: nominal-pclk:148500000 parent:148500000 div:1.0 pclk:148500000 147015000~161865000

[ 688.432639] tegradc tegradc.0: hdmi: tmds rate:148500K prod-setting:prod_c_hdmi_75m_150m

[ 688.433659] tegradc tegradc.0: hdmi: get RGB quant from EDID.

[ 688.433666] tegradc tegradc.0: hdmi: get YCC quant from EDID.

[ 688.468512] extcon-disp-state extcon:disp-state: cable 47 state 1

[ 688.468514] Extcon AUX1(HDMI) enable

[ 688.470560] tegradc tegradc.0: sync windows ret = 250

[ 1430.643221] tegradc tegradc.0: blank - normal

[ 1574.036283] tegradc tegradc.0: unblank

[ 1574.037574] tegradc tegradc.0: sync windows ret = 250

[ 2249.843911] tegradc tegradc.0: blank - normal

[ 2285.467943] tegradc tegradc.0: unblank

[ 2285.469239] tegradc tegradc.0: sync windows ret = 250

[ 2905.203175] tegradc tegradc.0: blank - normal

[ 3242.059968] tegradc tegradc.0: unblank

[ 3242.062014] tegradc tegradc.0: sync windows ret = 250

PS: I use multi-user mode without Desktop Managerment(gnome):
sudo systemctl set-default multi-user.target

And the image was download form nvidia website.

Could you help to tell me who control tegradc to blank display? How to disable this sleep funciton?

Thanks!

please check if gsettings can help your case or not.

gsettings set org.gnome.desktop.session idle-delay 0

Hi Wanyne

This value on my device is already 0.

#gsettings get org.gnome.desktop.session idle-delay

uint32 0

When I run the code you wrote I get this error:

(process:7353): dconf-WARNING **: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY

Did you export $DISPLAY to the corresponding number?

I use multi-user mode without Desktop gnome:
sudo systemctl set-default multi-user.target

and I use ctrl + alt +FN switch terminal 1~6, each tty show on the screen will sleep in 600 seconds.

Try to add below to kernel command line.

consoleblank=0

You can add it to /boot/extlinux/extlinux.conf.

It works for console. But when I use startx to start a Qt app, it will sleep in 600s again.

I configured the /etc/X11/xorg.conf as below, And solved this issue.

Section “Monitor”
Identifier “Monitor0”
Option “DPMS” “false”
EndSection

Section “ServerLayout”
Identifier “ServerLayout0”
Option “BlankTime” “0”
Option “StandbyTime” “0”
Option “SuspendTime” “0”
Option “OffTime” “0”
EndSection

Thank you for your help!

1 Like