Package: chiark-utils-bin Version: 4.2.0 With Linux zealot 3.2.0-3-amd64 #1 SMP Mon Jul 23 04:46:29 UTC 2012 x86_64 GNU/Linux
I see this $ ./xbatmon-simple -debug BAT0: present = 1 online = -1 design_capacity_energy = -1 last_full_capacity_energy = -1 remaining_capacity_energy = -1 present_rate_energy = -1 design_capacity_charge = 5200000 last_full_capacity_charge = 3604000 remaining_capacity_charge = 1590000 present_rate_charge = 2263000 voltage = 12364000 state = 1 type = -1 BAT0: type: not found TOTAL: mask = 0x100 design_capacity = 0.000000 last_full_capacity = 0.000000 remaining_capacity = 0.000000 present_rate = 0.000000 present = 0.000000 online = 0.000000 ^C And indeed: $ egrep . */uevent AC/uevent:POWER_SUPPLY_NAME=AC AC/uevent:POWER_SUPPLY_ONLINE=1 BAT0/uevent:POWER_SUPPLY_NAME=BAT0 BAT0/uevent:POWER_SUPPLY_STATUS=Charging BAT0/uevent:POWER_SUPPLY_PRESENT=1 BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0 BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000 BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12534000 BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=2264000 BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=5200000 BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=3604000 BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=2059000 BAT0/uevent:POWER_SUPPLY_MODEL_NAME=DELL 4H63612 BAT0/uevent:POWER_SUPPLY_MANUFACTURER=SMP BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=1248 $ pwd /sys/class/power_supply $ egrep . */type AC/type:Mains BAT0/type:Battery $ I haven't tried a wheezy i386. xbatmon-simple used to work with a squeeze i386. So this may be an amd64 change or an i386 change. I think this is a kernel bug. Sensible handling of a uevent for a power supply will depend on whether it's battery or mains. However, xbatmon-simple should cope with this bug if possible. Ian. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

