All of lore.kernel.org
 help / color / mirror / Atom feed
* N810 battery notes
@ 2008-11-10  5:11 green
  0 siblings, 0 replies; only message in thread
From: green @ 2008-11-10  5:11 UTC (permalink / raw)
  To: Linux-OMAP List


[-- Attachment #1.1: Type: text/plain, Size: 619 bytes --]

Just some notes for the N810:

- Read battery voltage from /dev/retu with the kcbatt tool here:
http://mrrau.dyndns.org:23280/n800/kcbatt/

- Perhaps other things from this list could be read from /dev/retu the same 
way, but I don't see the time here unfortunately:
http://marc.info/?l=linux-omap&m=120752529631862&w=2

- Set up bme for battery charging (use at your own risk of course):
1. Copy initfs to /root/initfs or somewhere
2. Put the two attached files in there and 'chmod +x' them
3. Run, as root: 'chroot initfs /c_bat' (after each boot)
4. Test; you should be able to charge your battery now

[-- Attachment #1.2: c_start --]
[-- Type: text/plain, Size: 319 bytes --]

#!/bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
mount -t tmpfs none -o size=512K /tmp
mkdir /tmp/dev
mknod /tmp/dev/retu c 10 $( grep retu /proc/misc | cut -d " " -f 2 )
mknod /tmp/dev/tahvo c 10 $( grep tahvo /proc/misc | cut -d " " -f 2 )
dsme -d -l stderr -v 0 -p /usr/lib/dsme/libstartup.so
waitfordsme

[-- Attachment #1.3: c_batt --]
[-- Type: text/plain, Size: 139 bytes --]

#!/bin/sh
if ! test -e /tmp/dsme.pid ; then
 /c_start
fi
dsmetool -f "/usr/bin/bme_$( grep product /proc/component_version | cut -c 13- )"

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-10  5:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-10  5:11 N810 battery notes green

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.