DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th May 2011
asemisldkfj
-Guest-
 
Posts: n/a
Default automatic or timed suspend on battery

is there any way on OpenBSD to do an acpi suspend/sleep after a certain idle time while on battery power? I know how to do trigger this with the lid switch and from the command line, but I'd like the laptop to go to sleep after 15 or 20 minutes of idle time on battery power.

or if this isn't possible, sleeping when the battery gets to a critical level would be nice. I think I'd be able to do this pretty easily with a shell script and cron, but I'd really prefer to be able to set an idle timeout. any ideas? I can seem to find any documentation on this.

and I would like to do this with minimal third-party software. no gnome power manager or anything like that.
Reply With Quote
  #2   (View Single Post)  
Old 25th May 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

No gnome power manager even exists for BSD, so no worries.. it's not even an option.

I don't believe their is any mechanism to automatically suspend the system when idle for a specified period, however, as you said.. you could script something and run it with cron(8), but constant polling would be required which would skew the calculations, and what of false positives? even a system in use running GUI programs could be mostly idle with brief unnoticeable activity spikes.

Closing the lid (..after toggling the sysctl), and perhaps executing zzz manually are probably the best options.. OpenBSD has two battery monitors now sysutils/xbatt and sysutils/xbattbar, so that might be of assistance.

Good luck though, if you find a good solution, let us know.
Reply With Quote
  #3   (View Single Post)  
Old 25th May 2011
asemisldkfj
-Guest-
 
Posts: n/a
Default

I think I'll be ok with just the lid switch. I shouldn't be leaving my laptop running on battery power unattended at all anyway.

and gnome-power-manager is in ports now.
Reply With Quote
  #4   (View Single Post)  
Old 25th May 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Hmm, does it support apm(4)?
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
Wireless router with USB port/longest battery life? Emile General Hardware 0 19th March 2011 02:54 PM
Lost battery status in KDE4, FBSD 7.2-release Mantazz FreeBSD Ports and Packages 0 3rd January 2010 02:00 AM
Wireless networking xor battery monitor Nobber OpenBSD General 5 27th February 2009 12:25 PM
Hard drive error on boot 'READ_DMA timed out' map7 FreeBSD General 7 19th November 2008 06:07 AM
Automatic Thread Subscription When Posting? JMJ_coder Feedback and Suggestions 6 6th May 2008 03:20 AM


All times are GMT. The time now is 08:45 AM.


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