LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2023, 06:53 AM   #1
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
My laptop freezes fairly often on resume from suspend to ram


Hi guys.

As the title explains, my computer keeps freezing on resume.
I open the lid of my laptop and the keyboard lights up but the screen does not. The keyboard backlight function key works but I can't get any response from anything else including ctrl alt delete. I have to hold the power button to force a shutdown.

The laptop contains a 12th Generation Intel Core i7-1255U processor with Intel Graphics Iris X.

I am running Debian Bookworm with Linux 6.1.0-9

Previously I was running both openSUSE 15.4 and Slackware 15 with backported kernels. I can't remember the numbers but they were 6.1.?
On these distros I had no issues.

The issue I am encountering at the moment I also experienced when I was testing out Fedora 38 which comes with Linux 6.2.9


This issue is not consistent. Sometimes resume works, and sometimes it does not.I have been doing several trials for the last two weeks to determine the cause.
At first I thought it may have been a Wayland issue because previously I'd been using Xorg and KDE. I was wrong though. Even in a Gnome X session it still occurs. I thought it may be a Gnome issue so I installed XFCE4. It occurs in an XFCE4 session too. I thought it may be GDM so I changed the display manager to Slim but the issue still occurs.


I suspect this may be a kernel issue now but I'm not sure.
Can anyone help me diagnose this issue?

Cheers
 
Old 05-21-2023, 07:14 AM   #2
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
A lot of the text says to maybe start with: --quirk-s3-bios e.g: https://manpages.debian.org/bullseye...0video%20mode.
Quote:
A common issue found on systems upgrading from old versions of Debian is the enabling of quirk-s3-bios freezes the system during suspend. If your system freezes during suspend, check the pm-suspend.log carefully after enabled debugging and make sure quirk-s3-bios is not used.
—https://wiki.debian.org/Suspend...not%20used.

but searching: debian bookworm suspend to ram freezing, has more? Haven't had this issue for a while in bookworm but also don't use hibernate lately.

Hope something there helps.
 
Old 09-09-2023, 10:24 PM   #3
prahal
LQ Newbie
 
Registered: Sep 2023
Posts: 2

Rep: Reputation: 0
I believe the keyboard backlight is controlled by the EmbeddedController firmware.
I have a similar issue with 4th gen Intel i7 4500U (Lenovo Thinkpad Yoga S1).
I am unable to reproduce this bug on my own. It tends to happen when I put my laptop in my bag.
I believe I had this issue before bookworm.
Also, bookworm from what I know does not use pm-suspend (systemd is in charge of the suspend).
You can remove pm-utils if installed to check it does not play a role.

I know for one that this laptop's latest BOIS update is not ACPICA conformant which can trigger issues with Linux kernel (a few data fields are accessed as global instead of being prepended with their path: D1F0, D1F1, D1F2 instead of \_SB.PCI0.D1F0, etc. This triggers acpi errors when the kernel calls ACPI functions that access these).
But this could be another issue I am not aware of (I don't know if resume from suspend from the Linux kernel involves any of these broken ACPI calls).

The fact that it worked with slackware and opensuse is of interest. You should open a bug report with these details on the Debian bug report tracker to track down this issue and share the reports between the affected users.
Could be these distributions disable a feature or have a kernel patch not in Debian.

Also, I saw reports about such hang on CPU microcode load by the kernel that could be worked around by adding dis_ucode_ldr to the kernel prompt, but they seem to be about easily reproducible setup (this was about suspending the laptop when AC unplugged on HP laptop, later fixed by BIOS and microcode updates).


Mind in my case I did not test the keyboard backlight key working. I also had the Function key led on, the suspend led pulsating (it is solid when the laptop is on), and the microphone mute led on (while I did not press it to mute the microphone).
The laptop is hot as far as I recall when this happens.
So it might be overheating protection https://www.youtube.com/watch?v=6BsD4til36Q
But why does it overheat is another story, as the time to suspend might not let it overheat even if I put it in the bag.

The above mic mute led could hint that the workaround for https://wiki.archlinux.org/title/Len..._Carbon_(Gen_7)
to put "snd_hda_intel.dmic_detect=0" on the kernel command line might help.

Still, I need to be able to reproduce the issue somewhat to check this helps.

Last edited by prahal; 09-09-2023 at 11:03 PM. Reason: Add more hints
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] KDE 5 on Slackware 14.2 Freezes on Resume from Suspend xp19375 Slackware 5 05-12-2018 02:24 PM
LXer: Automatically Resume from Suspend to Ram and Suspend to Disk to Save Battery in Linux LXer Syndicated Linux News 0 05-10-2013 02:40 AM
[SOLVED] Why do nVida drivers hose suspend/resume or hibernate/resume? taylorkh Linux - Hardware 3 06-23-2011 01:09 PM
laptop fails to resume from suspend to RAM intermittently adityavpratap Ubuntu 2 07-12-2010 02:14 AM
pcmcia card freezes on suspend, and will not resume jdolluc Linux - Hardware 4 01-08-2004 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration