rpi-backlight icon indicating copy to clipboard operation
rpi-backlight copied to clipboard

Toggle CLI turns brightness up to 100%

Open filmgarage opened this issue 2 years ago • 3 comments

If the screen is on and the command power off is sent, the screen is back to the former brightness when turned on again.

For example:

// Brightness 20%
rpi-backlight --p off //screen blank
rpi-backlight --p on // screen 20%

Toggle does not remember the former brightness:

// Brightness 20%
rpi-backlight --p toggle //screen blank
rpi-backlight --p toggle // screen 100%

Is this intentional? I would prefer the previous setting to be remembered.

filmgarage avatar Nov 11 '21 09:11 filmgarage

Yep, that was recently discussed here: https://github.com/linusg/rpi-backlight/pull/40

I consider it a mistake and agree with

I would prefer the previous setting to be remembered.

But apparently it slipped through in the past. A fix would be very welcome!

linusg avatar Nov 11 '21 09:11 linusg

Hi Linus, My pull request includes a fix for this issue https://github.com/p1r473/rpi-backlight/blob/main/rpi_backlight/cli.py#L128

p1r473 avatar Nov 11 '21 15:11 p1r473

@p1r473 feel free to reopen it then! I generally don't do that myself.

linusg avatar Nov 11 '21 16:11 linusg