8000 Backlight not updating correctly · Issue #1180 · polybar/polybar · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Backlight not updating correctly #1180
Closed
@dyllan-to-you

Description

@dyllan-to-you

When I change my brightness, it looks like polybar is updating the stored value, but not actually printing it until I change the brightness again. This results in a value that is behind by an update.

Say, if my brightness is 45%. I increment it by 5%, and I see my screen get brighter. However, the value stays at 45%.
brightness(+5%) = Actual: 55%, Polybar: 50%
brightness(+5%) = Actual: 60%, Polybar: 55%
brightness(-20%) = Actual: 40%, Polybar: 60%
brightness(+10%) = Actual: 50%, Polybar 40%

Restarting polybar prints the correct value.

I am running a Lenovo Yoga 2 Pro on Fedora 27.
I'm using internal/backlight, because xbacklight is not supported on my system.
card = intel_backlight
I have a bash script that updates /sys/class/backlight/intel_backlight/brightness with an x% change, bound to function keys via i3

This is pretty unimportant, but it's a silly bug and I figured I'd file an issue. I may try digging through the source to resolve this after I'm finished setting up this laptop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0