Hi list.
Last night I was playing around with the laptop-mode in
2.4.21-ben2.
While checking what pmud reported i saw that it was reporting "minimum
battery" on a fully charged battery. When connecting the psu pmud
reported "maximum ac".
pmud never reports maximum or medium while system is running og battery,
while on ac, pmud always reports "maximum", even if battery state is
low.
is this the way it should work?
anyone able to reproduce?
or an error in my conf files?
Thanx!
Marius
With psu connected:
marius@powerbook ~ $ cat /proc/cpuinfo
cpu : 7455, altivec supported
clock : 867MHz
revision : 3.3 (pvr 8001 0303)
bogomips : 844.35
machine : PowerBook6,1
motherboard : PowerBook6,1 MacRISC3 Power Macintosh
board revision : 00000001
detected as : 287 (PowerBook G4 12")
pmac flags : 0000000a
L2 cache : 256K unified
memory : 384MB
pmac-generation : NewWorld
marius@powerbook ~ $ cat /proc/pmu/info
PMU driver version : 2
PMU firmware version : 0c
AC Power : 1
Battery count : 1
marius@powerbook ~ $ cat /proc/pmu/battery_0
flags : 00000011
charge : 2926
max_charge : 3922
current : -1181
voltage : 11693
time rem. : 8919
powerbook marius # pmud -d -a
pmud[6008]: pmud [treshold = 420, margin = powerbook marius # pmud -d -a
pmud[6008]: pmud [treshold = 420, margin = 15] started
pmud[6008]: opening /dev/adb
pmud[6008]: opening /dev/pmu
pmud[6008]: pmu_op(0xea, ..., version req)
PMU version 12: iBook/G3 Pismo/G4 Titanium
pmud[6008]: PMU version 12: iBook/G3 Pismo/G4 Titanium
pmud[6008]: starting monitoring loop
pmud[6008]: pmu_op(0xdc, ..., switch req)
pmud[6008]: pmu_op(0x6f, ..., smart battery req)
pmud[6008]: pmu_op(0x6f, ..., smart battery req)
pmud[6008]: timeleft = 8549
pmud[6008]: running /etc/power/pwrctl maximum ac
Broadcast message from root (Wed Jul 23 13:02:14 2003):
maximum ac
pmud[6008]: PMU interrupt:
pmud[6008]: 40
pmud[6008]: 14
pmud[6008]: pmu_op(0xdc, ..., switch req)
pmud[6008]: pmu_op(0x6f, ..., smart battery req)
pmud[6008]: pmu_op(0x6f, ..., smart battery req)
pmud[6008]: timeleft = -1
pmud[6008]: PMU interrupt:
pmud[6008]: 40
pmud[6008]: 14
pmud[6008]: pmu_op(0xdc, ..., switch req)
pmud[6008]: pmu_op(0x6f, ..., smart battery req)
pmud[6008]: pmu_op(0x6f, ..., smart battery req)
pmud[6008]: timeleft = -1
15] started
pmud[6008]: opening /dev/adb
pmud[6008]: opening /dev/pmu
pmud[6008]: pmu_op(0xea, ..., version req)
PMU version 12: iBook/G3 Pismo/G4 Titanium
pmud[6008]: PMU version 12: iBook/G3 Pismo/G4 Titanium
pmud[6008]: starting monitoring loop
pmud[6008]: pmu_op(0xdc, ..., switch req)
pmud[6008]: pmu_op(0x6f, ..., smart battery req)
pmud[6008]: pmu_op(0x6f, ..., smart battery req)
pmud[6008]: timeleft = 8549
pmud[6008]: running /etc/power/pwrctl maximum ac
Broadcast message from root (Wed Jul 23 13:02:14 2003):
maximum ac
pmud[6008]: PMU interrupt:
pmud[6008]: 40
pmud[6008]: 14
pmud[6008]: pmu_op(0xdc, ..., switch req)
pmud[6008]: pmu_op(0x6f, ..., smart battery req)
pmud[6008]: pmu_op(0x6f, ..., smart battery req)
pmud[6008]: timeleft = -1
pmud[6008]: PMU interrupt:
pmud[6008]: 40
pmud[6008]: 14
pmud[6008]: pmu_op(0xdc, ..., switch req)
pmud[6008]: pmu_op(0x6f, ..., smart battery req)
pmud[6008]: pmu_op(0x6f, ..., smart battery req)
pmud[6008]: timeleft = -1
Whitout psu:
marius@powerbook ~ $ cat /proc/cpuinfo
cpu : 7455, altivec supported
clock : 533MHz
revision : 3.3 (pvr 8001 0303)
bogomips : 519.08
machine : PowerBook6,1
motherboard : PowerBook6,1 MacRISC3 Power Macintosh
board revision : 00000001
detected as : 287 (PowerBook G4 12")
pmac flags : 0000000a
L2 cache : 256K unified
memory : 384MB
pmac-generation : NewWorld
marius@powerbook ~ $ cat /proc/pmu/info
PMU driver version : 2
PMU firmware version : 0c
AC Power : 0
Battery count : 1
marius@powerbook ~ $ cat /proc/pmu/battery_0
flags : 00000011
charge : 2941
max_charge : 3922
current : -1167
voltage : 11752
time rem. : 9072
powerbook marius # pmud -d -a
pmud[5995]: pmud [treshold = 420, margin = 15] started
pmud[5995]: opening /dev/adb
pmud[5995]: opening /dev/pmu
pmud[5995]: pmu_op(0xea, ..., version req)
PMU version 12: iBook/G3 Pismo/G4 Titanium
pmud[5995]: PMU version 12: iBook/G3 Pismo/G4 Titanium
pmud[5995]: starting monitoring loop
pmud[5995]: pmu_op(0xdc, ..., switch req)
pmud[5995]: pmu_op(0x6f, ..., smart battery req)
pmud[5995]: pmu_op(0x6f, ..., smart battery req)
pmud[5995]: timeleft = 8294
pmud[5995]: running /etc/power/pwrctl minimum battery
Broadcast message from root (Wed Jul 23 13:01:13 2003):
minimum battery
pmud[5995]: PMU interrupt:
pmud[5995]: 40
pmud[5995]: 10
pmud[5995]: pmu_op(0xdc, ..., switch req)
pmud[5995]: pmu_op(0x6f, ..., smart battery req)
pmud[5995]: pmu_op(0x6f, ..., smart battery req)
pmud[5995]: timeleft = 8294
pmud[5995]: PMU interrupt:
pmud[5995]: 40
pmud[5995]: 10
pmud[5995]: pmu_op(0xdc, ..., switch req)
pmud[5995]: pmu_op(0x6f, ..., smart battery req)
pmud[5995]: pmu_op(0x6f, ..., smart battery req)
pmud[5995]: timeleft = 8294
--
gentoo-ppc-user@g.o mailing list
|