Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian 11 Bullseye Suspend and Resume system SOLVED

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
herreradimas
Posts: 10
Joined: 2021-08-15 20:48
Has thanked: 1 time

Debian 11 Bullseye Suspend and Resume system SOLVED

#1 Post by herreradimas »

for beginners users:

1. open terminal: sudo nano /etc/default/grub
2. go to: GRUB_CMDLINE_LINUX=" " and add to: GRUB_CMDLINE_LINUX="init_on_alloc=0"
3. save and exit
4. sudo update-grub
5. reboot pc

I tested with Linux debian 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
Last edited by herreradimas on 2021-10-14 05:28, edited 2 times in total.

mm3100
Posts: 336
Joined: 2020-10-21 21:39
Has thanked: 8 times
Been thanked: 13 times

Re: Debian 11 Bullseye Suspend and Resume system alternative for solve

#2 Post by mm3100 »

You could also try this
https://unix.stackexchange.com/question ... rub#421650

That way you won't need to do things manually, but would boot what you manually picked last. But then you would need to manually pick never kernel once it is updated.

A bit about it here, just search for GRUB_DEFAULT
https://www.gnu.org/software/grub/manua ... ation.html

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: Debian 11 Bullseye Suspend and Resume system alternative for solve

#3 Post by Aki »

herreradimas wrote: 2021-08-17 18:12 The new Debian Bullseye by default is using kernel 5.10.0-8-amd64 but this have inconsistent for resume system this broken and does not more response for interface GUI.[..] Thank you all teams Debian and I hope the next release kernel 5 have fixed this details for suspended and resume. :)
Hello,

Thanks for your report.

A bug report has been opened for suspend to ram / suspend to disk issues in Debian 11 with a NVIDIA G96CM [GeForce 9600M GT] graphic card (see [1]): please update the bug report with data from your installation and way of failure, if you can.

What is the graphic card installed in your computer ? it would be helpful if you could provide more information using the following command (with the program inxi installed) :

Code: Select all

inxi -Gxxx
[1] https://bugs.debian.org/cgi-bin/bugrepo ... bug=989705
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

herreradimas
Posts: 10
Joined: 2021-08-15 20:48
Has thanked: 1 time

Re: Debian 11 Bullseye Suspend and Resume system alternative for solve

#4 Post by herreradimas »

Hello,

What is the graphic card installed in your computer ?

Graphics:
Device-1: NVIDIA GT218M [NVS 3100M] vendor: Hewlett-Packard
driver: nouveau v: kernel bus ID: 01:00.0 chip ID: 10de:0a6c
class ID: 0300
Device-2: Chicony HP Webcam [2 MP Macro] type: USB driver: uvcvideo
bus ID: 1-1.5:6 chip ID: 04f2:b15e class ID: 0e02
Display: server: X.Org 1.20.11 driver: loaded: modesetting
unloaded: fbdev,vesa resolution: 1366x768~60Hz s-dpi: 96
OpenGL: renderer: NVA8 v: 3.3 Mesa 20.3.5 direct render: Yes

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: Debian 11 Bullseye Suspend and Resume system alternative for solve

#5 Post by Aki »

Hello,

A bug report about a similar issue has been recently updated with a possibile solution: see here [1]

[1] https://bugs.debian.org/cgi-bin/bugrepo ... =989705#30
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

dankurth
Posts: 2
Joined: 2021-09-03 01:50

Re: Debian 11 Bullseye Suspend and Resume system alternative for solve

#6 Post by dankurth »

Just to give some more card info if that is hopefully helpful.
I have/had the same issue after new install (not upgrade) of Debian 11 on my Dell Optiplex 780 just yesterday. I did not have the issue with latest updated Debian 10 on same machine. My experience was that after every suspend or hibernate when I would try to resume I would encounter garbage on GUI screen so could not successfully resume. I would then have to restart using console screen (Ctrl-Alt-F3) in order to issue reboot command.

Here's my grapics info using "inxi -Gxxx".

Graphics: Device-1: NVIDIA GT218 [GeForce 210] vendor: ASUSTeK driver: nouveau v: kernel bus ID: 01:00.0 chip ID: 10de:0a65
class ID: 0300
Display: wayland server: X.Org 1.20.11 compositor: gnome-shell v: 3.38.4 driver: loaded: nouveau
note: n/a (using device driver) resolution: 1600x900~60Hz s-dpi: 96
OpenGL: renderer: NVA8 v: 3.3 Mesa 20.3.5 direct render: Yes

I also have since applied the workaround from link posted by Aki and verified that I am then able to suspend or hibernate and resume successfully afterwards.

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: Debian 11 Bullseye Suspend and Resume system alternative for solve

#7 Post by Aki »

dankurth wrote: 2021-09-03 01:55 [..] Here's my grapics info using "inxi -Gxxx".

Graphics: Device-1: NVIDIA GT218 [GeForce 210] vendor: ASUSTeK driver: nouveau v: kernel bus ID: 01:00.0 chip ID: 10de:0a65
class ID: 0300
Display: wayland server: X.Org 1.20.11 compositor: gnome-shell v: 3.38.4 driver: loaded: nouveau
note: n/a (using device driver) resolution: 1600x900~60Hz s-dpi: 96
OpenGL: renderer: NVA8 v: 3.3 Mesa 20.3.5 direct render: Yes

I also have since applied the workaround from link posted by Aki and verified that I am then able to suspend or hibernate and resume successfully afterwards.
@dankurth: Thank you for your report and for the precious details. I'm glad I helped you to sort it out.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

herreradimas
Posts: 10
Joined: 2021-08-15 20:48
Has thanked: 1 time

Re: Debian 11 Bullseye Suspend and Resume system SOLVED

#8 Post by herreradimas »

for beginners users:

1. open terminal: sudo nano /etc/default/grub
2. go to: GRUB_CMDLINE_LINUX=" " and add to: GRUB_CMDLINE_LINUX="init_on_alloc=0"
3. save and exit
4. sudo update-grub
5. reboot pc

I tested with Linux debian 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux

pvincent
Posts: 6
Joined: 2017-03-28 05:10
Has thanked: 1 time
Been thanked: 1 time

Re: Debian 11 Bullseye Suspend and Resume system SOLVED

#9 Post by pvincent »

Unfortunately, this is not yet solved :-(

I did upgrade my system (Lenovo x260) from Buster to Bullseye, then experience this suspend/resume issue.
Even after applying the fix you recommend, no luck, the suspend/resume issue still remains.

Code: Select all

GRUB_CMDLINE_LINUX="init_on_alloc=0"
+ update-grub + reboot

=> NO successful resuming process!

Finally, I've reinstalled from fresh debian 11 installation process, and yet again suspend issue remains.
Tried again the init_on_alloc=0, nope!
No more clue.
Need some more help, plz

Code: Select all

uname -a
Linux x260 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux
by the way, this is very tricky to help, furthermore.
every time I press the suspend button, the machine sleeps and never resumes back. I need to press the power button for 5s, then boot again, ...
Last edited by pvincent on 2021-12-15 10:03, edited 1 time in total.

pvincent
Posts: 6
Joined: 2017-03-28 05:10
Has thanked: 1 time
Been thanked: 1 time

Re: Debian 11 Bullseye Suspend and Resume system SOLVED

#10 Post by pvincent »

finally solved with

Code: Select all

  GRUB_CMDLINE_LINUX="intel_iommu=off"
viewtopic.php?p=747200#p747200

danielfilipiuk
Posts: 2
Joined: 2022-07-29 04:33
Has thanked: 4 times

Re: Debian 11 Bullseye Suspend and Resume system SOLVED

#11 Post by danielfilipiuk »

pvincent wrote: 2021-12-15 08:42 finally solved with

Code: Select all

  GRUB_CMDLINE_LINUX="intel_iommu=off"
viewtopic.php?p=747200#p747200
well... some years later, using here Debian Sid on an HP8440P with Nvidia NVS3100 witjh nvidia drivers 340.108, adding this options finally solved the suspend -resume issue, also I can hibernate and go back without graphical issues.
my line:

GRUB_CMDLINE_LINUX_DEFAULT="text quiet init_on_alloc=0 intel_iommu=off"

thanks.

dpeng
Posts: 2
Joined: 2022-11-15 14:45

Re: Debian 11 Bullseye Suspend and Resume system SOLVED

#12 Post by dpeng »

Hi,

I'm facing a similar issue : the system can't wake from suspend, but can wake from hibernate, which takes much more time. Sometimes I can log on through SSH, sometimes not. I tried the kernel options you mentioned in this thread but they don't seem to change a thing. So, I'm still searching for a solution.

I found a workaround, though (definitely not a fix!). As Gnome doesn't provide an option to hibernate when the lid is closed, I edited /etc/systemd/logind.conf and added the following line (reboot to validate) :

Code: Select all

HandleLidSwitch=hibernate
---
My configuration is :
  • Debian 11, kernel 5.10
  • HP EliteBook 855 G8 Notebook bought from HP in September 2022
  • AMD Ryzen 7 pro 5850U CPU with integrated Radeon GPU :

    Code: Select all

    $ lspci -nn | grep VGA
    04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [1002:1638] (rev d1)
    
  • The xserver-xorg-video-radeon and firmware-amd-graphics packets are installed and amdgpu is loaded.

Post Reply