Discussion:
new laptop: how2 enable suspend / hibernate?
(too old to reply)
Lee
2024-06-25 13:50:01 UTC
Permalink
My old laptop died - a tiny little pop and it powered off. So I've
lost my implementation reference.

My new laptop is a Lenovo v15 G3 - installing
debian-12.5.0-amd64-netinst.iso from a flash drive was trivially easy.
Whoever worked on the how to install Debian from flash did an
excellent job.

But I can't suspend or hibernate the laptop :( Both options are
greyed out. How do I enable suspend / hibernate?

TIA,
Lee
Van Snyder
2024-06-25 19:40:02 UTC
Permalink
My old laptop died - a tiny little pop and it powered off.  So I've
lost my implementation reference.
If you can get the disk drive out of your old laptop, get a USB adapter
for it. Then you can look at your installation logs.
My new laptop is a Lenovo v15 G3 - installing
debian-12.5.0-amd64-netinst.iso from a flash drive was trivially easy.
Whoever worked on the how to install Debian from flash did an
excellent job.
But I can't suspend or hibernate the laptop :(  Both options are
greyed out.  How do I enable suspend / hibernate?
TIA,
Lee
Lee
2024-06-27 00:30:01 UTC
Permalink
Post by Lee
My old laptop died - a tiny little pop and it powered off. So I've
lost my implementation reference.
If you can get the disk drive out of your old laptop, get a USB adapter for it. Then you can look at your installation logs.
I hadn't thought of that -- thanks!
Post by Lee
But I can't suspend or hibernate the laptop :( Both options are
greyed out. How do I enable suspend / hibernate?
Not being able to do suspend or hibernate seems to be a function of
UEFI boot. I never figured out how to do UEFI boot before, so I never
had a problem with suspend or hibernate.

I seem to have found a work-around tho..

***@laptop:~$ cat /etc/sudoers.d/adm-grp-privs
# members of the adm group can run certain commands as root without supplying
# a password
# Andrei POPESCU<***@gmail.com> Sun, Dec 5, 2021 at 10:46 AM
# To: debian-***@lists.debian.org
# Re: Don't try this at home kids

Cmnd_Alias ADM_COMMANDS = /usr/bin/dmesg, \
/usr/bin/apt list, \
/usr/bin/apt update, \
/usr/bin/systemctl suspend
/usr/sbin/checkrestart, \
/usr/sbin/needrestart, \
/usr/sbin/reboot, \


%adm ALL = (root) NOPASSWD: ADM_COMMANDS

***@laptop:~$ cat ~/bin/sleep
#!/bin/bash
# put the machine to sleep (i hope. how to know **for sure**??
sudo systemctl suspend

and make a keyboard shortcut so that <win>s calls ~/lee/bin/sleep
so members of the adm group can do certain commands with sudo privs and then

Lee

Loading...