DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 26th March 2015
kmike kmike is offline
New User
 
Join Date: Mar 2015
Posts: 6
Default Shutting down on low battery

What's the recommended way to force a laptop to shut down when the battery gets too low? I know the Gnome and KDE ports claim to have this functionality, but I'm not running a desktop manager.

I accidentally ran out of juice the other day and the laptop turned off without syncing. The filesystems were mostly ok, but I lost four of the nine cells in the battery.

Since then I've put a rule in sensorsd.conf to run shutdown when the battery gets too low, but it seems like this might something that is handled automatically by the ACPI or APM subsystem. But I can't find any setting that might control this. I am seeing a low capacity sensor (hw.sensors.acpibat0.watthour2) which is currently showing 0.02 Ah, but that is not settable and I don't think the OS uses it for anything.

The only thing google turned up was a blog post that described using a cron job to check the battery level, which sounds kludgier than just using sensord.

Last edited by kmike; 27th March 2015 at 01:51 PM. Reason: misspelled sensorsd
Reply With Quote
 


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
Beep low battery tixx8542 OpenBSD General 8 25th December 2014 01:10 PM
dying battery always blinks .. is it a risk ? daemonfowl General Hardware 11 25th July 2012 12:13 PM
automatic or timed suspend on battery asemisldkfj OpenBSD General 3 25th May 2011 11:55 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


All times are GMT. The time now is 06:56 PM.


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