LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-05-2022, 02:44 PM   #1
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Rep: Reputation: 23
suspend doesn't work in newer kernel 5.x


hi, I've a hp desktop running Devuan 4.0 with kernel 5.11.x, sometime after upgrade from earlier devuan 3.0 with 4.19 kernel, suspend function doesn't work anymore (i.e. no response to power button press, or keyboard/mouse), the only way is to long press power to recycle the power. i've asked the question in Devuan's forum but didn't get an answer.

has anyone had similar issue with new linux kernel?

Code:
erdos@htpc-devuan:~/Documents$ uname -a
Linux htpc-devuan 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
 
Old 06-05-2022, 07:26 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,855

Rep: Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149
1) Troubleshooting advice links:
https://01.org/node/3721
https://wiki.debian.org/Suspend#Debian_Wheezy_.287.29
https://wiki.debian.org/Suspend#Kernel_testing_facility

2) Which model HP desktop? Graphics hardware?
Code:
inxi -SMGa
3) If you switch away from the graphics session to VT3 (CTRL-ALT-F3), log in as root, and do
Code:
/usr/sbin/pm-suspend
does the machine suspend ok? Does it wake ok?

4) Another thought: Check that it is not just a case of needing to update the HP BIOS.

Last edited by ferrari; 06-05-2022 at 07:28 PM.
 
Old 06-05-2022, 07:43 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,855

Rep: Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149
Just in case this is relevant...
https://xintingwang.wordpress.com/20...ameter-update/

In particular...
Quote:
I am running a 7-year old Arch Linux desktop with AMD FX6200 CPU and nVidia GeForce 210. I am using the open source version of the graphics driver nouveau. Recently, due to a kernel update, my computer run into an issue of being unable to suspend.

The symptom is quite simple: the screen turned black when I hit the suspend button, thus presenting an appearance of a suspended status. However, there is no response when I tried to resume the session from my USB keyboard, as I always did.

Eventually, the problem was solved by adding init_on_alloc=0 to the kernel parameters, as discussed here. Here’s how to do it if you are using GRUB (Methods to update kernel parameters could also be found here, if you are not running GRUB.).
 
Old 06-13-2022, 08:32 PM   #4
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by ferrari View Post
1) Troubleshooting advice links:
https://01.org/node/3721
https://wiki.debian.org/Suspend#Debian_Wheezy_.287.29
https://wiki.debian.org/Suspend#Kernel_testing_facility

2) Which model HP desktop? Graphics hardware?
Code:
inxi -SMGa
3) If you switch away from the graphics session to VT3 (CTRL-ALT-F3), log in as root, and do
Code:
/usr/sbin/pm-suspend
does the machine suspend ok? Does it wake ok?

4) Another thought: Check that it is not just a case of needing to update the HP BIOS.
It's a HP Pavilion Elite d5100t ATX CTO Desktop PC with nvidia 9300GT card
Code:
erdos@htpc-devuan:~/Documents$ inxi -SMGa
bash: inxi: command not found
erdos@htpc-devuan:~/Documents$ lspci | grep VGA
06:00.0 VGA compatible controller: NVIDIA Corporation G98 [GeForce 9300 GE] (rev a1)
erdos@htpc-devuan:~/Documents$ cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz
stepping	: 10
microcode	: 0xa07
cpu MHz		: 2000.092
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 4
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm pti dtherm
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips	: 5333.50
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz
stepping	: 10
microcode	: 0xa07
cpu MHz		: 1999.053
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 4
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm pti dtherm
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips	: 5333.50
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz
stepping	: 10
microcode	: 0xa07
cpu MHz		: 2000.006
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 2
cpu cores	: 4
apicid		: 2
initial apicid	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm pti dtherm
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips	: 5333.50
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz
stepping	: 10
microcode	: 0xa07
cpu MHz		: 2000.111
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 3
cpu cores	: 4
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm pti dtherm
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips	: 5333.50
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:
in VT3, /usr/sbin/pm-suspend as root returns 'no such files or directory'. so no suspend

the Bios is up-to-date given HP no longer support this model, last bios released is dated 2009

Last edited by xiongnu; 06-13-2022 at 09:43 PM. Reason: correct command prompt return of cpu info
 
Old 06-13-2022, 09:14 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,855

Rep: Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149
Code:
erdos@htpc-devuan:~/Documents$ lspci | grep VGA
06:00.0 VGA compatible controller: NVIDIA Corporation G98 [GeForce 9300 GE] (rev a1)
erdos@16big:~$ lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation NV43 [GeForce 6600 GT] (rev a2)
Ok, at least we now know your graphics hardware details. Would have been nice to know the driver details as well.
Code:
lspci -nnk | grep -iA3 vga
BTW, inxi tends to provide comprehensive information so worth installing IMHO.

Quote:
in VT3, /usr/sbin/pm-suspend as root returns 'no such files or directory'. so no suspend
Sorry, I'm not a Devuan user, so not at all sure what suspend management framework is in place. Hopefully someone else can chime in here.
 
Old 06-13-2022, 09:53 PM   #6
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Original Poster
Rep: Reputation: 23
here's the info on video card.
Code:
erdos@htpc-devuan:~/Documents$ lspci -nnk | grep -iA3 vga
06:00.0 VGA compatible controller [0300]: NVIDIA Corporation G98 [GeForce 9300 GE] [10de:06e0] (rev a1)
	Subsystem: Pegatron G98 [GeForce 9300 GE] [1b0a:9004]
	Kernel driver in use: nvidia
	Kernel modules: nvidia
trying to install 'inxi', but certain 'bind~' file couldn't be retrieved from server.

i installed 'pm-utils' with synaptics pkg manager and it seems that 'pm-suspend' is on /usr/sbin directory now.
Run pm-suspend from vt3 can put pc in suspend mode, afterwards it can’t wake, pressing power button just get a blank screen, no response from keyboard /mouse. And I had to recycle power to reboot machine.

Last edited by xiongnu; 06-13-2022 at 10:11 PM.
 
  


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
Need permanent fix for suspend. Suspend doesn't work in Ubuntu 18.04 larrymeditates Linux - Newbie 10 09-15-2020 02:30 PM
Bluetooth adapter doesn't get detected in kernel versions newer than 4.19.6 Shubh64337 Linux - Newbie 1 06-03-2020 04:14 AM
using xfce, screen does not come back on from suspend, on kernels newer than 4.4.38 on Slackware64-14.2 khronosschoty Slackware 5 10-23-2018 09:32 AM
network connection doesn't work after reconnecting cable on newer kernels phil.d.g Slackware 1 12-20-2005 03:52 PM
modprobe problems, doesn't know that newer kernel has been installed exabrial Linux - Software 3 05-16-2004 03:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:56 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