Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Battery meter #1354

Open
rkv0id opened this issue Nov 2, 2020 · 26 comments
Open

Battery meter #1354

rkv0id opened this issue Nov 2, 2020 · 26 comments

Comments

@rkv0id
Copy link

rkv0id commented Nov 2, 2020

Distribution (run cat /etc/os-release):
NAME="Pop!_OS"
VERSION="20.10"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.10"
VERSION_ID="20.10"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=groovy
UBUNTU_CODENAME=groovy
LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):
None - OS related (maybe or any power management package used on PopOs)

Issue/Bug Description:
From the first day of upating to PopOS 20.10, I started having battery problems. I have a Thinkpad P1 Gen2 laptop. I never actually had this problem and if not pushing it to extreme usage levels I sometimes get 5 to 7 hours of coding/web-browsing.
But after updating, the battery meter is no more giving right information (just 30mins of charging gave me 90% of battery level, but when I unplug it, it doesn't even hold for 15mins)
Apart from that, it sometimes alerts me of a low battery level but then just stops and continue working with the real (sometimes 70% or even more) battery level.

Expected behavior:
Usually I get 5 to 7 hours of coding/light web-browsing

@dmitriy1morozov
Copy link

Same with Thinkpad X1 extreme Gen2 (which is relatively the same laptop except for the graphics card). Looking forward resolution.

@leviport
Copy link
Member

leviport commented Nov 3, 2020

Have you already tried clearing out upower's cache and letting it rebuild? Sometimes those stored statistics lead to inaccuracies. You can clear them with the command sudo rm /var/lib/upower/* after which you will need to give it some time to collect new battery statistics.

@rkv0id
Copy link
Author

rkv0id commented Nov 4, 2020

I did that, but still, doesn't solve the issue.
Also, another problem that I noticed, as the battery meter is no longer trustful i think, the system doesn't notify me of a low battery state, it only does when the battery level is critical and it just hibernates after seconds of that notification.

@leviport
Copy link
Member

leviport commented Nov 4, 2020

Well the battery meter and that notification only act on the data given to them by upower. Can you post the output of upower -d?

@rkv0id
Copy link
Author

rkv0id commented Nov 4, 2020

Sure, here it is:

Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          AC
  power supply:         yes
  updated:              Wed 04 Nov 2020 06:15:16 PM CET (2791 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              yes
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/line_power_ucsi_source_psy_USBC000o001
  native-path:          ucsi-source-psy-USBC000:001
  power supply:         yes
  updated:              Wed 04 Nov 2020 08:24:03 AM CET (38264 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              no
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/line_power_ucsi_source_psy_USBC000o002
  native-path:          ucsi-source-psy-USBC000:002
  power supply:         yes
  updated:              Wed 04 Nov 2020 08:24:03 AM CET (38264 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              no
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               Celxpert
  model:                5B10V98091
  serial:               5161
  power supply:         yes
  updated:              Wed 04 Nov 2020 06:59:55 PM CET (112 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              70.63 Wh
    energy-empty:        0 Wh
    energy-full:         70.78 Wh
    energy-full-design:  80.4 Wh
    energy-rate:         63.15 W
    voltage:             17.358 V
    time to full:        8 seconds
    percentage:          100%
    capacity:            87.1269%
    technology:          lithium-polymer
    icon-name:          'battery-full-charging-symbolic'
  History (charge):
    1604512795	100.000	charging
  History (rate):
    1604512795	63.150	charging

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Wed 04 Nov 2020 06:59:55 PM CET (112 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               charging
    warning-level:       none
    energy:              70.63 Wh
    energy-full:         70.78 Wh
    energy-rate:         63.15 W
    time to full:        8 seconds
    percentage:          100%
    icon-name:          'battery-full-charging-symbolic'

Daemon:
  daemon-version:  0.99.11
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: PowerOff

@nicolosponziello
Copy link

nicolosponziello commented Nov 15, 2020

I have the same problem in my X1 Extreme gen 2. Suddenly it gives an alert regarding low batter level and after that sometimes return to the correct battery percentage, sometimes it goes on stand by

edit: interestingly I swithed to pop os 20.04 and this issue hasn't been happening

@varomix
Copy link

varomix commented Nov 29, 2020

I have a similar issues with in my X1 Extreme gen 2, most noticeable, when I wake up my computer from sleep, the battery is 1% or 2% percent and goes to hibernate, I need to power it off by hard resetting, keeping the power button pushed, restart and then the battery shows the correct amount.
Used to be once in a while, now is almost every time I wake up my laptop, not a great experience.

@nicolosponziello
Copy link

I have a similar issues with in my X1 Extreme gen 2, most noticeable, when I wake up my computer from sleep, the battery is 1% or 2% percent and goes to hibernate, I need to power it off by hard resetting, keeping the power button pushed, restart and then the battery shows the correct amount.
Used to be once in a while, now is almost every time I wake up my laptop, not a great experience.

same with mine in pop 20.10. No issue with 20.04

@bartbatenburg
Copy link

bartbatenburg commented Dec 26, 2020

I have the same problem in my X1 Extreme gen 2. Suddenly it gives an alert regarding low batter level and after that sometimes return to the correct battery percentage, sometimes it goes on stand by

edit: interestingly I swithed to pop os 20.04 and this issue hasn't been happening

Have this on the p1 gen 2 too, didn't try 20.04 tho

@prashantlv
Copy link

Almost same issue with Acer nitro 7. My battery used to stay with me for 5-7 hours on balanced work on Pop OS 20.04 But in 20.10 It only lasts ~3 hours, even system resources are free most of the time. Can't figure out who is drinking all the juice !!

@rkv0id
Copy link
Author

rkv0id commented Jan 22, 2021

Update: Guess the issue is caused by the Linux kernel 5.8 on Pop 20.10. Updated the kernel to 5.9 (found recommendation on Reddit) and it worked like a charm. Too bad got no response here. Also, I hope they do move to 5.10 or at least 5.9 on pop 20.10 so that we get a more optimized version and solve these issues.

@varomix
Copy link

varomix commented Jan 22, 2021

Yes, I tested 5.9 a few days ago, the bad thing is, the current NVidia Drivers don't work in 5.9, need new nvidia drivers, one thing works another breaks :(

@nicolosponziello
Copy link

so, since pop 20.04 uses 5.8 but it is fine, I guess there is some sort of regression in the 5.8 kernel in pop 20.10

@rkv0id
Copy link
Author

rkv0id commented Jan 22, 2021

yes I guess so

@callofktulu
Copy link

Another thinkpad x1 extreme gen 2 user here. I am having this issue as well. Same as above, Linux kernel update solves the issue but then the os can only work in integrated graphics mode.

@varomix
Copy link

varomix commented Jan 25, 2021

I commented about the driver friday here and seems like there's something happening cause it was already tested and ready to go
pop-os/nvidia-graphics-drivers#81 (comment)

we might get it any moment

@varomix
Copy link

varomix commented Jan 26, 2021

new nvidia drivers are out and they work, thanks pop

@Davincible
Copy link

@RamyK How is 5.10 working for you now? I used to use Pop and get the issue, switched over to Manjaro last week but here the issue also seems to happen, suggesting it really is a kernel issue. I still got the issues on 5.10.15-1

@varomix
Copy link

varomix commented Feb 16, 2021

I'm working 5.9 with the new nvidia 460.x drivers and it all works great, this issue is totally gone

@Davincible
Copy link

@varomix Alright ill try that again then, got a message that it was EOL so upgraded to 5.10

@varomix
Copy link

varomix commented Feb 16, 2021

@Davincible I don't know if the nvidia drivers are compatible with 5.10, they might not be

@varomix
Copy link

varomix commented Feb 16, 2021

if 5.9 is EOL imagine 5.8 🤣 also EOL for 5,9 is Jan, 2023

@rkv0id
Copy link
Author

rkv0id commented Feb 16, 2021

@Davincible sorry for the late reply, didn't try for 5.10 actually. Tried with 5.9 and got it working but just moved then from the OS as I can't bare with the risks on this machine, waiting till it gets fixed or a new kernel gets pop's support.

@setuun
Copy link

setuun commented Mar 12, 2021

Thinkpad X1 Extreme Gen2 owner here. Can confirm, the kernel update to 5.9.x seems to work. nVidia drivers still working, too.

@bartbatenburg
Copy link

Just got an update to 5.11 today, let's hope it's fixed now.

@jj-nexx
Copy link

jj-nexx commented Apr 5, 2021

cat /etc/os-release


NAME="Pop!_OS"
VERSION="20.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
LOGO=distributor-logo-pop-os

I am on 5.11 in 20.04 and experience the same issue:

Make/Model: Razer Blade 15 Advanced (2020)
GPU: RTX 2080 Super Max Q

Similar results with upower -d, except my energy-empty, energy-full, energy-full-design all read 0Wh, this was working fine back with 5.8. I tossed in the old Win10 drive and experience no issues with battery reporting there (but I do not use Windows on this device).

Device: /org/freedesktop/UPower/devices/line_power_AC0
  native-path:          AC0
  power supply:         yes
  updated:              Mon 05 Apr 2021 03:48:52 PM EDT (76 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              yes
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               Razer
  model:                Blade
  power supply:         yes
  updated:              Mon 05 Apr 2021 03:48:52 PM EDT (76 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              0 Wh
    energy-empty:        0 Wh
    energy-full:         0 Wh
    energy-full-design:  0 Wh
    energy-rate:         0 W
    percentage:          0%
    capacity:            100%
    icon-name:          'battery-caution-charging-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Mon 05 Apr 2021 03:48:52 PM EDT (76 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               charging
    warning-level:       none
    energy:              0 Wh
    energy-full:         0 Wh
    energy-rate:         0 W
    percentage:          0%
    icon-name:          'battery-caution-charging-symbolic'

Daemon:
  daemon-version:  0.99.11
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: HybridSleep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests