Cannot enter sleep mode as non-root user (Operation not permitted)

Polytropon freebsd at
Fri Apr 15 16:15:04 UTC 2016

On Sat, 16 Apr 2016 00:24:17 +1000 (EST), Ian Smith wrote:
> In freebsd-questions Digest, Vol 619, Issue 5, Message: 13
> On Wed, 13 Apr 2016 22:30:38 -0400 Jason Hunt <jhunt at> wrote:
>  > When attempting to enter sleep mode as a non-root user, I receive the error:
>  > acpiconf: request sleep type (3) failed: Operation not permitted
> Correct.
>  > Searching online yielded a suggestion that the user must be a member of
>  > wheel, however my account is in the wheel and operator groups (confirmed by
>  > running /usr/bin/id)
> smithi on t23% id -p
> uid     smithi
> groups  smithi wheel operator staff dialer network vboxusers
> smithi on t23% acpiconf -s3
> acpiconf: request sleep type (3) failed: Operation not permitted
> Being in wheel just means you can su root, and only root can suspend the 
> system .. unless you have a suspend button .. or know root's password :)

That is the key information: The program must be run by root.
Being in the operator or wheel group is not sufficient.

>  > Does anyone have suggestions for how to troubleshoot this?
> Revise expectations or hack acpiconf.c :)

Or use a program like su, sudo, or super, for example like this:

	% sudo acpiconf -s3

which should work as expected. It's possible to assign this command
to a shell alias or even to a key (or key combination).

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list