How to enable backlight brightness controls

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
beefstu

How to enable backlight brightness controls

Post by beefstu »

This tutorial should help you try to fix problems with not being able to change your backlight brightness using the Fn keys on your laptop.

There are a couple of methods that can be used to try to fix this.

1. Passing acpi_backlight=vendor to the kernel at boot

To try this temporarily, on boot at the grub screen, with the Mint option highlighted, press 'e' on your keyboard. If the Grub boot menu does not normally show up on boot, press and hold the 'shift' key whilst booting until it shows. On this screen, navigate to just before it says 'quiet splash' and type

Code: Select all

acpi_backlight=vendor
then press ctrl-x to boot it.

Try the brightness controls again and see if it works:
- If it does then keep reading to make them permanent
- If it doesn't, try method 2 before rebooting, the commands you already put in will be forgotten on next boot

To make it permanent in Mint 8 and after (with Grub2) follow the blue instructions, Mint 7 and before (with Grub legacy) follow the instructions in red. If you have upgraded from Mint 7, it is likely you will still have Grub legacy installed and should therefore follow the red instructions.

Mint 8+

Code: Select all

gksudo gedit /etc/default/grub
find the line which says GRUB_CMDLINE_LINUX=""

and inbetween the ""

write

Code: Select all

acpi_backlight=vendor
save that then back in the terminal

Code: Select all

sudo update-grub
reboot again and see if they still work[/color]

Mint 7 and below

Code: Select all

gksudo gedit /boot/grub/menu.lst
Find the kernel line, should be something like

Code: Select all

kernel /boot/vmlinuz-2.6.27-7-generic root=/dev/sda11 ro quiet splash
and add the command as you did when you booted so it should look similar to this

Code: Select all

kernel /boot/vmlinuz-2.6.27-7-generic root=/dev/sda11 ro acpi_backlight=vendor quiet splash
Then reboot and see if it still works[/color]


2. change the backlight with xbacklight


First install xbacklight

Code: Select all

sudo apt-get install xbacklight
then in the terminal, run

Code: Select all

xbacklight -10
to turn the backlight down 10% or

Code: Select all

xbacklight +10
to turn up the backlight 10% and note whether these commands work or not. Reboot the laptop and run the xbacklight ±10 commands again and do one of the following:
- If it worked before rebooting but not after, follow the correct instructions in blue or red above and then continue reading down from here.
- If it worked after rebooting but not before, continue reading
- If it worked before and after reboot, continue reading.
- If nothing worked, its probably best to start a thread in the forum in a relevant section

The next step is to create a keyboard shortcut for them.

In the Mint menu, find the Keyboard Shortcuts application and click Add. In the name box, type Backlight Up and in the command box type xbacklight +10 and click Apply. Click the newly created shortcut in the Shortcut column and input the key combination that you want to use. There is a chance that the Fn+Button commands won't work, if so you may have to use Ctrl or Alt +the relevant button. Repeat this for turning down the backlight, but obviously with xbacklight -10 and a different key combination.


I welcome feedback, let me know if you spot a mistake or something is confusing. Also, if anyone has another method that worked for them that you think could be useful for other people, post it here or let me know.
Last edited by Oscar799 on Thu May 13, 2010 9:08 am, edited 3 times in total.
Reason: Amended title to make clear its a How-to guide
Aging Technogeek

Re: Methods for enabling backlight brightness controls

Post by Aging Technogeek »

Nice work beefstu. Very clear and concise. I like the two color system to differentiate between Grub 2 and Legacy Grub.
BrianD

Re: Methods for enabling backlight brightness controls

Post by BrianD »

agreed.

I would point out, however, that a command-line upgrade from Mint 7 to Mint 8 will produce a Mint 8 installation with legacy grub on it... so, I guess the color would be purple for them? :wink:
beefstu

Re: Methods for enabling backlight brightness controls

Post by beefstu »

I did wonder this but have never upgraded myself, is it just a command-line upgrade or graphical too which would leave you with grub legacy in mint 8?
BrianD

Re: Methods for enabling backlight brightness controls

Post by BrianD »

I don't know.. I've only done it once, and it was via the CLI. :wink:

interestingly, the /boot sector contained a bunch of extra grub2 stuff after the upgrade, but the functioning bootloader was still legacy grub. perhaps that was not a feature, but a bug in the upgrade process. :shrug: I manually converted the /boot sector over to grub2 for the sake of consistency.
zien

Re: Methods for enabling backlight brightness controls

Post by zien »

method 1 & 2 not working for me..

when im doing method 2.. after install xbacklight..
i type xbacklight -10/+10.
the result is "no outputs have backlight property"
what happen?
im a newbie. first time using linux mint.
User avatar
dritzominous
Level 3
Level 3
Posts: 161
Joined: Sat Nov 14, 2009 12:49 am

Re: How to enable backlight brightness controls

Post by dritzominous »

Same problem here. It's a bummer too, because this problem keeps my display at 100% brightness all of the time. My battery gets crap time when I'm off the plug because of it.

More help would be appreciated. I've tried everything I could find on the subject, and still nada.
Piloot

Re: How to enable backlight brightness controls

Post by Piloot »

Hello.
Laptop is HP Compaq nx6325.
In Mint 7 thous red instructions worked. Did not try step 2.
At Mint 8 and Mint 10 thous blue instructions dont work. Step 2 dont work.

I added small brightness changeing applet to panel. Right click on panel. Then comes menu, chouse Add to panel... And there is this applet, actually I dont know its name in English, because I use Mint with Estonia language, but I think its name is Brightness changeing or something similar.

It does the job for me. Applet is clitchi and hard to control, but I found out that mouse wheel is the best way to control it.

This applet is not working when you have completed red or blue instructions. You have to undo this.

Applet should work now. It does not save settings, so after reboot brightness is default again.
drinkmorecoffee

Re: How to enable backlight brightness controls

Post by drinkmorecoffee »

Thanks for the detailed how-to!

Dell Inspiron N7010, Integrated Intel Graphics, Mint 10. I had already added the "acpi_backlight=vendor" line from another tutorial, with no effect. Installed xbacklight (said it was already up to date), and the associated +10 and -10 commands had no effect.

But you did mention one thing that got me thinking. You said that there's a chance the Fn keys just flat out won't work. My hard-wired backlight keys are F3 and F4, and while the system does seem to notice them being pressed, it refuses to adjust the backlight in response. So I went into CompizConfig and changed the "Opacity, Brightness and Saturation Settings" to map Alt+Up and Alt+Dn to "Incrase Brightness" and "Decrease Brightness" respectively.

Previously I had tried this same key mapping with F3 and F4, and my success was sporadic at best. With the Alt+Up and Alt+Dn mappings it seems to work consistently. My only issue now is that it only affects the current window - it's not system-wide. That is, each new window that opens launches itself at full brightness, and must be toned down manually. It's a minor annoyance to be sure, but it's worth noting.

Thanks for taking the time to write this!
evut

Re: How to enable backlight brightness controls

Post by evut »

Hi, thanks everyone for writing this.
I have just spent 2 days trying to find something that would work on a Samsung RF710 laptop with Mint 10. I got the laptop to register the Fn+up/down, display the control and move the slider but it didn't actually do anything.

Then I read about the Compiz Config solution in the last post (wish I had read the whole thread properly and started with that...) and it works - I can use the Fn +up/down which is great but it changes brightness only on one window at a time like drinkmorecoffee says. Another issue is that I have to go into CompizConfig every time I log in and untick ant then tick again to enable the setting.
Any ideas how the CompizConfig settings could be changed to affect overall brightness and stay active after reboot?
Supial

Re: How to enable backlight brightness controls

Post by Supial »

Thanks a lot for those very clear instructions beefstu. The xbacklight method wordek with me.

Just wanted to mention that I had to find the right value to increase or decrease the brightness. If I type "xbacklight -get" (tells you the actual value set), then xbacklight -10 and again get, the difference is not 10%. The steps were of 14.285714. The reason seems to be there is 8 levels in total from 0 to 100 (100 diveded by 7 gives you that value). No big deal except that if I type xbacklight +10, nothing happens and I have to type xbacklight +15 to increase one level. Strangly, -10 worked but not +10. Don't have a clue why ?

I searched for solutions before and I think there is some kind of confusion for some people. The first thing is to know if Linux is able to change the brightness in any way. If not, I guess it would be a problem with the driver, acpi,... For me it was OK as I could actually change the brightness through the settings panel but my problem is that I could only do it while connected to power because the slider for brightness doesn't appear in the battery section (strange decision from ubuntu developper...). So I tried to change it with the fn keys and realized those keys weren't working. If you can't change the brightness at all, I think there is no way trying to make the fn keys work. Reason why beefstu said you'd better start a new thread in that case.
MagicMint

Re: How to enable backlight brightness controls

Post by MagicMint »

As no boot parameter had worked for me, I had to use a software only method instead. This alternative needs a script however, see tutorial: [url=http://community.linuxmint.com/tutorial/view/1349]WHATTO Do When the Backlight (Brightness) Keys Don’t Work[/url].
chauchakching

Re: How to enable backlight brightness controls

Post by chauchakching »

it works immediately after xbacklight is installed, problem solved.
thanks so much
Post Reply

Return to “Tutorials”