Re: new laptop: how2 enable suspend / hibernate?
On Tue, Jun 25, 2024 at 3:34 PM Van Snyder wrote:
>
> On Tue, 2024-06-25 at 09:47 -0400, Lee wrote:
>
> 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!
> 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..
lee@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<andreimpopescu@gmail.com> Sun, Dec 5, 2021 at 10:46 AM
# To: debian-user@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
lee@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
Reply to: