NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.6k stars 13.76k forks source link

Battery drains quickly in s2idle sleep mode #299464

Open tobiasBora opened 6 months ago

tobiasBora commented 6 months ago

Describe the bug

Version < 255.6—as far as I understand 254 is not concerned, but I'm not 100% sure: EDIT: after testing version 254.6 from 23.11, it seems that this bug IS present there unlike 255.6 EDIT: seems like the bug is unrelated to systemd, maybe an issue with the kernel?—of systemd is buggy and leads to sleep issues as reported upstream in https://github.com/systemd/systemd/issues/29938 This is solved now in master, but this change should be incorporated in the unstable branch (23.11 seems to use v254, which might not be concerned by this bug, but I'm not 100% sure)

Apparently, I'm not the only one concerned by this bug.

Btw, what it the cleanest way to solve this bug in the meantime? Can I just upgrade systemd with an overlay that changes the rev?

Steps To Reproduce

Steps to reproduce the behavior:

  1. Go to sleep mode (tested after closing the lid of a laptop). Sometimes it works, sometimes it fails and the battery drops.

Notify maintainers

@flokli @Kloenk

Metadata

Running from b8697e57f10292a6165a20f03d2f42920dfaf973


Add a :+1: reaction to issues you find important.

nixos-discourse commented 6 months ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/since-upgrade-my-laptop-does-not-go-to-sleep-when-closing-the-lid/42243/5

Aleksanaa commented 6 months ago

Can confirm the issue also affects my machine.

tobiasBora commented 6 months ago

@Aleksanaa also running unstable and/or systemd version 255?

tobiasBora commented 6 months ago

@flokli @Kloenk btw, is there any reason why the version in systemd is not in the attributes of the derivation? It makes it hard to override it with overrideAttrs to test a different version of systemd. (apparently, 255.4 fixes, at least partially, the bug, see discussion in https://github.com/systemd/systemd/issues/29938)

tobiasBora commented 6 months ago

For reference, I was able to add:

systemd.package = (import inputs.nixpkgs-23-11 {inherit system;}).systemd;

where the flake input is nixpkgs-23-11.url = "nixpkgs/nixos-23.11";. I could successfully reboot, hopefully I will not have weird side effects ^^ Otherwise I can try to recompile it with overrideAttr to change the version.

tobiasBora commented 6 months ago

Ok, seems like the above also has sleep issue, so maybe 23-11 is also affected by the bug. I tried instead:

          systemd.package = pkgs.systemd.overrideAttrs (finalAttrs: previousAttrs: {
              version = "255.4";
              src = pkgs.fetchFromGitHub {
                owner = "systemd";
                repo = "systemd-stable";
                rev = "v255.4";
                hash = "sha256-P1mKq+ythrv8MU7y2CuNtEx6qCDacugzfsPRZL+NPys=";
              };
            });

and so far I was able to go to sleep mode twice without losing any battery… so it might work!

tobiasBora commented 6 months ago

Update: after a try, I still got once more the sleep issue… really weird. So seems like this comment was true https://github.com/systemd/systemd/issues/29938#issuecomment-2024806241… not sure what do try next. Here are the logs if it can help.

Context: here I first closed the lid, and removed the plugged external mouse & monitor quickly after

mars 28 21:53:11 bestos systemd[1]: Starting Pre-Sleep Actions...
mars 28 21:53:11 bestos systemd[1]: pre-sleep.service: Deactivated successfully.
mars 28 21:53:11 bestos systemd[1]: Finished Pre-Sleep Actions.
mars 28 21:53:11 bestos systemd[1]: Reached target Sleep.
mars 28 21:53:11 bestos systemd[1]: Starting System Suspend...
mars 28 21:53:11 bestos systemd-sleep[67843]: Performing sleep operation 'suspend'...
mars 28 21:53:11 bestos kernel: PM: suspend entry (s2idle)
mars 28 21:53:11 bestos kernel: usb 1-4: USB disconnect, device number 10
mars 28 21:53:11 bestos xserver-wrapper[1910]: (II) event22 - HP HP USB 1000dpi Laser Mouse: device removed
mars 28 21:53:11 bestos ksmserver[67739]: qml: The backend got an unknown wallpaper provider type. The wallpaper will now fall back to the default. Please check your wallpaper configuration!
mars 28 21:53:11 bestos systemd-udevd[1132]: /nix/store/219dgx55ap15yh3wx049dybbkf9nyqk6-udev-rules/99-local.rules:1 Invalid operator for TAGS.
mars 28 21:53:11 bestos xserver-wrapper[1910]: (II) config/udev: removing device HP HP USB 1000dpi Laser Mouse
mars 28 21:53:11 bestos xserver-wrapper[1910]: (II) UnloadModule: "libinput"
mars 28 21:53:11 bestos plasmashell[2381]: qt.qpa.clipboard: QXcbClipboard::setMimeData: Cannot set X11 selection owner
mars 28 21:53:11 bestos plasmashell[2381]: qt.qpa.clipboard: QXcbClipboard::setMimeData: Cannot set X11 selection owner
mars 28 21:53:12 bestos kernel: usb 1-2: USB disconnect, device number 9
mars 28 21:53:12 bestos org_kde_powerdevil[2413]: org.kde.powerdevil: Failed to start suspend job "org.freedesktop.login1.OperationInProgress" "There's already a shutdown or sleep operation in progress"
mars 28 21:53:12 bestos xserver-wrapper[1910]: (II) event20 - Microsoft Natural® Ergonomic Keyboard 4000: device removed
mars 28 21:53:12 bestos xserver-wrapper[1910]: (II) config/udev: removing device Microsoft Natural® Ergonomic Keyboard 4000
mars 28 21:53:12 bestos xserver-wrapper[1910]: (II) UnloadModule: "libinput"
mars 28 21:53:12 bestos xserver-wrapper[1910]: (II) event21 - Microsoft Natural® Ergonomic Keyboard 4000: device removed
mars 28 21:53:12 bestos xserver-wrapper[1910]: (II) config/udev: removing device Microsoft Natural® Ergonomic Keyboard 4000
mars 28 21:53:12 bestos xserver-wrapper[1910]: (II) UnloadModule: "libinput"
mars 28 21:53:12 bestos xserver-wrapper[1910]: (II) config/udev: removing device Microsoft Natural® Ergonomic Keyboard 4000
mars 28 21:53:12 bestos xserver-wrapper[1910]: (II) UnloadModule: "libinput"
mars 28 21:53:13 bestos xserver-wrapper[1910]: (II) modeset(0): EDID vendor "NCP", prod id 46
mars 28 21:53:13 bestos xserver-wrapper[1910]: (II) modeset(0): Printing DDC gathered Modelines:
mars 28 21:53:13 bestos xserver-wrapper[1910]: (II) modeset(0): Modeline "1920x1080"x0.0  138.65  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync (66.7 kHz eP)
mars 28 21:53:13 bestos xserver-wrapper[1910]: (II) modeset(0): Modeline "1920x1080"x0.0  110.90  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync (53.3 kHz e)
mars 28 21:53:13 bestos kded5[2344]: colord: Checking outputs
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_OutputProperty (ignored)
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  33077272
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Output:  66
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: [44B blob data]
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         State (newValue, Deleted):  1
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_OutputProperty (ignored)
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  33077272
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Output:  66
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Property:  EDIDN
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         State (newValue, Deleted):  1
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_OutputChange
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  17385324
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Output:  66
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         CRTC:  63
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Mode:  1896
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Connection:  "Disconnected"
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Subpixel Order:  0
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRScreenChangeNotify
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  17385324
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Config_timestamp:  33078027
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Window: 48234501
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Root: 1546
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Size ID: 65535
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Size:  4480 1440
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         SizeMM:  1182 380
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_OutputChange
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  17385324
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Output:  66
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         CRTC:  63
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Mode:  1896
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Connection:  "Disconnected"
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Subpixel Order:  0
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: XRandROutput 66 update
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]:          m_connected: 0
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]:          m_crtc XRandRCrtc(0xd81ed0)
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]:          CRTC: 63
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]:          MODE: 1896
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]:          Connection: 1
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: Output 66 : connected = false , enabled = true
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: XRandROutput 66 update
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]:          m_connected: 1
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]:          m_crtc XRandRCrtc(0xd81ed0)
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]:          CRTC: 63
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]:          MODE: 1896
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]:          Connection: 1
mars 28 21:53:13 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: Output 66 : connected = false , enabled = true
mars 28 21:53:13 bestos kded5[2344]: colord: Adding device id "xrandr-eDP-1"
mars 28 21:53:13 bestos kded5[2344]: colord: Output Hash "ef1dab9a90d5816caf7e46d1d1bf1b63"
mars 28 21:53:13 bestos kded5[2344]: colord: Output isLaptop true
mars 28 21:53:13 bestos kded5[2344]: colord: Failed to register device: "device id 'xrandr-eDP-1' already exists"
mars 28 21:53:13 bestos kded5[2344]: colord: Found colord device "/org/freedesktop/ColorManager/devices/xrandr_eDP_1_leo_1000"
mars 28 21:53:13 bestos kded5[2344]: colord: Found EDID profile for device "/org/freedesktop/ColorManager/profiles/icc_720219cbf7f5c6abba8f6827ff46b710_leo_1000" "eDP-1"
mars 28 21:53:13 bestos kded5[2344]: colord: Device changed "/org/freedesktop/ColorManager/devices/xrandr_eDP_1_leo_1000"
mars 28 21:53:13 bestos kded5[2344]: colord: profileDefault "/org/freedesktop/ColorManager/profiles/icc_720219cbf7f5c6abba8f6827ff46b710_leo_1000"
mars 28 21:53:13 bestos kded5[2344]: colord: Default Profile Filename "eDP-1" "/home/leo/.local/share/icc/edid-ef1dab9a90d5816caf7e46d1d1bf1b63.icc"
mars 28 21:53:13 bestos kded5[2344]: colord: Profile does not have any VCGT data, reseting "eDP-1" "/home/leo/.local/share/icc/edid-ef1dab9a90d5816caf7e46d1d1bf1b63.icc"
mars 28 21:53:13 bestos kded5[2344]: colord: Primary CRTC is at CRTC  1
mars 28 21:53:13 bestos kded5[2344]: colord: CRTC  1  output  0  is disconnected, skipping
mars 28 21:53:13 bestos kded5[2344]: colord: CRTC for CRTC  2  has no mode or no output, skipping
mars 28 21:53:13 bestos kded5[2344]: colord: Setting X atom (id: 0 ) "_ICC_PROFILE" on output: "eDP-1"
mars 28 21:53:13 bestos kded5[2344]: colord: remove device
mars 28 21:53:13 bestos kded5[2344]: colord: EDID ICC Profile already exists "/home/leo/.local/share/icc/edid-ef1dab9a90d5816caf7e46d1d1bf1b63.icc"
mars 28 21:53:13 bestos plasmashell[2381]: file:///nix/store/sksvs4j0hmmcjkgh3v7nmgly21fwy4vc-plasma-workspace-5.27.10/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:20: TypeError: Cannot read prop>
mars 28 21:53:13 bestos plasmashell[2381]: file:///nix/store/sksvs4j0hmmcjkgh3v7nmgly21fwy4vc-plasma-workspace-5.27.10/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:75: TypeError: Cannot read prop>
mars 28 21:53:13 bestos plasmashell[2381]: file:///nix/store/sksvs4j0hmmcjkgh3v7nmgly21fwy4vc-plasma-workspace-5.27.10/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:78: TypeError: Cannot read prop>
mars 28 21:53:13 bestos plasmashell[2381]: file:///nix/store/sksvs4j0hmmcjkgh3v7nmgly21fwy4vc-plasma-workspace-5.27.10/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:80: TypeError: Cannot read prop>
mars 28 21:53:13 bestos plasmashell[2381]: file:///nix/store/sksvs4j0hmmcjkgh3v7nmgly21fwy4vc-plasma-workspace-5.27.10/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:81: TypeError: Cannot read prop>
mars 28 21:53:13 bestos plasmashell[2381]: file:///nix/store/sksvs4j0hmmcjkgh3v7nmgly21fwy4vc-plasma-workspace-5.27.10/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:82: TypeError: Cannot read prop>
mars 28 21:53:13 bestos plasmashell[2381]: file:///nix/store/sksvs4j0hmmcjkgh3v7nmgly21fwy4vc-plasma-workspace-5.27.10/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:83: TypeError: Cannot read prop>
mars 28 21:53:13 bestos plasmashell[2381]: file:///nix/store/sksvs4j0hmmcjkgh3v7nmgly21fwy4vc-plasma-workspace-5.27.10/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:84: TypeError: Cannot read prop>
mars 28 21:53:13 bestos plasmashell[2381]: file:///nix/store/sksvs4j0hmmcjkgh3v7nmgly21fwy4vc-plasma-workspace-5.27.10/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:16: TypeError: Cannot read prop>
mars 28 21:53:13 bestos plasmashell[2381]: file:///nix/store/sksvs4j0hmmcjkgh3v7nmgly21fwy4vc-plasma-workspace-5.27.10/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:17: TypeError: Cannot read prop>
mars 28 21:53:13 bestos plasmashell[2381]: file:///nix/store/sksvs4j0hmmcjkgh3v7nmgly21fwy4vc-plasma-workspace-5.27.10/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:18: TypeError: Cannot read prop>
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: Emitting configChanged()
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: XRandR::setConfig
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: Requested screen size is QSize(1920, 1080)
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: Needed CRTCs:  1
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: Actions to perform:
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          Priorities: true
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr:         Output 65
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:                  Old: "2"
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:                  New: "1"
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr:         Change Screen Size: true
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr:                 Old: QSize(4480, 1440)
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:                  Intermediate: QSize(4480, 1440)
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:                  New: QSize(1920, 1080)
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr:         Disable outputs: true
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr:                  (66)
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr:         Change outputs: true
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr:                  (65)
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr:         Enable outputs: false
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: RRSetCrtcConfig (disable output)
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          CRTC: 63
mars 28 21:53:14 bestos kded5[2344]: colord: Checking outputs
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr:         Result: 0
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: XRandROutput 66 update
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          m_connected: 1
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          m_crtc XRandRCrtc(0xd81ed0)
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          CRTC: 0
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          MODE: 0
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          Connection: 1
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: Disconnected output 66 from CRTC 63
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: RRSetCrtcConfig (change output)
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          Output: 65 ( "eDP-1" )
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          CRTC: 62
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          Pos: QPoint(0,0)
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          Mode: KScreen::Mode(Id: "70" , Size: QSize(1920, 1080) @ 59.9988 ) Preferred: "70"
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          Rotation: KScreen::Output::None
mars 28 21:53:14 bestos kernel: Filesystems sync: 3.254 seconds
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: XRandRCrtc  62  m_timestamp update  17385256  =>  33078849
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr:         Result:  0  timestamp:  33078849
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: XRandROutput 65 update
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          m_connected: 0
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          m_crtc XRandRCrtc(0xd78400)
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          CRTC: 62
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          MODE: 70
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          Connection: 0
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: RRSetOutputPrimary
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          New priority: 1
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: RRSetOutputPrimary
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          New priority: 0
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: RRSetOutputPrimary
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          New priority: 0
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: RRSetOutputPrimary
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          New priority: 0
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: RRSetScreenSize
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          DPI: 96.2526
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          Size: QSize(1920, 1080)
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]:          SizeMM: QSize(506, 285)
mars 28 21:53:14 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: XRandR::setConfig done!
mars 28 21:53:14 bestos xserver-wrapper[1910]: (II) modeset(0): Allocate new frame buffer 1920x1080 stride
mars 28 23:15:48 bestos kernel: Freezing user space processes
mars 28 23:15:48 bestos kernel: Freezing user space processes completed (elapsed 0.003 seconds)
mars 28 23:15:48 bestos kernel: OOM killer disabled.
mars 28 23:15:48 bestos kernel: Freezing remaining freezable tasks
mars 28 23:15:48 bestos kernel: Freezing remaining freezable tasks completed (elapsed 0.000 seconds)
mars 28 23:15:48 bestos kernel: printk: Suspending console(s) (use no_console_suspend to debug)
mars 28 23:15:48 bestos kernel: e1000e: EEE TX LPI TIMER: 00000011
mars 28 23:15:48 bestos kernel: ACPI: EC: interrupt blocked
mars 28 23:15:48 bestos kernel: intel_pch_thermal 0000:00:12.0: CPU-PCH is cool [49C] after 8200 ms delay
mars 28 23:15:48 bestos kernel: ACPI: EC: interrupt unblocked
mars 28 23:15:48 bestos kernel: ata1: SATA link down (SStatus 4 SControl 300)
mars 28 23:15:48 bestos kernel: OOM killer enabled.
mars 28 23:15:48 bestos kernel: Restarting tasks ... 
mars 28 23:15:48 bestos kernel: mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_ops [i915])
mars 28 23:15:48 bestos kernel: done.
mars 28 23:15:48 bestos kernel: random: crng reseeded on system resumption
mars 28 23:15:48 bestos systemd-logind[1694]: Lid opened.
mars 28 23:15:48 bestos rtkit-daemon[2338]: The canary thread is apparently starving. Taking action.
mars 28 23:15:48 bestos cupsd[1911]: Subscription 3863 has expired...
mars 28 23:15:48 bestos rtkit-daemon[2338]: Demoting known real-time threads.
mars 28 23:15:48 bestos rtkit-daemon[2338]: Successfully demoted thread 17418 of process 17253.
mars 28 23:15:48 bestos rtkit-daemon[2338]: Successfully demoted thread 3199 of process 3053.
mars 28 23:15:48 bestos rtkit-daemon[2338]: Successfully demoted thread 2603 of process 2591.
mars 28 23:15:48 bestos rtkit-daemon[2338]: Successfully demoted thread 2591 of process 2591.
mars 28 23:15:48 bestos rtkit-daemon[2338]: Successfully demoted thread 2472 of process 2461.
mars 28 23:15:48 bestos rtkit-daemon[2338]: Successfully demoted thread 2461 of process 2461.
mars 28 23:15:48 bestos rtkit-daemon[2338]: Successfully demoted thread 2469 of process 2458.
mars 28 23:15:48 bestos rtkit-daemon[2338]: Successfully demoted thread 2458 of process 2458.
mars 28 23:15:48 bestos rtkit-daemon[2338]: Demoted 8 threads.
mars 28 23:15:48 bestos xserver-wrapper[1910]: (EE) event9  - PS/2 Generic Mouse: client bug: event processing lagging behind by 620ms, your system is too slow
mars 28 23:15:48 bestos systemd[1]: Starting Refresh fwupd metadata and update motd...
mars 28 23:15:48 bestos zed[40815]: Exiting
mars 28 23:15:48 bestos systemd[1]: Started Logrotate Service.
mars 28 23:15:48 bestos systemd[1]: Starting ZFS auto-snapshotting every 15 mins...
mars 28 23:15:48 bestos systemd[1]: Starting ZFS auto-snapshotting every hour...
mars 28 23:15:48 bestos systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
mars 28 23:15:48 bestos systemd[1]: zfs-zed.service: Deactivated successfully.
mars 28 23:15:48 bestos systemd-sleep[67843]: System returned from sleep operation 'suspend'.
mars 28 23:15:48 bestos kernel: PM: suspend exit
mars 28 23:15:48 bestos bluetoothd[1586]: Controller resume with wake event 0x0
mars 28 23:15:48 bestos systemd[1]: systemd-suspend.service: Deactivated successfully.
mars 28 23:15:48 bestos systemd-timesyncd[67820]: Network configuration changed, trying to establish connection.
mars 28 23:15:48 bestos systemd[1]: Finished System Suspend.
mars 28 23:15:48 bestos systemd[1]: logrotate.service: Deactivated successfully.
mars 28 23:15:48 bestos systemd[1]: Stopped target Sleep.
mars 28 23:15:48 bestos systemd[1]: Reached target Suspend.
mars 28 23:15:48 bestos systemd-logind[1694]: Operation 'suspend' finished.
mars 28 23:15:48 bestos ModemManager[2758]: <msg> [sleep-monitor-systemd] system is resuming
mars 28 23:15:48 bestos systemd[1]: Starting Post-Resume Actions...
mars 28 23:15:48 bestos systemd[1]: Stopped target Suspend.
mars 28 23:15:48 bestos cupsd[1911]: Printer "25_26_103_MFP_LIP6_color_cups" stopped by "root".
mars 28 23:15:48 bestos cupsd[1911]: REQUEST localhost - root "POST /admin/ HTTP/1.1" 200 215 Pause-Printer successful-ok
mars 28 23:15:49 bestos systemd[1]: post-resume.service: Deactivated successfully.
mars 28 23:15:49 bestos systemd[1]: Finished Post-Resume Actions.
mars 28 23:15:49 bestos systemd[1]: zfs-zed.service: Scheduled restart job, restart counter is at 10.
mars 28 23:15:49 bestos systemd[1]: Reached target Post-Resume Actions.
mars 28 23:15:49 bestos systemd[1]: Started ZFS Event Daemon (zed).
mars 28 23:15:49 bestos systemd[1]: zfs-snapshot-hourly.service: Deactivated successfully.
mars 28 23:15:49 bestos zed[67940]: ZFS Event Daemon 2.2.3-1 (PID 67940)
mars 28 23:15:49 bestos zed[67940]: Processing events since eid=8
mars 28 23:15:49 bestos systemd[1]: Finished ZFS auto-snapshotting every hour.
mars 28 23:15:49 bestos systemd[1]: zfs-snapshot-frequent.service: Deactivated successfully.
mars 28 23:15:49 bestos systemd[1]: Finished ZFS auto-snapshotting every 15 mins.
mars 28 23:15:49 bestos systemd[1]: Stopped target Post-Resume Actions.
mars 28 23:15:49 bestos kernel: e1000e 0000:00:1f.6 eno2: NIC Link is Down
mars 28 23:15:49 bestos systemd-udevd[1132]: /nix/store/219dgx55ap15yh3wx049dybbkf9nyqk6-udev-rules/99-local.rules:1 Invalid operator for TAGS.
mars 28 23:15:49 bestos fwupdmgr[67916]: En attente…: 0%
mars 28 23:15:49 bestos fwupdmgr[67916]: Metadata is up to date; use --force to refresh again.
mars 28 23:15:49 bestos systemd[1]: fwupd-refresh.service: Deactivated successfully.
mars 28 23:15:49 bestos systemd[1]: Finished Refresh fwupd metadata and update motd.
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_CrtcChange
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  17385324
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         CRTC:  63
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Mode:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Geometry:  0 0 0 0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_OutputChange
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  17385324
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Output:  66
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         CRTC:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Mode:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Connection:  "Disconnected"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Subpixel Order:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRScreenChangeNotify
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  17385324
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Config_timestamp:  33078027
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Window: 48234501
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Root: 1546
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Size ID: 65535
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Size:  4480 1440
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         SizeMM:  1182 380
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_CrtcChange
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  17385324
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         CRTC:  63
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Mode:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Geometry:  0 0 0 0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_OutputChange
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  17385324
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Output:  66
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         CRTC:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Mode:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Connection:  "Disconnected"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Subpixel Order:  0
mars 28 23:15:49 bestos fwupd[11086]: 22:15:49.258 FuPluginIntelMe      failed to get public key using /fpf/OemCred: generic failure [0xb]
mars 28 23:15:49 bestos kernel: mmc0: cannot verify signal voltage switch
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_CrtcChange
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  33078781
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         CRTC:  62
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Mode:  70
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Geometry:  0 0 1920 1080
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRScreenChangeNotify
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  33078781
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Config_timestamp:  33078027
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Window: 48234501
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Root: 1546
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Size ID: 65535
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Size:  4480 1440
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         SizeMM:  1182 380
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_CrtcChange
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  33078781
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         CRTC:  62
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Mode:  70
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Geometry:  0 0 1920 1080
mars 28 23:15:49 bestos kded5[2344]: colord: Adding device id "xrandr-eDP-1"
mars 28 23:15:49 bestos kded5[2344]: colord: Output Hash "ef1dab9a90d5816caf7e46d1d1bf1b63"
mars 28 23:15:49 bestos kded5[2344]: colord: Output isLaptop true
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_OutputProperty (ignored)
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  33078916
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Output:  65
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Property:  _KDE_SCREEN_INDEX
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         State (newValue, Deleted):  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_OutputProperty (ignored)
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  33078916
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Output:  65
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Property:  _KDE_SCREEN_INDEX
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         State (newValue, Deleted):  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_OutputChange
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  33078849
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Output:  65
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         CRTC:  62
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Mode:  70
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Connection:  "Connected"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Subpixel Order:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_OutputChange
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  33078849
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Output:  66
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         CRTC:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Mode:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Connection:  "Disconnected"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Subpixel Order:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRScreenChangeNotify
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  33078849
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Config_timestamp:  33078027
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Window: 48234501
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Root: 1546
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Size ID: 65535
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Size:  4480 1440
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         SizeMM:  1182 380
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_OutputChange
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  33078849
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Output:  65
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         CRTC:  62
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Mode:  70
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Connection:  "Connected"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Subpixel Order:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRNotify_OutputChange
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  33078849
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Output:  66
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         CRTC:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Mode:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Connection:  "Disconnected"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Subpixel Order:  0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper: RRScreenChangeNotify
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Timestamp:  33078849
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Config_timestamp:  33078027
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Window: 48234501
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Root: 1546
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Rotation:  "Rotate_0"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Size ID: 0
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         Size:  1920 1080
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xcb.helper:         SizeMM:  506 285
mars 28 23:15:49 bestos kdeconnectd[2409]: Error sending UDP packet: QAbstractSocket::NetworkError
mars 28 23:15:49 bestos kded5[2344]: colord: Failed to register device: "device id 'xrandr-eDP-1' already exists"
mars 28 23:15:49 bestos kded5[2344]: colord: Found colord device "/org/freedesktop/ColorManager/devices/xrandr_eDP_1_leo_1000"
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]: kscreen.xrandr: XRandROutput 66 update
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]:          m_connected: 1
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]:          m_crtc QObject(0x0)
mars 28 23:15:49 bestos kscreen_backend_launcher[2585]:          CRTC: 0
mars 28 23:15:49 bestos kded5[2344]: colord: Device changed "/org/freedesktop/ColorManager/devices/xrandr_eDP_1_leo_1000"
mars 28 23:15:49 bestos kded5[2344]: colord: profileDefault "/org/freedesktop/ColorManager/profiles/icc_720219cbf7f5c6abba8f6827ff46b710_leo_1000"
mars 28 23:15:49 bestos kded5[2344]: colord: Default Profile Filename "eDP-1" "/home/leo/.local/share/icc/edid-ef1dab9a90d5816caf7e46d1d1bf1b63.icc"
mars 28 23:15:49 bestos kded5[2344]: colord: Profile does not have any VCGT data, reseting "eDP-1" "/home/leo/.local/share/icc/edid-ef1dab9a90d5816caf7e46d1d1bf1b63.icc"
mars 28 23:15:49 bestos kded5[2344]: colord: Primary CRTC is at CRTC  0
mars 28 23:15:49 bestos kded5[2344]: colord: CRTC for CRTC  1  has no mode or no output, skipping
nixos-discourse commented 6 months ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/since-upgrade-my-laptop-does-not-go-to-sleep-when-closing-the-lid/42243/10

Svenum commented 6 months ago

Same Issue here. I am on NixOS Unstable

tobiasBora commented 6 months ago

Can people having similar issues tell your hardware, and tell if you have out of tree kernel modules (I have ZFS for instance… do you as well?) to see if there is a pattern? I tried to report to the linux kernel, and they told me:

Thx for the report, but the sad reality is: I doubt that any kernel developer will look into the report unless you perform a bisection to find the change that causes the problem. That's because the report lacks details and this kind of problem can be caused by various areas of the kernels, so none of the developer will feel responsible to take a closer look. From a quick look into your log it seems you are also using out-of-tree drivers that taint the kernel, which is another reason why it's unlikely that anyone will take a closer look.

For further details on reporting issues and mistakes many people make (and you might want to avoid in case you want to submit a improve report), see:

https://docs.kernel.org/admin-guide/reporting-issues.html https://linux-regtracking.leemhuis.info/post/frequent-reasons-why-linux-kernel-bug-reports-are-ignored/

But since it is quite random : it does not always occurs, and I just tried 6.1 and got some issues, but weird, like it drained 20% of battery but stopped draining at some points. Also, it takes time with my current strategy (waiting for the battery to drain is not really optimal…) Hence, it is not so easy to bisect… If you have more success with finding a deterministic test & bisecting, please let us know.

tobiasBora commented 6 months ago

Ok, so I tried to add

boot.kernelParams = [ "mem_sleep_default=deep" ];

and after a reboot, the system goes to deep mode:

avril 03 00:31:06 bestos kernel: PM: suspend entry (deep)

(see https://discourse.nixos.org/t/since-upgrade-my-laptop-does-not-go-to-sleep-when-closing-the-lid/42243/4 and https://www.kernel.org/doc/Documentation/power/states.txt to see the difference beween deep mode and s2idle, long story short, s2idle is more "modern" but fundamentally drains battery as it allows the computer to check mails etc while being in sleep mode)

Dell seems to slowly disable deep mode at the firmware level, so on more modern laptops this might not work, in which case it seems to quite fundamentally drain battery (apparently Windows wants a more phone-like experience on laptops, where we can receive messages/emails even when in sleep mode…):

The S3 deep sleep mode is not available on the XPS 13 9310. This is by design.

When using a Dell Ubuntu image, the battery discharge issue was resolved with kernel update to 5.8. However, there will be some amount of battery discharge due to the Connected / Modern Standby feature. If there are any issues with battery draining with the Dell Ubuntu image, reply to the private messages sent to you by the DELL-Cares agent on your unique case number with the Service Tag, issue, etc.

which is the official Dell answer to this issue https://www.dell.com/community/en/conversations/xps/xps-13-9310-ubuntu-deep-sleep-missing/647f8daff4ccf8a8dee4f308?page=3 Some people here reported fixes when enabling AHCI drive instead of RAID in BIOS.

What I don't undersand, yet, is why sometimes the battery drains like 20% a night, and why sometimes it's 100%… it seems like this occurs often after disconnecting my laptop from a screen, or maybe the wifi network matters… Anyway, hopefully the above fix works!

tobiasBora commented 6 months ago

Arggg, I really thought it would work this time… but got again a 18% drop of battery in the night. What’s weird is that all messages about putting CPU offline etc… arrive after the system wakes up, and I don’t know if it is normal/a bug/just that the messages are being written too late. See logs in https://discourse.nixos.org/t/since-upgrade-my-laptop-does-not-go-to-sleep-when-closing-the-lid/42243/14?u=tobiasbora