Registered Member
|
Specifically, I would like to remove (or hide) the Sleep and Hibernate options.
Last edited by mparillo on Wed Dec 30, 2020 12:15 pm, edited 1 time in total.
|
Registered Member
|
I found this (https://bbs.archlinux.org/viewtopic.php ... 3#p1261353) but (1) it seems like a hack to me, (2) I wonder if it interferes with updates, and (3) it is old.
|
Registered Member
|
This (https://forums.opensuse.org/showthread. ... ost2654709) seems to indicate that the previous post is indeed not recommended, but it only covers suspend.
|
Registered Member
|
please update the answer here as well :)
|
Registered Member
|
Use Polkit: https://wiki.archlinux.org/index.php/Po ... _hibernate Note: I could not edit this directly with kate nor change to the directory. If the below is too newbie-friendly, please do not be insulted. I had to use vim (some distros install vi instead, so use vi instead of vim, and other distros install nano, so the commands will differ): Launch your terminal (Konsole)
Enter your sudo password. Since my file was empty, my cursor was at the top. If there were many entries, you should be able to put your cursor at the end of any rule block. To switch to insert mode, type:
Then paste (Ctrl Shift v) the new rule:
You are still in insert mode, so you want to issue commands again, so hit escape to put yourself back in command mode. then to save and exit:
|
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]