-
Notifications
You must be signed in to change notification settings - Fork 251
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: changing volume affects CPU usage #442
Comments
Do you have pulseaudio and pulseaudio-alsa installed? |
@snprajwal - Yes, I have both of these installed. Do these cause a conflict? |
No they don't, sometimes you need both modules for pulse to work properly. I guess your last resort can be to force reinstall i3status. Use |
Reinstalling
|
Since you are using PulseAudio, remove the mixer and mixer_idx lines
…On Wed, 20 Jan 2021 at 11:31, Adeel Ahmad ***@***.***> wrote:
Reinstalling i3status didn't solve this issue for me. I'm pasting my
i3status.conf file below in case I misconfigured something.
general {
colors = true
interval = 5
}
#order += "ipv6"
order += "wireless _first_"
order += "volume master"
order += "battery all"
order += "disk /"
#order += "load"
order += "cpu_usage"
order += "memory"
order += "tztime local"
wireless _first_ {
#format_up = "W: (%quality at %essid) %ip"
separator_block_width = 10
format_up = "W:%essid(%quality)"
format_down = "W:down"
}
#ethernet _first_ {
# format_up = "E: %ip (%speed)"
# format_down = "E: down"
#}
volume master {
separator_block_width = 10
format = "♪:%volume"
format_muted = "♪:(%volume)"
device = "default"
mixer = "Master"
mixer_idx = 0
}
battery all {
separator_block_width = 10
format = "%percentage(%status)"
}
disk "/" {
format = "DISK:%avail"
separator_block_width = 10
}
#load {
# format = "%1min"
#}
cpu_usage {
separator_block_width = 10
format = "CPU:%usage"
}
memory {
separator_block_width = 10
format = "RAM:%percentage_used"
threshold_degraded = "1G"
format_degraded = "MEMORY < %available"
}
tztime local {
separator_block_width = 10
format = "%a|%d/%m|%H:%M:%S"
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#442 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARDBKY53COG57A4CJQWNJBDS2ZWT7ANCNFSM4VFPVFLQ>
.
|
I just removed the |
Try pinky-bar https://github.com/su8/pinky-bar |
I have a similar problem: if I change volume via headphone's buttons, then cpu starts to rapidly change up and down, though i3status is configured to only run at interval of 5 seconds. At the same time I can't use things like context menus (they instantly disappear), and active UI control (e.g. this textbox I'm currently using to type this comment) blinks very fast like it's becoming inactive and then active again multiple times a second. It's like the whole screen redraws itself but at the same time opened windows do not disappear or it happens way too fast to notice. I use Arch and pulseaudio. If I change volume via pulseaudio (by holding mouse over the tray icon and using mouse scroll wheel) the problem doesn't happen. |
This comment was marked as spam.
This comment was marked as spam.
This is pretty-much a side-effect of intended behavior: Lines 133 to 134 in c07b9ca
We wake up the main thread every time we get an event from pulseaudio. I imagine the temporary spike in the system's CPU from the change of the volume (UI elements, pulseaudio, potentially bluetooth all fire up at the same moment) is actually captured in i3status which produces a misleading number. i3status does not from my tests cause any CPU spike/high usage so this is only a problem with what information is displayed. As for way to fix it:
|
In my
.i3status.conf
file I have:When I increase or decrease my volume, the CPU usage abnormally fluctuates +20-30% and then goes back to the previous state after a few seconds.
I suspect the issue is with the
volume
directive as removing it from the config file resolves the issue.There is a similar issue reported here: https://www.reddit.com/r/i3wm/comments/jf7i1s/i3bar_cpu_usage_immediately_jumps_to_a_set_figure/
The text was updated successfully, but these errors were encountered: