light.1 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. .\" -*- nroff -*-
  2. .Dd August 4, 2018
  3. .Os GNU/Linux
  4. .Dt LIGHT 1 URM
  5. .Sh NAME
  6. .Nm light
  7. .Nd a program to control backlight controllers
  8. .Sh SYNOPSIS
  9. .Nm light
  10. .Op Ar OPTIONS
  11. .Op Ar VALUE
  12. .Sh DESCRIPTION
  13. .Nm
  14. is a program to control backlight display and keyboard controllers under
  15. GNU/Linux.
  16. .Pp
  17. .Bl -bullet -compact
  18. .It
  19. Operates independently of X (X-Window)
  20. .It
  21. Can automatically figure out the best controller to use, making full use
  22. of the underlying hardware
  23. .It
  24. Supports a minimum cap on the brightness value, as some controllers set
  25. the display to be pitch black at a vaĺue of 0 (or higher)
  26. .El
  27. .Sh COMMANDS
  28. The following unique commands are supported:
  29. .Pp
  30. .Bl -tag -width Ds
  31. .It Fl A
  32. Add value
  33. .It Fl G
  34. Get value, default
  35. .It Fl H , Fl h
  36. Show help text and exit
  37. .It Fl I
  38. Restore brightness
  39. .It Fl L
  40. List controllers
  41. .It Fl O
  42. Save brightness
  43. .It Fl S
  44. Set value
  45. .It Fl U
  46. Subtract value
  47. .It Fl V
  48. Show program version and exit
  49. .El
  50. .Sh OPTIONS
  51. The behavior of the above commands can be modified using these options:
  52. .Pp
  53. .Bl -tag -width Ds
  54. .It Fl b
  55. Set
  56. .Fl S ,
  57. Get
  58. .Fl G ,
  59. Add
  60. .Fl A ,
  61. or Subtract
  62. .Fl U
  63. active brightness, default
  64. .It Fl k
  65. Act on keyboard backlight
  66. .It Fl l
  67. Act on display backlight, default
  68. .It Fl m
  69. Get
  70. .Fl G
  71. maximum brightness
  72. .It Fl c
  73. Set
  74. .Fl S
  75. or get
  76. .Fl G
  77. minimum cap for brightness
  78. .It Fl a
  79. Select controller automatically, default
  80. .It Fl p
  81. Interpret input and output values in percent, default
  82. .It Fl r
  83. Interpret input and output values in raw mode
  84. .It Fl s Ar ARG
  85. Specify controller to use. Use
  86. .Fl L
  87. to list available controllers
  88. .It Fl v Ar ARG
  89. Set verbosity level, by default
  90. .Nm
  91. only outputs read values:
  92. .Pp
  93. .Bl -tag -width 0: -compact
  94. .It 0:
  95. Read values
  96. .It 1:
  97. Read values, Errors
  98. .It 2:
  99. Read values, Errors, Warnings
  100. .It 3:
  101. Read values, Errors, Warnings, Notices
  102. .El
  103. .El
  104. .Sh FILES
  105. When run in its classic SUID root mode
  106. .Nm
  107. caches settings and current brightness in
  108. .Pa /etc/light .
  109. In its non-priviliged mode of operation the
  110. .Pa ~/.cache/light
  111. directory is used instead.
  112. .Sh AUTHORS
  113. Copyright \(co 2014-2018 Fredrik Haikarainen
  114. .Pp
  115. This is free software, see the source for copying conditions. There is NO
  116. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE