Both on 9.10 and 10.04, the pmu_battery module is not loaded so ibook battery detection does not work.
To fix the problem just do modprobe pmu_battery.
It will be great to have a native detection of ibook g4 battery.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-18-powerpc 2.6.32-18.27
Regression: No
Reproducible: Yes
TestedUpstream: No
ProcVersionSignature: Ubuntu 2.6.32-18.27-powerpc 2.6.32.10+drm33.1
Uname: Linux 2.6.32-18-powerpc ppc
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
AplayDevices:
**** List of PLAYBACK Hardware Devices ****
card 0: SoundByLayout [SoundByLayout], device 0: Master []
Subdevices: 1/1
Subdevice #0: subdevice #0
Architecture: powerpc
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: SoundByLayout [SoundByLayout], device 0: Master []
Subdevices: 1/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC0: olivier 1196 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'SoundByLayout'/'SoundByLayout'
Mixer name : 'SoundByLayout'
Components : ''
Controls : 13
Simple ctrls : 12
Date: Wed Mar 31 17:13:58 2010
HibernationDevice: RESUME=/dev/hda5
PciMultimedia:
ProcCmdLine: root=/dev/hda3 ro quiet splash
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.33
SourcePackage: linux
Description of problem:
There is no "Running on Battery" tab on gnome-power- preferences; all settings work as if the computer was always plugged in, and the icon on the notification area is always of a plugged-in computer, with no charge information. When the battery gets too low, the computer just shuts down without warning.
I'm marking it as a g-p-m bug because other programs see the battery just fine. PowerDevil under KDE gives me all options for the battery, as does xfce4-power- manager.
/proc/apm shows the battery status:
$ cat /proc/apm
1.13 1.2 0x02 0x00 0x00 0x01 97% 61 min
hal sees it just fine: op/Hal/ devices/ pmu_battery_ 0_0' charge_ level.current = 2048 (0x800) (int) charge_ level.design = 2126 (0x84e) (int) charge_ level.last_ full = 2126 (0x84e) (int) charge_ level.percentag e = 96 (0x60) (int) charge_ level.rate = 0 (0x0) (int) is_rechargeable = true (bool) rechargeable. is_charging = false (bool) rechargeable. is_discharging = true (bool) remaining_ time = 4096 (0x1000) (int) technology = 'unknown' (string) op/Hal/ devices/ pmu_battery_ 0_0' (string) pmu/battery_ 0' (string)
$ lshal |grep battery
udi = '/org/freedeskt
battery.
battery.
battery.
battery.
battery.
battery.
battery.present = true (bool)
battery.
battery.
battery.
battery.
battery.type = 'primary' (string)
info.capabilities = {'battery'} (string list)
info.category = 'battery' (string)
info.udi = '/org/freedeskt
linux.pmu_path = '/proc/
Version-Release number of selected component (if applicable):
gnome-power- manager- 2.26.1- 3.fc11. ppc
Other components in use: 12-26.20090226g it.fc11. ppc 2.6.29. 3-155.fc11. ppc
hal-0.5.
kernel-
and the desktop power managers: manager- 0.8.0-0. 2.beta1. fc11.ppc workspace- 4.2.3-4. fc11.ppc (for PowerDevil)
xfce4-power-
kdebase-
How reproducible:
Happens every time on my computer, even after reinstalling Rawhide. Not sure if other iBook users have the same problem.
Additional info:
The exact model of the affected laptop:
$ cat /proc/cpuinfo
processor : 0
cpu : 7455, altivec supported
clock : 798.720000MHz
revision : 3.3 (pvr 8001 0303)
bogomips : 48.41
timebase : 18432000
platform : PowerMac
model : PowerBook6,3
machine : PowerBook6,3
motherboard : PowerBook6,3 MacRISC3 Power Macintosh
detected as : 287 (iBook G4)
pmac flags : 0000001b
L2 cache : 256K unified
pmac-generation : NewWorld
Memory : 640 MB