You are not logged in.

#1 2022-08-24 14:39:40

angryfrog
Member
Registered: 2021-05-11
Posts: 7

Problem with sleep

Hi,
I have a long time problem with my ryzen desktop.
I can't put the desktop to sleep, it came out of it instantly.
I have tried to apply this solution : https://wiki.archlinux.org/title/Power_ … om_suspend but I can't write to the file, even as sudo.
Does someone have an idea?
Thanks you

Offline

#2 2022-09-14 19:30:14

itdoesntwork
Member
Registered: 2022-09-14
Posts: 6

Re: Problem with sleep

Try:
sudo -s
and then write from the inside the root shell

Offline

#3 2022-09-14 19:50:12

seth
Member
Registered: 2012-09-03
Posts: 51,196

Re: Problem with sleep

For context: "sudo echo foo > /path/to/bar" does NOT write into bar as root.
sudo executes echo, but the writing is done by the shell (">") which still runs as regular-ass user.

The common hack-a-round is

echo foo | sudo tee /path/to/bar

"tee" is the T-pipe which writes stdin to stdout and some file at the same time, and since you're sudo'ing it, it'll do so as root.

Online

Board footer

Powered by FluxBB