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 16th August 2009
Mantazz Mantazz is offline
Shell Scout
 
Join Date: Oct 2008
Posts: 90
Thanked 0 Times in 0 Posts
Default FreeBSD ACPI Power Management, 7.2-release

First I will say that as far as my laptop is concerned power management in 7.2 is dramatically better than it was in 6.x. My laptop now sleeps properly (with the zzz command) and comes around successfully (mostly).

However there are two small issues I am trying to solve.

First, my mouse daemon still dies when I come back out of suspend, I have to 'kill -HUP' to get it back. Is there a way to automate this? I would like to be able to invoke 'zzz' as a non-root user (without sudo preferably) and have it reinitialize the mouse daemon automatically. Currently I have to sudo for zzz and then of course sudo again to 'kill -HUP' on the mouse daemon.

Second, I can't find a way to get my laptop to automatically go to sleep when I close the lid. FreeBSD recognizes the lid switch, but I can't seem to associate it with 'zzz'. I use KDE as my desktop environment, and in power management I can associate actions with closing the lid but suspend is not a choice that it gives me.
Reply With Quote
  #2   (View Single Post)  
Old 16th August 2009
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

Quote:
Originally Posted by Mantazz View Post
First, my mouse daemon still dies when I come back out of suspend, I have to 'kill -HUP' to get it back. Is there a way to automate this? I would like to be able to invoke 'zzz' as a non-root user (without sudo preferably) and have it reinitialize the mouse daemon automatically. Currently I have to sudo for zzz and then of course sudo again to 'kill -HUP' on the mouse daemon.
In /etc/rc.suspend and /etc/rc.resume mate, check man acpiconf for details.

Quote:
Originally Posted by Mantazz View Post
Second, I can't find a way to get my laptop to automatically go to sleep when I close the lid. FreeBSD recognizes the lid switch, but I can't seem to associate it with 'zzz'. I use KDE as my desktop environment, and in power management I can associate actions with closing the lid but suspend is not a choice that it gives me.
You will have to create your custom script to monitor sysctl if your lid is closed, and make some actions when it will happen, but maybe someone will find better sollution.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #3   (View Single Post)  
Old 16th August 2009
Mantazz Mantazz is offline
Shell Scout
 
Join Date: Oct 2008
Posts: 90
Thanked 0 Times in 0 Posts
Default

Thanks, I just hacked my rc.resume file to include '/etc/rc.d/moused restart' and now my mouse works when I wake up my system by opening the lid.

I just need to figure out how to make it do something useful when I close the lid and life will be great.
Reply With Quote
  #4   (View Single Post)  
Old 16th August 2009
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

Quote:
I just need to figure out how to make it do something useful when I close the lid and life will be great.
How you get that info?

By sysctl or dmesg?
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #5   (View Single Post)  
Old 17th August 2009
Mantazz Mantazz is offline
Shell Scout
 
Join Date: Oct 2008
Posts: 90
Thanked 0 Times in 0 Posts
Default

Quote:
How you get that info?

By sysctl or dmesg?
Honestly I haven't figured that part out yet. I do know, however, that if I put my laptop to sleep and close the lid, and then subsequently open the lid, it wakes up correctly.

This happens after using 'zzz' from the command line to invoke the suspend state, with KDE running. If I simply close my lid with KDE running, nothing interesting happens.
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
Another ACPI question, 7.2-release Mantazz FreeBSD Ports and Packages 1 20th September 2009 11:11 PM
FreeBSD 7.2-RELEASE vermaden FreeBSD General 6 12th May 2009 08:33 PM
FreeBSD 7.1-RELEASE is out ... finally ;) vermaden FreeBSD General 20 6th January 2009 04:32 PM
FreeBSD 6.2-RELEASE > 7.0-RELEASE Upgrade Marci FreeBSD Installation and Upgrading 2 23rd July 2008 02:10 PM
pppd on FreeBSD 7.0-RELEASE radcapricorn FreeBSD General 2 6th June 2008 01:10 PM


All times are GMT. The time now is 06:30 AM.


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