prasanthrangan / hyprdots

// Aesthetic, dynamic and minimal dots for Arch hyprland
GNU General Public License v3.0
6.84k stars 816 forks source link

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

Open SarjyantShrestha opened 1 week ago

SarjyantShrestha commented 1 week ago

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

kRHYME7 commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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 commented 3 days ago
 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%?