(In reply to Michael J Gruber from comment #273) > (In reply to Zhang Rui from comment #271) > > The revert patch has been merged by Rafael, and it will show up in v5.1 > > Just for anyone wondering: it's in the stable kernel 5.0.9, also.
I can confirm that the bug has been fixed in the stable kernel 5.0.9 downloaded from https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0.9/
Thank you!
You can find some test I did to check the correct behavior.
~$ uname -sr Linux 5.0.9-050009-generic Plugged ~$ cat /sys/class/power_supply/BAT1/status Charging
Unplugged ~$ cat /sys/class/power_supply/ADP1/online 0 ~$ cat /sys/class/power_supply/BAT1/status Discharging
Replugged ~$ cat /sys/class/power_supply/ADP1/online 1 ~$ cat /sys/class/power_supply/BAT1/status Charging
(In reply to Michael J Gruber from comment #273)
> (In reply to Zhang Rui from comment #271)
> > The revert patch has been merged by Rafael, and it will show up in v5.1
>
> Just for anyone wondering: it's in the stable kernel 5.0.9, also.
I can confirm that the bug has been fixed in the stable kernel 5.0.9 downloaded from https:/ /kernel. ubuntu. com/~kernel- ppa/mainline/ v5.0.9/
Thank you!
You can find some test I did to check the correct behavior.
~$ uname -sr generic power_supply/ BAT1/status
Linux 5.0.9-050009-
Plugged
~$ cat /sys/class/
Charging
Unplugged power_supply/ ADP1/online power_supply/ BAT1/status
~$ cat /sys/class/
0
~$ cat /sys/class/
Discharging
Replugged power_supply/ ADP1/online power_supply/ BAT1/status
~$ cat /sys/class/
1
~$ cat /sys/class/
Charging