Re: [jornada] a kernel for the 720 with irda working

From: Jacek Lipkowski <sq5bpf_at_acid.ch.pw.edu.pl>
Date: Thu, 6 Jan 2005 11:42:40 +0100 (CET)

On Wed, 29 Dec 2004, Kye Connect wrote:

> i tried your source and it is compiling and booting (native compiling
> on the j720 with a gcc-2.95 :-)).

congratulations :) could you put the toolchain binaries up for download?

> a cat on the battery file brings up some values (i just will have to
> figure out what they actually stand for but this will have to wait, no
> time in the moment) that are changing and a change of the powersupply is
> recognised

these values are probably voltage

for the main battery values about 0x200 are the low battery threshold, and
the battery charges to around 0x298. during the charging process i've seen
as high as 0x366

i don't have the backup battery installed, so it's usually 0 (sometimes
1, probably the adc offset is not set very well, or there is some trickle
current)

the battery state is takes from the following gpios (found out by using
haret in wince):
gpio 4:
1 - jornada is running from battery
0 - jornada is running from ac power

gpio 26:
1 - the battery is fully charged
0 - the battery is charging

you look at the netbsd sources (they are interpreting the battery values
incorrectly, since they only interpret 8 bits, not 10):
sys/arch/hpcarm/dev/j720ssp.c (pmdata[0] is the main_battery&0xff,
main_battery-XX where XX is around 0x1f0 would probably be wiser):

api->minutes_left = (pmdata[0] * 840) / 170;
api->battery_life = (pmdata[0] * 100) / 170;

> an echo "XX" > brightness does not change the brightness

130-255 is usable on my jornada (255 is still readable)

> an echo "XX" > contrast does change the contrast, but just one time.

70-180 is usable on my jornada

the brightness and contrast settings are 255 - low 0 - high, you probably
used a low number, and didn't see any change.

you can turn the screen off with ldd 0-2.

i usually use 250 for brightness and 140 for contrast (the screen is dark
but readable)

jacek
Received on Thu Jan 06 2005 - 05:49:21 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:26:19 EDT