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

[Bug]: Battery notification goes over 100% #1872

Open
SarjyantShrestha opened this issue Sep 22, 2024 · 4 comments
Open

[Bug]: Battery notification goes over 100% #1872

SarjyantShrestha opened this issue Sep 22, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@SarjyantShrestha
Copy link

Bug Report

Description

Batterynotify constantly notifies even after charge is 100%. My battery health is pretty much dead so I keep my charger plugged in most of the time.

Expected Behavior

Battery notification to stop after reaching 100%.

Actual Behavior

It keeps notifying incrementally. 100% > 105%> 110%.

Screenshots

image
image

Environment

  • Linux Distro: Archlinux
  • Linux Version, output of uname -a: Linux rapzy 6.10.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 12 Sep 2024 17:21:02 +0000 x86_64 GNU/Linux
  • Hyprland Version, output of hyprctl version: Hyprland, built from branch at commit 0f594732b063a90d44df8c5d402d658f27471dfe (props: bump version to 0.43.0). Date: Sun Sep 8 16:48:21 2024 Tag: v0.43.0, commits: 5196
@SarjyantShrestha SarjyantShrestha added the bug Something isn't working label Sep 22, 2024
@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 22, 2024

What's bugging me is the percentage reaching that level lol.

Can you please run batterynotify.sh --verbose and show the outputs here.Give it some time like 30 mins of running when fully charged.

Also batterynotify.sh --help should provide you instructions for the overrides. You can make the battery notification duration to 999999999.

Here are the available overrides for HyDE
https://github.com/HyDE-Project/Hyde-cli/wiki/Variables-(Overrides)#battery-notify

@SarjyantShrestha
Copy link
Author

I'm sorry I haven't been able to get back to you on this. I've been busy but it's weird that I don't see the notification anymore after battery reaches 100%. I've noticed from the past that this happens randomly. I don't quiet understand it. But I'll get back to you as soon as I can.

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Sep 23, 2024

Hmmm I guess this is the device issue showing incorrect battery percentage. If it's broken you can suppress the notification by adding the configuration file inside hyde.conf

@SarjyantShrestha
Copy link
Author

SarjyantShrestha commented Sep 29, 2024

Can you please run batterynotify.sh --verbose and show the outputs here.Give it some time like 30 mins of running when fully charged.

 WARNING: Full Threshold must be 80 - 100.
 WARNING: Critical Threshold must be 2 - 50.
 WARNING: Low Threshold must be 10 - 80.
 WARNING: Unplug Threshold must be 50 - 100.
 WARNING: Timer must be 60 - 1000.
 WARNING: Notify must be 1 - 1140.
 WARNING: Interval must be 1 - 10.

Modify /home/rapzy/.config/hyde/hyde.conf  to set options.

      STATUS      THRESHOLD    INTERVAL
      Full        100          1140 Minutes
      Critical    5           120 Seconds then 'systemctl suspend'
      Low         20           5 Percent    then ''
      Unplug      80          5 Percent   then ''

      Charging: 
      Discharging: 
Verbose Mode is ON...




=============================================
        Battery Status: Charging
        Battery Percentage: 110
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 111
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 112
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 113
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 114
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 115
=============================================
Prompt:UNPLUG:  Charging 115
44
=============================================
        Battery Status: Charging
        Battery Percentage: 116
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 117
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 118
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 119
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 120
=============================================
Prompt:UNPLUG:  Charging 120
46
=============================================
        Battery Status: Charging
        Battery Percentage: 121
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 122
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 123
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 124
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 125
=============================================
Prompt:UNPLUG:  Charging 125
48
=============================================
        Battery Status: Charging
        Battery Percentage: 126
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 127
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 128
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 129
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 130
=============================================
Prompt:UNPLUG:  Charging 130
50
=============================================
        Battery Status: Charging
        Battery Percentage: 131
=============================================
=============================================
        Battery Status: Charging
        Battery Percentage: 132
=============================================
^C

It might be my broken battery but I don't want to completely turn off the notification. Is it possible to edit the script so that notification stops after battery reaches 100%?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants