You are not logged in.

#1 2022-03-25 06:10:10

zacstewart
Member
Registered: 2021-10-27
Posts: 4

USB type-c monitor fails to wake after suspend

I'm running Arch on my Framework laptop and I have an external MSI Optix MAG274QRF laptop. Whenever the screens go to sleep, the external one fails to wake. It's consistent, and there is a work around but it's fairly troublesome. I have to run

xrandr --output DP3 --off

unplug the monitor, replug it and then begin running

xrandr --output DP3 --mode 2560x1440 --rate 165 --left-of eDP1 --primary

Over and over quickly until it recognizes the monitor. There's only a few-second window before DP3 goes back to "disconnected" despite being plugged in.

It's workable, but it's troublesome. Is there a way I can send a 'wake up' signal to the monitor or rescan USB devices or something such that I don't have to unplug it?

Monitor unpluged (or too slow to set DP3 mode) xrandr output:

$ xrandr -q
Screen 0: minimum 8 x 8, current 2256 x 1504, maximum 32767 x 32767
eDP1 connected 2256x1504+0+0 (normal left inverted right x axis y axis) 280mm x 190mm
   2256x1504     60.00*+
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected primary (normal left inverted right x axis y axis)
DP4 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

xrandr output when the monitor is successfully connected

$ xrandr -q
Screen 0: minimum 8 x 8, current 4816 x 1504, maximum 32767 x 32767
eDP1 connected 2256x1504+2560+0 (normal left inverted right x axis y axis) 280mm x 190mm
   2256x1504     60.00*+
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 600mm x 340mm
   2560x1440     59.94 + 164.83*  120.00  
   3840x2160     60.00    59.94    30.00    29.97  
   1920x1080    164.89   120.00   100.00   119.88    60.00    60.00    50.00    59.94  
   1680x1050     59.95  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x720     120.00   100.00   119.88    60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
DP4 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

dmesg output after coming back from lunch, waking my screens and going through the ritual described above:

# dmesg
[ 7414.162535] usb 3-7: USB disconnect, device number 2
[ 7434.028181] audit: type=1130 audit(1648137599.404:188): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 7434.028788] wlp170s0: deauthenticating from 5c:f4:ab:94:48:1c by local choice (Reason: 3=DEAUTH_LEAVING)
[ 7434.275381] PM: suspend entry (deep)
[ 7434.283661] Filesystems sync: 0.008 seconds
[ 7434.319286] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 7434.321141] OOM killer disabled.
[ 7434.321142] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 7434.322450] printk: Suspending console(s) (use no_console_suspend to debug)
[ 7435.263623] ACPI: EC: interrupt blocked
[ 7435.335745] ACPI: PM: Preparing to enter system sleep state S3
[ 7435.350377] ACPI: EC: event blocked
[ 7435.350379] ACPI: EC: EC stopped
[ 7435.350380] ACPI: PM: Saving platform NVS memory
[ 7435.350517] Disabling non-boot CPUs ...
[ 7435.354056] smpboot: CPU 1 is now offline
[ 7435.357412] smpboot: CPU 2 is now offline
[ 7435.360190] smpboot: CPU 3 is now offline
[ 7435.364795] smpboot: CPU 4 is now offline
[ 7435.368893] smpboot: CPU 5 is now offline
[ 7435.371455] smpboot: CPU 6 is now offline
[ 7435.373299] smpboot: CPU 7 is now offline
[ 7435.380760] ACPI: PM: Low-level resume complete
[ 7435.380969] ACPI: EC: EC started
[ 7435.380969] ACPI: PM: Restoring platform NVS memory
[ 7435.382558] Enabling non-boot CPUs ...
[ 7435.382606] x86: Booting SMP configuration:
[ 7435.382607] smpboot: Booting Node 0 Processor 1 APIC 0x2
[ 7435.383880] CPU1 is up
[ 7435.383905] smpboot: Booting Node 0 Processor 2 APIC 0x4
[ 7435.385133] CPU2 is up
[ 7435.385152] smpboot: Booting Node 0 Processor 3 APIC 0x6
[ 7435.386433] CPU3 is up
[ 7435.386450] smpboot: Booting Node 0 Processor 4 APIC 0x1
[ 7435.387719] CPU4 is up
[ 7435.387742] smpboot: Booting Node 0 Processor 5 APIC 0x3
[ 7435.388800] CPU5 is up
[ 7435.388821] smpboot: Booting Node 0 Processor 6 APIC 0x5
[ 7435.390154] CPU6 is up
[ 7435.390173] smpboot: Booting Node 0 Processor 7 APIC 0x7
[ 7435.391600] CPU7 is up
[ 7435.395202] ACPI: PM: Waking up from system sleep state S3
[ 7435.400274] ACPI: EC: interrupt unblocked
[ 7435.803152] ACPI: EC: event unblocked
[ 7435.815933] nvme nvme0: Shutdown timeout set to 10 seconds
[ 7435.817811] nvme nvme0: 8/0/0 default/read/poll queues
[ 7435.824350] iwlwifi 0000:aa:00.0: WRT: Failed to set DRAM buffer for alloc id 1, ret=-1
[ 7435.824352] iwlwifi 0000:aa:00.0: WRT: Failed to set DRAM buffer for alloc id 2, ret=-1
[ 7435.824353] iwlwifi 0000:aa:00.0: WRT: Failed to set DRAM buffer for alloc id 3, ret=-1
[ 7436.183742] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
[ 7436.184238] OOM killer enabled.
[ 7436.184241] Restarting tasks ...
[ 7436.184468] mei_pxp 0000:00:16.0-fbf6fcf1-96cf-4e2e-a6a6-1bab8cbe36b1: bound 0000:00:02.0 (ops i915_pxp_tee_component_ops [i915])
[ 7436.192306] done.
[ 7436.197048] PM: suspend exit
[ 7436.208972] audit: type=1130 audit(1648177315.555:189): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 7436.208978] audit: type=1131 audit(1648177315.555:190): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 7436.219162] audit: type=1130 audit(1648177315.565:191): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=shadow comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 7436.240999] audit: type=1131 audit(1648177315.588:192): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=shadow comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[ 7436.307113] usb 2-4: new SuperSpeed USB device number 2 using xhci_hcd
[ 7436.325948] usb 2-4: New USB device found, idVendor=2109, idProduct=0817, bcdDevice= 4.53
[ 7436.325953] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7436.325955] usb 2-4: Product: USB3.0 Hub
[ 7436.325956] usb 2-4: Manufacturer: VIA Labs, Inc.
[ 7436.327756] hub 2-4:1.0: USB hub found
[ 7436.327984] hub 2-4:1.0: 4 ports detected
[ 7436.353458] ish-hid {33AECD58-B679-4E54-9BD9-A04D34F0C226}: [hid-ish]: enum_devices_done OK, num_hid_devices=1
[ 7436.396926] usb 3-6: new high-speed USB device number 6 using xhci_hcd
[ 7436.605714] usb 3-6: New USB device found, idVendor=2109, idProduct=2817, bcdDevice= 4.53
[ 7436.605721] usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7436.605722] usb 3-6: Product: USB2.0 Hub
[ 7436.605723] usb 3-6: Manufacturer: VIA Labs, Inc.
[ 7436.606639] hub 3-6:1.0: USB hub found
[ 7436.606885] hub 3-6:1.0: 5 ports detected
[ 7436.730533] usb 3-9: USB disconnect, device number 5
[ 7436.853620] usb 3-9: new full-speed USB device number 7 using xhci_hcd
[ 7436.913703] usb 2-4.2: new SuperSpeed USB device number 3 using xhci_hcd
[ 7436.940595] usb 2-4.2: New USB device found, idVendor=0bda, idProduct=0411, bcdDevice= 1.04
[ 7436.940598] usb 2-4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7436.940599] usb 2-4.2: Product: 4-Port USB 3.0 Hub
[ 7436.940600] usb 2-4.2: Manufacturer: Generic
[ 7436.945211] hub 2-4.2:1.0: USB hub found
[ 7436.946081] hub 2-4.2:1.0: 4 ports detected
[ 7436.994798] usb 3-9: New USB device found, idVendor=27c6, idProduct=609c, bcdDevice= 1.00
[ 7436.994801] usb 3-9: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7436.994802] usb 3-9: Product: Goodix USB2.0 MISC
[ 7436.994803] usb 3-9: Manufacturer: Goodix Technology Co., Ltd.
[ 7436.994803] usb 3-9: SerialNumber: UID8225B511_XXXX_MOC_B0
[ 7437.020917] usb 2-4.4: new SuperSpeed USB device number 4 using xhci_hcd
[ 7437.046225] usb 2-4.4: New USB device found, idVendor=05e3, idProduct=0749, bcdDevice=15.39
[ 7437.046243] usb 2-4.4: New USB device strings: Mfr=3, Product=4, SerialNumber=2
[ 7437.046246] usb 2-4.4: Product: USB3.0 Card Reader
[ 7437.046249] usb 2-4.4: Manufacturer: Generic
[ 7437.046251] usb 2-4.4: SerialNumber: 000000001539
[ 7437.080350] usb-storage 2-4.4:1.0: USB Mass Storage device detected
[ 7437.080563] scsi host0: usb-storage 2-4.4:1.0
[ 7437.080648] usbcore: registered new interface driver usb-storage
[ 7437.085259] usbcore: registered new interface driver uas
[ 7437.330380] usb 3-6.1: new high-speed USB device number 8 using xhci_hcd
[ 7437.492030] usb 3-6.1: New USB device found, idVendor=2109, idProduct=0102, bcdDevice=13.24
[ 7437.492040] usb 3-6.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7437.492043] usb 3-6.1: Product: USB 2.0 BILLBOARD
[ 7437.492046] usb 3-6.1: Manufacturer: VIA Technologies Inc.
[ 7437.492048] usb 3-6.1: SerialNumber: 0000000000000001
[ 7437.623565] usb 3-6.2: new high-speed USB device number 9 using xhci_hcd
[ 7437.775394] usb 3-6.2: New USB device found, idVendor=0bda, idProduct=5411, bcdDevice= 1.04
[ 7437.775405] usb 3-6.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7437.775408] usb 3-6.2: Product: 4-Port USB 2.0 Hub
[ 7437.775411] usb 3-6.2: Manufacturer: Generic
[ 7437.776740] hub 3-6.2:1.0: USB hub found
[ 7437.778127] hub 3-6.2:1.0: 4 ports detected
[ 7437.803768] usb 2-4.2.1: new SuperSpeed USB device number 5 using xhci_hcd
[ 7437.821078] usb 2-4.2.1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=31.00
[ 7437.821088] usb 2-4.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[ 7437.821091] usb 2-4.2.1: Product: USB 10/100/1000 LAN
[ 7437.821094] usb 2-4.2.1: Manufacturer: Realtek
[ 7437.821096] usb 2-4.2.1: SerialNumber: 001000001
[ 7437.853587] usb 3-6.5: new high-speed USB device number 10 using xhci_hcd
[ 7437.858844] usbcore: registered new interface driver r8152
[ 7437.864741] usbcore: registered new interface driver cdc_ether
[ 7437.866996] usbcore: registered new interface driver r8153_ecm
[ 7437.934186] usb 2-4.2.1: reset SuperSpeed USB device number 5 using xhci_hcd
[ 7437.949364] usb 3-6.5: New USB device found, idVendor=2109, idProduct=8817, bcdDevice= 0.01
[ 7437.949374] usb 3-6.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7437.949377] usb 3-6.5: Product: USB Billboard Device
[ 7437.949380] usb 3-6.5: Manufacturer: VIA Labs, Inc.
[ 7437.949382] usb 3-6.5: SerialNumber: 0000000000000001
[ 7437.971801] r8152 2-4.2.1:1.0: load rtl8153b-2 v1 10/23/19 successfully
[ 7438.007759] r8152 2-4.2.1:1.0 eth0: v1.12.12
[ 7438.063710] usb 3-6.2.2: new full-speed USB device number 11 using xhci_hcd
[ 7438.086858] scsi 0:0:0:0: Direct-Access     Generic  MassStorageClass 1539 PQ: 0 ANSI: 6
[ 7438.087756] scsi 0:0:0:1: Direct-Access     Generic  MassStorageClass 1539 PQ: 0 ANSI: 6
[ 7438.156889] usb 3-6.2.2: New USB device found, idVendor=046d, idProduct=c332, bcdDevice= 3.00
[ 7438.156897] usb 3-6.2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7438.156900] usb 3-6.2.2: Product: Gaming Mouse G502
[ 7438.156902] usb 3-6.2.2: Manufacturer: Logitech
[ 7438.156904] usb 3-6.2.2: SerialNumber: 0280365E3336
[ 7438.236907] usb 3-6.2.4: new full-speed USB device number 12 using xhci_hcd
[ 7438.291529] sd 0:0:0:0: [sda] Media removed, stopped polling
[ 7438.331814] usb 3-6.2.4: New USB device found, idVendor=04d9, idProduct=0295, bcdDevice= 1.07
[ 7438.331821] usb 3-6.2.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 7438.331823] usb 3-6.2.4: Product: USB-HID Keyboard
[ 7438.357731] r8152 2-4.2.1:1.0 enp0s13f0u4u2u1: renamed from eth0
[ 7438.359576] input: Logitech Gaming Mouse G502 as /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.2/3-6.2.2/3-6.2.2:1.0/0003:046D:C332.0004/input/input25
[ 7438.359671] hid-generic 0003:046D:C332.0004: input,hidraw2: USB HID v1.11 Mouse [Logitech Gaming Mouse G502] on usb-0000:00:14.0-6.2.2/input0
[ 7438.360909] input: Logitech Gaming Mouse G502 Keyboard as /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.2/3-6.2.2/3-6.2.2:1.1/0003:046D:C332.0005/input/input26
[ 7438.417492] hid-generic 0003:046D:C332.0005: input,hiddev96,hidraw3: USB HID v1.11 Keyboard [Logitech Gaming Mouse G502] on usb-0000:00:14.0-6.2.2/input1
[ 7438.418771] input: USB-HID Keyboard as /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.2/3-6.2.4/3-6.2.4:1.0/0003:04D9:0295.0006/input/input29
[ 7438.474339] hid-generic 0003:04D9:0295.0006: input,hidraw4: USB HID v1.11 Keyboard [USB-HID Keyboard] on usb-0000:00:14.0-6.2.4/input0
[ 7438.475794] hid-generic 0003:04D9:0295.0007: hiddev97,hidraw5: USB HID v1.11 Device [USB-HID Keyboard] on usb-0000:00:14.0-6.2.4/input1
[ 7438.477416] input: USB-HID Keyboard System Control as /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.2/3-6.2.4/3-6.2.4:1.2/0003:04D9:0295.0008/input/input30
[ 7438.495067] sd 0:0:0:1: [sdb] Media removed, stopped polling
[ 7438.497416] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 7438.499403] sd 0:0:0:1: [sdb] Attached SCSI removable disk
[ 7438.533901] input: USB-HID Keyboard Consumer Control as /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.2/3-6.2.4/3-6.2.4:1.2/0003:04D9:0295.0008/input/input31
[ 7438.534057] input: USB-HID Keyboard Mouse as /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.2/3-6.2.4/3-6.2.4:1.2/0003:04D9:0295.0008/input/input32
[ 7438.534219] input: USB-HID Keyboard as /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.2/3-6.2.4/3-6.2.4:1.2/0003:04D9:0295.0008/input/input33
[ 7438.534344] hid-generic 0003:04D9:0295.0008: input,hidraw6: USB HID v1.11 Mouse [USB-HID Keyboard] on usb-0000:00:14.0-6.2.4/input2
[ 7438.534419] usbcore: registered new interface driver usbhid
[ 7438.534423] usbhid: USB HID core driver
[ 7442.370739] wlp170s0: authenticate with d8:38:fc:ff:e5:dc
[ 7442.382614] wlp170s0: send auth to d8:38:fc:ff:e5:dc (try 1/3)
[ 7442.415390] wlp170s0: authenticated
[ 7442.420234] wlp170s0: associate with d8:38:fc:ff:e5:dc (try 1/3)
[ 7442.424200] wlp170s0: RX AssocResp from d8:38:fc:ff:e5:dc (capab=0x11 status=0 aid=4)
[ 7442.437769] wlp170s0: associated
[ 7442.501257] wlp170s0: Limiting TX power to 36 (36 - 0) dBm as advertised by d8:38:fc:ff:e5:dc
[ 7442.501341] IPv6: ADDRCONF(NETDEV_CHANGE): wlp170s0: link becomes ready
[ 7443.448351] audit: type=1100 audit(1648177322.795:193): pid=8666 uid=1000 auid=1000 ses=1 msg='op=PAM:unix_chkpwd acct="zac" exe="/usr/bin/unix_chkpwd" hostname=? addr=? terminal=? res=success'
[ 7453.672161] audit: type=1131 audit(1648177333.018:194): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 7471.675088] i915 0000:00:02.0: [drm] Reducing the compressed framebuffer size. This may lead to less power savings than a non-reduced-size. Try to increase stolen memory size if available in BIOS.
[ 9934.184007] audit: type=1100 audit(1648179812.878:195): pid=11238 uid=1000 auid=1000 ses=1 msg='op=PAM:unix_chkpwd acct="zac" exe="/usr/bin/unix_chkpwd" hostname=? addr=? terminal=? res=success'
[11744.962984] perf: interrupt took too long (2515 > 2500), lowering kernel.perf_event_max_sample_rate to 79500
[16766.045703] audit: type=1100 audit(1648186644.716:196): pid=15960 uid=1000 auid=1000 ses=1 msg='op=PAM:unix_chkpwd acct="zac" exe="/usr/bin/unix_chkpwd" hostname=? addr=? terminal=? res=success'
[16791.403170] audit: type=1334 audit(1648186670.073:197): prog-id=26 op=LOAD
[16791.674432] usb 3-9: reset full-speed USB device number 7 using xhci_hcd
[16791.821005] audit: type=1130 audit(1648186670.493:198): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[16791.967760] usb 3-9: reset full-speed USB device number 7 using xhci_hcd

Offline

Board footer

Powered by FluxBB