Thanks to several sources (
wiki.laptop.org Ubuntu installation,
wiki.laptop.org XFce, and
OLPC News forums), I managed to get Ubuntu working on my OLPC.
The instructions were pretty straightforward, but the process wasn't entirely painless for me so I thought I'd post a few tips:
- 2G is absolutely fine. My Ubuntu installation with XFce takes up
( Read more... )
Comments 1
olpc# more /sys/devices/platform/olpc-battery.0/power_supply/olpc-battery/status
Discharging
olpc# more /sys/devices/platform/olpc-battery.0/power_supply/olpc-battery/capacity
92
So there's probably some missing mojo with hal-device. Anyway, here's the perl script I put together to go with genmon:
#! /usr/bin/perl
$per = `cat /sys/devices/platform/olpc-battery.0/power_supply/olpc-battery/capac
ity`;
$status = `cat /sys/devices/platform/olpc-battery.0/power_supply/olpc-battery/st
atus`;
chomp($per);
chomp($status);
if ($status eq "Discharging") {
$s = "-";
} elsif ($status == "Charging") {
$s = "+";
}
print "$s", "$per", "%";
Have fun!
Reply
Leave a comment