VoltaireNoir / blight

A hassle-free CLI utility/library to manage backlight on Linux; one that plays well with hybrid GPU configuration and proprietary drivers.
23 stars 1 forks source link

CLI prints success message even when blight set is given a value larger than max supported brightness #3

Closed VoltaireNoir closed 1 year ago

VoltaireNoir commented 1 year ago

The command blight set results in a success message as long as the provided value can be parsed into a u16 even if it is larger than the max brightness supported by the device, while it is silently ignored inside the set_bl function.

Expected behavior: This should result in an error. The user should be notified that the provided value is too large.

Possible solutions: