You are not logged in.

#1 2022-03-27 04:31:06

smartding
Member
Registered: 2021-02-21
Posts: 35

Unable to wake external monitor with xrandr

My Environment

I'm using a laptop with an external monitor. The monitor is connected to the laptop via a usb-c to usb-c cable.

The laptop CPU is 11th Gen Intel(R) Core(TM) i7-1165G7, it has a builtin Iris® Xe Graphics.

I'm running the 5.16.16-arch1-1 kernel, with xorg-server 21.1.3-6, and the suckless dwm window manager.

According to xrandr, my external monitor is DP-1 and laptop builtin monitor is eDP-1.

Problem Description

The problem I have is this: I can't wake up the external monitor with xrandr after it's gone to sleep, steps to reproduce:

1. turn off the external monitor with xrandr --output DP-1 --off
1. external monitor says: "no signal, going to sleep"
1. wait a few seconds, until external monitor is actually asleep
1. run xrandr -q, the output is as follows, it looks like external monitor (DP-1) is still alive:

Screen 0: minimum 320 x 200, current 3000 x 2000, maximum 16384 x 16384
eDP-1 connected primary 3000x2000+0+0 (normal left inverted right x axis y axis) 293mm x 195mm
   3000x2000     60.00*+
   2880x1620     59.96    59.97  
   2560x1600     59.99    59.97  
   2560x1440     59.99    59.99    59.96    59.95  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.99    59.98    59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     60.01    59.97    59.96    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 connected (normal left inverted right x axis y axis)
   3840x2160     60.00 +  30.00  
   2560x1440     59.95  
   1920x1080     60.00    59.94  
   1600x900      60.00  
   1280x1024     60.02  
   1280x800      59.81  
   1280x720      60.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)

1. try to wake up the external monitor with xrandr --output DP-1 --auto
1. nothing happens, the external monitor is still asleep
1. run xrandr -q again, the output is as follows, now DP-1 seems dead:

Screen 0: minimum 320 x 200, current 3840 x 2160, maximum 16384 x 16384
eDP-1 connected primary 3000x2000+0+0 (normal left inverted right x axis y axis) 293mm x 195mm
   3000x2000     60.00*+
   2880x1620     59.96    59.97  
   2560x1600     59.99    59.97  
   2560x1440     59.99    59.99    59.96    59.95  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.99    59.98    59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     60.01    59.97    59.96    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected 3840x2160+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
  3840x2160 (0xad) 533.250MHz +HSync -VSync
        h: width  3840 start 3888 end 3920 total 4000 skew    0 clock 133.31KHz
        v: height 2160 start 2214 end 2219 total 2222           clock  60.00Hz
Additional Info

If I try to wake up the external monitor after I turn it off with xrandr --output DP-1 --off, but before it's fully asleep, I can wake it up.

It shouldn't be a hardware problem, because I can wake up the external monitor when using Windows10.

Offline

#2 2022-03-27 07:22:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: Unable to wake external monitor with xrandr

https://wiki.archlinux.org/title/Power_ … utosuspend ?
"usbcore.autosuspend=-1"

nb. that userspace power managers can and will alter that at runtime, so you need to configure it there (as well)

Is this on xf86-video-intel or the modesetting driver?
Does the monitor re-appear when you re-plug it?

ceterum censeo: 3rd link below.

Online

#3 2022-03-27 08:04:52

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Unable to wake external monitor with xrandr

@seth

Adding "usbcore.autosuspend=-1"  as kernel parameter doesn't work.
I checked the value at /sys/module/usbcore/parameters/autosuspend, and it's still "-1" after I boot, so I guess no userspace power managers changed the value.

My xorg log at ~/.local/share/xorg/Xorg.0.log says the following, I think I'm using the modesetting driver:

[    18.491] (==) Matched intel as autoconfigured driver 0
[    18.491] (==) Matched modesetting as autoconfigured driver 1
[    18.491] (==) Matched fbdev as autoconfigured driver 2
[    18.491] (==) Matched vesa as autoconfigured driver 3
[    18.491] (==) Assigned the driver to the xf86ConfigLayout
[    18.491] (II) LoadModule: "intel"
[    18.491] (WW) Warning, couldn't open module intel
[    18.491] (EE) Failed to load module "intel" (module does not exist, 0)
[    18.491] (II) LoadModule: "modesetting"
[    18.491] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    18.492] (II) Module modesetting: vendor="X.Org Foundation"
[    18.492] 	compiled for 1.21.1.3, module version = 1.21.1
[    18.492] 	Module class: X.Org Video Driver
[    18.492] 	ABI class: X.Org Video Driver, version 25.2
[    18.492] (II) LoadModule: "fbdev"
[    18.492] (WW) Warning, couldn't open module fbdev
[    18.492] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    18.492] (II) LoadModule: "vesa"
[    18.492] (WW) Warning, couldn't open module vesa
[    18.492] (EE) Failed to load module "vesa" (module does not exist, 0)
[    18.492] (II) modesetting: Driver for Modesetting Kernel Drivers: kms

The external monitor doesn't re-appear after I unplug/re-plug it. It only appear after I reboot my laptop.

Offline

#4 2022-03-27 14:26:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: Unable to wake external monitor with xrandr

Does it show up when you reload the "evdi" kernel module?
You could try the xf86-video-intel driver (though I don't expect it to be an improvement)

Do you have the configlet that assigns the modesetting driver to the evdi module?
https://wiki.archlinux.org/title/Displa … xx_Devices

Maybe post the entire xorg log (particularily after you lost the display) - oh, and you did make sure that windows fast start is (still) disabled?

Online

#5 2022-03-29 12:16:24

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Unable to wake external monitor with xrandr

@seth

I can't find any kernel module "evdi" from lsmod.

From the wiki page you referenced, it's for DisplayLink devices. My external monitor is LG 27UL850, is it a DisplayLink device?

I've uploaded my xorg log here: https://pastebin.com/raw/ggc7fHez,

I experimented a bit more, I can turn up the external monitor with xrandr --output DP-1 --auto after unplug/re-plug it.

Last edited by smartding (2022-03-29 12:31:22)

Offline

#6 2022-03-29 14:23:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: Unable to wake external monitor with xrandr

is it a DisplayLink device?

I was under the impression because of

The monitor is connected to the laptop via a usb-c to usb-c cable.

[    18.308] (II) modeset(0): EDID for output eDP-1
[    18.308] (II) modeset(0): Manufacturer: CSO  Model: 1309  Serial#: 0
…
[    18.330] (II) modeset(0): EDID for output DP-1
[    18.330] (II) modeset(0): Manufacturer: GSM  Model: 7707  Serial#: 262583

The board maps it it to DP.

seth wrote:

make sure that windows fast start is (still) disabled

-----turn off DP1
[    97.563] (II) modeset(0): Allocate new frame buffer[   137.596] (II) modeset(0): Allocate new frame buffer 3840x2160 stride
-----try wake up, but nothing happended
[   169.148] (II) modeset(0): Allocate new frame buffer 3000x2000 stride
[   169.240] (II) modeset(0): EDID vendor "CSO", prod id 4873
[   169.240] (II) modeset(0): Printing DDC gathered Modelines:
[   169.240] (II) modeset(0): Modeline "3000x2000"x0.0  390.01  3000 3048 3080 3160  2000 2003[   258.323] (II) modeset(0): Allocate new frame buffer 3840x2160 stride
-----unplug/replug DP-1, wake up DP-1 successfully
[   298.935] (EE) event18 - IQUNIX IQUNIX LIME80 Mechanical Keyboard: client bug: event processing lagging behind by 28ms, your system is too slow

It's normal that a new output doesn't become auto-enabled, you could use https://aur.archlinux.org/packages/x-on-resize for that.
Instead of physically reconnecting the display, you could perhaps write the device ("n-m") into /sys/bus/usb/drivers/usb/unbind & /sys/bus/usb/drivers/usb/bind (iff it shows up in lsusb), but first

seth wrote:

make sure that windows fast start is (still) disabled

Online

#7 2022-03-29 15:29:12

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Unable to wake external monitor with xrandr

@seth

windows fast startup is definitely off.

How do I determine the "n-m"?

dmesg says [  681.686937] usb 3-3.4: Manufacturer: LG Electronics Inc., but the external monitor is still on after running echo 3-3.4 | sudo tee /sys/bus/usb/drivers/usb/unbind

Offline

#8 2022-03-29 15:30:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: Unable to wake external monitor with xrandr

Try just "3-3" but you'll also have to echo it into /sys/bus/usb/drivers/usb/bind afterwards ("plug it")

Online

#9 2022-03-30 05:45:00

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Unable to wake external monitor with xrandr

@seth

Physically unplug/re-plug the external monitor, or writing to /sys/bus/usb/drivers/usb/unbind & /sys/bus/usb/drivers/usb/bind is kind of the last resort.

Any idea why I can't wake up the external monitor with xrandr --output DP-1 --auto in the first place? I always can wake up the external monitor if I cold boot or reboot the laptop.

Offline

#10 2022-03-30 06:01:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: Unable to wake external monitor with xrandr

Because the connection (very likely) breaks on the USB - if the communication is inhibited there, xrandr can't do anything.
I'd check dmesg/the sysmte journal and compare lsusb from before and after the output is gone.

Online

#11 2022-03-30 07:17:56

zacstewart
Member
Registered: 2021-10-27
Posts: 5
Website

Re: Unable to wake external monitor with xrandr

This sounds like the same issue I'm having. I have to unplug/plug my type-c monitor every time it falls asleep.

Offline

#12 2022-03-30 12:16:54

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Unable to wake external monitor with xrandr

zacstewart wrote:

This sounds like the same issue I'm having. I have to unplug/plug my type-c monitor every time it falls asleep.

Are you using one of those Intel integrated iris Xe graphics card?

My external monitor works fine with my older laptop, which has an older graphics card built into  i7-8565U CPU.

So I suspect the issue is related to kernel drivers for the new Intel graphics card.

Offline

#13 2022-03-30 12:55:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: Unable to wake external monitor with xrandr

My external monitor works fine with my older laptop

Also via usb-c?

seth wrote:

I'd check dmesg/the sysmte journal and compare lsusb from before and after the output is gone.

Online

#14 2022-03-30 13:33:20

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Unable to wake external monitor with xrandr

seth wrote:

My external monitor works fine with my older laptop

Also via usb-c?

seth wrote:

I'd check dmesg/the sysmte journal and compare lsusb from before and after the output is gone.

Yes, my older laptop connects to the external monitor also via usb-c toi usb-c cable.

It's a Dell xps 13, has nothing but usb-c ports.

The dmesg is as follows, the monitor is detected when I try to wake it up, but nothing is displayed

[   15.788996] input: IQUNIX IQUNIX LIME80 Mechanical Keyboard as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.2/3-4.2.1/3-4.2.1:1.0/0003:05AC:024F.0008/input/input25
[   15.840364] apple 0003:05AC:024F.0008: input,hidraw7: USB HID v1.11 Keyboard [IQUNIX IQUNIX LIME80 Mechanical Keyboard] on usb-0000:00:14.0-4.2.1/input0
[   15.841393] apple 0003:05AC:024F.0009: Fn key not found (Apple Wireless Keyboard clone?), disabling Fn key handling
[   15.841415] input: IQUNIX IQUNIX LIME80 Mechanical Keyboard as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.2/3-4.2.1/3-4.2.1:1.1/0003:05AC:024F.0009/input/input26
[   15.893384] apple 0003:05AC:024F.0009: input,hiddev98,hidraw8: USB HID v1.11 Keyboard [IQUNIX IQUNIX LIME80 Mechanical Keyboard] on usb-0000:00:14.0-4.2.1/input1
-------this is a few seconds after I turn off external monitor with xrandr --output DP-1 --off, the monitor goes to sleep------------
[  389.751183] usb 3-3.4: USB disconnect, device number 15
[  405.326562] usb 3-3: USB disconnect, device number 11
-------this is when I try to wake up the monitor with xrandr --output DP-1 --auto----------------------------------
[  407.179158] usb 3-3: new high-speed USB device number 17 using xhci_hcd
[  407.305915] usb 3-3: New USB device found, idVendor=0451, idProduct=8142, bcdDevice= 1.00
[  407.305918] usb 3-3: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[  407.305919] usb 3-3: SerialNumber: 7A01005126CD
[  407.307017] hub 3-3:1.0: USB hub found
[  407.307055] hub 3-3:1.0: 4 ports detected
[  408.640244] usb 3-3.4: new full-speed USB device number 18 using xhci_hcd
[  408.719161] usb 3-3.4: New USB device found, idVendor=043e, idProduct=9a39, bcdDevice= 2.03
[  408.719165] usb 3-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  408.719165] usb 3-3.4: Product: USB Controls
[  408.719166] usb 3-3.4: Manufacturer: LG Electronics Inc.
[  408.719167] usb 3-3.4: SerialNumber: 001NTGY7Q583
[  408.734522] hid-generic 0003:043E:9A39.000A: hiddev97,hidraw6: USB HID v1.11 Device [LG Electronics Inc. USB Controls] on usb-0000:00:14.0-3.4/input0
-------- this is when xrandr fails to wake up the monitor, monitor goes to sleep again ---------------------------
[  429.943284] usb 3-3.4: USB disconnect, device number 18

Offline

#15 2022-03-30 13:43:19

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Unable to wake external monitor with xrandr

And there's from journalctl, it's telling the same story as dmesg

Mar 30 21:36:52 archbook pulseaudio[756]: stat('/etc/pulse/default.pa.d'): No such file or directory
Mar 30 21:36:52 archbook systemd[646]: Started Sound Service.
Mar 30 21:37:10 archbook dbus-daemon[712]: [session uid=1000 pid=712] Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-daemon.service' requested by ':1.10' (uid=1000 pid=985 comm="/opt/google/chrome/chrome --use-gl=desktop --ignor")
Mar 30 21:37:10 archbook systemd[646]: Starting Virtual filesystem service...
Mar 30 21:37:10 archbook dbus-daemon[712]: [session uid=1000 pid=712] Successfully activated service 'org.gtk.vfs.Daemon'
Mar 30 21:37:10 archbook systemd[646]: Started Virtual filesystem service.
-------this is a few seconds after I turn off external monitor with xrandr --output DP-1 --off, the monitor goes to sleep------------
Mar 30 21:39:16 archbook kernel: usb 3-3.4: USB disconnect, device number 12
Mar 30 21:39:36 archbook kernel: usb 3-3: USB disconnect, device number 11
-------this is when I try to wake up the monitor with xrandr --output DP-1 --auto----------------------------------
Mar 30 21:39:37 archbook kernel: usb 3-3: new high-speed USB device number 13 using xhci_hcd
Mar 30 21:39:37 archbook kernel: usb 3-3: New USB device found, idVendor=0451, idProduct=8142, bcdDevice= 1.00
Mar 30 21:39:37 archbook kernel: usb 3-3: New USB device strings: Mfr=0, Product=0, SerialNumber=1
Mar 30 21:39:37 archbook kernel: usb 3-3: SerialNumber: 7A01005126CD
Mar 30 21:39:37 archbook kernel: hub 3-3:1.0: USB hub found
Mar 30 21:39:37 archbook kernel: hub 3-3:1.0: 4 ports detected
Mar 30 21:39:38 archbook kernel: usb 3-3.4: new full-speed USB device number 14 using xhci_hcd
Mar 30 21:39:38 archbook kernel: usb 3-3.4: New USB device found, idVendor=043e, idProduct=9a39, bcdDevice= 2.03
Mar 30 21:39:38 archbook kernel: usb 3-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 30 21:39:38 archbook kernel: usb 3-3.4: Product: USB Controls
Mar 30 21:39:38 archbook kernel: usb 3-3.4: Manufacturer: LG Electronics Inc.
Mar 30 21:39:38 archbook kernel: usb 3-3.4: SerialNumber: 001NTGY7Q583
Mar 30 21:39:38 archbook kernel: hid-generic 0003:043E:9A39.000A: hiddev98,hidraw8: USB HID v1.11 Device [LG Electronics Inc. USB Controls] on usb-0000:00:14.0-3.4/input0
Mar 30 21:39:38 archbook kernel: cdc_acm 3-3.4:1.1: ttyACM0: USB ACM device
-------- this is when xrandr fails to wake up the monitor, monitor goes to sleep again ---------------------------
Mar 30 21:39:59 archbook kernel: usb 3-3.4: USB disconnect, device number 14

Offline

#16 2022-03-30 13:59:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: Unable to wake external monitor with xrandr

Mar 30 21:39:38 archbook kernel: cdc_acm 3-3.4:1.1: ttyACM0: USB ACM device

That's not in the dmesg - when yo boot and the monnitor gets initially detected, is there an ACM device as well?

Edit: https://archlinux.org/packages/communit … odeswitch/ might come in handy …

Last edited by seth (2022-03-30 14:00:52)

Online

#17 2022-03-30 14:28:09

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Unable to wake external monitor with xrandr

Sorry, that was the wrong dmesg, I dual boot arch with gentoo, and they have the same issue.

The following is the dmesg from archlinux, it does have the cdc_acm device:

[   16.636240] r8152 2-3.3:1.0 eth0: carrier on
[   18.788719] audit: type=1100 audit(1648649885.570:55): pid=493 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:authentication grantors=pam_securetty,pam_shells,pam_faillock,pam_permit,pam_faillock acct="smart" exe="/usr/bin/login" hostname=archbook addr=? terminal=/dev/tty1 res=success'
[   18.796066] audit: type=1101 audit(1648649885.580:56): pid=493 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:accounting grantors=pam_access,pam_unix,pam_permit,pam_time acct="smart" exe="/usr/bin/login" hostname=archbook addr=? terminal=/dev/tty1 res=success'
[   18.797904] audit: type=1103 audit(1648649885.580:57): pid=493 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=pam_securetty,pam_shells,pam_faillock,pam_permit,pam_faillock acct="smart" exe="/usr/bin/login" hostname=archbook addr=? terminal=/dev/tty1 res=success'
[   18.797914] audit: type=1006 audit(1648649885.580:58): pid=493 uid=0 old-auid=4294967295 auid=1000 tty=tty1 old-ses=4294967295 ses=1 res=1
[   18.797930] audit: type=1300 audit(1648649885.580:58): arch=c000003e syscall=1 success=yes exit=4 a0=5 a1=7ffc1d18d280 a2=4 a3=0 items=0 ppid=1 pid=493 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=1000 fsgid=0 tty=tty1 ses=1 comm="login" exe="/usr/bin/login" key=(null)
[   18.797934] audit: type=1327 audit(1648649885.580:58): proctitle=2F62696E2F6C6F67696E002D70002D2D
[   18.815514] audit: type=1130 audit(1648649885.596:59): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@1000 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   18.822911] audit: type=1101 audit(1648649885.606:60): pid=594 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:accounting grantors=pam_access,pam_unix,pam_permit,pam_time acct="smart" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   18.822922] audit: type=1103 audit(1648649885.606:61): pid=594 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=? acct="smart" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[   18.823020] audit: type=1006 audit(1648649885.606:62): pid=594 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=2 res=1
[   18.887049] systemd-journald[261]: File /var/log/journal/cdc482cff6a940c599092dfa5fcae30a/user-1000.journal corrupted or uncleanly shut down, renaming and replacing.
-------this is a few seconds after I turn off external monitor with xrandr --output DP-1 --off, the monitor goes to sleep------------
[   44.892589] usb 3-3.4: USB disconnect, device number 15
[   52.826486] usb 3-3: USB disconnect, device number 13
-------this is when I try to wake up the monitor with xrandr --output DP-1 --auto----------------------------------
[   54.735893] usb 3-3: new high-speed USB device number 17 using xhci_hcd
[   54.876350] usb 3-3: New USB device found, idVendor=0451, idProduct=8142, bcdDevice= 1.00
[   54.876360] usb 3-3: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[   54.876363] usb 3-3: SerialNumber: 7A01005126CD
[   54.877749] hub 3-3:1.0: USB hub found
[   54.877815] hub 3-3:1.0: 4 ports detected
[   56.165866] usb 3-3.4: new full-speed USB device number 18 using xhci_hcd
[   56.258782] usb 3-3.4: New USB device found, idVendor=043e, idProduct=9a39, bcdDevice= 2.03
[   56.258791] usb 3-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   56.258794] usb 3-3.4: Product: USB Controls
[   56.258797] usb 3-3.4: Manufacturer: LG Electronics Inc.
[   56.258799] usb 3-3.4: SerialNumber: 001NTGY7Q583
[   56.275020] hid-generic 0003:043E:9A39.000A: hiddev97,hidraw6: USB HID v1.11 Device [LG Electronics Inc. USB Controls] on usb-0000:00:14.0-3.4/input0
------------cdc_acm device is here---------------------------------------
[   56.275742] cdc_acm 3-3.4:1.1: ttyACM0: USB ACM device
[   75.311955] kauditd_printk_skb: 8 callbacks suppressed
[   75.311957] audit: type=1100 audit(1648649942.093:69): pid=1124 uid=1000 auid=1000 ses=1 msg='op=PAM:authentication grantors=pam_faillock,pam_permit,pam_faillock acct="smart" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[   75.311959] audit: type=1101 audit(1648649942.093:70): pid=1124 uid=1000 auid=1000 ses=1 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="smart" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[   75.312293] audit: type=1110 audit(1648649942.093:71): pid=1124 uid=1000 auid=1000 ses=1 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[   75.313497] audit: type=1105 audit(1648649942.096:72): pid=1124 uid=1000 auid=1000 ses=1 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[   75.332203] audit: type=1106 audit(1648649942.113:73): pid=1124 uid=1000 auid=1000 ses=1 msg='op=PAM:session_close grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[   75.332229] audit: type=1104 audit(1648649942.113:74): pid=1124 uid=1000 auid=1000 ses=1 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
-------- this is when xrandr fails to wake up the monitor, monitor goes to sleep again ---------------------------
[   77.404166] usb 3-3.4: USB disconnect, device number 18
[   97.526109] audit: type=1101 audit(1648649964.310:75): pid=1218 uid=1000 auid=1000 ses=1 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="smart" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[   97.526418] audit: type=1110 audit(1648649964.310:76): pid=1218 uid=1000 auid=1000 ses=1 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[   97.528192] audit: type=1105 audit(1648649964.310:77): pid=1218 uid=1000 auid=1000 ses=1 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[   97.539149] audit: type=1106 audit(1648649964.323:78): pid=1218 uid=1000 auid=1000 ses=1 msg='op=PAM:session_close grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[   97.539164] audit: type=1104 audit(1648649964.323:79): pid=1218 uid=1000 auid=1000 ses=1 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  147.851376] audit: type=1101 audit(1648650014.633:80): pid=1444 uid=1000 auid=1000 ses=1 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="smart" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  147.851769] audit: type=1110 audit(1648650014.633:81): pid=1444 uid=1000 auid=1000 ses=1 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  147.853247] audit: type=1105 audit(1648650014.636:82): pid=1444 uid=1000 auid=1000 ses=1 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'

Offline

#18 2022-03-30 14:34:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: Unable to wake external monitor with xrandr

The interesting part is whether the monitor also shows up as an ACM when you boot w/ it or re-plug it.

Online

#19 2022-03-30 14:46:12

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Unable to wake external monitor with xrandr

@seth

Here's the dmesg when I boot the laptop in archlinux, there's a message about cdc_acm device around the time the monitor was detected:

[    3.788591] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget hifi3 overwritten
[    3.788593] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget hifi2 overwritten
[    3.788596] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget hifi1 overwritten
[    3.788598] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: source widget Codec Output Pin1 overwritten
[    3.788600] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget Codec Input Pin1 overwritten
[    3.788604] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget Analog Codec Playback overwritten
[    3.788607] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget Digital Codec Playback overwritten
[    3.788610] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget Alt Analog Codec Playback overwritten
[    3.788614] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: source widget Analog Codec Capture overwritten
[    3.788617] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: source widget Digital Codec Capture overwritten
[    3.788620] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: source widget Alt Analog Codec Capture overwritten
[    3.788626] skl_hda_dsp_generic skl_hda_dsp_generic: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 3
[    3.788627] skl_hda_dsp_generic skl_hda_dsp_generic: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 4
[    3.788628] skl_hda_dsp_generic skl_hda_dsp_generic: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 5
[    3.788629] skl_hda_dsp_generic skl_hda_dsp_generic: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 6
[    3.788630] skl_hda_dsp_generic skl_hda_dsp_generic: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 7
[    3.788631] skl_hda_dsp_generic skl_hda_dsp_generic: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 8
[    3.795840] usb 3-4.2.1: device descriptor read/64, error -32
[    3.800019] snd_hda_codec_hdmi ehdaudio0D2: Monitor plugged-in, Failed to power up codec ret=[-13]
[    3.819748] input: sof-hda-dsp Mic as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input20
[    3.819770] input: sof-hda-dsp Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input21
[    3.819792] input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input22
[    3.819812] input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input23
[    3.819827] input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input24
[    3.902751] usb 3-4.2-port1: attempt power cycle
[    4.542548] usb 3-4.2.1: new full-speed USB device number 11 using xhci_hcd
[    4.542911] usb 3-4.2.1: Device not responding to setup address.
[    4.749164] usb 3-4.2.1: Device not responding to setup address.
[    4.955721] usb 3-4.2.1: device not accepting address 11, error -71
[    5.052548] usb 3-4.2.1: new full-speed USB device number 12 using xhci_hcd
[    5.052886] usb 3-4.2.1: Device not responding to setup address.
[    5.259498] usb 3-4.2.1: Device not responding to setup address.
[    5.465881] usb 3-4.2.1: device not accepting address 12, error -71
[    5.466470] usb 3-4.2-port1: unable to enumerate USB device
[    5.589211] usb 3-3: new high-speed USB device number 13 using xhci_hcd
[    5.729686] usb 3-3: New USB device found, idVendor=0451, idProduct=8142, bcdDevice= 1.00
[    5.729695] usb 3-3: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[    5.729699] usb 3-3: SerialNumber: 7A01005126CD
[    5.730991] hub 3-3:1.0: USB hub found
[    5.731046] hub 3-3:1.0: 4 ports detected
[    5.825879] usb 3-4.2.3: new full-speed USB device number 14 using xhci_hcd
[    5.942799] usb 3-4.2.3: New USB device found, idVendor=1d5c, idProduct=7102, bcdDevice= 1.00
[    5.942808] usb 3-4.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    5.942811] usb 3-4.2.3: Product: Generic Billboard Device
[    5.942814] usb 3-4.2.3: Manufacturer: Fresco Logic, Inc
-------------------external monitor detect here----------------------------------
[    7.392555] usb 3-3.4: new full-speed USB device number 15 using xhci_hcd
[    7.485071] usb 3-3.4: New USB device found, idVendor=043e, idProduct=9a39, bcdDevice= 2.03
[    7.485081] usb 3-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.485084] usb 3-3.4: Product: USB Controls
[    7.485087] usb 3-3.4: Manufacturer: LG Electronics Inc.
[    7.485089] usb 3-3.4: SerialNumber: 001NTGY7Q583
[    7.500496] hid-generic 0003:043E:9A39.0007: hiddev97,hidraw6: USB HID v1.11 Device [LG Electronics Inc. USB Controls] on usb-0000:00:14.0-3.4/input0
----------------cdc_acm device here--------------------------------------
[    7.508723] cdc_acm 3-3.4:1.1: ttyACM0: USB ACM device
[    7.508732] usbcore: registered new interface driver cdc_acm
[    7.508733] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    7.704057] kauditd_printk_skb: 43 callbacks suppressed
[    7.704062] audit: type=1131 audit(1648649874.486:54): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

Offline

#20 2022-03-30 15:07:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: Unable to wake external monitor with xrandr

[    5.942811] usb 3-4.2.3: Product: Generic Billboard Device
[    5.942814] usb 3-4.2.3: Manufacturer: Fresco Logic, Inc
-------------------external monitor detect here----------------------------------

Actually in the two lines above, Fresco Logic is the "not display link" vendor.
Does it re-show when you re-plug the output? (Maybe just post an entire system journal after losing, failing and re-gaining the output w/ the physical cycle)

You also haven't mentioned whether rebinding usb 3-3 gets the job done w/o any cable pluggery.

Online

#21 2022-04-01 13:04:34

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Unable to wake external monitor with xrandr

@seth

I've pasted the whole dmesg: https://pastebin.com/raw/jSeyDGBG

It includes the whole process: boot---> turn off external monitor with xrandr ---> try to wake up with xrandr, but fails ---> physically unplug/re-plug external monitor ---> successfully wake up with xrandr

Offline

#22 2022-04-01 13:15:15

smartding
Member
Registered: 2021-02-21
Posts: 35

Re: Unable to wake external monitor with xrandr

@seth

Also, I tried echo 3-3 | sudo tee /sys/bus/usb/drivers/usb/unbind and bind, nothing happened.

Offline

Board footer

Powered by FluxBB