Re: Stylus battery reported as having 1% charge even though fully charged

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2022-07-19 at 11:38 +0200, Sebastian Arnhold wrote:
> Dear developers,
> 
> when using GNOME 42.3 on Wayland on my ASUS ExpertBook B5 Flip, it 
> reports my stylus battery to be stuck at 1% all the time, independent
> of 
> its actual charging status. This is also independent from the stylus
> I 
> use, as I've tried with two different ones.
> 
> The battery device registers as ELAN9008:00 04F3:2E12 in GNOME energy
> settings.
> 
> The GNOME developers helped me track the bug down to upower, as
> upower 
> itself shows the charging status to be stuck at 1%. The upower 
> developers then sent me here.
> 
> My kernel version is 5.18 on an x86_64 architecture on Fedora 36. My 
> upower version is 0.99.19.
> 
> Observed behaviour: Kernel reports 1% after pen is switched on and 
> touches the touchscreen for the first time. upower reports this to
> GNOME 
> which then throws a "Battery low"-warning message.
> Expected behaviour: Kernel reporting the correct charging percentage 
> from the pen to upower, or 0% if charging status cannot be
> determined. 
> The latter would be a workaround since 0% seems to be ignored by
> GNOME.
> 
> Can you help me to resolve this bug?

You'll probably want to implement a patch similar to this one:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f3193ea1b6779023334faa72b214ece457e02656

Cheers



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux