greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.85k stars 470 forks source link

brightness adjustment only works with mouse wheel, key bindings do not update block state #1885

Open maximyurevich opened 1 year ago

MaxVerevkin commented 1 year ago

Which tool do you use to adjust brightness? Which version of i3status-rust do you use? Which kernel version do you use?

maximyurevich commented 1 year ago

Which tool do you use to adjust brightness? Which version of i3status-rust do you use?

0.30.7-1, acpi_video0 and intel_backlight

maximyurevich commented 1 year ago

Which tool do you use to adjust brightness? Which version of i3status-rust do you use? Which kernel version do you use?

0.30.6-1 backlight block works as expected

MaxVerevkin commented 1 year ago

key bindings do not update block state

I meant which command do you bind to? E.g. brightnessctl.

Which kernel version do you use?

The output of uname -r.

0.30.6-1 backlight block works as expected

So this is a regression in 0.30.7?

maximyurevich commented 1 year ago

key bindings do not update block state

I meant which command do you bind to? E.g. brightnessctl.

Which kernel version do you use?

The output of uname -r.

0.30.6-1 backlight block works as expected

So this is a regression in 0.30.7?

xbacklight utility from acpilight package

maximyurevich commented 1 year ago

key bindings do not update block state

I meant which command do you bind to? E.g. brightnessctl.

Which kernel version do you use?

The output of uname -r.

0.30.6-1 backlight block works as expected

So this is a regression in 0.30.7?

and its happen only when i use kernel 4.19

MaxVerevkin commented 1 year ago

and its happen only when i use kernel 4.19

That's interesting.

maximyurevich commented 1 year ago

and its happen only when i use kernel 4.19

That's interesting.

Hello, its work with linux-lts arch kernel, but not work with linux-lts419 from AUR since 30.7 i3status-rust. On video my custom and native backlight block.

https://github.com/greshake/i3status-rust/assets/21293376/4e47062a-5a5e-4e93-b83d-3d608a1bfc75

bim9262 commented 1 year ago

On 419, can you try a different backlight tool: calibright_cli?

maximyurevich commented 1 year ago

On 419, can you try a different backlight tool: calibright_cli?

with downgraded xorg-server to 1.20

maximyurevich commented 1 year ago

On 419, can you try a different backlight tool: calibright_cli?

how to use it from terminal?

bim9262 commented 1 year ago
$ cargo install calibright_cli
$ calibright_cli --help      
A brightness utility that allows you to calibrate brightness between monitors

Usage: calibright_cli [OPTIONS] <--get|--set <percent>|--inc <percent>|--dec <percent>>

Options:
      --device <regex>  Regular expression for the devices to match [default: .]
      --get             Print out the current backlight brightness of each output with such a control. The brightness is represented as a percentage of the maximum brightness supported
      --set <percent>   Sets each backlight brightness to the specified level
      --inc <percent>   Increases brightness by the specified amount
      --dec <percent>   Decreases brightness by the specified amount
  -h, --help            Print help
  -V, --version         Print version
maximyurevich commented 1 year ago
$ cargo install calibright_cli
$ calibright_cli --help      
A brightness utility that allows you to calibrate brightness between monitors

Usage: calibright_cli [OPTIONS] <--get|--set <percent>|--inc <percent>|--dec <percent>>

Options:
      --device <regex>  Regular expression for the devices to match [default: .]
      --get             Print out the current backlight brightness of each output with such a control. The brightness is represented as a percentage of the maximum brightness supported
      --set <percent>   Sets each backlight brightness to the specified level
      --inc <percent>   Increases brightness by the specified amount
      --dec <percent>   Decreases brightness by the specified amount
  -h, --help            Print help
  -V, --version         Print version

This utility does not work, i think problem in block