Resurrection of Indicator Upower
-
@paulcarroty
I can see on github that v0.5 has been released.
But only v0.4 seems to be available on the open store. -
@Eric-H probably the store review still in progress.
-
@paulcarroty
Ok.
Thanks for your work. -
Hi @Eric-H
Here is an explanation:
-
@paulcarroty
I tested the 0.5 release on surya and I can confirm that it works as expected.Regarding the udev rule, it works perfectly with permissions 0666.
But if I try 0664, it no longer works…
What is the group of the/sys/class/power_supply/battery/charging_enabled
file on other devices? -
@Eric-H
miatoll-rwxrwxrwx 1 system system 4,0K led 19 12:40 /sys/class/power_supply/battery/charging_enabled
-
@Eric-H try the next rule with 0664:
ACTION=="add|change", SUBSYSTEM=="power_supply", KERNEL=="battery", RUN+="/bin/chmod 0664 /sys/class/power_supply/%k/charging_enabled", RUN+="/bin/chown phablet /sys/class/power_supply/%k/charging_enabled"
-
@paulcarroty
I think it's indeed the right approach.
I will confirm today that it works. -
@paulcarroty
The udev rule is working properly:
-rw-rw-r-- 1 phablet system 4096 janv. 23 09:08 /sys/class/power_supply/battery/charging_enabled
And the content ofcharging_enabled
goes well from 1 to 0 when the charge exceeds 85%.But, despite this, the device continues to charge beyond 85 % !
(I believe that, on surya and karna, we must have to write in another file.
I will try with `/sys/class/power_supply/battery/battery_charging_enabled ) -
@paulcarroty
According to https://android.stackexchange.com/questions/200032/difference-between-system-files-charging-enabled-vs-battery-charging-enabledbattery-charging-enabled
has a different behavior thancharging-enabled
.
So I will just make a MR to add the above udev rule in surya and karna.
Thanks for your work -
On my N100 I don't have /sys/class/power_supply/battery/charging_enabled but instead I have /sys/class/power_supply/battery/battery_charging_enabled