You are not logged in.

#1 2011-10-16 10:27:13

Camus
Member
Registered: 2011-07-03
Posts: 71

pm-suspend: as normal user without changing sudoers and wake-up issue

I'd like to be able to suspend my laptop as a normal user, but I don't want to "break" sudo just to do this. One wiki article (Suspend to RAM) says this:

In fact, only the pm-utils approach can be called without special privileges, see pm-utils#Suspend.2FHibernate as regular user

Linked article from the quote above describes how to make sudo run without asking for password. I wouldn't call that "without special privileges". After all, I can make anything run without special privileges if I edit sudoers in such way.

Is there any proper way to make pm-suspend run as a normal user?


One other thing about pm-suspend... I use netcfg and laptop-mode-tools. After wake-up from pm-suspend my wlan interface is down and hdparm -B value is set to 128. The wiki says that pm-utils is recommend for suspending to RAM because it can handle such things (i.e. restore as much as possible). Is there anything I must configure for this to work? If not, how can I set a custom script to be run after wake-up from pm-suspend?

Offline

#2 2011-10-16 11:36:12

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: pm-suspend: as normal user without changing sudoers and wake-up issue

For example: https://bbs.archlinux.org/viewtopic.php?id=127962

Edit: did you adjust the hdparm settings in laptop-mode.conf?

Last edited by bohoomil (2011-10-16 11:44:20)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

Board footer

Powered by FluxBB