TranslateProject/sources/tech/20220716 4 Ways to Fix the Laptop Brightness Problem In Ubuntu.md

6.3 KiB
Raw Permalink Blame History

4 Ways to Fix the Laptop Brightness Problem In Ubuntu

This article features four quick ways to fix the everlasting Laptop brightness problem in Ubuntu.

Ubuntu plus most of the Linux distributions always had issues with Laptop brightness. The default hardware controllers never in the Laptop keyboard worked most of the time after a fresh install.

brightness-control-keys-dell

brightness-control-keys-samsung

Follow the below definite steps that worked till now for most laptops based on feedback on this website at our old article.

The described methods worked for the below models (so far). For the complete list of Laptops/Desktops where either of these four methods worked, refer to the list at the bottom of this article.

  • ASUS G75-VW
  • Dell Vostro 3000 Series
  • Samsung RV411 Series

Fix the Laptop Brightness Problem In Ubuntu

Method 1: Fix Brightness Enabling Laptop Specific Drivers

  • Open the file /etc/default/grub using gedit or any other text editor.Find the below line.
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
  • Change the above line to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

grub update for brightness control

This would ensure to load of device-specific drivers before default drivers in Linux.

  • Save the file and close the text editor.
  • Open the terminal and run the below command.
update-grub
  • Reboot.

After rebooting, try adjusting the brightness using laptops dedicated control keys.

brightness-control-via-oem-keys

Method 2: Fix Brightness Using a Software

If the above method does not work, you could try the below method using an app.

This app, Brightness Controller, can control the display using a simple GUI. It supports multiple displays as well.

The app is available in PPA. You can run the below command to install Ubuntu 16.10 Yakkety Yak, Ubuntu 16.04 Xenial Xerus, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS or Ubuntu 22.04 LTS.

sudo add-apt-repository ppa:apandada1/brightness-controller
sudo apt update
sudo apt install brightness-controller

For other download options, you can refer to this page.

brightness-controller-running

After installation, you can find it under the application menu or search for it in the application menu. Once opened, you can see a bar that controls the display brightness, which you can adjust as per your need.

Method 3: Fix Brightness by configuring X11

Follow this method if none of the above fixes works. This should be the last resort.

Open a terminal session. Then browse to theX11 config file path /etc/X11/xorg.conf.d

cd /etc/X11/xorg.conf.d

If you do not find any file in the above path, check the below path for the configuration. This is mainly for those systems where you have logged in as a local user and not a root user.

cd  /usr/share/X11/xorg.conf.d

Then list the files via ls. You can see something like this below.

ls

X11 Path

For this example, you can see it has a file named 10-evdev.conf. For your system, it might be different. So open the file via test editor as root.

sudo gedit /etc/X11/xorg.conf.d/10-evdev.conf

Add the below lines entirely at the end of this file and save the file.

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection

Sample file below:

Editing the conf file

Once you are done, restart the system.

You should be able to control the brightness now using the laptop hardware keys.

Method 4: Fix Brightness using xrandr

If none of the above methods gives you hope, try the following method. This uses xrandrs properties, the official config utility for X server Resize and Rotate.

Open a terminal and find out the name of your display using the below command. In the below screenshot, you can see two outputs because, in my test system, two displays are there.

xrandr | grep " connected" | cut -f1 -d " "

So, the next is to change the brightness using the display name. So, use the following command by changing the monitor name. In this example, I have used eDP-1, my systems display. The brightness value range is 0 to 1, where 0 is the dimmest and 1 is the brightest.

brightness control using xrandr

xrandr --output eDP-1 --brightness 0.7

To revert, you can use the above command with brightness=1.


via: https://www.debugpoint.com/2-ways-fix-laptop-brightness-problem-ubuntu-linux/

作者:Arindam 选题:lkxed 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出