[SOLVED]Probems with suspend to ram in debian 10.2

Kernels & Hardware, configuring network, installing services

[SOLVED]Probems with suspend to ram in debian 10.2

Postby pythagorasmk » 2019-11-19 18:32

I have asked this question earlier, but there was no answer. I am trying again.
I am having problems with suspend to ram function in debian 10.2 (previously in debian 9.x). When I select the "suspend to ram" from start menu, system goes to suspended mode, but wake up is the problem. The system freezes and screen is black black. I have to do hardware reset to my machine. In windows, suspend to ram is working, so my hardware is not the problem.
I have "Gigabyte P61-DS3-B3" motherboard, and "Nvidia GeForce 210" graphics card. I think that the problem is with the driver of the graphics card. I am using KDE.
Last edited by pythagorasmk on 2019-11-25 22:33, edited 1 time in total.
pythagorasmk
 
Posts: 61
Joined: 2015-01-18 03:40

Re: Probems with suspend to ram in debian 10.2

Postby L_V » 2019-11-20 09:43

What is reporting this:
Code: Select all
apt list acpi upower uswsusp pm-utils

Code: Select all
systemctl cat systemd-suspend.service | grep -v '#'
systemctl cat suspend.target | grep -v '#'

Code: Select all
journalctl -ax | grep suspend | tail -15

Code: Select all
free -mh
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: Probems with suspend to ram in debian 10.2

Postby pythagorasmk » 2019-11-20 19:05

L_V wrote:What is reporting this:
Code: Select all
apt list acpi upower uswsusp pm-utils


Code: Select all
Listing... Done
acpi/stable 1.7-1.1 amd64
pm-utils/stable 1.4.1-18 all
upower/stable,now 0.99.10-1 amd64 [installed,automatic]
uswsusp/stable 1.0+20120915-6.2 amd64


Code: Select all
systemctl cat systemd-suspend.service | grep -v '#'

Code: Select all
[Unit]
Description=Suspend
Documentation=man:systemd-suspend.service(8)
DefaultDependencies=no
Requires=sleep.target
After=sleep.target

[Service]
Type=oneshot
ExecStart=/lib/systemd/systemd-sleep suspend



Code: Select all
systemctl cat suspend.target | grep -v '#'

Code: Select all
[Unit]
Description=Suspend
Documentation=man:systemd.special(7)
DefaultDependencies=no
Requires=systemd-suspend.service
After=systemd-suspend.service
StopWhenUnneeded=yes


Code: Select all
journalctl -ax | grep suspend | tail -15

Code: Select all
Nov 20 20:42:37 xxxxxxx sudo[2701]:   xxxxxxx : TTY=pts/0 ; PWD=/home/xxxxxx/c ; USER=root ; COMMAND=/usr/bin/systemctl cat systemd-suspend.service
Nov 20 20:43:09 xxxxxxxx sudo[2705]:   xxxxxxx : TTY=pts/0 ; PWD=/home/xxxxxxx/c ; USER=root ; COMMAND=/usr/bin/systemctl cat suspend.target


Code: Select all
free -mh

Code: Select all
              total        used        free      shared  buff/cache   available
Mem:          7.8Gi       4.7Gi       237Mi        60Mi       2.8Gi       2.7Gi
Swap:          14Gi       8.0Mi        14Gi
pythagorasmk
 
Posts: 61
Joined: 2015-01-18 03:40

Re: Probems with suspend to ram in debian 10.2

Postby L_V » 2019-11-20 19:24

Not sure to correctly estimate the RAM capacity still available for suspend.
Can you try this to see what happen

Code: Select all
# echo -n mem > /sys/power/state
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: Probems with suspend to ram in debian 10.2

Postby pythagorasmk » 2019-11-20 19:36

After:
#echo -n mem > /sys/power/state
power is on, but the screen goes black. <ctrl>+<alt>+<back space> and <ctrl>+<alt>+<del> does nothing. I have to hardware reset machine.
pythagorasmk
 
Posts: 61
Joined: 2015-01-18 03:40

Re: Probems with suspend to ram in debian 10.2

Postby L_V » 2019-11-20 19:40

Can you successively try these boot kernel parameters (then 2 trials)

noapic
acpi_sleep=s3_bios

to see what happen with this command
Code: Select all
$ systemctl suspend

EDIT: this command as user, not as root.
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: Probems with suspend to ram in debian 10.2

Postby pythagorasmk » 2019-11-20 20:03

noapic

System goes in suspend mode, power is off, but the wake up is the problem. After wake up the screen is black. I have to reset.

acpi_sleep=s3_bios

System does not go into suspend mode, power is on but the screen is black. I have to reset.
pythagorasmk
 
Posts: 61
Joined: 2015-01-18 03:40

Re: Probems with suspend to ram in debian 10.2

Postby L_V » 2019-11-20 20:05

well well well .....
Then install uswsusp , and try
Code: Select all
/usr/sbin/s2ram
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: Probems with suspend to ram in debian 10.2

Postby pythagorasmk » 2019-11-20 20:13

/usr/sbin/s2ram

System goes in suspend mode, power is off, but after few seconds the system wake ups by itself and starts the BOOTING PROCES.
pythagorasmk
 
Posts: 61
Joined: 2015-01-18 03:40

Re: Probems with suspend to ram in debian 10.2

Postby L_V » 2019-11-20 20:17

Then it's going to be difficult.
Something around nvidia driver which needs to be fine-tuned.
Last chance.....
Install pm-utils, and then
Code: Select all
/usr/sbin/pm-suspend
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: Probems with suspend to ram in debian 10.2

Postby pythagorasmk » 2019-11-20 20:26

/usr/sbin/pm-suspend

System goes in syspend mode, the problem is again wake up. After wake up the screen is black. I have to reset.
BTW I am using nouveau, not the nvidia driver.
pythagorasmk
 
Posts: 61
Joined: 2015-01-18 03:40

Re: Probems with suspend to ram in debian 10.2

Postby L_V » 2019-11-20 20:30

I don't really know if installing acpi can help or not.
You have to try again previous commands with acpi installed.
If still no success, investigate hibernate i/o suspend.

And take some time to look around for nvidia users (I've no experience with nvidia).
I suppose some extra scripts are needed to facilitate wake-up process, but it will be a bit tricky, and I cannot test.
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: Probems with suspend to ram in debian 10.2

Postby stevepusser » 2019-11-20 20:36

Often that's an ACPI bug in the BIOS, and there may not be a fix for Linux.
Does the caps lock LED work even if the screen is still black, or is that not working also?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.9, Telegram-desktop 1.8.15, Pale Moon 28.8.0, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11321
Joined: 2009-10-06 05:53

Re: Probems with suspend to ram in debian 10.2

Postby pythagorasmk » 2019-11-20 20:40

I don't really know if installing acpi can help or not.

It helped. Now pm-suspend is working.
I have another question. How to configure KDE to use pm-suspend, so I can configure KDE after 30 min to suspend the machine?
pythagorasmk
 
Posts: 61
Joined: 2015-01-18 03:40

Re: Probems with suspend to ram in debian 10.2

Postby L_V » 2019-11-20 20:45

Great man !!!!! Champagne !
You need to modify /lib/systemd/system/systemd-suspend.service
and replace
Code: Select all
ExecStart=/lib/systemd/systemd-sleep suspend
by
Code: Select all
ExecStart=/usr/sbin/pm-suspend

It will not be specific to KDE.
Now for the 30 min timeout, you need to make some custom script.
Let's consider your suspend problem is solved.
Your KDE suspend timeout is another subject.
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Next

Return to System configuration

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable