[prev in list] [next in list] [prev in thread] [next in thread] 

List:       familiar
Subject:    [Familiar] {announce}{unstable} devpower
From:       Erik Hovland <erik () hovland ! org>
Date:       2006-11-21 22:00:32
Message-ID: 20061121220032.GB16638 () mage ! jpl ! nasa ! gov
[Download RAW message or body]

This announcement is only relevant to h5x5x users. Sorry for the cross
post but it is a follow up to earlier threads on the familiar list.

Some people might remember this thread of discussion:
http://thread.gmane.org/gmane.comp.handhelds.linux.familiar/32169/focus=32169

And this thread:
http://thread.gmane.org/gmane.comp.handhelds.linux.familiar/32123/focus=32123

This announcement is strictly for you h5x5x folk out there. But it
relates to both of those threads.

The new 2.4 kernels coupled with the new at76c503a berlios drivers
remove power driving in the berlios driver. This is largely because of
this bug:
http://bugzilla.handhelds.org/show_bug.cgi?id=1344

And the countless reports about power problems on h5x5x.

I have written up a small proggie which provides root user control of
the devices on the h5x5x that are worth powering up and down. The ipk
for this proggie can be found on my hh.org public page:
http://handhelds.org/~erik/devpower_49-r0.ipk

This will install devpower and some helper scripts.

Typing 'devpower list' lists the devices that can be controlled:
root@ehwaz:~# devpower list
wlan
backlight
lcd
audio
bluetooth

Looking at the file /var/run/devpower.state should tell you the power
state of the available devices:
root@ehwaz:~# cat /var/run/devpower.state
wlan=on
backlight=on
lcd=on
audio=on
bluetooth=on

Call devpower on a device should change the power state and update the
state file:
root@ehwaz:~# devpower wlan off
root@ehwaz:~# cat /var/run/devpower.state
wlan=off
backlight=on
lcd=on
audio=on
bluetooth=on

Calling devpower w/out arguments shows its usae like most unix command
line tools:
root@ehwaz:~# devpower
Usage: devpower {list|<device> {on|off}}

That ought to do it. Let me know if you have any suggestions, bug
reports, flames. I do not yet have a public repo of the code, but I
am working on it. An exported tarball of the current code base is
available in my hh.org public space as well:
http://handhelds.org/~erik/devpower-49.tar.bz2

Thanks!

E

-- 
Erik Hovland
mail: erik AT hovland DOT org
web: http://hovland.org/
PGP/GPG public key available on request
_______________________________________________
The Familiar Linux Distribution
Familiar mailing list
Familiar@handhelds.org
https://handhelds.org/mailman/listinfo/familiar
irc://irc.freenode.net #familiar
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic