ArcoLinux -D -B 18.12 has been released - 20 iso's

[INFO] Set your brightness via terminal

Here you will find information that will save you time and frustration also tips to getting things set up after a fresh install or later.
Post Reply
User avatar
UOOP
Crewman
Posts: 16
Joined: Wed Feb 21, 2018 10:30 am
United States of America
[INFO] Set your brightness via terminal

Post by UOOP » Thu Jul 26, 2018 6:37 am

During a big set of updates vie pksyua my screen went dark as it should have via power management control due to being idle, but failed to brighten again once active. The following commands, for me, failed to increase or decrease the brightness:

Code: Select all

xbacklight -inc 100

Code: Select all

xbacklight -dec 25

Code: Select all

xbacklight -set 80
xbacklight did not return an error, but failed to change my display's backlight. Performing a logout and a reboot failed to change the backlight brightness. After some time on Google, I was able to find a solution found here:

http://www.pclinuxos.com/forum/index.php?topic=99190.0

Quoted text from the above URL:
ACPI

It is often possible to adjust the backlight by ACPI. This controls the actual LEDs or cathodes of the screen. When this ACPI option is available, the illumination is controllable using a GUI slider in the Display/Screen system settings or by simple commands on the CLI.

Different cards might manage this differently. Check /sys/class/backlight to find out:

# ls /sys/class/backlight/

intel_backlight

So this particular backlight is managed by an Intel card. It is called acpi_video0 on an ATI card. In the following example, acpi_video0 is used.

The directory contains the following files and folders:

actual_brightness brightness max_brightness subsystem/ uevent
bl_power device/ power/ type

The maximum brightness (often 15) can be found by running cat:

# cat /sys/class/backlight/acpi_video0/max_brightness
15

Brightness can then be set (as root) with echo. Obviously you cannot go any higher than your screen's maximum brightness. The values for maximum brightness and brightness in general vary wildly among cards.

# echo 5 > /sys/class/backlight/acpi_video0/brightness
The solution that solved my problem:

1.

Code: Select all

cd /sys/class/backlight
2.

Code: Select all

ls
acpi_video0 nv_backlight

3.

Code: Select all

cd acpi_video0
4.

Code: Select all

ls
actual_brightness brightness max_brightness subsystem uevent bl_power device power type

5.

Code: Select all

 cat max_brightness
8

6.

Code: Select all

su
enter password

7.

Code: Select all

echo 8 > brightness
8. My display brightened up after code execution and I did not need a reboot or a logout/login

This isn't the first time i have had issues with my backlight after updates. The first time I resolved the issue was with a clean install of the latest Arcolinux ISO, but I wanted a different solution this time.

I hope this helps :) :)
Linux4life

User avatar
darknetmatrix
Captain
Posts: 249
Joined: Tue Nov 07, 2017 2:47 pm
Contact:
Belgium
Re: [INFO] Set your brightness via terminal

Post by darknetmatrix » Fri Jul 27, 2018 1:39 am

great tip, tnx. for it!
linux user # 527315
I never lose. Either I win, or I learn.

Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

User avatar
UOOP
Crewman
Posts: 16
Joined: Wed Feb 21, 2018 10:30 am
United States of America
Re: [INFO] Set your brightness via terminal

Post by UOOP » Fri Jul 27, 2018 7:49 am

darknetmatrix wrote:
Fri Jul 27, 2018 1:39 am
great tip, tnx. for it!
No problem :) I was beating my head against the wall for a week trying to figure this out ha ha :)
Linux4life


Post Reply

Return to “Tips and Tricks”