You are not logged in.
Pages: 1
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
Try:
sudo -s
and then write from the inside the root shell
Offline
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
Pages: 1