current build number: 21
device name: krillin
channel: stable
alias: ubuntu-touch/ubuntu-rtm/14.09
last update: 2015-04-29 08:25:10
version version: 21
version ubuntu: 20150410.1
version device: 20150408-4f14058
version custom: 20150409-665-29-206
I was debugging an upowerd issue with strace and found that the daemon tries to open the following non-existant files every ten seconds:
[pid 2020] 1430314162.277522 open("/sys/devices/platform/battery/power_supply/battery/energy_now", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 2020] 1430314162.283633 open("/sys/devices/platform/battery/power_supply/battery/energy_avg", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 2020] 1430314162.288603 open("/sys/devices/platform/battery/power_supply/battery/manufacturer", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 2020] 1430314162.292523 open("/sys/devices/platform/battery/power_supply/battery/model_name", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 2020] 1430314162.293236 open("/sys/devices/platform/battery/power_supply/battery/serial_number", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 2020] 1430314162.295228 open("/sys/devices/platform/battery/power_supply/battery/energy_full", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 2020] 1430314162.295953 open("/sys/devices/platform/battery/power_supply/battery/energy_full_design", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 2020] 1430314162.296704 open("/sys/devices/platform/battery/power_supply/battery/charge_full", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 2020] 1430314162.297415 open("/sys/devices/platform/battery/power_supply/battery/charge_full_design", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 2020] 1430314162.300221 open("/sys/devices/platform/battery/power_supply/battery/power_now", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 2020] 1430314162.301404 open("/sys/devices/platform/battery/power_supply/battery/charge_now", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 2020] 1430314162.302508 open("/sys/devices/platform/battery/power_supply/battery/charge_avg", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 2020] 1430314162.304173 open("/sys/devices/platform/battery/power_supply/battery/charge_full", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 2020] 1430314162.305134 open("/sys/devices/platform/battery/power_supply/battery/charge_full_design", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 2020] 1430314162.305820 open("/sys/devices/platform/battery/power_supply/battery/current_now", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)