Thinkpad T495 does not wake up from sleep

I have Manjaro configured to suspend the session and sleep for a couple of years now, but recently(since few weeks now) it won’t turn on after it goes to sleep, and I don’t think it actually sleeping since its warm and sometimes I can hear the fan is still on.

I assume it has something to do with gpu driver, few weeks ago I messed around with amdgpu driver to make openCL work in photo processing software I use(Darktable), and also at around the same time I did a system upgrade(didn’t do it for few months), so this might be caused by either of these.

❯ inxi -G
Graphics:
  Device-1: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel
  Device-2: Chicony ThinkPad T490 Webcam type: USB driver: uvcvideo
  Display: wayland server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.2
    compositor: kwin_wayland driver: X: loaded: amdgpu unloaded: modesetting
    gpu: amdgpu resolution: 1: 2560x1440 2: 1920x1080
  OpenGL: renderer: AMD Radeon Vega 8 Graphics (raven LLVM 13.0.1 DRM 3.42
  5.15.50-1-MANJARO)
    v: 4.6 Mesa 22.1.2


you are using wayland, does it happen also under xorg?

did you mean X11?

yes, you are using wayland, so if its happening under xorg too

No I haven’t tried it yet, I will try it out for the next few days and see if it makes a difference

I can reproduce the issue with xorg session:

❯  inxi -G 
Graphics:
  Device-1: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel
  Device-2: Chicony ThinkPad T490 Webcam type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2 driver: X:
    loaded: amdgpu unloaded: modesetting gpu: amdgpu resolution:
    1: 2560x1440~60Hz 2: 1920x1080~60Hz
  OpenGL: renderer: AMD Radeon Vega 8 Graphics (raven LLVM 13.0.1 DRM 3.42
  5.15.50-1-MANJARO)
    v: 4.6 Mesa 22.1.2

so reproduce the issue, then force reboot and then provide logs from the failed wake up:
journalctl -b-1 -p5 --no-pager

Jul 10 13:08:10 t495 kdeconnectd[17553]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Jul 10 13:08:11 t495 plasmashell[17536]: file:///usr/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/FullRepresentation.qml:37:23: QML DeviceDelegate: Binding loop detected for property "height"
Jul 10 13:08:11 t495 plasmashell[17536]: file:///usr/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/FullRepresentation.qml:37:23: QML DeviceDelegate: Binding loop detected for property "height"
Jul 10 13:08:11 t495 plasmashell[17536]: file:///usr/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/FullRepresentation.qml:37:23: QML DeviceDelegate: Binding loop detected for property "height"
Jul 10 13:11:59 t495 kscreenlocker_greet[20971]: Qt: Session management error: networkIdsList argument is NULL
Jul 10 13:12:00 t495 kscreenlocker_greet[20971]: qrc:/QtQuick/VirtualKeyboard/content/components/Keyboard.qml:807:9: QML QQuickItem: Binding loop detected for property "width"
Jul 10 13:12:00 t495 kscreenlocker_greet[20971]: qt.virtualkeyboard.hunspell: Hunspell dictionary is missing for "en_GB" . Search paths ("/usr/share/qt/qtvirtualkeyboard/hunspell", "/usr/share/hunspell", "/usr/share/myspell/dicts")
Jul 10 13:12:00 t495 kscreenlocker_greet[20971]: qt.virtualkeyboard.hunspell: Hunspell dictionary is missing for "en_GB" . Search paths ("/usr/share/qt/qtvirtualkeyboard/hunspell", "/usr/share/hunspell", "/usr/share/myspell/dicts")
Jul 10 13:12:00 t495 kscreenlocker_greet[20971]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:42:9: Unable to assign [undefined] to bool
Jul 10 13:12:00 t495 kscreenlocker_greet[20971]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:42:9: Unable to assign [undefined] to bool
Jul 10 13:12:00 t495 kscreenlocker_greet[20971]: qrc:/QtQuick/VirtualKeyboard/content/components/Keyboard.qml:807:9: QML QQuickItem: Binding loop detected for property "width"
Jul 10 13:12:00 t495 kscreenlocker_greet[20971]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:42:9: Unable to assign [undefined] to bool
Jul 10 13:12:00 t495 kscreenlocker_greet[20971]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:42:9: Unable to assign [undefined] to bool
Jul 10 13:20:05 t495 kernel: audit: type=1100 audit(1657455605.283:220): pid=21338 uid=1000 auid=1000 ses=5 subj==unconfined msg='op=PAM:unix_chkpwd acct="user" exe="/usr/bin/unix_chkpwd" hostname=? addr=? terminal=? res=success'
Jul 10 13:20:05 t495 kscreenlocker_greet[20971]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/VirtualKeyboard.qml:15: TypeError: Cannot read property 'width' of null
Jul 10 13:20:05 t495 kscreenlocker_greet[20971]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/VirtualKeyboard.qml:33: TypeError: Cannot read property 'height' of null
Jul 10 13:20:05 t495 kwin_x11[17482]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 30719, resource id: 83886149, major code: 18 (ChangeProperty), minor code: 0
Jul 10 13:21:43 t495 kwin_x11[17482]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 44433, resource id: 83886086, major code: 18 (ChangeProperty), minor code: 0
Jul 10 13:27:23 t495 kwin_x11[17482]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 17923, resource id: 83886087, major code: 18 (ChangeProperty), minor code: 0
Jul 10 13:31:22 t495 kscreenlocker_greet[21554]: Qt: Session management error: networkIdsList argument is NULL
Jul 10 13:31:23 t495 kscreenlocker_greet[21554]: qrc:/QtQuick/VirtualKeyboard/content/components/Keyboard.qml:807:9: QML QQuickItem: Binding loop detected for property "width"
Jul 10 13:31:23 t495 kscreenlocker_greet[21554]: qt.virtualkeyboard.hunspell: Hunspell dictionary is missing for "en_GB" . Search paths ("/usr/share/qt/qtvirtualkeyboard/hunspell", "/usr/share/hunspell", "/usr/share/myspell/dicts")
Jul 10 13:31:23 t495 kscreenlocker_greet[21554]: qt.virtualkeyboard.hunspell: Hunspell dictionary is missing for "en_GB" . Search paths ("/usr/share/qt/qtvirtualkeyboard/hunspell", "/usr/share/hunspell", "/usr/share/myspell/dicts")
Jul 10 13:31:23 t495 kscreenlocker_greet[21554]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:42:9: Unable to assign [undefined] to bool
Jul 10 13:31:23 t495 kscreenlocker_greet[21554]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:42:9: Unable to assign [undefined] to bool
Jul 10 13:31:23 t495 kscreenlocker_greet[21554]: qrc:/QtQuick/VirtualKeyboard/content/components/Keyboard.qml:807:9: QML QQuickItem: Binding loop detected for property "width"
Jul 10 13:31:23 t495 kscreenlocker_greet[21554]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:42:9: Unable to assign [undefined] to bool
Jul 10 13:31:23 t495 kscreenlocker_greet[21554]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:42:9: Unable to assign [undefined] to bool
Jul 10 13:41:22 t495 kded5[17479]: org.kde.plasma.nm.kded: Unhandled active connection state change:  3
Jul 10 13:41:22 t495 kernel: audit: type=1130 audit(1657456882.735:221): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 10 13:41:23 t495 kernel: audit: type=1334 audit(1657456883.018:222): prog-id=0 op=UNLOAD
Jul 10 13:41:23 t495 systemd[1]: [🡕] /usr/lib/systemd/system/doh-client.service:15: Special user nobody configured, this is not safe!
Jul 10 13:41:23 t495 nm-dispatcher[21673]: req:2 'down' [wlp1s0], "/etc/NetworkManager/dispatcher.d/doh-client": complete: failed with Script '/etc/NetworkManager/dispatcher.d/doh-client' exited with status 3.
Jul 10 13:41:23 t495 systemd[1]: [🡕] /usr/lib/systemd/system/doh-server.service:13: Special user nobody configured, this is not safe!
Jul 10 13:41:23 t495 nm-dispatcher[21673]: req:2 'down' [wlp1s0], "/etc/NetworkManager/dispatcher.d/doh-server": complete: failed with Script '/etc/NetworkManager/dispatcher.d/doh-server' exited with status 3.
Jul 10 13:41:23 t495 NetworkManager[785]: <warn>  [1657456883.1318] dispatcher: (29) /etc/NetworkManager/dispatcher.d/doh-client failed (failed): Script '/etc/NetworkManager/dispatcher.d/doh-client' exited with status 3.
Jul 10 13:41:23 t495 NetworkManager[785]: <warn>  [1657456883.1318] dispatcher: (29) /etc/NetworkManager/dispatcher.d/doh-server failed (failed): Script '/etc/NetworkManager/dispatcher.d/doh-server' exited with status 3.

why did you marked it as solution?

are those all logs from the failed wake up?

some of them might be earlier than when I tried to wake it up and not related

so when it does not wake up again, reboot, and provide the logs:
journalctl -b-1 -p4 --no-pager
because in the logs you provided, there is nothing, and they are also incomplete…

❯  journalctl -b-1 -p4 --no-pager         
Jul 10 17:56:48 t495 kscreenlocker_greet[13210]: Qt: Session management error: networkIdsList argument is NULL
Jul 10 17:56:48 t495 kscreenlocker_greet[13210]: qrc:/QtQuick/VirtualKeyboard/content/components/Keyboard.qml:807:9: QML QQuickItem: Binding loop detected for property "width"
Jul 10 17:56:48 t495 kscreenlocker_greet[13210]: qt.virtualkeyboard.hunspell: Hunspell dictionary is missing for "en_GB" . Search paths ("/usr/share/qt/qtvirtualkeyboard/hunspell", "/usr/share/hunspell", "/usr/share/myspell/dicts")
Jul 10 17:56:48 t495 kscreenlocker_greet[13210]: qt.virtualkeyboard.hunspell: Hunspell dictionary is missing for "en_GB" . Search paths ("/usr/share/qt/qtvirtualkeyboard/hunspell", "/usr/share/hunspell", "/usr/share/myspell/dicts")
Jul 10 17:56:48 t495 kscreenlocker_greet[13210]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:42:9: Unable to assign [undefined] to bool
Jul 10 17:56:48 t495 kscreenlocker_greet[13210]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:42:9: Unable to assign [undefined] to bool
Jul 10 17:56:48 t495 kscreenlocker_greet[13210]: qrc:/QtQuick/VirtualKeyboard/content/components/Keyboard.qml:807:9: QML QQuickItem: Binding loop detected for property "width"
Jul 10 17:56:48 t495 kscreenlocker_greet[13210]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:42:9: Unable to assign [undefined] to bool
Jul 10 17:56:48 t495 kscreenlocker_greet[13210]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:42:9: Unable to assign [undefined] to bool
Jul 10 18:06:48 t495 kded5[1580]: org.kde.plasma.nm.kded: Unhandled active connection state change:  3
Jul 10 18:06:48 t495 nm-dispatcher[13326]: req:2 'down' [wlp1s0], "/etc/NetworkManager/dispatcher.d/doh-client": complete: failed with Script '/etc/NetworkManager/dispatcher.d/doh-client' exited with status 3.
Jul 10 18:06:48 t495 nm-dispatcher[13326]: req:2 'down' [wlp1s0], "/etc/NetworkManager/dispatcher.d/doh-server": complete: failed with Script '/etc/NetworkManager/dispatcher.d/doh-server' exited with status 3.
Jul 10 18:06:48 t495 NetworkManager[782]: <warn>  [1657472808.3836] dispatcher: (18) /etc/NetworkManager/dispatcher.d/doh-client failed (failed): Script '/etc/NetworkManager/dispatcher.d/doh-client' exited with status 3.
Jul 10 18:06:48 t495 NetworkManager[782]: <warn>  [1657472808.3837] dispatcher: (18) /etc/NetworkManager/dispatcher.d/doh-server failed (failed): Script '/etc/NetworkManager/dispatcher.d/doh-server' exited with status 3.

I found few arch bugs that look related but I can’t copy the links here, it might be a kernel bug related to bluetooth, or usb-always-on, bug#215768 on bugzilla

might be related: PC Not Waking Up After Waking Up From Sleep - #10 by megavolt , its a similar problem on intel cpu

but you dont have intel cpu… and are those logs all of them? … there is some issue with network - doh
provide logs from the current boot:
journalctl -b0 -p4 --no-pager