Context Hello, I’ve recently installed endeavor on my msi gl62m7rex laptop (specs and details below). I’ve noticed when I close the laptop lid the screen turns off, however when I open it back up there is no login screen and I can continue using the system like I never closed it. The problem is that as a power hog, I can’t leave it closed for long in my bag because nothing actually stops so it gets hot and drains the battery. When I force ‘’‘$systemctl suspend’‘’ the screen turns off for a few seconds then flashes and comes back. Journalctl shows these errors
nvidia 0000:01:00.0: PM: pci_pm_suspend(): nv_pmops_suspend+0x0/0xf0 [nvidia] returns -5
nvidia 0000:01:00.0: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x1c0 returns -5
nvidia 0000:01:00.0: PM: failed to suspend async: error -5
PM: Some devices failed to suspend, or early wake event detected
usb 1-7: PM: dpm_run_callback(): usb_dev_resume+0x0/0x20 returns -5
usb 1-7: PM: failed to resume async: error -5
gt683r_led 0003:1770:FF00.0008: failed to send set report request: -19
Failed to put system to sleep. System resumed again: Input/output error
Failed to start System Suspend.
suspend.target: Job suspend.target/start failed with result ‘dependency’.‘’’
Problem Can’t suspend using systemctl or gnome tweaks
Details My first move was to edit /etc/systemd/sleep.conf as shown here
I’ve tried a few different combinations, pacman updating and rebooting in between and nothing has changed. I am using gnome and on my previous install of mint i used gnome tweaks with the “suspend when laptop lid is closed” option but that did nothing for me now.
Any thoughts or help would be greatly appreciated, I put in the errors I thought were most important but if there are any other logs needed I can definitely send them.
EDIT: I picked out just the red errors from journalctl because of the sheer amount of logging that’s present I thought it would be too much, if I was wrong I can send the entire thing from that timeframe
In some opposite situations, faulty firmware advertises support for deep sleep, while only s2idle should be supported. In this case, an alternative method for using s2idle is available through the SuspendState in sleep.conf.d(5):
Tried this but nothing happens, to be clear I made a new directory in systemd named sleep.conf.d and added the file freeze.conf into that directory. Freeze.conf includes…
[Sleep] SuspendState=freeze
I believe it might have to do with my 1050 ti because those errors are still present, with the addition of these…
After that my laptop correctly suspends!!! Thank you for the advice. But now my cpu shows its stuck at 2.80 GHz even at 7-8% load, and the cpufreq gnome shell extensions says its throttling even though temps are low and 3 firefox tabs are open, I will do some more testing and reply if I can’t find a fix. Thank you again for all your help .