maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Command on low battery level (https://talk.maemo.org/showthread.php?t=69589)

mase 2011-02-09 18:12

Command on low battery level
 
Hi!
Is there a way to execute a command when the battery level is low?
I don't want to do a dbus polling.

Creamy Goodness 2011-02-09 19:29

Re: Command on low battery level
 
I think you need to explain what is wrong with dbus, and if you're trying to delay the bme shutdown to run a script or what.
You can use sysfs instead of dbus or pay someone to watch the status indicator and type a command when it looks low. I have no idea what your requirements are...
Maybe you can figure out how to use conky to do it
http://crunchbanglinux.org/forums/to...ttery-warning/
or QBW
http://wiki.maemo.org/Queen_BeeCon_W...nd_Interceptor

mase 2011-02-10 04:04

Re: Command on low battery level
 
I only want to play a sound on low battery level.

N900@900MHz 2011-02-10 08:55

Re: Command on low battery level
 
Quote:

Originally Posted by mase (Post 940619)
I only want to play a sound on low battery level.

it does that by default.....:D

nicolai 2011-02-10 09:08

Re: Command on low battery level
 
Quote:

Originally Posted by mase (Post 940172)
Hi!
Is there a way to execute a command when the battery level is low?

I would say dbus-scripts
Quote:

Originally Posted by mase (Post 940172)
I don't want to do a dbus polling.

Battery level is send over dbus anyway.


All times are GMT. The time now is 11:02.

vBulletin® Version 3.8.8