Commit graph

8 commits

Author SHA1 Message Date
Mateusz Piotrowski
47d68b38d7 backlight.8: Fix description of -f
If an unqualified name is provided, /dev/backlight/ is automatically
prepended instead of /dev/backlight.

MFC after:	3 days

(cherry picked from commit 2f60a7f902)
2022-04-11 12:15:56 +02:00
Piotr Pawel Stefaniak
15635c0ed3 backlight: Remove set but not used variable
(cherry picked from commit fde687c239)
2022-03-22 18:36:04 +01:00
Emmanuel Vadot
f21c0366f5 backlight(8): Add note that with option it print the current brightness.
MFC after:    3 days
PR: 	      253737

(cherry picked from commit 1df30489a8)
2021-03-10 11:49:31 +01:00
David Schlachter
9ba393f2ca backlight: Fix incr/decr with percent value of 0
This now does nothing instead of incr/decr by 10%

MFC After:    3 days
PR: 	      253736

(cherry picked from commit 3b005d51bd)
2021-03-10 11:49:25 +01:00
Mateusz Piotrowski
790c70c825 Clean up backlight.8
- Sort flags
- Stylize incr|+ and decr|- properly
- Add a missing period at the end of the description
- Use the standard layout for the EXAMPLES section (remove the list macro
  and add indentation to the code block)
2020-10-27 09:41:01 +00:00
Baptiste Daroussin
cf64bfef77 backlight: check the lenght if the input before trimming '%'
Reported by:	hps
Reviewed by:	manu
Differential Revision:	https://reviews.freebsd.org/D26693
2020-10-06 08:18:09 +00:00
Baptiste Daroussin
4d1308f49b backlight: accept '%' in the brightness input value
Improve friendlyness of the command line by accepting the percent brightness
in both format: with or without a trailing '%'

Reviewed by:	manu
Differential Revision:	https://reviews.freebsd.org/D26692
2020-10-06 08:05:19 +00:00
Emmanuel Vadot
9ddaa99d9d Add backlight(8)
This tool is used to configure registered backlights.
It can incr/decr (default to 10%) or accept a percentage value directly.

Reviewed by:	manpages (gbe@)
Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D26251
2020-10-02 18:21:30 +00:00