You are not logged in.
I have this problem from may be an year, but I was not able to pinpoint where it is:
When I send my laptop to sleep, most of times works OK, but sometimes it can not go to sleep, and caps lock blinking.
When I wake up my laptop, most of times works OK, but sometimes it can not wake up and caps lock blinking. Sometimes it is in login screen, e.g. it was restarted.
Last two days I left my phone to charge on USB cable (I did not install my phone in anyway, using just USB power) - I found my laptop on login screen.
I am using XFCE with LXDE display manager. Boot is via syslinux + EFI.
I stopped XFCE power management. Also tried lots of syslinux options, currently I use LTS kernel with following options:
mem_sleep_default=deep quiet nowatchdog pcie_aspm=force i915.enable_fbc=1 i915.enable_guc=2 acpi_osi=! acpi_osi="Windows 2009"
At work I use USB-C screen, I have feeling when I use it, the laptop have problems more often, but problems appear without using the screen too.
Because this may be USB problem, I must say my wireless USB mouse is connected 24x7,
Last edited by nmmm (2020-07-10 19:06:23)
Offline
Not that it help much, but the blinking caps lock is a solid indication of a kernel panic
https://wiki.archlinux.org/index.php/Ge … nel_panics
https://en.wikipedia.org/wiki/Kernel_panic
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
I know is kernel panic, but had no idea how to debug it...
Offline
I think I have a similar issue
please read https://www.reddit.com/r/linuxquestions … m_is_idle/ if it sounds familiar.
I have nothing connected via USB - I don't think it is a USB problem
Can you reproduce it using
# echo platform > /sys/power/pm_test
and then suspend (Fn+F1) ?
Last edited by kvtb (2020-07-18 16:01:13)
Offline
@nmmm are you able to build a custom kernel to do some tests?
I've rebuild Linux 5.7.8 to include the following config:
PM_TRACE_RTC y
PM_TRACE y
PM_DEBUG y
Then using the info here: https://wiki.ubuntu.com/DebuggingKernelSuspend
I enabled PM tracing and then suspend the system
sudo sh -c "sync && echo 1 > /sys/power/pm_trace && pm-suspend"
this did not result in crash
I also did this:
echo deep | sudo tee /sys/power/mem_sleep
then repeat
sudo sh -c "sync && echo 1 > /sys/power/pm_trace && pm-suspend"
it resulted in a crash
After hard reboot, analysed the output of dmesg.
$ dmesg|grep Magic
[ 0.642939] PM: Magic number: 15:382:321
$ dmesg|grep matches
[ 0.642947] tty tty46: hash matches
[ 0.642957] pci 0000:00:02.0: hash matches
then, lspci shows:
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
So if the instructions are correct and the pm_trace does work, the graphics card driver is the issue
If you can reproduce this, please do so! thanks
Offline
for now, it seems that the following kernel option gives a workaround for this issue:
i915.enable_dc=0
Offline
@kvtb
I wanted to do longer test before I post.
i915.enable_dc=0
Indeed fixed the problem.
In fact, now I am running only with:
rw mem_sleep_default=deep quiet nowatchdog i915.enable_dc=0
Offline
All working fine. Added to the wiki. Hopefully will help someone else
Offline
Hi ! I just created an account to say that I have been experiencing this problem for several months now. I wanted to try the "i915.enable_dc=0" solution but did not find how I could change that value. Which file do I need to modify for this to work ?
Thanks !
Offline
That's a kernel parameter
Offline