Xbacklight: Difference between revisions

From wikinotes
No edit summary
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
I should really setup hotkeys so my backlight can be controlled by
Adjust the screen backlight from the commandline.
buttons within Xmonad. 40% seems to be ample.
''' Thinkpad T440s '''.


Note that in addition to the screen's backlight, you can modify the <br>
= Documentation =
brightness of the screen (as controlled by Xorg). See [[xrandr]].
<blockquote>
{| class="wikitable"
|-
| <code>man xbacklight</code> || https://man.archlinux.org/man/extra/xorg-xbacklight/xbacklight.1.en
|-
|}
</blockquote><!-- Documentation -->


= Install =
<blockquote>
<syntaxhighlight lang="bash">
pacman -S xorg-xbacklight
</syntaxhighlight>
</blockquote><!-- Install -->
= Usage =
<blockquote>
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
## Set backlight with
xbacklight -set 40
xbacklight -set 40
</syntaxhighlight>
</blockquote><!-- Usage -->
= Troubleshooting =
<blockquote>
== Wrong Display ==
<blockquote>
If xbacklight is unable to determine the display (or chooses the wrong one),
you can configure the correct one in your Xorg.conf
<syntaxhighlight lang="dosini">
# /etc/X11/xorg.conf


Section "Device"
    Identifier  "Card0"
    Driver      "intel"
    Option      "Backlight"  "intel_backlight"  # <-- /sys/class/backlight/${DIRNAME}
EndSection
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- Wrong Display -->
</blockquote><!-- Troubleshooting -->

Latest revision as of 01:40, 17 April 2022

Adjust the screen backlight from the commandline.

Documentation

man xbacklight https://man.archlinux.org/man/extra/xorg-xbacklight/xbacklight.1.en

Install

pacman -S xorg-xbacklight

Usage

xbacklight -set 40

Troubleshooting

Wrong Display

If xbacklight is unable to determine the display (or chooses the wrong one), you can configure the correct one in your Xorg.conf

# /etc/X11/xorg.conf

Section "Device"
    Identifier  "Card0"
    Driver      "intel"
    Option      "Backlight"  "intel_backlight"  # <-- /sys/class/backlight/${DIRNAME}
EndSection