On Wed, Sep 30, 2009 at 05:02:26PM +0100, Richard Hughes wrote: > 2009/9/30 Enrico Zini <enr...@enricozini.org>: > > In dkp-device-supply.c, it seems that if "online" is there, then it's a > > line_power: > > Attached is a patch that decides based on the "type" value instead. > > Right, I guess type is a newer sysfs key. I've rejigged your patch a > bit (but kept your logic) and I've attached it to this email for your > reference. I've applied it to git master now, thanks.
Fantastic. Your patch looks indeed better. Don't you need to g_free device_type? Small disclaimer: I did not find any documentation about "type", I've just seen it there, both on the FreeRunner with 2.6.29 and in my amd64 laptop with 2.6.30. However, I don't see any problem in using it, and there's a fallback. > > But the battery information returned is rather incomplete: > > POWER_SUPPLY_CHARGE_FULL=1122229 > > POWER_SUPPLY_CHARGE_NOW=1122229 > > Hmm, that should work fine as we use the voltage to convert mA to mW. > Could you send your daemon verbose log and I'll see what's going > wrong. Thanks. Attached is the log. I've disconnected the phone from the USB power supply leaving to run on battery only, then run this a few times: devkit-power -e devkit-power -i /org/freedesktop/DeviceKit/Power/devices/battery_battery The problem seems to be here: /* used to convert A to W later */ voltage_design = sysfs_get_double (native_path, "voltage_max_design") / 1000000.0; if (voltage_design < 1.00) { voltage_design = sysfs_get_double (native_path, "voltage_min_design") / 1000000.0; if (voltage_design < 1.00) { egg_debug ("using present voltage as design voltage"); voltage_design = sysfs_get_double (native_path, "voltage_present") / 1000000.0; } } On the FreeRunner, there is no voltage_max_design, voltage_min_design or voltage_present. There is however a voltage_now, so if I change it like this, it seems to work, although I have no idea whether the use of voltage_now is sound: /* used to convert A to W later */ voltage_design = sysfs_get_double (native_path, "voltage_max_design") / 1000000.0; if (voltage_design < 1.00) { voltage_design = sysfs_get_double (native_path, "voltage_min_design") / 1000000.0; if (voltage_design < 1.00) { egg_debug ("using present voltage as design voltage"); voltage_design = sysfs_get_double (native_path, "voltage_present") / 1000000.0; if (voltage_design < 1.00) { egg_debug ("using voltage_now as design voltage"); voltage_design = sysfs_get_double (native_path, "voltage_now") / 1000000.0; } } } Patch attached. For your reference, here is the list of what is available: # ls /sys/class/power_supply/battery/ capacity current_now online status temp type charge_full device power subsystem time_to_empty_now uevent charge_now health present technology time_to_full_now voltage_now Ciao, Enrico -- GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <enr...@enricozini.org>
TI:22:48:07 TH:0x2cc10 FI:egg-debug.c FN:egg_debug_init,306 - Verbose debugging 1 (on console 0)DKP_VERBOSE TI:22:48:07 TH:0x2cc10 FI:dkp-main.c FN:main,169 - Starting devkit-power-daemon version 010 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_register_power_daemon,1032 - registering subsystem : power_supply TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_register_power_daemon,1032 - registering subsystem : usb TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_register_power_daemon,1032 - registering subsystem : tty TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_register_power_daemon,1032 - registering subsystem : input NP /sys/class/power_supply/ac DT Mains TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_register_device,859 - object path = /org/freedesktop/DeviceKit/Power/devices/line_power_ac TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_refresh_internal,720 - added native-path: /sys/class/power_supply/ac TI:22:48:07 TH:0x2cc10 FI:dkp-device-list.c FN:dkp_device_list_insert,85 - added /sys/class/power_supply/ac NP /sys/class/power_supply/adapter DT Mains TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_register_device,859 - object path = /org/freedesktop/DeviceKit/Power/devices/line_power_adapter TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_refresh_internal,720 - added native-path: /sys/class/power_supply/adapter TI:22:48:07 TH:0x2cc10 FI:dkp-device-list.c FN:dkp_device_list_insert,85 - added /sys/class/power_supply/adapter NP /sys/class/power_supply/battery DT Battery TI:22:48:07 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage *** WARNING *** TI:22:48:07 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,431 - correcting energy_full (0.000000) using energy_full_design (0.000000) *** WARNING *** TI:22:48:07 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,467 - unknown status string: Not charging TI:22:48:07 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,555 - guessing battery state 'fully-charged' using global on-battery:0 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_register_device,859 - object path = /org/freedesktop/DeviceKit/Power/devices/battery_battery TI:22:48:07 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage *** WARNING *** TI:22:48:07 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,467 - unknown status string: Not charging TI:22:48:07 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,555 - guessing battery state 'fully-charged' using global on-battery:0 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_refresh_internal,720 - added native-path: /sys/class/power_supply/battery TI:22:48:07 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_set_id,658 - using id: generic_id TI:22:48:07 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_array_from_file,459 - failed to get data from /var/lib/DeviceKit-power/history-rate-generic_id.dat as file does not exist TI:22:48:07 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_array_from_file,459 - failed to get data from /var/lib/DeviceKit-power/history-charge-generic_id.dat as file does not exist TI:22:48:07 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_array_from_file,459 - failed to get data from /var/lib/DeviceKit-power/history-time-full-generic_id.dat as file does not exist TI:22:48:07 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_array_from_file,459 - failed to get data from /var/lib/DeviceKit-power/history-time-empty-generic_id.dat as file does not exist TI:22:48:07 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_schedule_save,595 - saving in 600 seconds TI:22:48:07 TH:0x2cc10 FI:dkp-device-list.c FN:dkp_device_list_insert,85 - added /sys/class/power_supply/battery NP /sys/class/power_supply/usb DT USB TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_register_device,859 - object path = /org/freedesktop/DeviceKit/Power/devices/line_power_usb TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_refresh_internal,720 - added native-path: /sys/class/power_supply/usb TI:22:48:07 TH:0x2cc10 FI:dkp-device-list.c FN:dkp_device_list_insert,85 - added /sys/class/power_supply/usb TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x42828 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46800 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/devices/platform/s3c-ohci/usb1 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x42918 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x468e0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/devices/platform/s3c-ohci/usb1/1-0:1.0 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x469c0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/console TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46aa0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/ptmx TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46b80 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/s3c2410_serial0 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46c60 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/s3c2410_serial1 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46d40 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/s3c2410_serial2 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46d40 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46c60 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty0 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46b80 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty1 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46aa0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty10 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x469c0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty11 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x468e0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty12 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46800 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty13 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46800 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty14 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x468e0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty15 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x469c0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty16 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46aa0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty17 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46b80 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty18 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46c60 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty19 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46d40 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty2 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46d40 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty20 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46c60 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty21 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46b80 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty22 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46aa0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty23 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x469c0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty24 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x468e0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty25 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46800 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty26 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46800 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty27 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x468e0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty28 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x469c0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty29 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46aa0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty3 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46b80 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty30 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46c60 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty31 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46d40 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty32 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46d40 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty33 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46c60 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty34 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46b80 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty35 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46aa0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty36 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x469c0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty37 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x468e0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty38 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46800 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty39 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46800 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty4 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x468e0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty40 TI:22:48:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x469c0 TI:22:48:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty41 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46aa0 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty42 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46b80 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty43 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46c60 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty44 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46d40 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty45 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46d40 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty46 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46c60 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty47 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46b80 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty48 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46aa0 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty49 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x469c0 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty5 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x468e0 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty50 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46800 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty51 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46800 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty52 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x468e0 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty53 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x469c0 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty54 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46aa0 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty55 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46b80 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty56 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46c60 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty57 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46d40 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty58 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46d40 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty59 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46c60 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty6 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46b80 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty60 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46aa0 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty61 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x469c0 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty62 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x468e0 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty63 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46800 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty7 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x46800 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty8 TI:22:48:08 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_coldplug,540 - failed to coldplug 0x468e0 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/tty/tty9 TI:22:48:08 TH:0x2cc10 FI:dkp-input.c FN:dkp_input_coldplug,185 - not a switch [/sys/class/input/input0/../capabilities/sw] TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/input/input0 TI:22:48:08 TH:0x2cc10 FI:dkp-input.c FN:dkp_input_coldplug,200 - not one bitmask entry for /sys/class/input/input0/event0 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/input/input0/event0 TI:22:48:08 TH:0x2cc10 FI:dkp-input.c FN:dkp_input_coldplug,185 - not a switch [/sys/class/input/input1/../capabilities/sw] TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/input/input1 TI:22:48:08 TH:0x2cc10 FI:dkp-input.c FN:dkp_input_coldplug,200 - not one bitmask entry for /sys/class/input/input1/event1 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/input/input1/event1 TI:22:48:08 TH:0x2cc10 FI:dkp-input.c FN:dkp_input_coldplug,185 - not a switch [/sys/class/input/input2/../capabilities/sw] TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/input/input2 TI:22:48:08 TH:0x2cc10 FI:dkp-input.c FN:dkp_input_coldplug,200 - not one bitmask entry for /sys/class/input/input2/event2 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/input/input2/event2 TI:22:48:08 TH:0x2cc10 FI:dkp-input.c FN:dkp_input_coldplug,185 - not a switch [/sys/class/input/input3/../capabilities/sw] TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/input/input3 TI:22:48:08 TH:0x2cc10 FI:dkp-input.c FN:dkp_input_coldplug,200 - not one bitmask entry for /sys/class/input/input3/event3 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/input/input3/event3 TI:22:48:08 TH:0x2cc10 FI:dkp-input.c FN:dkp_input_coldplug,185 - not a switch [/sys/class/input/input4/../capabilities/sw] TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/input/input4 TI:22:48:08 TH:0x2cc10 FI:dkp-input.c FN:dkp_input_coldplug,207 - not a lid: /sys/class/input/input4/event4 TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/input/input4/event4 TI:22:48:08 TH:0x2cc10 FI:dkp-input.c FN:dkp_input_coldplug,185 - not a switch [/sys/class/input/mice/../capabilities/sw] TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_add,826 - not adding device /sys/class/input/mice TI:22:48:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_set_pmutils_powersave,610 - excuting command: /usr/sbin/pm-powersave false TI:22:48:28 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_uevent_signal_handler_cb,882 - change /sys/class/power_supply/usb TI:22:48:28 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,674 - changed /org/freedesktop/DeviceKit/Power/devices/line_power_usb TI:22:48:28 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_emit_changed,803 - emitting changed on /sys/class/power_supply/usb TI:22:48:28 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:48:28 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:48:28 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,697 - now on_battery = yes TI:22:48:28 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_set_pmutils_powersave,610 - excuting command: /usr/sbin/pm-powersave true TI:22:48:28 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,706 - now low_battery = yes TI:22:48:28 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_uevent_signal_handler_cb,882 - change /sys/class/power_supply/adapter TI:22:48:28 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,674 - changed /org/freedesktop/DeviceKit/Power/devices/line_power_adapter TI:22:48:28 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_emit_changed,803 - emitting changed on /sys/class/power_supply/adapter TI:22:48:28 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:48:28 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:48:28 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_uevent_signal_handler_cb,882 - change /sys/class/power_supply/ac TI:22:48:28 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,674 - changed /org/freedesktop/DeviceKit/Power/devices/line_power_ac TI:22:48:28 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_emit_changed,803 - emitting changed on /sys/class/power_supply/ac TI:22:48:28 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:48:28 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:48:32 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_refresh_battery_devices_cb,654 - doing the delayed refresh TI:22:48:32 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:48:32 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:48:32 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_refresh_battery_devices_cb,654 - doing the delayed refresh TI:22:48:32 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:48:32 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:48:32 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_refresh_battery_devices_cb,654 - doing the delayed refresh TI:22:48:32 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:48:32 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:48:34 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_array_limit_resolution,127 - length of array (before) 0 TI:22:48:34 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_array_limit_resolution,127 - length of array (before) 0 TI:22:48:54 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_uevent_signal_handler_cb,882 - change /sys/class/power_supply/battery TI:22:48:54 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,674 - changed /org/freedesktop/DeviceKit/Power/devices/battery_battery TI:22:48:54 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:48:54 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:48:54 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_emit_changed,803 - emitting changed on /sys/class/power_supply/battery TI:22:49:19 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_uevent_signal_handler_cb,882 - change /sys/class/power_supply/battery TI:22:49:19 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,674 - changed /org/freedesktop/DeviceKit/Power/devices/battery_battery TI:22:49:19 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:49:19 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:49:19 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_emit_changed,803 - emitting changed on /sys/class/power_supply/battery TI:22:49:24 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_array_limit_resolution,127 - length of array (before) 0 TI:22:49:24 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_array_limit_resolution,127 - length of array (before) 0 TI:22:49:36 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_array_limit_resolution,127 - length of array (before) 0 TI:22:49:36 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_array_limit_resolution,127 - length of array (before) 0 TI:22:49:44 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_array_limit_resolution,127 - length of array (before) 0 TI:22:49:44 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_array_limit_resolution,127 - length of array (before) 0 TI:22:49:44 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_uevent_signal_handler_cb,882 - change /sys/class/power_supply/battery TI:22:49:44 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,674 - changed /org/freedesktop/DeviceKit/Power/devices/battery_battery TI:22:49:44 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:49:44 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:49:44 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_emit_changed,803 - emitting changed on /sys/class/power_supply/battery TI:22:49:58 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_array_limit_resolution,127 - length of array (before) 0 TI:22:49:58 TH:0x2cc10 FI:dkp-history.c FN:dkp_history_array_limit_resolution,127 - length of array (before) 0 TI:22:50:04 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_uevent_signal_handler_cb,882 - change /sys/class/power_supply/usb TI:22:50:04 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,674 - changed /org/freedesktop/DeviceKit/Power/devices/line_power_usb TI:22:50:04 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_emit_changed,803 - emitting changed on /sys/class/power_supply/usb TI:22:50:04 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage *** WARNING *** TI:22:50:04 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,467 - unknown status string: Not charging TI:22:50:04 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,555 - guessing battery state 'discharging' using global on-battery:1 TI:22:50:04 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_uevent_signal_handler_cb,882 - change /sys/class/power_supply/adapter TI:22:50:04 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,674 - changed /org/freedesktop/DeviceKit/Power/devices/line_power_adapter TI:22:50:04 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_emit_changed,803 - emitting changed on /sys/class/power_supply/adapter TI:22:50:04 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage *** WARNING *** TI:22:50:04 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,467 - unknown status string: Not charging TI:22:50:04 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,555 - guessing battery state 'discharging' using global on-battery:1 TI:22:50:04 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_uevent_signal_handler_cb,882 - change /sys/class/power_supply/ac TI:22:50:04 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,674 - changed /org/freedesktop/DeviceKit/Power/devices/line_power_ac TI:22:50:04 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_emit_changed,803 - emitting changed on /sys/class/power_supply/ac TI:22:50:04 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage *** WARNING *** TI:22:50:04 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,467 - unknown status string: Not charging TI:22:50:04 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,555 - guessing battery state 'discharging' using global on-battery:1 TI:22:50:04 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_uevent_signal_handler_cb,882 - change /sys/class/power_supply/battery TI:22:50:04 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,674 - changed /org/freedesktop/DeviceKit/Power/devices/battery_battery TI:22:50:04 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage *** WARNING *** TI:22:50:04 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,467 - unknown status string: Not charging TI:22:50:04 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,555 - guessing battery state 'discharging' using global on-battery:1 TI:22:50:04 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_emit_changed,803 - emitting changed on /sys/class/power_supply/battery TI:22:50:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_uevent_signal_handler_cb,882 - change /sys/class/power_supply/usb TI:22:50:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,674 - changed /org/freedesktop/DeviceKit/Power/devices/line_power_usb TI:22:50:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_emit_changed,803 - emitting changed on /sys/class/power_supply/usb TI:22:50:07 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:50:07 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:50:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,697 - now on_battery = no TI:22:50:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_set_pmutils_powersave,610 - excuting command: /usr/sbin/pm-powersave false TI:22:50:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,706 - now low_battery = no TI:22:50:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_uevent_signal_handler_cb,882 - change /sys/class/power_supply/battery TI:22:50:07 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_device_changed,674 - changed /org/freedesktop/DeviceKit/Power/devices/battery_battery TI:22:50:07 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:50:07 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:50:07 TH:0x2cc10 FI:dkp-device.c FN:dkp_device_emit_changed,803 - emitting changed on /sys/class/power_supply/battery TI:22:50:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_refresh_battery_devices_cb,654 - doing the delayed refresh TI:22:50:08 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:50:08 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:50:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_refresh_battery_devices_cb,654 - doing the delayed refresh TI:22:50:08 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:50:08 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:50:08 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_refresh_battery_devices_cb,654 - doing the delayed refresh TI:22:50:08 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:50:08 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:50:11 TH:0x2cc10 FI:dkp-daemon.c FN:dkp_daemon_refresh_battery_devices_cb,654 - doing the delayed refresh TI:22:50:11 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,367 - using present voltage as design voltage TI:22:50:11 TH:0x2cc10 FI:dkp-device-supply.c FN:dkp_device_supply_refresh_battery,473 - resetting unknown timeout after 0 retries TI:22:50:16 TH:0x2cc10 FI:dkp-main.c FN:dkp_main_sigint_handler,107 - Handling SIGINT
diff --git a/src/dkp-device-supply.c b/src/dkp-device-supply.c index b54f59c..3c6209c 100644 --- a/src/dkp-device-supply.c +++ b/src/dkp-device-supply.c @@ -367,6 +367,11 @@ dkp_device_supply_refresh_battery (DkpDeviceSupply *supply) egg_debug ("using present voltage as design voltage"); voltage_design = sysfs_get_double (native_path, "voltage_present") / 1000000.0; } + if (voltage_design < 1.00) + { + egg_debug ("using voltage_now as design voltage"); + voltage_design = sysfs_get_double (native_path, "voltage_now") / 1000000.0; + } } /* initial values */
signature.asc
Description: Digital signature
_______________________________________________ Smartphones-userland mailing list Smartphones-userland@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland