{"id":3134,"date":"2023-09-09T18:20:59","date_gmt":"2023-09-09T12:50:59","guid":{"rendered":"https:\/\/smarttech101.com\/?p=3134"},"modified":"2023-09-14T08:41:08","modified_gmt":"2023-09-14T03:11:08","slug":"how-change-brightness-on-a-linux-laptop","status":"publish","type":"post","link":"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/","title":{"rendered":"How to Change Brightness on a Linux Laptop"},"content":{"rendered":"\n<p>Linux is not natively supported by laptop manufacturers, as they primarily focus on Windows. Therefore, it is highly likely that your system&#8217;s brightness does not change when you press the brightness key on your Linux laptop. In this article, I will explain how to bind your brightness key to control the screen brightness.<\/p>\n\n\n\n<p><strong>\ud83d\udcd4 Note<\/strong>: After applying any changes, restart your system, as system-level changes may not take effect immediately.<\/p>\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_69_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#Method_1_Changing_Linux_Brightness_by_Directly_Editing_the_File_backlight_devicebrightness\" title=\"Method 1: Changing Linux Brightness by Directly Editing the File backlight_device\/brightness\">Method 1: Changing Linux Brightness by Directly Editing the File backlight_device\/brightness<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#Step_1_Set_ACPI_Backlight_Option_in_Grub\" title=\"Step 1: Set ACPI Backlight Option in Grub\">Step 1: Set ACPI Backlight Option in Grub<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#Step_2_Change_Brightness_by_Editing_the_Contents_of_Files_in_sysclassbacklight\" title=\"Step 2: Change Brightness by Editing the Contents of Files in \/sys\/class\/backlight\">Step 2: Change Brightness by Editing the Contents of Files in \/sys\/class\/backlight<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#Step_3_Changing_Ownership_of_Backlight_Files\" title=\"Step 3: Changing Ownership of Backlight Files\">Step 3: Changing Ownership of Backlight Files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#Step_4_Creating_Scripts_and_Binding_Them_to_Brightness_Up_and_Down_Keys\" title=\"Step 4: Creating Scripts and Binding Them to Brightness Up and Down Keys\">Step 4: Creating Scripts and Binding Them to Brightness Up and Down Keys<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#Method_2_How_to_Change_Screen_Brightness_Using_xbacklight\" title=\"Method 2: How to Change Screen Brightness Using xbacklight\">Method 2: How to Change Screen Brightness Using xbacklight<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#Installation_of_xbacklight\" title=\"Installation of xbacklight\">Installation of xbacklight<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#Method_3_How_to_change_Linux_Brightness_with_ACPI_Daemon\" title=\"Method 3: How to change Linux Brightness with ACPI Daemon\">Method 3: How to change Linux Brightness with ACPI Daemon<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#Step_1_Install_the_ACPI_Daemon\" title=\"Step 1: Install the ACPI Daemon\">Step 1: Install the ACPI Daemon<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#Step_2_StartEnable_acpidservice\" title=\"Step 2: Start\/Enable acpid.service\">Step 2: Start\/Enable acpid.service<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#Step_3_Creating_ACPI_Actions_and_Events\" title=\"Step 3: Creating ACPI Actions and Events\">Step 3: Creating ACPI Actions and Events<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#Step_4_Restart_ACPI_Daemon\" title=\"Step 4: Restart ACPI Daemon\">Step 4: Restart ACPI Daemon<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#Method_4_How_to_Change_Linux_Brightness_Using_xrandr\" title=\"Method 4: How to Change Linux Brightness Using xrandr\">Method 4: How to Change Linux Brightness Using xrandr<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_1_Changing_Linux_Brightness_by_Directly_Editing_the_File_backlight_devicebrightness\"><\/span>Method 1: Changing Linux Brightness by Directly Editing the File backlight_device\/brightness<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Set_ACPI_Backlight_Option_in_Grub\"><\/span>Step 1: Set ACPI Backlight Option in Grub<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Setting the right acpi backlight option creates the required backlight file.<\/p>\n\n\n\n<p><strong>\ud83d\udcd4 Note<\/strong>: Since kernel version 6.1, the <a href=\"https:\/\/hansdegoede.livejournal.com\/26427.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">backlight system has been revamped<\/a>. You may not need to set this option. Just <strong>skip to the next step<\/strong>. If the following steps do not work, try to follow this step. To check your kernel version, use the following Linux command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;ajay@legion ~]$ uname -r<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"437\" height=\"124\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/check_kernel.png?resize=437%2C124&#038;ssl=1\" alt=\"finding kernel in linux\" class=\"wp-image-3135\"\/><figcaption class=\"wp-element-caption\">Figure: finding kernel in linux<\/figcaption><\/figure>\n\n\n\n<p>I will be using the Grub bootloader to set this at system startup. Most of you might already be using this (for example, Ubuntu uses it by default). If you use a different bootloader, refer to your bootloader&#8217;s guide for setup.<\/p>\n\n\n\n<p>Set the <code>acpi_backlight<\/code> option to one of the following: none, native, video, or vendor.<\/p>\n\n\n\n<p>For example, to set it to &#8216;vendor,&#8217; open the file <code>\/etc\/default\/grub<\/code> using your favorite text editor:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;ajay@legion ~]$ sudo nvim \/etc\/default\/grub<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"515\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/grub_command_line_default_options.png-w.png?resize=726%2C515&#038;ssl=1\" alt=\"Grub Command Line Default Options\" class=\"wp-image-3137\"\/><figcaption class=\"wp-element-caption\">Figure: Grub Command Line Default Option<\/figcaption><\/figure>\n\n\n\n<p>Now, change the highlighted line to the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet acpi_backlight=vendor\"<\/code><\/pre>\n\n\n\n<p>Every time you change <code>\/etc\/default\/grub<\/code>, execute the following command:<\/p>\n\n\n\n<p><strong>Arch Linux-based distribution (e.g., Manjaro)<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;ajay@legion ~]$ sudo grub-mkconfig -o \/boot\/grub\/grub.cfg<\/code><\/pre>\n\n\n\n<p><strong>Debian-based distribution (e.g., Ubuntu)<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;ajay@legion ~]$ sudo grub-mkconfig -o \/boot\/grub\/grub.cfg<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"756\" height=\"294\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/grub-mkconfig_to_generate_configuration.png-w.png?resize=756%2C294&#038;ssl=1\" alt=\"grub-mkconfig to genereate grub.cfg\" class=\"wp-image-3138\"\/><figcaption class=\"wp-element-caption\">Figure: grub-mkconfig to genereate grub.cfg<\/figcaption><\/figure>\n\n\n\n<p><strong>Description of options available under <code>acpi_backlight<\/code><\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>vendor<\/code>: When I had not set any option using <code>acpi_backlight<\/code> and I started the ThinkPad laptop (AMD GPU), I got the following error:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Oct 13 02:00:48 lenovo systemd&#091;1]: Failed to start Load\/Save Screen Backlight Brightness of backlight:acpi_video0.<\/code><\/pre>\n\n\n\n<p>However, the system started normally.<\/p>\n\n\n\n<p>Now, using the option <code>vendor<\/code> turns off the journalctl error shown at the start by LightDM.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>native<\/code>: Creates AMD&#8217;s directory <code>amdgpu_bl0<\/code> (or something like that) in <code>\/sys\/class\/backlight<\/code>. Note it down on some paper; it will be used later. This directory, <code>\/sys\/class\/backlight\/amdgpu_bl0<\/code>, contains multiple files.<\/li>\n\n\n\n<li><code>video<\/code> or <code>vendor<\/code>: Create Nvidia&#8217;s directory <code>nvidia_wmi_ec_backlight<\/code> (or something like that) inside <code>\/sys\/class\/backlight<\/code>. Note it down on some paper. Since kernel 6.1, as mentioned above, the backlight system has been revamped, and now, in my Legion 5, the Nvidia directory is automatically created.<\/li>\n\n\n\n<li><code>none<\/code>: Creates no directory at all.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Change_Brightness_by_Editing_the_Contents_of_Files_in_sysclassbacklight\"><\/span>Step 2: Change Brightness by Editing the Contents of Files in <code>\/sys\/class\/backlight<\/code><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In step 1, I discussed the creation of directories\/files for Nvidia and AMD GPUs in <code>\/sys\/class\/backlight<\/code>. You can change your brightness by editing these files.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;ajay@legion ~]$ ls \/sys\/class\/backlight\/<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"434\" height=\"121\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/nvidia_backlight_directory.png-w.png?resize=434%2C121&#038;ssl=1\" alt=\"nvidia backlight directory\" class=\"wp-image-3139\"\/><figcaption class=\"wp-element-caption\">Figure: nvidia backlight directory used to set brightness on a Linux laptop<\/figcaption><\/figure>\n\n\n\n<p>To learn more, see <a href=\"https:\/\/wiki.archlinux.org\/title\/backlight#Kernel_command-line_options\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Kernel command-line options on the Arch Wiki<\/a>.<\/p>\n\n\n\n<p>For example, in AMD GPU laptops, writing some number into <code>\/sys\/class\/backlight\/amdgpu_bl0\/brightness<\/code> (or something like that) changes your brightness. For Nvidia laptops, it is something like <code>\/sys\/class\/backlight\/nvidia_wmi_ec_backlight\/brightness<\/code>.<\/p>\n\n\n\n<p>In AMD GPU laptops, there is a file like <code>\/sys\/class\/backlight\/amdgpu_bl0\/max_brightness<\/code>. It is the maximum number that can be written to <code>\/sys\/class\/backlight\/amdgpu_bl0\/brightness<\/code>. For Nvidia laptops, it is something like <code>\/sys\/class\/backlight\/nvidia_wmi_ec_backlight\/max_brightness<\/code>.<\/p>\n\n\n\n<p>Now, try increasing\/decreasing these values and see if the brightness changes. If it does, you are almost finished. Thank me in the comments section.<\/p>\n\n\n\n<p>You might need the <code>sudo<\/code> command to change the content of these files since they are owned by the <code>root<\/code> user, not you. In the next step, we will tackle this.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Changing_Ownership_of_Backlight_Files\"><\/span>Step 3: Changing Ownership of Backlight Files<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To change the group ownership and editing restrictions, you need to use <code>udev<\/code>, the device manager. These backlight files are created by Linux each time you start your PC, so these permissions need to be set each time you restart your system. <code>udev<\/code> handles this automatically.<\/p>\n\n\n\n<p>You might be wondering why I need to remove the <code>sudo<\/code> restriction. The reason is that I want to bind brightness changes to the brightness up and down buttons, and I don&#8217;t want to enter a password each time I change the brightness.<\/p>\n\n\n\n<p>Create or open the file <code>\/etc\/udev\/rules.d\/backlight.rules<\/code> using your favorite text editor:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;ajay@legion ~]$ sudo nvim \/etc\/udev\/rules.d\/backlight.rules<\/code><\/pre>\n\n\n\n<p>Add the following two lines:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RUN+=\"\/bin\/chgrp video \/sys\/class\/backlight\/&lt;backlight_device&gt;\/brightness\"\nRUN+=\"\/bin\/chmod g+w \/sys\/class\/backlight\/&lt;backlight_device&gt;\/brightness\"<\/code><\/pre>\n\n\n\n<p>Replace <code>&lt;backlight_device&gt;<\/code> with your specific device name.<\/p>\n\n\n\n<p><strong>\ud83d\udca1Note<\/strong>: Restart the system after making any changes to udev rules. You can also execute the following command to reload udev rules: <code>sudo udevadm control --reload<\/code>. However, restarting the system is preferred for minimum fuss.<\/p>\n\n\n\n<p>The <code>chgrp<\/code> command changes the group ownership of the file <code>brightness<\/code> to <code>video<\/code> (the first line). The <code>chmod<\/code> command gives the group <code>video<\/code> write permission (<code>w<\/code> for &#8216;write&#8217;). So, all users who are part of the <code>video<\/code> group should be able to write to the <code>brightness<\/code> file without requiring <code>sudo<\/code>.<\/p>\n\n\n\n<p>Please make sure that you are part of the <code>video<\/code> group using the <code>groups<\/code> command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;ajay@legion ~]$ groups &lt;user_name&gt;<\/code><\/pre>\n\n\n\n<p>Replace <code>&lt;user_name&gt;<\/code> with your username.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"432\" height=\"119\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/finding_groups_of_which_you_are_part_of_in_linux.png-w.png?resize=432%2C119&#038;ssl=1\" alt=\"finding groups of which you are part of using group command\" class=\"wp-image-3140\"\/><figcaption class=\"wp-element-caption\">Figure: finding groups of which you are part of using <code>groups<\/code> command<\/figcaption><\/figure>\n\n\n\n<p>If you are not part of the <code>video<\/code> group, you can add yourself using the <code>usermod<\/code> command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;ajay@legion ~]$ sudo usermod --append --groups video &lt;user_name&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4_Creating_Scripts_and_Binding_Them_to_Brightness_Up_and_Down_Keys\"><\/span>Step 4: Creating Scripts and Binding Them to Brightness Up and Down Keys<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Now, we will create two simple scripts: one for brightness up and one for brightness down. You can combine them into one script and use flags if you are familiar with shell scripting, but I won&#8217;t cover that here to keep it simple.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;ajay@legion ~]$ nvim ~\/bin\/brightness_down.sh<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n\n# Check the \/sys\/class\/backlight directory to find your backlight (bl) device and use that.\nbl_device=\/sys\/class\/backlight\/nvidia_wmi_ec_backlight\n\n# Reduce brightness in steps of 20.\nnewbrightness=$(($(cat $bl_device\/brightness)-20))\n\n# Set a minimum brightness of 10 to prevent the screen from going completely dark.\n# Ensure the `brightness` file has write permission (use udev)\n&#091;&#091; $newbrightness -le 10 ]] || echo $newbrightness &gt; $bl_device\/brightness\n\n# Uncomment it for i3 and i3blocks; similarly, for other minimalist systems\n# pkill -SIGRTMIN+1 i3blocks<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;ajay@legion ~]$ nvim ~\/bin\/brightness_up.sh<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n\n# Check the \/sys\/class\/backlight directory to find your backlight (bl) device and use that.\nbl_device=\/sys\/class\/backlight\/nvidia_wmi_ec_backlight\n\n# Increase brightness in steps of 20.\nnewbrightness=$(($(cat $bl_device\/brightness)+20))\n\n# Get the maximum brightness from the `max_brightness` file.\n# Ensure the `brightness` file has write permission (use udev)\n&#091;&#091; $newbrightness -gt $(cat $bl_device\/max_brightness) ]] || echo $newbrightness &gt; $bl_device\/brightness\n\n# Uncomment it for i3 and i3blocks; similarly, for other minimalist systems\n# pkill -SIGRTMIN+1 i3blocks<\/code><\/pre>\n\n\n\n<p>Make these two scripts executable using <code>chmod<\/code>. Ensure these scripts are in a directory included in the <code>$PATH<\/code>. <a href=\"https:\/\/smarttech101.com\/how-to-create-shell-scripts-in-linux-unix\/\" target=\"_blank\" rel=\"noreferrer noopener\">If you want to learn more about shell scripts, refer to this article<\/a>.<\/p>\n\n\n\n<p>Now, bind these scripts to the brightness up and down keys named <code>XF86MonBrightnessUp<\/code> and <code>XF86MonBrightnessDown<\/code>, respectively. These are standard names. <a href=\"https:\/\/wiki.linuxquestions.org\/wiki\/XF86_keyboard_symbols\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">To find names of other XF86* keys, refer to this page<\/a>. These keys may not be recognized by a key recognition tool called <code>xev<\/code>, but they still work.<\/p>\n\n\n\n<p><a href=\"https:\/\/smarttech101.com\/how-bind-shortcut-keys-to-commands-in-i3\/\" target=\"_blank\" rel=\"noreferrer noopener\">If you use the i3 tiling window manager, bind these scripts by adding the following lines to your i3 configuration file:<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bindsym XF86MonBrightnessUp exec --no-startup-id brightness_up.sh\nbindsym XF86MonBrightnessDown exec --no-startup-id brightness_down.sh<\/code><\/pre>\n\n\n\n<p>For something other than i3, use your system\u2019s configuration or use sxhkd, or follow this article to <a href=\"https:\/\/wiki.archlinux.org\/title\/keyboard_shortcuts\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">bind any shortcut key with any command<\/a>.<\/p>\n\n\n\n<p>You can take it a step further and add <a href=\"https:\/\/smarttech101.com\/how-to-send-notifications-in-linux-using-dunstify-notify-send\/\" target=\"_blank\" rel=\"noreferrer noopener\">dunst commands in these scripts to create beautiful notifications<\/a> each time you press the brightness up and down keys.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"231\" height=\"135\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/dunst_notification_brightness.png-w.png?resize=231%2C135&#038;ssl=1\" alt=\"dunst notification for brightness\" class=\"wp-image-3141\"\/><figcaption class=\"wp-element-caption\">Figure: dunst notification to show brightness on a Linux laptop<\/figcaption><\/figure>\n\n\n\n<p>You can also create i3blocks to show current brightness in i3 or other minimalistic tiling window managers. Just create a similar script that prints the current brightness level from the file <code>\/sys\/class\/backlight\/amdgpu_bl0\/brightness<\/code> and then sends the signal <code>pkill -SIGRTMIN+1 i3blocks<\/code> to update the brightness reading each time you press the brightness up and down keys.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"48\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/brightness_i3blocks.png-w.png?resize=722%2C48&#038;ssl=1\" alt=\"i3blocks brightness\" class=\"wp-image-3142\"\/><figcaption class=\"wp-element-caption\">figure: i3blocks brightness<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_2_How_to_Change_Screen_Brightness_Using_xbacklight\"><\/span>Method 2: How to Change Screen Brightness Using xbacklight<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>I could not make <code>xbacklight<\/code> work on ThinkPad (AMD GPU) and Legion (AMD and Nvidia GPUs) laptops. As of October 16, 2021, according to ArchWiki, it does not support Radeon drivers.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"428\" height=\"114\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/xbacklight_test.png-w.png?resize=428%2C114&#038;ssl=1\" alt=\"execute any xbacklight command to test if it will work on your system\" class=\"wp-image-3143\"\/><figcaption class=\"wp-element-caption\">figure:  execute any xbacklight command to test if it can change brightness on your linux laptop<\/figcaption><\/figure>\n\n\n\n<p>So, it is highly likely that xbacklight is intended for older laptops. Nonetheless, you should try it, as it appears to be the simplest method. If any of the commands fail, proceed to the other methods mentioned below.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Installation_of_xbacklight\"><\/span>Installation of xbacklight<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>Ubuntu\/Debian<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install xbacklight<\/code><\/pre>\n\n\n\n<p><strong>Fedora<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf install xbacklight<\/code><\/pre>\n\n\n\n<p><strong>CentOS<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum install xbacklight<\/code><\/pre>\n\n\n\n<p><strong>Arch Linux<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pacman -S xorg-xbacklight<\/code><\/pre>\n\n\n\n<p><strong>openSUSE<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo zypper install xbacklight<\/code><\/pre>\n\n\n\n<p>To decrease the screen brightness, use the following command. Replace <code>&lt;percentage&gt;<\/code> with the desired brightness level (e.g., 20 for 20%):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>xbacklight -dec &lt;percentage&gt;<\/code><\/pre>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>xbacklight -dec 20<\/code><\/pre>\n\n\n\n<p>Similarly, to increase the brightness to 20%, run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>xbacklight -inc &lt;percentage&gt;<\/code><\/pre>\n\n\n\n<p>Now, you need to bind these commands to brightness up and down keys, as mentioned in Method 1.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_3_How_to_change_Linux_Brightness_with_ACPI_Daemon\"><\/span>Method 3: How to change Linux Brightness with ACPI Daemon<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this method, similar to Method 1, backlight files are edited. However, you don&#8217;t need to set any group or write permissions or create keybindings.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Install_the_ACPI_Daemon\"><\/span>Step 1: Install the ACPI Daemon<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>Debian\/Ubuntu:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install acpid<\/code><\/pre>\n\n\n\n<p><strong>Red Hat\/CentOS:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum install acpid<\/code><\/pre>\n\n\n\n<p><strong>Fedora:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf install acpid<\/code><\/pre>\n\n\n\n<p><strong>Arch Linux:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pacman -S acpid<\/code><\/pre>\n\n\n\n<p><strong>openSUSE:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo zypper install acpid<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_StartEnable_acpidservice\"><\/span>Step 2: Start\/Enable acpid.service<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Use systemd:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;ajay@legion ~]$ sudo systemctl start acpid.service\n&#091;ajay@legion ~]$ sudo systemctl enable acpid.service<\/code><\/pre>\n\n\n\n<p>Now, run the <code>acpi_listen<\/code> command. <code>acpi_listen<\/code> will print something when you press volume\/brightness\/WLAN\/other keys, power button, close the laptop lid, audio jack plug\/unplug, etc. You can use this not just for brightness but also for all these functionalities.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"430\" height=\"116\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/acpi_listen_prints_whenever_you_press_brightnessup_down_key.png-w.png?resize=430%2C116&#038;ssl=1\" alt=\"acpi_listen prints when you press brightness up and down button\" class=\"wp-image-3144\"\/><figcaption class=\"wp-element-caption\">Figure: acpi_listen prints when you press brightness up and down button<\/figcaption><\/figure>\n\n\n\n<p><strong>\ud83d\udcd4Note<\/strong>: <a href=\"https:\/\/wiki.archlinux.org\/title\/acpid\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Desktop environments, such as GNOME, systemd login manager, and some extra key handling daemons, sometimes conflict with the acpi daemon<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Creating_ACPI_Actions_and_Events\"><\/span>Step 3: Creating ACPI Actions and Events<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Copy and paste the above two scripts, <code>brightness_down.sh<\/code> and <code>brightness_up.sh<\/code>, into the ACPI action directory <code>\/etc\/acpi\/actions\/<\/code>. This defines the actions.<\/p>\n\n\n\n<p>Now, define two events:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a file <code>brightness_up<\/code> in the events directory <code>\/etc\/acpi\/events\/<\/code> with exactly the following content:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>event=video\/brightnessup BRTUP 00000086 00000000\naction=\/etc\/acpi\/actions\/brightness_up.sh<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Similarly, create another file <code>brightness_down<\/code> in <code>\/etc\/acpi\/events<\/code>:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>event=video\/brightnessdown BRTDN 00000087 00000000\naction=\/etc\/acpi\/actions\/brightness_down.sh<\/code><\/pre>\n\n\n\n<p>These events are what are shown in the above figure.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4_Restart_ACPI_Daemon\"><\/span>Step 4: Restart ACPI Daemon<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Use systemd to restart:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart acpid.service<\/code><\/pre>\n\n\n\n<p>Alternatively, you can restart your PC.<\/p>\n\n\n\n<p>Here <strong>you don&#8217;t have to bind any key to any script<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_4_How_to_Change_Linux_Brightness_Using_xrandr\"><\/span>Method 4: How to Change Linux Brightness Using xrandr<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>This method is the simplest of all. It is more like an ad-hoc arrangement and is <strong>software-only<\/strong>. Use it if other methods don&#8217;t work. Prefer hardware control mentioned in other methods.<\/p>\n\n\n\n<p>First, make sure <code>xrandr<\/code> is installed on your system (use the command <code>which xrandr<\/code> to confirm).<\/p>\n\n\n\n<p>Now, change brightness using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;ajay@legion ~]$ xrandr --output &lt;display&gt; --brightness &lt;brightness_level&gt;<\/code><\/pre>\n\n\n\n<p>Replace <code>&lt;display&gt;<\/code> with the name of the monitor where brightness will be changed. To find the display names, use the <code>xrandr<\/code> command:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"836\" height=\"415\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/finding_monitor_names_with_xrandr.png-w.png?resize=836%2C415&#038;ssl=1\" alt=\"finding monitor's name using xrandr\" class=\"wp-image-3145\" srcset=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/finding_monitor_names_with_xrandr.png-w.png?w=836&amp;ssl=1 836w, https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/finding_monitor_names_with_xrandr.png-w.png?resize=768%2C381&amp;ssl=1 768w\" sizes=\"(max-width: 836px) 100vw, 836px\" \/><figcaption class=\"wp-element-caption\">figure: finding monitor&#8217;s name using xrandr<\/figcaption><\/figure>\n\n\n\n<p>Replace <code>&lt;brightness_level&gt;<\/code> with the desired brightness level. <code>0<\/code> means no brightness, and <code>1<\/code> is full brightness.<\/p>\n\n\n\n<p><strong>Example:<\/strong> the following command sets my laptops brightness to half:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>xrandr --output eDP-1 --brightness 0.5<\/code><\/pre>\n\n\n\n<p>Now, bind this command to the brightness up and down keys.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this article, I have discussed four methods to change screen brightness on a Linux laptop. You should try all of them and see which one works best for your system.<\/p>\n\n\n\n<p>Thank you for reading. If you have any questions, comments, or suggestions, please leave them in the comments section below.<\/p>\n\n\n\n<p><a href=\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/\" target=\"_blank\" rel=\"noreferrer noopener\">To change the battery charging threshold on your laptop, check out this article<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we&#8217;ll explore four methods to adjust screen brightness on a Linux laptop. Manufacturers often prioritize Windows support, so standard function keys may not work out of the box. The methods include direct backlight-file editing, using xbacklight, employing the ACPI daemon, and utilizing xrandr. Discover which one suits your Linux laptop best.<\/p>\n","protected":false},"author":2,"featured_media":3146,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[48],"tags":[36,18,35],"class_list":["post-3134","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-desktop-tools","tag-arch-linux","tag-command-line-tools","tag-core-linux-utilities"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Change Brightness on a Linux Laptop | SmartTech101<\/title>\n<meta name=\"description\" content=\"Learn 4 methods to change screen brightness on Linux laptops. ACPI, xbacklight, xrandr, and custom scripts for better control.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Change Brightness on a Linux Laptop | SmartTech101\" \/>\n<meta property=\"og:description\" content=\"Learn 4 methods to change screen brightness on Linux laptops. ACPI, xbacklight, xrandr, and custom scripts for better control.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/\" \/>\n<meta property=\"og:site_name\" content=\"SmartTech101\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-09T12:50:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-14T03:11:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Change-Brightness-on-a-Linux-Laptop.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ajay\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ajay_yadav\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ajay\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/\"},\"author\":{\"name\":\"Ajay\",\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/2edfee738a82f9c963210f8cdb438334\"},\"headline\":\"How to Change Brightness on a Linux Laptop\",\"datePublished\":\"2023-09-09T12:50:59+00:00\",\"dateModified\":\"2023-09-14T03:11:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/\"},\"wordCount\":1579,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633\"},\"image\":{\"@id\":\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Change-Brightness-on-a-Linux-Laptop.png?fit=1280%2C720&ssl=1\",\"keywords\":[\"Arch Linux\",\"Command Line Tools\",\"core linux utilities\"],\"articleSection\":[\"Linux Desktop Tools\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/\",\"url\":\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/\",\"name\":\"How to Change Brightness on a Linux Laptop | SmartTech101\",\"isPartOf\":{\"@id\":\"https:\/\/smarttech101.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Change-Brightness-on-a-Linux-Laptop.png?fit=1280%2C720&ssl=1\",\"datePublished\":\"2023-09-09T12:50:59+00:00\",\"dateModified\":\"2023-09-14T03:11:08+00:00\",\"description\":\"Learn 4 methods to change screen brightness on Linux laptops. ACPI, xbacklight, xrandr, and custom scripts for better control.\",\"breadcrumb\":{\"@id\":\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Change-Brightness-on-a-Linux-Laptop.png?fit=1280%2C720&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Change-Brightness-on-a-Linux-Laptop.png?fit=1280%2C720&ssl=1\",\"width\":1280,\"height\":720,\"caption\":\"How to Change Brightness on a Linux Laptop\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/smarttech101.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Change Brightness on a Linux Laptop\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/smarttech101.com\/#website\",\"url\":\"https:\/\/smarttech101.com\/\",\"name\":\"SmartTech101\",\"description\":\"Do Everything in Linux\",\"publisher\":{\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/smarttech101.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633\",\"name\":\"Ajay Yadav\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/09\/cropped-ST101_logo.png?fit=180%2C60&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/09\/cropped-ST101_logo.png?fit=180%2C60&ssl=1\",\"width\":180,\"height\":60,\"caption\":\"Ajay Yadav\"},\"logo\":{\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/2edfee738a82f9c963210f8cdb438334\",\"name\":\"Ajay\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6eea348caae2173954765a7cdf6cd107?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6eea348caae2173954765a7cdf6cd107?s=96&d=mm&r=g\",\"caption\":\"Ajay\"},\"sameAs\":[\"https:\/\/x.com\/ajay_yadav\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Change Brightness on a Linux Laptop | SmartTech101","description":"Learn 4 methods to change screen brightness on Linux laptops. ACPI, xbacklight, xrandr, and custom scripts for better control.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/","og_locale":"en_US","og_type":"article","og_title":"How to Change Brightness on a Linux Laptop | SmartTech101","og_description":"Learn 4 methods to change screen brightness on Linux laptops. ACPI, xbacklight, xrandr, and custom scripts for better control.","og_url":"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/","og_site_name":"SmartTech101","article_published_time":"2023-09-09T12:50:59+00:00","article_modified_time":"2023-09-14T03:11:08+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Change-Brightness-on-a-Linux-Laptop.png","type":"image\/png"}],"author":"Ajay","twitter_card":"summary_large_image","twitter_creator":"@ajay_yadav","twitter_misc":{"Written by":"Ajay","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#article","isPartOf":{"@id":"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/"},"author":{"name":"Ajay","@id":"https:\/\/smarttech101.com\/#\/schema\/person\/2edfee738a82f9c963210f8cdb438334"},"headline":"How to Change Brightness on a Linux Laptop","datePublished":"2023-09-09T12:50:59+00:00","dateModified":"2023-09-14T03:11:08+00:00","mainEntityOfPage":{"@id":"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/"},"wordCount":1579,"commentCount":0,"publisher":{"@id":"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633"},"image":{"@id":"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Change-Brightness-on-a-Linux-Laptop.png?fit=1280%2C720&ssl=1","keywords":["Arch Linux","Command Line Tools","core linux utilities"],"articleSection":["Linux Desktop Tools"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/","url":"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/","name":"How to Change Brightness on a Linux Laptop | SmartTech101","isPartOf":{"@id":"https:\/\/smarttech101.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#primaryimage"},"image":{"@id":"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Change-Brightness-on-a-Linux-Laptop.png?fit=1280%2C720&ssl=1","datePublished":"2023-09-09T12:50:59+00:00","dateModified":"2023-09-14T03:11:08+00:00","description":"Learn 4 methods to change screen brightness on Linux laptops. ACPI, xbacklight, xrandr, and custom scripts for better control.","breadcrumb":{"@id":"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#primaryimage","url":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Change-Brightness-on-a-Linux-Laptop.png?fit=1280%2C720&ssl=1","contentUrl":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Change-Brightness-on-a-Linux-Laptop.png?fit=1280%2C720&ssl=1","width":1280,"height":720,"caption":"How to Change Brightness on a Linux Laptop"},{"@type":"BreadcrumbList","@id":"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smarttech101.com\/"},{"@type":"ListItem","position":2,"name":"How to Change Brightness on a Linux Laptop"}]},{"@type":"WebSite","@id":"https:\/\/smarttech101.com\/#website","url":"https:\/\/smarttech101.com\/","name":"SmartTech101","description":"Do Everything in Linux","publisher":{"@id":"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/smarttech101.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633","name":"Ajay Yadav","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smarttech101.com\/#\/schema\/person\/image\/","url":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/09\/cropped-ST101_logo.png?fit=180%2C60&ssl=1","contentUrl":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/09\/cropped-ST101_logo.png?fit=180%2C60&ssl=1","width":180,"height":60,"caption":"Ajay Yadav"},"logo":{"@id":"https:\/\/smarttech101.com\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/smarttech101.com\/#\/schema\/person\/2edfee738a82f9c963210f8cdb438334","name":"Ajay","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smarttech101.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6eea348caae2173954765a7cdf6cd107?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6eea348caae2173954765a7cdf6cd107?s=96&d=mm&r=g","caption":"Ajay"},"sameAs":["https:\/\/x.com\/ajay_yadav"]}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Change-Brightness-on-a-Linux-Laptop.png?fit=1280%2C720&ssl=1","_links":{"self":[{"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/posts\/3134"}],"collection":[{"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/comments?post=3134"}],"version-history":[{"count":5,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/posts\/3134\/revisions"}],"predecessor-version":[{"id":3214,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/posts\/3134\/revisions\/3214"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/media\/3146"}],"wp:attachment":[{"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/media?parent=3134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/categories?post=3134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/tags?post=3134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}