JaKooLit / Arch-Hyprland

For automated installation of Hyprland on Arch or any arch based distros
GNU General Public License v3.0
1.35k stars 109 forks source link

Waybar using too much CPU #55

Closed dhelgerson closed 4 months ago

dhelgerson commented 4 months ago

Bug Report

Description

I'm using the project on an amd gaming laptop, waybar uses 9-12% of a core consistently which doesn't seem like a lot but it results in a ~2W power draw which take my laptop from a 6hr battery to 4.5hrs. could there be anything to do to decrease it's usage such as decreasing the frequency in which it updates?

Steps to Reproduce

  1. install archlinux
  2. install repo per installation instructions
  3. use btop(and others) to check cpu usage

Expected Behavior

waybar shouldn't be using more than maybe 2-5% of a single core

Actual Behavior

waybar uses 8-12%

Environment

e.g.,

JaKooLit commented 4 months ago

any changes when switch to say simple layout?

if so, then edit the waybar to your liking.. minimize the loaded module as requires

dhelgerson commented 4 months ago

there doesn't seem to be much of a difference. between the simple layouts and the more extravagant ones.

JaKooLit commented 4 months ago

if thats the case then I cant do much

You could try this https://wiki.hyprland.org/FAQ/

or enable gamemode super shift G

or you could kill the waybar super b

I dont maintain the packages installed

its only a bash script to assist in installing packages

dhelgerson commented 4 months ago

thanks anyway.