Redrix shutting down from sleep on RW_LEGACY

This happened twice now. I am running NixOS on RW_LEGACY and had an uptime of around 1 week. On Monday morning when I opened Redrix it had the developer mode screen and I had to boot into NixOS again. Last Monday the same thing happened. The logs don’t have anything after PM: suspend entry (s2idle) from yesterday when closed the lid.

I will try updating RWL firmware and see if that fixes things. Otherwise I’m also thinking of just switching to full rom.

Has anyone seen this problem before? Are there known solutions? Are there some more logs I should look at?

These are the logs from last boot:

Apr 21 22:18:34 kernel: PM: suspend entry (s2idle)
Apr 21 22:18:34 systemd-sleep: Performing sleep operation 'suspend'...
Apr 21 22:18:34 systemd: Starting System Suspend...
Apr 21 22:18:33 wpa_supplicant: nl80211: deinit ifname=wlp0s20f3 disabled_11b_rates=0
Apr 21 22:18:33 systemd: Reached target User and Group Name Lookups.
Apr 21 22:18:33 nsncd: Apr 22 05:18:33.777 INFO started, config: Config { ignored_request_types: {}, worker_count: 8, handoff_timeout: 3s }, path: "/var/run/nscd/socket"
Apr 21 22:18:33 systemd: Starting Name Service Cache Daemon (nsncd)...
Apr 21 22:18:33 avahi-daemon: Interface wlp0s20f3.IPv4 no longer relevant for mDNS.
Apr 21 22:18:33 systemd: nscd.service: Deactivated successfully.
Apr 21 22:18:33 conmon: level=debug msg="Handling file system event: operation WRITE on /run/host/etc/resolv.conf"

Apr 21 22:18:33 dnsmasq: no servers found in /etc/resolv.conf, will retry
Apr 21 22:18:33 avahi-daemon: New relevant interface wlp0s20f3.IPv4 for mDNS.
Apr 21 22:18:33 wpa_supplicant: wlp0s20f3: CTRL-EVENT-DSCP-POLICY clear_all
Apr 21 22:18:33 .Discord-wrappe: DiscordProcessObserver: Skipping '/nix/store/a1s263pmsci9zykm5xcdf7x9rv26w6d5-bash-5.2p26/bin/bash'
Apr 21 22:18:33 kernel: wlp0s20f3: deauthenticating from 2c:4d:54:01:6e:08 by local choice (Reason: 3=DEAUTH_LEAVING)
Apr 21 22:18:33 systemd: Started Network Manager Script Dispatcher Service.
Apr 21 22:18:33 .kded6-wrapped: org.kde.plasma.nm.kded: Unhandled active connection state change:  3
Apr 21 22:18:33 .kwin_wayland-w: kwin_libinput: Libinput: event1  - Lid Switch: client bug: event processing lagging behind by 22ms, your system is too slow
Apr 21 22:18:33 ModemManager: <msg> [sleep-monitor-systemd] system is about to suspend
Apr 21 22:18:33 systemd-logind: The system will suspend now!
Apr 21 22:18:29 wireplumber: <WpAsyncEventHook:0x92b260> failed: <WpSiStandardLink:0xc50920> link failed: some node was destroyed before the link was created
Apr 21 22:18:10 pipewire: mod.client-node: 0x55754dba2b50: unknown peer 0x55754deb3820 fd:109
Apr 21 22:18:08 java: 2024-04-21 22:18:08,884 [362994975]   WARN - #c.i.u.t.AsyncTreeModel - ignore duplicated child at 501: which 4.4.2
Apr 21 22:16:00 .kwin_wayland-w: kwin_core: Could not find window with uuid "{7b5233da-733f-4782-8c7a-723f7077b8fb}"
Apr 21 22:15:32 rtkit-daemon: Successfully made thread 751275 of process 749492 owned by '1000' RT at priority 10.
Apr 21 22:15:13 systemd: app-freetube-a70859807cbe427fa7058208f5d8f057.scope: Consumed 50min 1.728s CPU time.
Apr 21 22:15:13 .kwin_wayland-w: This plugin does not support raise()
Apr 21 22:15:09 pipewire: mod.client-node: 0x55754db8b5c0: unknown peer 0x55754d91e8b0 fd:91
Apr 21 22:15:09 java: 2024-04-21 22:15:09,271 [362815362]   WARN - #c.i.u.t.AsyncTreeModel - ignore duplicated child at 501: which 4.4.2
Apr 21 22:15:08 pipewire: mod.client-node: 0x55754dba2b50: unknown peer 0x55754db765b0 fd:110
Apr 21 22:14:50 java: dbusmenu_menuitem_show_to_user: assertion 'DBUSMENU_IS_MENUITEM(mi)' failed
Apr 21 22:12:55 cupsd: Saving subscriptions.conf...
Apr 21 22:11:07 .kwin_wayland-w: This plugin does not support raise()
Apr 21 22:11:06 java: 2024-04-21 22:11:06,375 [362572466]   WARN - #c.i.u.t.AsyncTreeModel - ignore duplicated child at 501: which 4.4.2
Apr 21 22:09:00 .baloo_file_ext: kf.baloo: "/home/rajas/Documents/async_ui/examples/web-simple-examples/dist/snippets/web-simple-examples-c43ed51617c81020/inline2.js" id seems to have changed. Perhaps baloo was not running, and this file was deleted + re-created
Apr 21 22:08:35 java: 2024-04-21 22:08:35,447 [362421538]   WARN - #c.i.u.t.AsyncTreeModel - ignore duplicated child at 501: which 4.4.2
Apr 21 22:07:34 .kwin_wayland-w: kwin_core: Could not find window with uuid "{333d4e72-b8a1-422c-b114-8765ce87da75}"
Apr 21 22:07:33 java: 2024-04-21 22:07:33,385 [362359476]   WARN - #c.i.u.t.AsyncTreeModel - ignore duplicated child at 501: which 4.4.2
Apr 21 22:07:05 .kwin_wayland-w: kwin_core: Could not find window with uuid "{895b41df-c69b-4fdc-979a-6c754da111ae}"
Apr 21 22:07:02 java: 2024-04-21 22:07:02,659 [362328750]   WARN - #c.i.u.t.AsyncTreeModel - ignore duplicated child at 501: which 4.4.2
Apr 21 22:04:43 pipewire: mod.client-node: 0x55754dba2b50: unknown peer 0x55754d6fe3d0 fd:96
Apr 21 22:03:36 .plasmashell-wr: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
Apr 21 22:03:17 .flameshot-wrap: QPainter::setBrush: Painter not active
Apr 21 22:03:17 .kwin_wayland-w: kwin_core: Could not find window with uuid "{d47c0dc4-89ac-4880-9b0e-15a4808d8029}"
Apr 21 22:03:14 pipewire: mod.client-node: 0x55754de29b90: unknown peer 0x55754d6fe3d0 fd:96
Apr 21 22:02:10 conmon: level=warning msg="Failed to run updatedb(8): updatedb(1) not found"

Apr 21 22:02:08 pipewire: mod.client-node: 0x55754d9e7470: unknown peer 0x55754d6fe3d0 fd:96
Apr 21 22:01:48 java: 2024-04-21 22:01:48,580 [362014671]   WARN - #c.i.u.t.AsyncTreeModel - ignore duplicated child at 501: which 4.4.2
Apr 21 22:01:47 pipewire: mod.client-node: 0x55754dba2b50: unknown peer 0x55754d6fe3d0 fd:96
Apr 21 22:00:09 systemd: logrotate.service: Deactivated successfully.
Apr 21 22:00:06 java: 2024-04-21 22:00:06,517 [361912608]   WARN - #c.i.u.t.AsyncTreeModel - ignore duplicated child at 501: which 4.4.2
Apr 21 21:56:36 .kwin_wayland-w: kwin_core: Could not find window with uuid "{46cb1a15-9a13-40b0-b7f1-8751ca15224b}"
Apr 21 21:54:24 java: 2024-04-21 21:54:24,150 [361570241]   WARN - #c.i.u.t.AsyncTreeModel - ignore duplicated child at 501: which 4.4.2
Apr 21 21:50:39 .kwin_wayland-w: kwin_core: Could not find window with uuid "{debdc9c7-ae00-4095-bb6c-c38c880dc1da}"
Apr 21 21:50:28 java: 2024-04-21 21:50:28,685 [361334776]   WARN - #c.i.u.t.AsyncTreeModel - ignore duplicated child at 501: which 4.4.2
Apr 21 21:47:22 pipewire: mod.client-node: 0x55754e1c04b0: unknown peer 0x55754db88690 fd:117
Apr 21 21:47:13 java: 2024-04-21 21:47:13,287 [361139378]   WARN - #c.i.u.t.AsyncTreeModel - ignore duplicated child at 501: which 4.4.2
Apr 21 21:46:56 pipewire: mod.client-node: 0x55754d995130: unknown peer 0x55754d6fe3d0 fd:96
Apr 21 21:44:25 systemd-timesyn: Contacted time server 135.148.100.14:123 (0.nixos.pool.ntp.org).
Apr 21 21:42:11 systemd: dbus-:[email protected]: Deactivated successfully.
Apr 21 21:42:00 .backlighthelpe: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
Apr 21 21:42:00 systemd: Started dbus-:[email protected].
Apr 21 21:41:14 java: 2024-04-21 21:41:14,118 [360780209]   WARN - #c.i.u.t.AsyncTreeModel - ignore duplicated child at 501: which 4.4.2
Apr 21 21:38:55 pipewire: mod.client-node: 0x55754dba9560: unknown peer 0x55754d6fe3d0 fd:96
Apr 21 21:38:22 .Discord-wrappe: legacyModuleUpdater: update-check-finished
Apr 21 21:36:50 wireplumber: <WpAsyncEventHook:0x92b260> failed: <WpSiStandardLink:0x9aec00> link failed: some node was destroyed before the link was created
Apr 21 21:36:50 pipewire: mod.client-node: 0x55754de22150: unknown peer 0x55754d6fe3d0 fd:96
Apr 21 21:35:15 wpa_supplicant: wlp0s20f3: WPA: Group rekeying completed with 2c:4d:54:01:6e:08 [GTK=CCMP]
Apr 21 21:34:55 rtkit-daemon: Successfully made thread 739470 of process 739258 owned by '1000' RT at priority 10.
Apr 21 21:34:32 pipewire: mod.client-node: 0x55754d702f00: unknown peer 0x55754dba2450 fd:100
Apr 21 21:26:27 .kwin_wayland-w: This plugin does not support raise()
Apr 21 21:21:28 rtkit-daemon: Successfully made thread 734592 of process 732765 owned by '1000' RT at priority 10.
Apr 21 21:20:50 pipewire: mod.client-node: 0x55754d70be80: unknown peer 0x55754dba2450 fd:98
Apr 21 21:20:02 .Discord-wrappe: blackbox: 2024-04-22T04:20:02.880Z 16 window.close win2
Apr 21 21:19:57 .kwin_wayland-w: kwin_core: Cannot grant a token to KWin::ClientConnection(0x398ab40)
Apr 21 21:19:56 .plasmashell-wr: qrc:/plasma/DefaultToolTip.qml:25:5: QML RowLayout: Layout polish loop detected for QQuickRowLayout(0x7fd3cc006ac0, id="mainLayout", parent=0x29d0840, geometry=-24,8 243x57). Aborting after two iterations.
Apr 21 21:19:50 pipewire: mod.client-node: 0x55754e01d9b0: unknown peer 0x55754db88690 fd:96
Apr 21 21:18:52 systemd: dbus-:[email protected]: Deactivated successfully.
Apr 21 21:18:40 .backlighthelpe: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
Apr 21 21:18:40 systemd: Started dbus-:[email protected].
Apr 21 21:17:57 .backlighthelpe: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.

This is the output of ectool console:

5 C1: LowPowerMode]
[575279.174331 C1: TCPC Enter Low Power Mode]
[575279.182804 C0: LowPowerMode]
[575279.193744 C0: TCPC Enter Low Power Mode]
[575458.208315 power state 5 = S0ix, in 0x00ff]
[575458.211865 power state 5 = S0ix, in 0x00fe]
[575637.384242 power state 5 = S0ix, in 0x00ff]
[575637.387797 power state 5 = S0ix, in 0x00fe]
[575759.469797 Battery 55% (Display 54.7 %) / 106h:31 to empty]
[575816.574077 power state 5 = S0ix, in 0x00ff]
[575816.577709 power state 5 = S0ix, in 0x00fe]
[575995.770589 power state 5 = S0ix, in 0x00ff]
[575995.774227 power state 5 = S0ix, in 0x00fe]
[576174.970719 power state 5 = S0ix, in 0x00ff]
[576174.974279 power state 5 = S0ix, in 0x00fe]
[576354.156700 power state 5 = S0ix, in 0x00ff]
[576354.160345 power state 5 = S0ix, in 0x00fe]
[576419.473463 Battery 55% (Display 54.6 %) / 106h:21 to empty]
[576533.352083 power state 5 = S0ix, in 0x00ff]
[576533.355641 power state 5 = S0ix, in 0x00fe]
[576712.540900 power state 5 = S0ix, in 0x00ff]
[576712.544546 power state 5 = S0ix, in 0x00fe]
[576891.744716 power state 5 = S0ix, in 0x00ff]
[576891.748263 power state 5 = S0ix, in 0x00fe]
[577070.944940 power state 5 = S0ix, in 0x00ff]
[577070.948588 power state 5 = S0ix, in 0x00fe]
[577139.488164 Battery 55% (Display 54.5 %) / 109h:58 to empty]
[577250.141568 power state 5 = S0ix, in 0x00ff]
[577250.145132 power state 5 = S0ix, in 0x00fe]
[577429.343219 power state 5 = S0ix, in 0x00ff]
[577429.346843 power state 5 = S0ix, in 0x00fe]
[577608.544612 power state 5 = S0ix, in 0x00ff]
[577608.548166 power state 5 = S0ix, in 0x00fe]
[577787.750498 power state 5 = S0ix, in 0x00ff]
[577787.754173 power state 5 = S0ix, in 0x00fe]
[577859.476258 Battery 55% (Display 54.4 %) / 109h:45 to empty]
[577966.957435 power state 5 = S0ix, in 0x00ff]
[577966.960985 power state 5 = S0ix, in 0x00fe]
[578146.158794 power state 5 = S0ix, in 0x00ff]
[578146.162435 power state 5 = S0ix, in 0x00fe]
[578325.360707 power state 5 = S0ix, in 0x00ff]
[578325.364252 power state 5 = S0ix, in 0x00fe]
[578344.502272 KB disable_scanning_mask changed: 0x00000005]
[578504.559683 power state 5 = S0ix, in 0x00ff]
[578504.563314 power state 5 = S0ix, in 0x00fe]
[578519.478334 Battery 55% (Display 54.3 %) / 109h:34 to empty]
[578683.762195 power state 5 = S0ix, in 0x00ff]
[578683.765741 power state 5 = S0ix, in 0x00fe]
[578759.479825 Battery 54% (Display 54.3 %) / 109h:30 to empty]
[578862.965509 power state 5 = S0ix, in 0x00ff]
[578862.969167 power state 5 = S0ix, in 0x00fe]
[579042.164279 power state 5 = S0ix, in 0x00ff]
[579042.167905 power state 5 = S0ix, in 0x00fe]
[579221.363211 power state 5 = S0ix, in 0x00ff]
[579221.366854 power state 5 = S0ix, in 0x00fe]
[579239.483780 Battery 54% (Display 54.2 %) / 109h:24 to empty]
[579303.517746 lid open]
[579303.518627 SW 0x01]
[579303.519193 KB disable_scanning_mask changed: 0x00000004]
[579303.519952 mkbp switches: 1]
[579303.521539 power state 5 = S0ix, in 0x00ff]
RTC: 0x00404423 (4211747.00 s)
[579303.524728 power state 16 = S0ix->S0, in 0x00ff]
RTC: 0x00404423 (4211747.00 s)
[579303.527972 power state 4 = S0, in 0x00ff]
[579303.535167 power state 4 = S0, in 0x00fe]
RTC: 0x00404423 (4211747.00 s)
[579303.538331 power state 17 = S0->S0ix, in 0x00fe]
RTC: 0x00404423 (4211747.00 s)
[579303.541653 power state 5 = S0ix, in 0x00fe]
[579303.547693 power state 5 = S0ix, in 0x00ff]
[579303.551378 power state 5 = S0ix, in 0x00fe]
[579304.262230 KB disable_scanning_mask changed: 0x00000000]
[579304.597386 power state 5 = S0ix, in 0x00ff]
RTC: 0x00404424 (4211748.00 s)
[579304.603101 power state 16 = S0ix->S0, in 0x00ff]
RTC: 0x00404424 (4211748.00 s)
[579304.606321 power state 4 = S0, in 0x00ff]
[579304.634626 KB host not responding]
[579304.656755 KB host not responding]
[579304.669530 KB host not responding]
[579304.676576 HC 0x0067 err 9]
[579304.689455 KB Clear Buffer]
[579305.462716 HC 0x0067 err 9]
[579305.462356 PD:S3->S0]
[579305.464082 Motion pre-resume; loops 13978982; last 2 ms ago; a=0x1f, s=0x11111]
[579305.473179 Lid Accel ODR: 12500 - roundup 1 from config 1 [AP 0]: 0]
[579305.476829 Base Accel ODR: 13000 - roundup 1 from config 1 [AP 0]: 0]
[579305.479781 Base Gyro ODR: 0 - roundup 0 from config 0 [AP 0]: 0]
[579305.482054 Clear Light ODR: 1000 - roundup 0 from config 1 [AP 0]: 0]
[579305.483055 RGB Light ODR: 0 - roundup 0 from config 0 [AP 0]: 0]
[579305.509146 C0: Exit Low Power Mode]
[579305.513149 C1: Exit Low Power Mode]
[579305.521467 C1: TCPC init ready]
[579305.522684 C1: DRPAutoToggle]
[579305.527999 C0: TCPC init ready]
[579305.529643 C0: DRPAutoToggle]
[579305.569744 C1: LowPowerMode]
[579305.576970 C0: LowPowerMode]
[579305.580870 C1: TCPC Enter Low Power Mode]
[579305.588025 C0: TCPC Enter Low Power Mode]
Port 80 writes:
  9a33 9a32 9a14 9c15 9c18 9c19 9c20 9c22 9c25 9c28 9c3f 9c43 9c44 9c4f 9c23 9a50 9a5f 9b40 9b41 9b42
  9b47 9c80 9c81 9c82 9c83 9a61 9a63 9a03 9a04 9a05 9a06 9a07 9a0f 9a65 9a64 9c6a 9c71 9c7f a1 72
  24 25 24 25 55 24 25 55 24 25 55 24 25 55 55 73 74 75 75 75
  75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75
  75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75
  75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 76 77 79 9c
  93 7a fe 7b f8 aa
(S3->S0)
(S3->S0) <--new
[579322.493567 Battery 54% (Display 54.1 %) / 4h:53 to empty]
[579337.508636 Battery 54% (Display 54.0 %) / 3h:13 to empty]
[579355.512099 Battery 54% (Display 53.9 %) / 2h:32 to empty]
[579365.049342 HC 0x0115 err 1]
[579381.030708 Battery 54% (Display 53.8 %) / 3h:35 to empty]
[579403.046550 Battery 54% (Display 53.7 %) / 3h:19 to empty]
[579423.576616 Battery 54% (Display 53.6 %) / 3h:35 to empty]
[579426.822697 HC 0x0115 err 1]
[579452.616182 Battery 54% (Display 53.5 %) / 3h:34 to empty]
[579474.122047 Battery 54% (Display 53.4 %) / 3h:36 to empty]
[579488.684513 HC 0x0115 err 1]
[579498.153149 Battery 54% (Display 53.3 %) / 4h:6 to empty]
[579524.666813 Battery 54% (Display 53.2 %) / 4h:15 to empty]
[579533.684699 Battery 53% (Display 53.2 %) / 3h:59 to empty]
[579550.560415 HC 0x0115 err 1]
[579553.693653 Battery 53% (Display 53.1 %) / 3h:37 to empty]
[579577.221333 Battery 53% (Display 53.0 %) / 3h:50 to empty]
[579600.247086 Battery 53% (Display 52.9 %) / 3h:52 to empty]
[579612.433921 HC 0x0115 err 1]
[579623.765178 Battery 53% (Display 52.8 %) / 3h:50 to empty]
[579649.792314 Battery 53% (Display 52.7 %) / 3h:44 to empty]
[579672.316142 Battery 53% (Display 52.6 %) / 3h:14 to empty]
[579674.334323 HC 0x0115 err 1]
[579695.319270 Battery 53% (Display 52.5 %) / 3h:41 to empty]
[579721.842317 Battery 53% (Display 52.4 %) / 3h:56 to empty]
[579736.273919 HC 0x0115 err 1]
[579747.874535 Battery 53% (Display 52.3 %) / 3h:52 to empty]
[579770.395132 Battery 53% (Display 52.2 %) / 3h:11 to empty]
[579795.424862 Battery 52% (Display 52.1 %) / 4h:4 to empty]
[579798.242875 HC 0x0115 err 1]
[579813.928594 Battery 52% (Display 52.0 %) / 2h:13 to empty]
[579827.938741 Battery 52% (Display 51.9 %) / 2h:30 to empty]
[579836.956755 Battery 52% (Display 51.8 %) / 1h:43 to empty]
[579857.464776 Battery 52% (Display 51.7 %) / 2h:11 to empty]
[579860.232659 HC 0x0115 err 1]
[579884.998749 Battery 52% (Display 51.6 %) / 3h:54 to empty]
[579909.013203 Battery 52% (Display 51.5 %) / 3h:52 to empty]
[579922.304921 HC 0x0115 err 1]
[579937.561207 Battery 52% (Display 51.4 %) / 3h:55 to empty]
[579969.081321 Battery 52% (Display 51.3 %) / 3h:59 to empty]
[579984.346467 HC 0x0115 err 1]
[579986.096210 Battery 52% (Display 51.2 %) / 3h:3 to empty]
[580013.622139 Battery 52% (Display 51.1 %) / 4h:0 to empty]
[580026.633243 Battery 51% (Display 51.1 %) / 3h:11 to empty]
[580033.650284 Battery 51% (Display 51.0 %) / 3h:0 to empty]
[580046.335142 HC 0x0115 err 1]
[580058.163407 Battery 51% (Display 50.9 %) / 3h:14 to empty]
[580078.679478 Battery 51% (Display 50.8 %) / 3h:21 to empty]
[580100.696322 Battery 51% (Display 50.7 %) / 3h:33 to empty]
[580108.345630 HC 0x0115 err 1]
[580126.226439 Battery 51% (Display 50.6 %) / 3h:24 to empty]

Update: This just happened again today. I think this happens when I close the lid while it’s plugged in, unplug it while it’s sleeping, and then open the lid. But it doesn’t happen all the time. There might be a minimum amount of time that it is in sleep mode while unplugged before it shuts down.