linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Stylus battery reported as having 1% charge even though fully charged
@ 2022-01-25 19:48 Sebastian Arnhold
  2022-01-25 21:46 ` Bastien Nocera
  0 siblings, 1 reply; 6+ messages in thread
From: Sebastian Arnhold @ 2022-01-25 19:48 UTC (permalink / raw)
  To: linux-input

Dear developers,

when using GNOME 41.1 on Wayland, 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 device registers as ELAN9008:00 04F3:2DD4 in GNOME 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 closed my bugreport and relayed me here, since they 
believe it's a bug in the kernel itself.

Can you help me fix this?

Thanks in advance,
Sebastian

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Stylus battery reported as having 1% charge even though fully charged
@ 2022-07-19  9:38 Sebastian Arnhold
  2022-07-21  8:53 ` Bastien Nocera
  0 siblings, 1 reply; 6+ messages in thread
From: Sebastian Arnhold @ 2022-07-19  9:38 UTC (permalink / raw)
  To: linux-input

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?

Thanks in advance!
Sebastian


Attachment 1 - Output of upower -d BEFORE pen switched on and touched 
screen:

Device: 
/org/freedesktop/UPower/devices/battery_hid_0018o04F3o2E12x0001_battery
   native-path:          hid-0018:04F3:2E12.0001-battery
   model:                ELAN9008:00 04F3:2E12
   power supply:         no
   updated:              Do 01 Jan 1970 01:00:00 CET (1658223097 seconds 
ago)
   has history:          yes
   has statistics:       yes
   keyboard
     present:             yes
     rechargeable:        yes
     state:               unknown
     warning-level:       none
     percentage:          0%
     icon-name:          'battery-missing-symbolic'


Attachment 2: Output of upower -d AFTER pen switched on and touched 
screen (resulting in "battery low" message in GNOME):

Device: 
/org/freedesktop/UPower/devices/battery_hid_0018o04F3o2E12x0001_battery
   native-path:          hid-0018:04F3:2E12.0001-battery
   model:                ELAN9008:00 04F3:2E12
   power supply:         no
   updated:              Di 19 Jul 2022 11:33:19 CEST (5 seconds ago)
   has history:          yes
   has statistics:       yes
   keyboard
     present:             yes
     rechargeable:        yes
     state:               discharging
     warning-level:       critical
     percentage:          1%
     icon-name:          'battery-caution-symbolic'



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-07-21 19:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-25 19:48 Stylus battery reported as having 1% charge even though fully charged Sebastian Arnhold
2022-01-25 21:46 ` Bastien Nocera
  -- strict thread matches above, loose matches on Subject: below --
2022-07-19  9:38 Sebastian Arnhold
2022-07-21  8:53 ` Bastien Nocera
2022-07-21 14:39   ` Sebastian Arnhold
2022-07-21 19:32   ` Gregor Riepl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).