From: green <greenfreedom10@gmail.com>
To: Linux-OMAP List <linux-omap@vger.kernel.org>
Subject: N810 battery notes
Date: Sun, 9 Nov 2008 22:11:32 -0700 [thread overview]
Message-ID: <20081110051132.GC8641@swansys> (raw)
[-- 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 --]
reply other threads:[~2008-11-10 5:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081110051132.GC8641@swansys \
--to=greenfreedom10@gmail.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox