DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th September 2009
Mantazz Mantazz is offline
Shell Scout
 
Join Date: Oct 2008
Posts: 90
Thanked 0 Times in 0 Posts
Default Another ACPI question, 7.2-release

It seems that in 7.2-release I can only invoke the 'zzz' command to suspend my system if I use sudo. On previous (pre-7.x) versions I could do this as any user. Now, if I try to run zzz as a regular user, I get
Quote:
acpiconf: request sleep type (3) failed: Operation not permitted
So I checked the permissions on zzz:
Quote:
> ls -ltd /usr/sbin/zzz
-r-xr-xr-x 1 root wheel 1327 May 1 02:56 /usr/sbin/zzz
So it appears to be world-executable.

I then checked acpiconf:
Quote:
> ls -ltd /usr/sbin/acpiconf
-r-xr-xr-x 1 root wheel 6132 May 1 02:56 /usr/sbin/acpiconf
And this appears to be world-executable as well.

If I attempt 'acpiconf -s3' manually I get the same error I see when I attempt 'zzz'.

I also checked /etc/rc.suspend and /etc/rc.resolve, they are both world-executable as well.

Does anyone have a suggestion for what else I should check to be able to run zzz without sudo?
Reply With Quote
  #2   (View Single Post)  
Old 20th September 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

FreeBSD like OpenBSD routes all power management related commands via the older apm(4) interface.

There should be 2 device nodes in /dev related to apm, group write permission may be required to change such settings.

I'm not entirely sure, I don't really play with power management.. don't own any laptops.. my systems are always on, if I wasn't using them they would simply be off.

EDIT: All of the above is most likely wrong, just noticed that FreeBSD has several sysctl members related to acpi(4) and likely uses them instead, explaining why users cannot control this information. Sorry.

Last edited by BSDfan666; 20th September 2009 at 11:19 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD release to -current: Xenocara question IronForge OpenBSD Installation and Upgrading 4 1st September 2009 05:44 PM
FreeBSD ACPI Power Management, 7.2-release Mantazz FreeBSD Ports and Packages 4 17th August 2009 09:08 PM
how APM & ACPI duke it out to be the default ocicat OpenBSD General 0 23rd June 2009 04:05 AM
FreeBSD 6.2-RELEASE > 7.0-RELEASE Upgrade Marci FreeBSD Installation and Upgrading 2 23rd July 2008 02:10 PM
ACPI - dmesg lumiwa FreeBSD General 3 10th July 2008 03:55 AM


All times are GMT. The time now is 08:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick