Unable to change brightness in a Lenovo laptopHow to change LCD brightness from command line (or via script)?What is a terminal and how do I open and use it?How do you change brightness, color and sharpness from command line?Can I control brightness on second monitor?Can't adjust brightness on my MSI VR420 laptopBrightness controls doesn't work on a MacBook Pro 5.5 (ubuntu 12.04 LTS)How can i make Brightness Control work?How to fix brightness on Ubuntu 14-04 LTS installed on macbook pro 2012 13"screen brightness and keyboard backlight works in unity, not in kdeWhy don't my Fn keys work for brightness or media after upgrading?How can i make Brightness Control work?Lenovo Y500 can't set brightnessMake a script run at startupBrightness control on Samsung Ativ Book 6Unable to change brightness in a Lenovo z500 laptop with Ubuntu 15.10Brightness Problem Ubuntu 15.10 (Dell inspiron 5737)I can't lower the backlight/brightnessBrightness control not working on laptop ubuntu16.10Brightness on laptop MSI GT72VR in Ubuntu 18.04 with NVIDIA GTX 1060 Mobile doesn't work18.04 Lenovo ideapad backlight
Violin - Can double stops be played when the strings are not next to each other?
Why do newer 737s use two different styles of split winglets?
A diagram about partial derivatives of f(x,y)
Why one should not leave fingerprints on bulbs and plugs?
ERC721: How to get the owned tokens of an address
Examples of transfinite towers
Aluminum electrolytic or ceramic capacitors for linear regulator input and output?
Official degrees of earth’s rotation per day
Print a physical multiplication table
Book: Young man exiled to a penal colony, helps to lead revolution
Why Choose Less Effective Armour Types?
Bacteria contamination inside a thermos bottle
As a new Ubuntu desktop 18.04 LTS user, do I need to use ufw for a firewall or is iptables sufficient?
Knife as defense against stray dogs
How do you talk to someone whose loved one is dying?
Are Roman Catholic priests ever addressed as pastor
How to explain that I do not want to visit a country due to personal safety concern?
How to make healing in an exploration game interesting
How to write cleanly even if my character uses expletive language?
Bach's Toccata and Fugue in D minor breaks the "no parallel octaves" rule?
Are ETF trackers fundamentally better than individual stocks?
This word with a lot of past tenses
Python if-else code style for reduced code for rounding floats
How could an airship be repaired midflight?
Unable to change brightness in a Lenovo laptop
How to change LCD brightness from command line (or via script)?What is a terminal and how do I open and use it?How do you change brightness, color and sharpness from command line?Can I control brightness on second monitor?Can't adjust brightness on my MSI VR420 laptopBrightness controls doesn't work on a MacBook Pro 5.5 (ubuntu 12.04 LTS)How can i make Brightness Control work?How to fix brightness on Ubuntu 14-04 LTS installed on macbook pro 2012 13"screen brightness and keyboard backlight works in unity, not in kdeWhy don't my Fn keys work for brightness or media after upgrading?How can i make Brightness Control work?Lenovo Y500 can't set brightnessMake a script run at startupBrightness control on Samsung Ativ Book 6Unable to change brightness in a Lenovo z500 laptop with Ubuntu 15.10Brightness Problem Ubuntu 15.10 (Dell inspiron 5737)I can't lower the backlight/brightnessBrightness control not working on laptop ubuntu16.10Brightness on laptop MSI GT72VR in Ubuntu 18.04 with NVIDIA GTX 1060 Mobile doesn't work18.04 Lenovo ideapad backlight
Brightness adjustment keys <Fn + ⇑/⇓> have no effect (although they are recognized by the environment), and I can't change the brightness using GUI tools as well. This seems like a problem in Linux itself, not the desktop environment.
I can change the brightness in Windows OS, so it's not some kind of hardware fault.
Details:
Lenovo B570 (Model Name: 20093)
Integrated Intel HD graphics card
Kubuntu 11.04 (Linux 2.6.38-10-generic, KDE 4.7.0), everything up to date
No proprietary graphics drivers (only Wi-Fi one)
What I've tried:
- Edit
/etc/default/grub
↦GRUB_CMDLINE_LINUX_DEFAULT
:acpi_osi=Linux
,acpi_backlight=vendor
,nomodeset
. And yes, I didupdate-grub
- Edit
/etc/X11/xorg.conf
(no such file, even aftersudo dpkg-reconfigure xserver-xorg
) - Edit
/proc/acpi/video/VGA/LCD/brightness
(no such file) sudo setpci -s 00:02.0 F4.B=
(no effect)XXxbacklight -set
("XXNo outputs have backlight property
")
How can I fix this issue?
laptop kubuntu intel-graphics brightness lenovo
add a comment |
Brightness adjustment keys <Fn + ⇑/⇓> have no effect (although they are recognized by the environment), and I can't change the brightness using GUI tools as well. This seems like a problem in Linux itself, not the desktop environment.
I can change the brightness in Windows OS, so it's not some kind of hardware fault.
Details:
Lenovo B570 (Model Name: 20093)
Integrated Intel HD graphics card
Kubuntu 11.04 (Linux 2.6.38-10-generic, KDE 4.7.0), everything up to date
No proprietary graphics drivers (only Wi-Fi one)
What I've tried:
- Edit
/etc/default/grub
↦GRUB_CMDLINE_LINUX_DEFAULT
:acpi_osi=Linux
,acpi_backlight=vendor
,nomodeset
. And yes, I didupdate-grub
- Edit
/etc/X11/xorg.conf
(no such file, even aftersudo dpkg-reconfigure xserver-xorg
) - Edit
/proc/acpi/video/VGA/LCD/brightness
(no such file) sudo setpci -s 00:02.0 F4.B=
(no effect)XXxbacklight -set
("XXNo outputs have backlight property
")
How can I fix this issue?
laptop kubuntu intel-graphics brightness lenovo
1
This has been fixed in Ubuntu 11.10!
– Oleh Prypin
Oct 13 '11 at 17:59
5
This appears broken again in Ubuntu 12.04.
– Mittenchops
May 21 '12 at 21:17
And Ubuntu 16.04 still.
– Diego
Apr 25 '16 at 3:56
1
Possible duplicate of How to change LCD brightness from command line (or via script)?
– Pablo Bianchi
Jan 4 at 23:04
add a comment |
Brightness adjustment keys <Fn + ⇑/⇓> have no effect (although they are recognized by the environment), and I can't change the brightness using GUI tools as well. This seems like a problem in Linux itself, not the desktop environment.
I can change the brightness in Windows OS, so it's not some kind of hardware fault.
Details:
Lenovo B570 (Model Name: 20093)
Integrated Intel HD graphics card
Kubuntu 11.04 (Linux 2.6.38-10-generic, KDE 4.7.0), everything up to date
No proprietary graphics drivers (only Wi-Fi one)
What I've tried:
- Edit
/etc/default/grub
↦GRUB_CMDLINE_LINUX_DEFAULT
:acpi_osi=Linux
,acpi_backlight=vendor
,nomodeset
. And yes, I didupdate-grub
- Edit
/etc/X11/xorg.conf
(no such file, even aftersudo dpkg-reconfigure xserver-xorg
) - Edit
/proc/acpi/video/VGA/LCD/brightness
(no such file) sudo setpci -s 00:02.0 F4.B=
(no effect)XXxbacklight -set
("XXNo outputs have backlight property
")
How can I fix this issue?
laptop kubuntu intel-graphics brightness lenovo
Brightness adjustment keys <Fn + ⇑/⇓> have no effect (although they are recognized by the environment), and I can't change the brightness using GUI tools as well. This seems like a problem in Linux itself, not the desktop environment.
I can change the brightness in Windows OS, so it's not some kind of hardware fault.
Details:
Lenovo B570 (Model Name: 20093)
Integrated Intel HD graphics card
Kubuntu 11.04 (Linux 2.6.38-10-generic, KDE 4.7.0), everything up to date
No proprietary graphics drivers (only Wi-Fi one)
What I've tried:
- Edit
/etc/default/grub
↦GRUB_CMDLINE_LINUX_DEFAULT
:acpi_osi=Linux
,acpi_backlight=vendor
,nomodeset
. And yes, I didupdate-grub
- Edit
/etc/X11/xorg.conf
(no such file, even aftersudo dpkg-reconfigure xserver-xorg
) - Edit
/proc/acpi/video/VGA/LCD/brightness
(no such file) sudo setpci -s 00:02.0 F4.B=
(no effect)XXxbacklight -set
("XXNo outputs have backlight property
")
How can I fix this issue?
laptop kubuntu intel-graphics brightness lenovo
laptop kubuntu intel-graphics brightness lenovo
edited Aug 19 '11 at 17:52
Oleh Prypin
asked Aug 15 '11 at 20:33
Oleh PrypinOleh Prypin
1,98821829
1,98821829
1
This has been fixed in Ubuntu 11.10!
– Oleh Prypin
Oct 13 '11 at 17:59
5
This appears broken again in Ubuntu 12.04.
– Mittenchops
May 21 '12 at 21:17
And Ubuntu 16.04 still.
– Diego
Apr 25 '16 at 3:56
1
Possible duplicate of How to change LCD brightness from command line (or via script)?
– Pablo Bianchi
Jan 4 at 23:04
add a comment |
1
This has been fixed in Ubuntu 11.10!
– Oleh Prypin
Oct 13 '11 at 17:59
5
This appears broken again in Ubuntu 12.04.
– Mittenchops
May 21 '12 at 21:17
And Ubuntu 16.04 still.
– Diego
Apr 25 '16 at 3:56
1
Possible duplicate of How to change LCD brightness from command line (or via script)?
– Pablo Bianchi
Jan 4 at 23:04
1
1
This has been fixed in Ubuntu 11.10!
– Oleh Prypin
Oct 13 '11 at 17:59
This has been fixed in Ubuntu 11.10!
– Oleh Prypin
Oct 13 '11 at 17:59
5
5
This appears broken again in Ubuntu 12.04.
– Mittenchops
May 21 '12 at 21:17
This appears broken again in Ubuntu 12.04.
– Mittenchops
May 21 '12 at 21:17
And Ubuntu 16.04 still.
– Diego
Apr 25 '16 at 3:56
And Ubuntu 16.04 still.
– Diego
Apr 25 '16 at 3:56
1
1
Possible duplicate of How to change LCD brightness from command line (or via script)?
– Pablo Bianchi
Jan 4 at 23:04
Possible duplicate of How to change LCD brightness from command line (or via script)?
– Pablo Bianchi
Jan 4 at 23:04
add a comment |
15 Answers
15
active
oldest
votes
Try this. It worked for my Ubuntu 14, Lenovo B570, Intel Graphics.
Open a terminal and create the following configuration file, if it does not exist:
sudo touch /usr/share/X11/xorg.conf.d/20-intel.conf
Now we need to edit this file. You can use any editor be it a terminal one or graphical.
sudo gedit /usr/share/X11/xorg.conf.d/20-intel.conf
Add the following lines to this file:
Section "Device"
Identifier "card0"
Driver "intel"
Option "Backlight" "intel_backlight"
BusID "PCI:0:2:0"
EndSection
Save it. Log out and log in back.
Thank you - This also worked on a Samsung N220 Netbook w/ Integrated Intel Graphics (GMA 3150) running Xubuntu 15.04 "vivid"
– Andrew
Jul 4 '15 at 18:48
1
Nope, that killed my X. had to remove the file in the recovery console again.
– towi
Sep 4 '16 at 18:36
This does did not work on Lenovo P500.
– Galen
Jan 27 '17 at 19:17
2
This worked for me on a Thinkpad T460 with Ubuntu 17.04, I just had to log out and then log in.
– Elliot Gorokhovsky
Jul 29 '17 at 19:19
add a comment |
If the GUI tools fail, try to use the terminal for it.
Open a terminal
Run:
ls /sys/class/backlight/*/brightness
. Example output would be:/sys/class/backlight/acpi_video0/brightness
If nothing is found, the kernel does not support brightness control (missing drivers?). Otherwise, you can use the below commands (replace
acpi_video0
accordingly):Get the current brightness level:
cat /sys/class/backlight/acpi_video0/brightness
Get the maximum brightness level:
cat /sys/class/backlight/acpi_video0/max_brightness
These commands return brightness levels which ranges from zero to max_brightness (see above).
To change the brightness level, you need to write a number to the
brightness
file. This cannot be done by an editor likegedit
. Say you want to change your brightness to 5, you have to run:echo 5 | sudo tee /sys/class/backlight/acpi_video0/brightness
Alternatively, if you just want to set the brightness level to the highest available:
sudo tee /sys/class/backlight/acpi_video0/brightness < /sys/class/backlight/acpi_video0/max_brightness
5
Sure there are some problems with drivers! If this command line stuff worked, GUI would work too. But of course it does not work – _
– Oleh Prypin
Aug 18 '11 at 12:24
@Lekensteyn: [did not worked, 11.04 Ubuntu using] - I have tried a lot but it did not worked realtime. Did you mean when changing this it will show live or after reboot?
– YumYumYum
Sep 20 '11 at 11:24
2
Changes are realtime.
– Lekensteyn
Sep 20 '11 at 13:50
Even as super user I could not change the brightness level using tee. Why might that be?
– Galen
Jan 27 '17 at 19:27
@Galen If you have not made a mistake in writing to the file, then it could be a model-specfic issue. Try reporting it as bug or search for your laptop model and "linux backlight".
– Lekensteyn
Jan 27 '17 at 21:03
|
show 2 more comments
Install
linux-kamal-mjgbacklight
- a patch for Linux kernel.- Check whether it will work for you:
lsmod | grep ^i915
Something likei915 331519 3
should appear. If there's no output, this will not work. sudo add-apt-repository ppa:kamalmostafa/linux-kamal-mjgbacklight
- Install updates (
sudo apt-get update; sudo apt-get upgrade
)
- Check whether it will work for you:
Reboot.
Now you can use the terminal to adjust brightness, as suggested by Lekensteyn.
If it's OK for you to change brightness with terminal+sudo
, this is the end of the answer.
If you are on GNOME desktop, brightness may even function fully already.Download my brightness changer script, allow it to be executed, and put it to /usr/local/bin/:
wget -O brightness http://ideone.com/plain/yPlo5
chmod +x brightness
sudo mv brightness /usr/local/bin
We have to allow the brightness file to be edited, so that
sudo
isn't needed everywhere.
Also, we want to make the brightness setting restore itself to the previous setting when the system boots (it is not saved by default, unfortunately).The mentioned
brightness
script can handle it all (withrestore
parameter), just add it to autorun.
To do this we will edit /etc/rc.local (sudo nano /etc/rc.local
or any editor instead of nano).
Add the following line before theexit 0
line:/usr/local/bin/brightness restore
It is best to reboot now.
So the
brightness
script works. You may go to terminal any time and type these:brightness
- get current brightness settingbrightness value
- set the brightness to valuebrightness inc step
,brightness dec step
- increase or decrease the brightness by step (if it's not specified, a default value is used from the configuration file, usually 10% of maximal brightness)
Now you might want to map brightness change to your hotkeys.
- Set XF86BrightnessUp to
brightness inc
- Set XF86BrightnessDown to
brightness dec
- Set XF86BrightnessUp to
If you want to tweak something, make sure to look at /etc/bx_brightness.conf
You can change the step by which brightness is changed withbrightness inc
/dec
Thanks to Toz for his priceless help in this thread.
1
This is no longer needed in Ubuntu 11.10
– Oleh Prypin
Oct 13 '11 at 17:59
add a comment |
I think I found an easy and least effect to the existed things' way for adjusting intel_backlight using udev rules.
I noticed "change" action of "backlight" subsystem when I press Fn+Up/Down on my Lenovo G360 notebook running kernel 3.2. So I wrote a rules of /etc/udev/rules.d/99-writeintelbacklight.rules
as below:
ACTION=="change", SUBSYSTEM=="backlight", RUN+="/usr/sbin/writeintelbacklight.sh"
Make the shell script /usr/sbin/writeintelbacklight.sh
contain:
#!/bin/bash
intelmaxbrightness=`cat /sys/class/backlight/intel_backlight/max_brightness`
acpimaxbrightness=`cat /sys/class/backlight/acpi_video0/max_brightness`
scale=`expr $intelmaxbrightness / $acpimaxbrightness`
acpibrightness=`cat /sys/class/backlight/acpi_video0/brightness`
newintelbrightness=`expr $acpibrightness * $scale`
curintelbrightness=`cat /sys/class/backlight/intel_backlight/actual_brightness`
if [ "$newintelbrightness" -ne "$curintelbrightness" ]
then
echo $newintelbrightness > /sys/class/backlight/intel_backlight/brightness
fi
exit 0
Of course, you need do a sudo chmod +x /usr/sbin/writeintelbacklight.sh
.
1
Added "acpi_backlight=vendor acpi_osi=linux video.brightness_switch_enabled=1" into grub boot kernel parameters, "Fn + Up/Down" to change brigtness works on my G360. It's no need to write a Udev rules like above.
– littlebat
Jun 11 '12 at 23:10
It seems adding only one kernel parameter "acpi_backlight=vendor" also works on my G360 now. But, both methods of adding kernel parameters will stop work occasionly. The detail of my case see: Bug 44809 - [Arrandale backlight] Brightness via RANDR has no effect on Sony VAIO VPCYA1V9E: bugs.freedesktop.org/show_bug.cgi?id=44809
– littlebat
Jun 22 '12 at 4:10
add a comment |
This will not get your Fn keys working, but you will be able to assign any other key to adjust brightness.
I tried several of these solutions, but nothing worked for me until I found this little indicator program http://codevanrohde.nl/wordpress/?p=128. With it you can set up hot keys to control brightness, use your mousewheel or select from a drop down list in the indicator. I have replaced 'Fn' with 'Win+Alt' which is very similar for my hands and now I can also use it with an external keyboard!
To add PPA and install:
sudo add-apt-repository ppa:indicator-brightness/ppa
sudo apt-get update && sudo apt-get install indicator-brightness
Hot keys should be assigned to:
/opt/extras.ubuntu.com/indicator-brightness/indicator-brightness-adjust --up
and
/opt/extras.ubuntu.com/indicator-brightness/indicator-brightness-adjust --down
Footnote: Out of the box, the birghtness indicator recognizes 7 levels of brightness in my system. By adding acpi_backlight=vendor
to the line GRUB_CMDLINE_LINUX_DEFAULT
in /etc/default/grub
, that number is bumped up to 16!
add a comment |
I have a lenovo ideapad z400.
I tried all the TIPS listed above, no success.
So I found a different one that worked very well :
Put the following line in /etc/default/grub
GRUB_CMDLINE_LINUX="acpi_backlight=vendor acpi_osi=Linux resume=/dev/sdYY"
YY = Swap area, use swapon -s to see you swap device.
Execute an update-grub as root
After the reboot the problem was solved.
It worked for me, however, something curious happened. When the brightness is set to the max, the screen shows no brightness (completely dark), any suggestion? Thanks
– Adriano Rivolli
Feb 20 '18 at 17:41
add a comment |
I have a Thinkpad T450s with Nvidia graphics and binary drivers on Ubuntu 14.04. In order to get the backlight working I had to edit the /etc/X11/xorg.conf file by adding the following line to the intel device definition (The xorg.conf-file is created when installing the binary drivers):
Option "Backlight" "intel_backlight"
The complete section is now:
Section "Device"
Identifier "intel"
Driver "intel"
BusID "PCI:0@0:2:0"
Option "Backlight" "intel_backlight"
Option "AccelMethod" "SNA"
EndSection
add a comment |
This doesn't work for KDE users as it written in https://launchpad.net/~kamalmostafa/+archive/linux-kamal-mjgbacklight
NOTES FOR KDE DESKTOP USERS
KDE desktop users: This PPA may NOT fix your backlight control hotkeys: This fix requires a kernel module to supply the new
/sys/class/backlight/intel_backlight
interface (which will work regardless of your desktop) and also a desktop module to access that interface. For Gnome, the updated gnome-power-manager in this PPA supplies that, but the equivalent for KDE has not yet been developed."
However you can try a workaround found here.
That says to type in the terminal echo XXX | sudo tee /sys/class/backlight/intel_backlight/brightness
where XXX is an integer value.
In my case XXX can be a value from 0 to 4882, but be careful: if you write 0 the screen will be completely black and you'll se nothing.
add a comment |
Here is a patch you can do.
Create this script with the name .modificarBrillo.sh (in my case I created it in my home folder: ~/.modificarBrillo.sh)
#!/bin/bash
if [ -z "$1" ]; then
echo "ERROR: Tiene que introducir un parámetro: "a" para aumentar o "d" para disminuir"
exit
else
if [ "$1" != "a" ] && [ "$1" != "d" ]; then
echo "ERROR: el parámetro de entrada sólo puede ser o "a" para aumentar el brillo o "d" para disminuirlo"
exit
fi
fi
MAX_BRILLO=`cat /sys/class/backlight/intel_backlight/max_brightness`
MIN_BRILLO_ABSOLUTO="0"
MIN_BRILLO="100" #el brillo mínimo puede ser 0 pero eso deja la pantalla completamente a oscuras
INTERVALO=`expr $MAX_BRILLO - $MIN_BRILLO_ABSOLUTO`
INTERVALO=`expr $INTERVALO / 10`
brillo=`cat /sys/class/backlight/intel_backlight/actual_brightness`
if [ "$1" = "a" ]; then
let "brillo = brillo + INTERVALO"
if [ "$brillo" -gt "$MAX_BRILLO" ]; then
let "brillo = MAX_BRILLO"
fi
else
let "brillo = brillo - INTERVALO"
if [ "$brillo" -lt "$MIN_BRILLO" ]; then
let "brillo = MIN_BRILLO"
fi
fi
echo "$brillo" | tee /sys/class/backlight/intel_backlight/brightness
However as the previous script needs execution permission and /sys/class/backlight/intel_backlight/brightness can only be edited by root and you have to execute in terminal:
chmod a+x ~/.modificarBrillo.sh
sudo chmod a+w /sys/class/backlight/intel_backlight/brightness`
The last command has to be executed every startup because the permissions of the brightness file are renewed with the startup. For doing so sudo vim /etc/rc.local
and add the command sudo chmod a+w /sys/class/backlight/intel_backlight/brightness
before the "exit 0" line
Finally you should install xbindkeys to assgin the Function key to execute the script.
In my case I add the lines to the configuration file ~/.xbindkeysrc
#Aumentar brillo
"/home/alvaro/.modificarBrillo.sh a"
m:0x0 + c:233
XF86MonBrightnessUp
#Disminuir brillo
"/home/alvaro/.modificarBrillo.sh d"
XF86MonBrightnessDown
But you could also install the program xbindkeys-config to do the proccess graphically.
add a comment |
Edit the /etc/default/grub
file and addpcie_aspm=force acpi_backlight=vendor
afterGRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Then the whole line will look like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force acpi_backlight=vendor"
For more detail visit this link.
add a comment |
I had the same issue, I am using Gnome3.10 in ubuntu 14.04 ( Unity). I installed tlp for temperature control in my laptop. I just removed 'tlp' and I rebooted my system and I am able to adjust screen brightness using function(fn) + arrow keys.
It might help check it once.
add a comment |
Had same problem (apparently) with a Lenovo IP G50-70. - In fact, none of the function keys 'appeared' to work. Eventually in the Bios I found a 'Hotkey' enable/disable function. Paradoxically, it was 'Enabled', but this in fact enables a single key press operation for the function keys. In fact, if you use the traditional 'Fn + Function keyX' technique, they don't work.
If you 'Disable' the hotkey function in the Bios, then the function keys work 'as expected' (Fn + Function Keyx). - After doing this, all the function keys worked OK. So much for progress
add a comment |
I had to add these lines to grub:
acpi_backlight=vendor acpi_osi=linux thinkpad-acpi.brightness_enable=1
Note that last one. That was the one that made the brightness keys work.
add a comment |
I was having a problem on a Thinkpad W510 running kubuntu 18.04.
I found this on a Lenovo forum:
tpb - program to use the IBM ThinkPad(tm) special keys
sudo apt-get install tpb
Voila! Brightness adjustment keys now work perfectly! I did not even need to log out and back in.
New contributor
add a comment |
You can use this package to deal with brightness from the command line (terminal), with the xbacklight
command.
xbacklight can be installed in the Software Center. Or in the Terminal:
sudo apt-get update && sudo apt-get install xbacklight
you can use
xbacklight -inc <range from 0 to 100>
to increase brightness with value< ... >
xbacklight -dec <range from 0 to 100>
to decrease brightness with value< ... >
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f57236%2funable-to-change-brightness-in-a-lenovo-laptop%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
15 Answers
15
active
oldest
votes
15 Answers
15
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try this. It worked for my Ubuntu 14, Lenovo B570, Intel Graphics.
Open a terminal and create the following configuration file, if it does not exist:
sudo touch /usr/share/X11/xorg.conf.d/20-intel.conf
Now we need to edit this file. You can use any editor be it a terminal one or graphical.
sudo gedit /usr/share/X11/xorg.conf.d/20-intel.conf
Add the following lines to this file:
Section "Device"
Identifier "card0"
Driver "intel"
Option "Backlight" "intel_backlight"
BusID "PCI:0:2:0"
EndSection
Save it. Log out and log in back.
Thank you - This also worked on a Samsung N220 Netbook w/ Integrated Intel Graphics (GMA 3150) running Xubuntu 15.04 "vivid"
– Andrew
Jul 4 '15 at 18:48
1
Nope, that killed my X. had to remove the file in the recovery console again.
– towi
Sep 4 '16 at 18:36
This does did not work on Lenovo P500.
– Galen
Jan 27 '17 at 19:17
2
This worked for me on a Thinkpad T460 with Ubuntu 17.04, I just had to log out and then log in.
– Elliot Gorokhovsky
Jul 29 '17 at 19:19
add a comment |
Try this. It worked for my Ubuntu 14, Lenovo B570, Intel Graphics.
Open a terminal and create the following configuration file, if it does not exist:
sudo touch /usr/share/X11/xorg.conf.d/20-intel.conf
Now we need to edit this file. You can use any editor be it a terminal one or graphical.
sudo gedit /usr/share/X11/xorg.conf.d/20-intel.conf
Add the following lines to this file:
Section "Device"
Identifier "card0"
Driver "intel"
Option "Backlight" "intel_backlight"
BusID "PCI:0:2:0"
EndSection
Save it. Log out and log in back.
Thank you - This also worked on a Samsung N220 Netbook w/ Integrated Intel Graphics (GMA 3150) running Xubuntu 15.04 "vivid"
– Andrew
Jul 4 '15 at 18:48
1
Nope, that killed my X. had to remove the file in the recovery console again.
– towi
Sep 4 '16 at 18:36
This does did not work on Lenovo P500.
– Galen
Jan 27 '17 at 19:17
2
This worked for me on a Thinkpad T460 with Ubuntu 17.04, I just had to log out and then log in.
– Elliot Gorokhovsky
Jul 29 '17 at 19:19
add a comment |
Try this. It worked for my Ubuntu 14, Lenovo B570, Intel Graphics.
Open a terminal and create the following configuration file, if it does not exist:
sudo touch /usr/share/X11/xorg.conf.d/20-intel.conf
Now we need to edit this file. You can use any editor be it a terminal one or graphical.
sudo gedit /usr/share/X11/xorg.conf.d/20-intel.conf
Add the following lines to this file:
Section "Device"
Identifier "card0"
Driver "intel"
Option "Backlight" "intel_backlight"
BusID "PCI:0:2:0"
EndSection
Save it. Log out and log in back.
Try this. It worked for my Ubuntu 14, Lenovo B570, Intel Graphics.
Open a terminal and create the following configuration file, if it does not exist:
sudo touch /usr/share/X11/xorg.conf.d/20-intel.conf
Now we need to edit this file. You can use any editor be it a terminal one or graphical.
sudo gedit /usr/share/X11/xorg.conf.d/20-intel.conf
Add the following lines to this file:
Section "Device"
Identifier "card0"
Driver "intel"
Option "Backlight" "intel_backlight"
BusID "PCI:0:2:0"
EndSection
Save it. Log out and log in back.
edited Jul 18 '14 at 1:39
answered Jul 18 '14 at 1:33
IgnacioIgnacio
11613
11613
Thank you - This also worked on a Samsung N220 Netbook w/ Integrated Intel Graphics (GMA 3150) running Xubuntu 15.04 "vivid"
– Andrew
Jul 4 '15 at 18:48
1
Nope, that killed my X. had to remove the file in the recovery console again.
– towi
Sep 4 '16 at 18:36
This does did not work on Lenovo P500.
– Galen
Jan 27 '17 at 19:17
2
This worked for me on a Thinkpad T460 with Ubuntu 17.04, I just had to log out and then log in.
– Elliot Gorokhovsky
Jul 29 '17 at 19:19
add a comment |
Thank you - This also worked on a Samsung N220 Netbook w/ Integrated Intel Graphics (GMA 3150) running Xubuntu 15.04 "vivid"
– Andrew
Jul 4 '15 at 18:48
1
Nope, that killed my X. had to remove the file in the recovery console again.
– towi
Sep 4 '16 at 18:36
This does did not work on Lenovo P500.
– Galen
Jan 27 '17 at 19:17
2
This worked for me on a Thinkpad T460 with Ubuntu 17.04, I just had to log out and then log in.
– Elliot Gorokhovsky
Jul 29 '17 at 19:19
Thank you - This also worked on a Samsung N220 Netbook w/ Integrated Intel Graphics (GMA 3150) running Xubuntu 15.04 "vivid"
– Andrew
Jul 4 '15 at 18:48
Thank you - This also worked on a Samsung N220 Netbook w/ Integrated Intel Graphics (GMA 3150) running Xubuntu 15.04 "vivid"
– Andrew
Jul 4 '15 at 18:48
1
1
Nope, that killed my X. had to remove the file in the recovery console again.
– towi
Sep 4 '16 at 18:36
Nope, that killed my X. had to remove the file in the recovery console again.
– towi
Sep 4 '16 at 18:36
This does did not work on Lenovo P500.
– Galen
Jan 27 '17 at 19:17
This does did not work on Lenovo P500.
– Galen
Jan 27 '17 at 19:17
2
2
This worked for me on a Thinkpad T460 with Ubuntu 17.04, I just had to log out and then log in.
– Elliot Gorokhovsky
Jul 29 '17 at 19:19
This worked for me on a Thinkpad T460 with Ubuntu 17.04, I just had to log out and then log in.
– Elliot Gorokhovsky
Jul 29 '17 at 19:19
add a comment |
If the GUI tools fail, try to use the terminal for it.
Open a terminal
Run:
ls /sys/class/backlight/*/brightness
. Example output would be:/sys/class/backlight/acpi_video0/brightness
If nothing is found, the kernel does not support brightness control (missing drivers?). Otherwise, you can use the below commands (replace
acpi_video0
accordingly):Get the current brightness level:
cat /sys/class/backlight/acpi_video0/brightness
Get the maximum brightness level:
cat /sys/class/backlight/acpi_video0/max_brightness
These commands return brightness levels which ranges from zero to max_brightness (see above).
To change the brightness level, you need to write a number to the
brightness
file. This cannot be done by an editor likegedit
. Say you want to change your brightness to 5, you have to run:echo 5 | sudo tee /sys/class/backlight/acpi_video0/brightness
Alternatively, if you just want to set the brightness level to the highest available:
sudo tee /sys/class/backlight/acpi_video0/brightness < /sys/class/backlight/acpi_video0/max_brightness
5
Sure there are some problems with drivers! If this command line stuff worked, GUI would work too. But of course it does not work – _
– Oleh Prypin
Aug 18 '11 at 12:24
@Lekensteyn: [did not worked, 11.04 Ubuntu using] - I have tried a lot but it did not worked realtime. Did you mean when changing this it will show live or after reboot?
– YumYumYum
Sep 20 '11 at 11:24
2
Changes are realtime.
– Lekensteyn
Sep 20 '11 at 13:50
Even as super user I could not change the brightness level using tee. Why might that be?
– Galen
Jan 27 '17 at 19:27
@Galen If you have not made a mistake in writing to the file, then it could be a model-specfic issue. Try reporting it as bug or search for your laptop model and "linux backlight".
– Lekensteyn
Jan 27 '17 at 21:03
|
show 2 more comments
If the GUI tools fail, try to use the terminal for it.
Open a terminal
Run:
ls /sys/class/backlight/*/brightness
. Example output would be:/sys/class/backlight/acpi_video0/brightness
If nothing is found, the kernel does not support brightness control (missing drivers?). Otherwise, you can use the below commands (replace
acpi_video0
accordingly):Get the current brightness level:
cat /sys/class/backlight/acpi_video0/brightness
Get the maximum brightness level:
cat /sys/class/backlight/acpi_video0/max_brightness
These commands return brightness levels which ranges from zero to max_brightness (see above).
To change the brightness level, you need to write a number to the
brightness
file. This cannot be done by an editor likegedit
. Say you want to change your brightness to 5, you have to run:echo 5 | sudo tee /sys/class/backlight/acpi_video0/brightness
Alternatively, if you just want to set the brightness level to the highest available:
sudo tee /sys/class/backlight/acpi_video0/brightness < /sys/class/backlight/acpi_video0/max_brightness
5
Sure there are some problems with drivers! If this command line stuff worked, GUI would work too. But of course it does not work – _
– Oleh Prypin
Aug 18 '11 at 12:24
@Lekensteyn: [did not worked, 11.04 Ubuntu using] - I have tried a lot but it did not worked realtime. Did you mean when changing this it will show live or after reboot?
– YumYumYum
Sep 20 '11 at 11:24
2
Changes are realtime.
– Lekensteyn
Sep 20 '11 at 13:50
Even as super user I could not change the brightness level using tee. Why might that be?
– Galen
Jan 27 '17 at 19:27
@Galen If you have not made a mistake in writing to the file, then it could be a model-specfic issue. Try reporting it as bug or search for your laptop model and "linux backlight".
– Lekensteyn
Jan 27 '17 at 21:03
|
show 2 more comments
If the GUI tools fail, try to use the terminal for it.
Open a terminal
Run:
ls /sys/class/backlight/*/brightness
. Example output would be:/sys/class/backlight/acpi_video0/brightness
If nothing is found, the kernel does not support brightness control (missing drivers?). Otherwise, you can use the below commands (replace
acpi_video0
accordingly):Get the current brightness level:
cat /sys/class/backlight/acpi_video0/brightness
Get the maximum brightness level:
cat /sys/class/backlight/acpi_video0/max_brightness
These commands return brightness levels which ranges from zero to max_brightness (see above).
To change the brightness level, you need to write a number to the
brightness
file. This cannot be done by an editor likegedit
. Say you want to change your brightness to 5, you have to run:echo 5 | sudo tee /sys/class/backlight/acpi_video0/brightness
Alternatively, if you just want to set the brightness level to the highest available:
sudo tee /sys/class/backlight/acpi_video0/brightness < /sys/class/backlight/acpi_video0/max_brightness
If the GUI tools fail, try to use the terminal for it.
Open a terminal
Run:
ls /sys/class/backlight/*/brightness
. Example output would be:/sys/class/backlight/acpi_video0/brightness
If nothing is found, the kernel does not support brightness control (missing drivers?). Otherwise, you can use the below commands (replace
acpi_video0
accordingly):Get the current brightness level:
cat /sys/class/backlight/acpi_video0/brightness
Get the maximum brightness level:
cat /sys/class/backlight/acpi_video0/max_brightness
These commands return brightness levels which ranges from zero to max_brightness (see above).
To change the brightness level, you need to write a number to the
brightness
file. This cannot be done by an editor likegedit
. Say you want to change your brightness to 5, you have to run:echo 5 | sudo tee /sys/class/backlight/acpi_video0/brightness
Alternatively, if you just want to set the brightness level to the highest available:
sudo tee /sys/class/backlight/acpi_video0/brightness < /sys/class/backlight/acpi_video0/max_brightness
edited Apr 13 '17 at 12:23
Community♦
1
1
answered Aug 18 '11 at 12:20
LekensteynLekensteyn
123k49270361
123k49270361
5
Sure there are some problems with drivers! If this command line stuff worked, GUI would work too. But of course it does not work – _
– Oleh Prypin
Aug 18 '11 at 12:24
@Lekensteyn: [did not worked, 11.04 Ubuntu using] - I have tried a lot but it did not worked realtime. Did you mean when changing this it will show live or after reboot?
– YumYumYum
Sep 20 '11 at 11:24
2
Changes are realtime.
– Lekensteyn
Sep 20 '11 at 13:50
Even as super user I could not change the brightness level using tee. Why might that be?
– Galen
Jan 27 '17 at 19:27
@Galen If you have not made a mistake in writing to the file, then it could be a model-specfic issue. Try reporting it as bug or search for your laptop model and "linux backlight".
– Lekensteyn
Jan 27 '17 at 21:03
|
show 2 more comments
5
Sure there are some problems with drivers! If this command line stuff worked, GUI would work too. But of course it does not work – _
– Oleh Prypin
Aug 18 '11 at 12:24
@Lekensteyn: [did not worked, 11.04 Ubuntu using] - I have tried a lot but it did not worked realtime. Did you mean when changing this it will show live or after reboot?
– YumYumYum
Sep 20 '11 at 11:24
2
Changes are realtime.
– Lekensteyn
Sep 20 '11 at 13:50
Even as super user I could not change the brightness level using tee. Why might that be?
– Galen
Jan 27 '17 at 19:27
@Galen If you have not made a mistake in writing to the file, then it could be a model-specfic issue. Try reporting it as bug or search for your laptop model and "linux backlight".
– Lekensteyn
Jan 27 '17 at 21:03
5
5
Sure there are some problems with drivers! If this command line stuff worked, GUI would work too. But of course it does not work – _
– Oleh Prypin
Aug 18 '11 at 12:24
Sure there are some problems with drivers! If this command line stuff worked, GUI would work too. But of course it does not work – _
– Oleh Prypin
Aug 18 '11 at 12:24
@Lekensteyn: [did not worked, 11.04 Ubuntu using] - I have tried a lot but it did not worked realtime. Did you mean when changing this it will show live or after reboot?
– YumYumYum
Sep 20 '11 at 11:24
@Lekensteyn: [did not worked, 11.04 Ubuntu using] - I have tried a lot but it did not worked realtime. Did you mean when changing this it will show live or after reboot?
– YumYumYum
Sep 20 '11 at 11:24
2
2
Changes are realtime.
– Lekensteyn
Sep 20 '11 at 13:50
Changes are realtime.
– Lekensteyn
Sep 20 '11 at 13:50
Even as super user I could not change the brightness level using tee. Why might that be?
– Galen
Jan 27 '17 at 19:27
Even as super user I could not change the brightness level using tee. Why might that be?
– Galen
Jan 27 '17 at 19:27
@Galen If you have not made a mistake in writing to the file, then it could be a model-specfic issue. Try reporting it as bug or search for your laptop model and "linux backlight".
– Lekensteyn
Jan 27 '17 at 21:03
@Galen If you have not made a mistake in writing to the file, then it could be a model-specfic issue. Try reporting it as bug or search for your laptop model and "linux backlight".
– Lekensteyn
Jan 27 '17 at 21:03
|
show 2 more comments
Install
linux-kamal-mjgbacklight
- a patch for Linux kernel.- Check whether it will work for you:
lsmod | grep ^i915
Something likei915 331519 3
should appear. If there's no output, this will not work. sudo add-apt-repository ppa:kamalmostafa/linux-kamal-mjgbacklight
- Install updates (
sudo apt-get update; sudo apt-get upgrade
)
- Check whether it will work for you:
Reboot.
Now you can use the terminal to adjust brightness, as suggested by Lekensteyn.
If it's OK for you to change brightness with terminal+sudo
, this is the end of the answer.
If you are on GNOME desktop, brightness may even function fully already.Download my brightness changer script, allow it to be executed, and put it to /usr/local/bin/:
wget -O brightness http://ideone.com/plain/yPlo5
chmod +x brightness
sudo mv brightness /usr/local/bin
We have to allow the brightness file to be edited, so that
sudo
isn't needed everywhere.
Also, we want to make the brightness setting restore itself to the previous setting when the system boots (it is not saved by default, unfortunately).The mentioned
brightness
script can handle it all (withrestore
parameter), just add it to autorun.
To do this we will edit /etc/rc.local (sudo nano /etc/rc.local
or any editor instead of nano).
Add the following line before theexit 0
line:/usr/local/bin/brightness restore
It is best to reboot now.
So the
brightness
script works. You may go to terminal any time and type these:brightness
- get current brightness settingbrightness value
- set the brightness to valuebrightness inc step
,brightness dec step
- increase or decrease the brightness by step (if it's not specified, a default value is used from the configuration file, usually 10% of maximal brightness)
Now you might want to map brightness change to your hotkeys.
- Set XF86BrightnessUp to
brightness inc
- Set XF86BrightnessDown to
brightness dec
- Set XF86BrightnessUp to
If you want to tweak something, make sure to look at /etc/bx_brightness.conf
You can change the step by which brightness is changed withbrightness inc
/dec
Thanks to Toz for his priceless help in this thread.
1
This is no longer needed in Ubuntu 11.10
– Oleh Prypin
Oct 13 '11 at 17:59
add a comment |
Install
linux-kamal-mjgbacklight
- a patch for Linux kernel.- Check whether it will work for you:
lsmod | grep ^i915
Something likei915 331519 3
should appear. If there's no output, this will not work. sudo add-apt-repository ppa:kamalmostafa/linux-kamal-mjgbacklight
- Install updates (
sudo apt-get update; sudo apt-get upgrade
)
- Check whether it will work for you:
Reboot.
Now you can use the terminal to adjust brightness, as suggested by Lekensteyn.
If it's OK for you to change brightness with terminal+sudo
, this is the end of the answer.
If you are on GNOME desktop, brightness may even function fully already.Download my brightness changer script, allow it to be executed, and put it to /usr/local/bin/:
wget -O brightness http://ideone.com/plain/yPlo5
chmod +x brightness
sudo mv brightness /usr/local/bin
We have to allow the brightness file to be edited, so that
sudo
isn't needed everywhere.
Also, we want to make the brightness setting restore itself to the previous setting when the system boots (it is not saved by default, unfortunately).The mentioned
brightness
script can handle it all (withrestore
parameter), just add it to autorun.
To do this we will edit /etc/rc.local (sudo nano /etc/rc.local
or any editor instead of nano).
Add the following line before theexit 0
line:/usr/local/bin/brightness restore
It is best to reboot now.
So the
brightness
script works. You may go to terminal any time and type these:brightness
- get current brightness settingbrightness value
- set the brightness to valuebrightness inc step
,brightness dec step
- increase or decrease the brightness by step (if it's not specified, a default value is used from the configuration file, usually 10% of maximal brightness)
Now you might want to map brightness change to your hotkeys.
- Set XF86BrightnessUp to
brightness inc
- Set XF86BrightnessDown to
brightness dec
- Set XF86BrightnessUp to
If you want to tweak something, make sure to look at /etc/bx_brightness.conf
You can change the step by which brightness is changed withbrightness inc
/dec
Thanks to Toz for his priceless help in this thread.
1
This is no longer needed in Ubuntu 11.10
– Oleh Prypin
Oct 13 '11 at 17:59
add a comment |
Install
linux-kamal-mjgbacklight
- a patch for Linux kernel.- Check whether it will work for you:
lsmod | grep ^i915
Something likei915 331519 3
should appear. If there's no output, this will not work. sudo add-apt-repository ppa:kamalmostafa/linux-kamal-mjgbacklight
- Install updates (
sudo apt-get update; sudo apt-get upgrade
)
- Check whether it will work for you:
Reboot.
Now you can use the terminal to adjust brightness, as suggested by Lekensteyn.
If it's OK for you to change brightness with terminal+sudo
, this is the end of the answer.
If you are on GNOME desktop, brightness may even function fully already.Download my brightness changer script, allow it to be executed, and put it to /usr/local/bin/:
wget -O brightness http://ideone.com/plain/yPlo5
chmod +x brightness
sudo mv brightness /usr/local/bin
We have to allow the brightness file to be edited, so that
sudo
isn't needed everywhere.
Also, we want to make the brightness setting restore itself to the previous setting when the system boots (it is not saved by default, unfortunately).The mentioned
brightness
script can handle it all (withrestore
parameter), just add it to autorun.
To do this we will edit /etc/rc.local (sudo nano /etc/rc.local
or any editor instead of nano).
Add the following line before theexit 0
line:/usr/local/bin/brightness restore
It is best to reboot now.
So the
brightness
script works. You may go to terminal any time and type these:brightness
- get current brightness settingbrightness value
- set the brightness to valuebrightness inc step
,brightness dec step
- increase or decrease the brightness by step (if it's not specified, a default value is used from the configuration file, usually 10% of maximal brightness)
Now you might want to map brightness change to your hotkeys.
- Set XF86BrightnessUp to
brightness inc
- Set XF86BrightnessDown to
brightness dec
- Set XF86BrightnessUp to
If you want to tweak something, make sure to look at /etc/bx_brightness.conf
You can change the step by which brightness is changed withbrightness inc
/dec
Thanks to Toz for his priceless help in this thread.
Install
linux-kamal-mjgbacklight
- a patch for Linux kernel.- Check whether it will work for you:
lsmod | grep ^i915
Something likei915 331519 3
should appear. If there's no output, this will not work. sudo add-apt-repository ppa:kamalmostafa/linux-kamal-mjgbacklight
- Install updates (
sudo apt-get update; sudo apt-get upgrade
)
- Check whether it will work for you:
Reboot.
Now you can use the terminal to adjust brightness, as suggested by Lekensteyn.
If it's OK for you to change brightness with terminal+sudo
, this is the end of the answer.
If you are on GNOME desktop, brightness may even function fully already.Download my brightness changer script, allow it to be executed, and put it to /usr/local/bin/:
wget -O brightness http://ideone.com/plain/yPlo5
chmod +x brightness
sudo mv brightness /usr/local/bin
We have to allow the brightness file to be edited, so that
sudo
isn't needed everywhere.
Also, we want to make the brightness setting restore itself to the previous setting when the system boots (it is not saved by default, unfortunately).The mentioned
brightness
script can handle it all (withrestore
parameter), just add it to autorun.
To do this we will edit /etc/rc.local (sudo nano /etc/rc.local
or any editor instead of nano).
Add the following line before theexit 0
line:/usr/local/bin/brightness restore
It is best to reboot now.
So the
brightness
script works. You may go to terminal any time and type these:brightness
- get current brightness settingbrightness value
- set the brightness to valuebrightness inc step
,brightness dec step
- increase or decrease the brightness by step (if it's not specified, a default value is used from the configuration file, usually 10% of maximal brightness)
Now you might want to map brightness change to your hotkeys.
- Set XF86BrightnessUp to
brightness inc
- Set XF86BrightnessDown to
brightness dec
- Set XF86BrightnessUp to
If you want to tweak something, make sure to look at /etc/bx_brightness.conf
You can change the step by which brightness is changed withbrightness inc
/dec
Thanks to Toz for his priceless help in this thread.
edited Apr 13 '17 at 12:23
Community♦
1
1
answered Aug 21 '11 at 13:29
Oleh PrypinOleh Prypin
1,98821829
1,98821829
1
This is no longer needed in Ubuntu 11.10
– Oleh Prypin
Oct 13 '11 at 17:59
add a comment |
1
This is no longer needed in Ubuntu 11.10
– Oleh Prypin
Oct 13 '11 at 17:59
1
1
This is no longer needed in Ubuntu 11.10
– Oleh Prypin
Oct 13 '11 at 17:59
This is no longer needed in Ubuntu 11.10
– Oleh Prypin
Oct 13 '11 at 17:59
add a comment |
I think I found an easy and least effect to the existed things' way for adjusting intel_backlight using udev rules.
I noticed "change" action of "backlight" subsystem when I press Fn+Up/Down on my Lenovo G360 notebook running kernel 3.2. So I wrote a rules of /etc/udev/rules.d/99-writeintelbacklight.rules
as below:
ACTION=="change", SUBSYSTEM=="backlight", RUN+="/usr/sbin/writeintelbacklight.sh"
Make the shell script /usr/sbin/writeintelbacklight.sh
contain:
#!/bin/bash
intelmaxbrightness=`cat /sys/class/backlight/intel_backlight/max_brightness`
acpimaxbrightness=`cat /sys/class/backlight/acpi_video0/max_brightness`
scale=`expr $intelmaxbrightness / $acpimaxbrightness`
acpibrightness=`cat /sys/class/backlight/acpi_video0/brightness`
newintelbrightness=`expr $acpibrightness * $scale`
curintelbrightness=`cat /sys/class/backlight/intel_backlight/actual_brightness`
if [ "$newintelbrightness" -ne "$curintelbrightness" ]
then
echo $newintelbrightness > /sys/class/backlight/intel_backlight/brightness
fi
exit 0
Of course, you need do a sudo chmod +x /usr/sbin/writeintelbacklight.sh
.
1
Added "acpi_backlight=vendor acpi_osi=linux video.brightness_switch_enabled=1" into grub boot kernel parameters, "Fn + Up/Down" to change brigtness works on my G360. It's no need to write a Udev rules like above.
– littlebat
Jun 11 '12 at 23:10
It seems adding only one kernel parameter "acpi_backlight=vendor" also works on my G360 now. But, both methods of adding kernel parameters will stop work occasionly. The detail of my case see: Bug 44809 - [Arrandale backlight] Brightness via RANDR has no effect on Sony VAIO VPCYA1V9E: bugs.freedesktop.org/show_bug.cgi?id=44809
– littlebat
Jun 22 '12 at 4:10
add a comment |
I think I found an easy and least effect to the existed things' way for adjusting intel_backlight using udev rules.
I noticed "change" action of "backlight" subsystem when I press Fn+Up/Down on my Lenovo G360 notebook running kernel 3.2. So I wrote a rules of /etc/udev/rules.d/99-writeintelbacklight.rules
as below:
ACTION=="change", SUBSYSTEM=="backlight", RUN+="/usr/sbin/writeintelbacklight.sh"
Make the shell script /usr/sbin/writeintelbacklight.sh
contain:
#!/bin/bash
intelmaxbrightness=`cat /sys/class/backlight/intel_backlight/max_brightness`
acpimaxbrightness=`cat /sys/class/backlight/acpi_video0/max_brightness`
scale=`expr $intelmaxbrightness / $acpimaxbrightness`
acpibrightness=`cat /sys/class/backlight/acpi_video0/brightness`
newintelbrightness=`expr $acpibrightness * $scale`
curintelbrightness=`cat /sys/class/backlight/intel_backlight/actual_brightness`
if [ "$newintelbrightness" -ne "$curintelbrightness" ]
then
echo $newintelbrightness > /sys/class/backlight/intel_backlight/brightness
fi
exit 0
Of course, you need do a sudo chmod +x /usr/sbin/writeintelbacklight.sh
.
1
Added "acpi_backlight=vendor acpi_osi=linux video.brightness_switch_enabled=1" into grub boot kernel parameters, "Fn + Up/Down" to change brigtness works on my G360. It's no need to write a Udev rules like above.
– littlebat
Jun 11 '12 at 23:10
It seems adding only one kernel parameter "acpi_backlight=vendor" also works on my G360 now. But, both methods of adding kernel parameters will stop work occasionly. The detail of my case see: Bug 44809 - [Arrandale backlight] Brightness via RANDR has no effect on Sony VAIO VPCYA1V9E: bugs.freedesktop.org/show_bug.cgi?id=44809
– littlebat
Jun 22 '12 at 4:10
add a comment |
I think I found an easy and least effect to the existed things' way for adjusting intel_backlight using udev rules.
I noticed "change" action of "backlight" subsystem when I press Fn+Up/Down on my Lenovo G360 notebook running kernel 3.2. So I wrote a rules of /etc/udev/rules.d/99-writeintelbacklight.rules
as below:
ACTION=="change", SUBSYSTEM=="backlight", RUN+="/usr/sbin/writeintelbacklight.sh"
Make the shell script /usr/sbin/writeintelbacklight.sh
contain:
#!/bin/bash
intelmaxbrightness=`cat /sys/class/backlight/intel_backlight/max_brightness`
acpimaxbrightness=`cat /sys/class/backlight/acpi_video0/max_brightness`
scale=`expr $intelmaxbrightness / $acpimaxbrightness`
acpibrightness=`cat /sys/class/backlight/acpi_video0/brightness`
newintelbrightness=`expr $acpibrightness * $scale`
curintelbrightness=`cat /sys/class/backlight/intel_backlight/actual_brightness`
if [ "$newintelbrightness" -ne "$curintelbrightness" ]
then
echo $newintelbrightness > /sys/class/backlight/intel_backlight/brightness
fi
exit 0
Of course, you need do a sudo chmod +x /usr/sbin/writeintelbacklight.sh
.
I think I found an easy and least effect to the existed things' way for adjusting intel_backlight using udev rules.
I noticed "change" action of "backlight" subsystem when I press Fn+Up/Down on my Lenovo G360 notebook running kernel 3.2. So I wrote a rules of /etc/udev/rules.d/99-writeintelbacklight.rules
as below:
ACTION=="change", SUBSYSTEM=="backlight", RUN+="/usr/sbin/writeintelbacklight.sh"
Make the shell script /usr/sbin/writeintelbacklight.sh
contain:
#!/bin/bash
intelmaxbrightness=`cat /sys/class/backlight/intel_backlight/max_brightness`
acpimaxbrightness=`cat /sys/class/backlight/acpi_video0/max_brightness`
scale=`expr $intelmaxbrightness / $acpimaxbrightness`
acpibrightness=`cat /sys/class/backlight/acpi_video0/brightness`
newintelbrightness=`expr $acpibrightness * $scale`
curintelbrightness=`cat /sys/class/backlight/intel_backlight/actual_brightness`
if [ "$newintelbrightness" -ne "$curintelbrightness" ]
then
echo $newintelbrightness > /sys/class/backlight/intel_backlight/brightness
fi
exit 0
Of course, you need do a sudo chmod +x /usr/sbin/writeintelbacklight.sh
.
edited Jan 30 '13 at 15:50
Eliah Kagan
82.7k22227369
82.7k22227369
answered Jun 8 '12 at 6:00
littlebatlittlebat
413
413
1
Added "acpi_backlight=vendor acpi_osi=linux video.brightness_switch_enabled=1" into grub boot kernel parameters, "Fn + Up/Down" to change brigtness works on my G360. It's no need to write a Udev rules like above.
– littlebat
Jun 11 '12 at 23:10
It seems adding only one kernel parameter "acpi_backlight=vendor" also works on my G360 now. But, both methods of adding kernel parameters will stop work occasionly. The detail of my case see: Bug 44809 - [Arrandale backlight] Brightness via RANDR has no effect on Sony VAIO VPCYA1V9E: bugs.freedesktop.org/show_bug.cgi?id=44809
– littlebat
Jun 22 '12 at 4:10
add a comment |
1
Added "acpi_backlight=vendor acpi_osi=linux video.brightness_switch_enabled=1" into grub boot kernel parameters, "Fn + Up/Down" to change brigtness works on my G360. It's no need to write a Udev rules like above.
– littlebat
Jun 11 '12 at 23:10
It seems adding only one kernel parameter "acpi_backlight=vendor" also works on my G360 now. But, both methods of adding kernel parameters will stop work occasionly. The detail of my case see: Bug 44809 - [Arrandale backlight] Brightness via RANDR has no effect on Sony VAIO VPCYA1V9E: bugs.freedesktop.org/show_bug.cgi?id=44809
– littlebat
Jun 22 '12 at 4:10
1
1
Added "acpi_backlight=vendor acpi_osi=linux video.brightness_switch_enabled=1" into grub boot kernel parameters, "Fn + Up/Down" to change brigtness works on my G360. It's no need to write a Udev rules like above.
– littlebat
Jun 11 '12 at 23:10
Added "acpi_backlight=vendor acpi_osi=linux video.brightness_switch_enabled=1" into grub boot kernel parameters, "Fn + Up/Down" to change brigtness works on my G360. It's no need to write a Udev rules like above.
– littlebat
Jun 11 '12 at 23:10
It seems adding only one kernel parameter "acpi_backlight=vendor" also works on my G360 now. But, both methods of adding kernel parameters will stop work occasionly. The detail of my case see: Bug 44809 - [Arrandale backlight] Brightness via RANDR has no effect on Sony VAIO VPCYA1V9E: bugs.freedesktop.org/show_bug.cgi?id=44809
– littlebat
Jun 22 '12 at 4:10
It seems adding only one kernel parameter "acpi_backlight=vendor" also works on my G360 now. But, both methods of adding kernel parameters will stop work occasionly. The detail of my case see: Bug 44809 - [Arrandale backlight] Brightness via RANDR has no effect on Sony VAIO VPCYA1V9E: bugs.freedesktop.org/show_bug.cgi?id=44809
– littlebat
Jun 22 '12 at 4:10
add a comment |
This will not get your Fn keys working, but you will be able to assign any other key to adjust brightness.
I tried several of these solutions, but nothing worked for me until I found this little indicator program http://codevanrohde.nl/wordpress/?p=128. With it you can set up hot keys to control brightness, use your mousewheel or select from a drop down list in the indicator. I have replaced 'Fn' with 'Win+Alt' which is very similar for my hands and now I can also use it with an external keyboard!
To add PPA and install:
sudo add-apt-repository ppa:indicator-brightness/ppa
sudo apt-get update && sudo apt-get install indicator-brightness
Hot keys should be assigned to:
/opt/extras.ubuntu.com/indicator-brightness/indicator-brightness-adjust --up
and
/opt/extras.ubuntu.com/indicator-brightness/indicator-brightness-adjust --down
Footnote: Out of the box, the birghtness indicator recognizes 7 levels of brightness in my system. By adding acpi_backlight=vendor
to the line GRUB_CMDLINE_LINUX_DEFAULT
in /etc/default/grub
, that number is bumped up to 16!
add a comment |
This will not get your Fn keys working, but you will be able to assign any other key to adjust brightness.
I tried several of these solutions, but nothing worked for me until I found this little indicator program http://codevanrohde.nl/wordpress/?p=128. With it you can set up hot keys to control brightness, use your mousewheel or select from a drop down list in the indicator. I have replaced 'Fn' with 'Win+Alt' which is very similar for my hands and now I can also use it with an external keyboard!
To add PPA and install:
sudo add-apt-repository ppa:indicator-brightness/ppa
sudo apt-get update && sudo apt-get install indicator-brightness
Hot keys should be assigned to:
/opt/extras.ubuntu.com/indicator-brightness/indicator-brightness-adjust --up
and
/opt/extras.ubuntu.com/indicator-brightness/indicator-brightness-adjust --down
Footnote: Out of the box, the birghtness indicator recognizes 7 levels of brightness in my system. By adding acpi_backlight=vendor
to the line GRUB_CMDLINE_LINUX_DEFAULT
in /etc/default/grub
, that number is bumped up to 16!
add a comment |
This will not get your Fn keys working, but you will be able to assign any other key to adjust brightness.
I tried several of these solutions, but nothing worked for me until I found this little indicator program http://codevanrohde.nl/wordpress/?p=128. With it you can set up hot keys to control brightness, use your mousewheel or select from a drop down list in the indicator. I have replaced 'Fn' with 'Win+Alt' which is very similar for my hands and now I can also use it with an external keyboard!
To add PPA and install:
sudo add-apt-repository ppa:indicator-brightness/ppa
sudo apt-get update && sudo apt-get install indicator-brightness
Hot keys should be assigned to:
/opt/extras.ubuntu.com/indicator-brightness/indicator-brightness-adjust --up
and
/opt/extras.ubuntu.com/indicator-brightness/indicator-brightness-adjust --down
Footnote: Out of the box, the birghtness indicator recognizes 7 levels of brightness in my system. By adding acpi_backlight=vendor
to the line GRUB_CMDLINE_LINUX_DEFAULT
in /etc/default/grub
, that number is bumped up to 16!
This will not get your Fn keys working, but you will be able to assign any other key to adjust brightness.
I tried several of these solutions, but nothing worked for me until I found this little indicator program http://codevanrohde.nl/wordpress/?p=128. With it you can set up hot keys to control brightness, use your mousewheel or select from a drop down list in the indicator. I have replaced 'Fn' with 'Win+Alt' which is very similar for my hands and now I can also use it with an external keyboard!
To add PPA and install:
sudo add-apt-repository ppa:indicator-brightness/ppa
sudo apt-get update && sudo apt-get install indicator-brightness
Hot keys should be assigned to:
/opt/extras.ubuntu.com/indicator-brightness/indicator-brightness-adjust --up
and
/opt/extras.ubuntu.com/indicator-brightness/indicator-brightness-adjust --down
Footnote: Out of the box, the birghtness indicator recognizes 7 levels of brightness in my system. By adding acpi_backlight=vendor
to the line GRUB_CMDLINE_LINUX_DEFAULT
in /etc/default/grub
, that number is bumped up to 16!
edited Apr 21 '14 at 13:38
answered Apr 21 '14 at 2:55
joelostblomjoelostblom
580410
580410
add a comment |
add a comment |
I have a lenovo ideapad z400.
I tried all the TIPS listed above, no success.
So I found a different one that worked very well :
Put the following line in /etc/default/grub
GRUB_CMDLINE_LINUX="acpi_backlight=vendor acpi_osi=Linux resume=/dev/sdYY"
YY = Swap area, use swapon -s to see you swap device.
Execute an update-grub as root
After the reboot the problem was solved.
It worked for me, however, something curious happened. When the brightness is set to the max, the screen shows no brightness (completely dark), any suggestion? Thanks
– Adriano Rivolli
Feb 20 '18 at 17:41
add a comment |
I have a lenovo ideapad z400.
I tried all the TIPS listed above, no success.
So I found a different one that worked very well :
Put the following line in /etc/default/grub
GRUB_CMDLINE_LINUX="acpi_backlight=vendor acpi_osi=Linux resume=/dev/sdYY"
YY = Swap area, use swapon -s to see you swap device.
Execute an update-grub as root
After the reboot the problem was solved.
It worked for me, however, something curious happened. When the brightness is set to the max, the screen shows no brightness (completely dark), any suggestion? Thanks
– Adriano Rivolli
Feb 20 '18 at 17:41
add a comment |
I have a lenovo ideapad z400.
I tried all the TIPS listed above, no success.
So I found a different one that worked very well :
Put the following line in /etc/default/grub
GRUB_CMDLINE_LINUX="acpi_backlight=vendor acpi_osi=Linux resume=/dev/sdYY"
YY = Swap area, use swapon -s to see you swap device.
Execute an update-grub as root
After the reboot the problem was solved.
I have a lenovo ideapad z400.
I tried all the TIPS listed above, no success.
So I found a different one that worked very well :
Put the following line in /etc/default/grub
GRUB_CMDLINE_LINUX="acpi_backlight=vendor acpi_osi=Linux resume=/dev/sdYY"
YY = Swap area, use swapon -s to see you swap device.
Execute an update-grub as root
After the reboot the problem was solved.
answered Aug 17 '15 at 14:44
Douglas MugnosDouglas Mugnos
411
411
It worked for me, however, something curious happened. When the brightness is set to the max, the screen shows no brightness (completely dark), any suggestion? Thanks
– Adriano Rivolli
Feb 20 '18 at 17:41
add a comment |
It worked for me, however, something curious happened. When the brightness is set to the max, the screen shows no brightness (completely dark), any suggestion? Thanks
– Adriano Rivolli
Feb 20 '18 at 17:41
It worked for me, however, something curious happened. When the brightness is set to the max, the screen shows no brightness (completely dark), any suggestion? Thanks
– Adriano Rivolli
Feb 20 '18 at 17:41
It worked for me, however, something curious happened. When the brightness is set to the max, the screen shows no brightness (completely dark), any suggestion? Thanks
– Adriano Rivolli
Feb 20 '18 at 17:41
add a comment |
I have a Thinkpad T450s with Nvidia graphics and binary drivers on Ubuntu 14.04. In order to get the backlight working I had to edit the /etc/X11/xorg.conf file by adding the following line to the intel device definition (The xorg.conf-file is created when installing the binary drivers):
Option "Backlight" "intel_backlight"
The complete section is now:
Section "Device"
Identifier "intel"
Driver "intel"
BusID "PCI:0@0:2:0"
Option "Backlight" "intel_backlight"
Option "AccelMethod" "SNA"
EndSection
add a comment |
I have a Thinkpad T450s with Nvidia graphics and binary drivers on Ubuntu 14.04. In order to get the backlight working I had to edit the /etc/X11/xorg.conf file by adding the following line to the intel device definition (The xorg.conf-file is created when installing the binary drivers):
Option "Backlight" "intel_backlight"
The complete section is now:
Section "Device"
Identifier "intel"
Driver "intel"
BusID "PCI:0@0:2:0"
Option "Backlight" "intel_backlight"
Option "AccelMethod" "SNA"
EndSection
add a comment |
I have a Thinkpad T450s with Nvidia graphics and binary drivers on Ubuntu 14.04. In order to get the backlight working I had to edit the /etc/X11/xorg.conf file by adding the following line to the intel device definition (The xorg.conf-file is created when installing the binary drivers):
Option "Backlight" "intel_backlight"
The complete section is now:
Section "Device"
Identifier "intel"
Driver "intel"
BusID "PCI:0@0:2:0"
Option "Backlight" "intel_backlight"
Option "AccelMethod" "SNA"
EndSection
I have a Thinkpad T450s with Nvidia graphics and binary drivers on Ubuntu 14.04. In order to get the backlight working I had to edit the /etc/X11/xorg.conf file by adding the following line to the intel device definition (The xorg.conf-file is created when installing the binary drivers):
Option "Backlight" "intel_backlight"
The complete section is now:
Section "Device"
Identifier "intel"
Driver "intel"
BusID "PCI:0@0:2:0"
Option "Backlight" "intel_backlight"
Option "AccelMethod" "SNA"
EndSection
answered Feb 5 '16 at 8:46
Tor BergTor Berg
212
212
add a comment |
add a comment |
This doesn't work for KDE users as it written in https://launchpad.net/~kamalmostafa/+archive/linux-kamal-mjgbacklight
NOTES FOR KDE DESKTOP USERS
KDE desktop users: This PPA may NOT fix your backlight control hotkeys: This fix requires a kernel module to supply the new
/sys/class/backlight/intel_backlight
interface (which will work regardless of your desktop) and also a desktop module to access that interface. For Gnome, the updated gnome-power-manager in this PPA supplies that, but the equivalent for KDE has not yet been developed."
However you can try a workaround found here.
That says to type in the terminal echo XXX | sudo tee /sys/class/backlight/intel_backlight/brightness
where XXX is an integer value.
In my case XXX can be a value from 0 to 4882, but be careful: if you write 0 the screen will be completely black and you'll se nothing.
add a comment |
This doesn't work for KDE users as it written in https://launchpad.net/~kamalmostafa/+archive/linux-kamal-mjgbacklight
NOTES FOR KDE DESKTOP USERS
KDE desktop users: This PPA may NOT fix your backlight control hotkeys: This fix requires a kernel module to supply the new
/sys/class/backlight/intel_backlight
interface (which will work regardless of your desktop) and also a desktop module to access that interface. For Gnome, the updated gnome-power-manager in this PPA supplies that, but the equivalent for KDE has not yet been developed."
However you can try a workaround found here.
That says to type in the terminal echo XXX | sudo tee /sys/class/backlight/intel_backlight/brightness
where XXX is an integer value.
In my case XXX can be a value from 0 to 4882, but be careful: if you write 0 the screen will be completely black and you'll se nothing.
add a comment |
This doesn't work for KDE users as it written in https://launchpad.net/~kamalmostafa/+archive/linux-kamal-mjgbacklight
NOTES FOR KDE DESKTOP USERS
KDE desktop users: This PPA may NOT fix your backlight control hotkeys: This fix requires a kernel module to supply the new
/sys/class/backlight/intel_backlight
interface (which will work regardless of your desktop) and also a desktop module to access that interface. For Gnome, the updated gnome-power-manager in this PPA supplies that, but the equivalent for KDE has not yet been developed."
However you can try a workaround found here.
That says to type in the terminal echo XXX | sudo tee /sys/class/backlight/intel_backlight/brightness
where XXX is an integer value.
In my case XXX can be a value from 0 to 4882, but be careful: if you write 0 the screen will be completely black and you'll se nothing.
This doesn't work for KDE users as it written in https://launchpad.net/~kamalmostafa/+archive/linux-kamal-mjgbacklight
NOTES FOR KDE DESKTOP USERS
KDE desktop users: This PPA may NOT fix your backlight control hotkeys: This fix requires a kernel module to supply the new
/sys/class/backlight/intel_backlight
interface (which will work regardless of your desktop) and also a desktop module to access that interface. For Gnome, the updated gnome-power-manager in this PPA supplies that, but the equivalent for KDE has not yet been developed."
However you can try a workaround found here.
That says to type in the terminal echo XXX | sudo tee /sys/class/backlight/intel_backlight/brightness
where XXX is an integer value.
In my case XXX can be a value from 0 to 4882, but be careful: if you write 0 the screen will be completely black and you'll se nothing.
edited Nov 22 '11 at 2:16
Bruno Pereira
60.4k26179209
60.4k26179209
answered Nov 21 '11 at 18:37
ÁlvaroÁlvaro
13615
13615
add a comment |
add a comment |
Here is a patch you can do.
Create this script with the name .modificarBrillo.sh (in my case I created it in my home folder: ~/.modificarBrillo.sh)
#!/bin/bash
if [ -z "$1" ]; then
echo "ERROR: Tiene que introducir un parámetro: "a" para aumentar o "d" para disminuir"
exit
else
if [ "$1" != "a" ] && [ "$1" != "d" ]; then
echo "ERROR: el parámetro de entrada sólo puede ser o "a" para aumentar el brillo o "d" para disminuirlo"
exit
fi
fi
MAX_BRILLO=`cat /sys/class/backlight/intel_backlight/max_brightness`
MIN_BRILLO_ABSOLUTO="0"
MIN_BRILLO="100" #el brillo mínimo puede ser 0 pero eso deja la pantalla completamente a oscuras
INTERVALO=`expr $MAX_BRILLO - $MIN_BRILLO_ABSOLUTO`
INTERVALO=`expr $INTERVALO / 10`
brillo=`cat /sys/class/backlight/intel_backlight/actual_brightness`
if [ "$1" = "a" ]; then
let "brillo = brillo + INTERVALO"
if [ "$brillo" -gt "$MAX_BRILLO" ]; then
let "brillo = MAX_BRILLO"
fi
else
let "brillo = brillo - INTERVALO"
if [ "$brillo" -lt "$MIN_BRILLO" ]; then
let "brillo = MIN_BRILLO"
fi
fi
echo "$brillo" | tee /sys/class/backlight/intel_backlight/brightness
However as the previous script needs execution permission and /sys/class/backlight/intel_backlight/brightness can only be edited by root and you have to execute in terminal:
chmod a+x ~/.modificarBrillo.sh
sudo chmod a+w /sys/class/backlight/intel_backlight/brightness`
The last command has to be executed every startup because the permissions of the brightness file are renewed with the startup. For doing so sudo vim /etc/rc.local
and add the command sudo chmod a+w /sys/class/backlight/intel_backlight/brightness
before the "exit 0" line
Finally you should install xbindkeys to assgin the Function key to execute the script.
In my case I add the lines to the configuration file ~/.xbindkeysrc
#Aumentar brillo
"/home/alvaro/.modificarBrillo.sh a"
m:0x0 + c:233
XF86MonBrightnessUp
#Disminuir brillo
"/home/alvaro/.modificarBrillo.sh d"
XF86MonBrightnessDown
But you could also install the program xbindkeys-config to do the proccess graphically.
add a comment |
Here is a patch you can do.
Create this script with the name .modificarBrillo.sh (in my case I created it in my home folder: ~/.modificarBrillo.sh)
#!/bin/bash
if [ -z "$1" ]; then
echo "ERROR: Tiene que introducir un parámetro: "a" para aumentar o "d" para disminuir"
exit
else
if [ "$1" != "a" ] && [ "$1" != "d" ]; then
echo "ERROR: el parámetro de entrada sólo puede ser o "a" para aumentar el brillo o "d" para disminuirlo"
exit
fi
fi
MAX_BRILLO=`cat /sys/class/backlight/intel_backlight/max_brightness`
MIN_BRILLO_ABSOLUTO="0"
MIN_BRILLO="100" #el brillo mínimo puede ser 0 pero eso deja la pantalla completamente a oscuras
INTERVALO=`expr $MAX_BRILLO - $MIN_BRILLO_ABSOLUTO`
INTERVALO=`expr $INTERVALO / 10`
brillo=`cat /sys/class/backlight/intel_backlight/actual_brightness`
if [ "$1" = "a" ]; then
let "brillo = brillo + INTERVALO"
if [ "$brillo" -gt "$MAX_BRILLO" ]; then
let "brillo = MAX_BRILLO"
fi
else
let "brillo = brillo - INTERVALO"
if [ "$brillo" -lt "$MIN_BRILLO" ]; then
let "brillo = MIN_BRILLO"
fi
fi
echo "$brillo" | tee /sys/class/backlight/intel_backlight/brightness
However as the previous script needs execution permission and /sys/class/backlight/intel_backlight/brightness can only be edited by root and you have to execute in terminal:
chmod a+x ~/.modificarBrillo.sh
sudo chmod a+w /sys/class/backlight/intel_backlight/brightness`
The last command has to be executed every startup because the permissions of the brightness file are renewed with the startup. For doing so sudo vim /etc/rc.local
and add the command sudo chmod a+w /sys/class/backlight/intel_backlight/brightness
before the "exit 0" line
Finally you should install xbindkeys to assgin the Function key to execute the script.
In my case I add the lines to the configuration file ~/.xbindkeysrc
#Aumentar brillo
"/home/alvaro/.modificarBrillo.sh a"
m:0x0 + c:233
XF86MonBrightnessUp
#Disminuir brillo
"/home/alvaro/.modificarBrillo.sh d"
XF86MonBrightnessDown
But you could also install the program xbindkeys-config to do the proccess graphically.
add a comment |
Here is a patch you can do.
Create this script with the name .modificarBrillo.sh (in my case I created it in my home folder: ~/.modificarBrillo.sh)
#!/bin/bash
if [ -z "$1" ]; then
echo "ERROR: Tiene que introducir un parámetro: "a" para aumentar o "d" para disminuir"
exit
else
if [ "$1" != "a" ] && [ "$1" != "d" ]; then
echo "ERROR: el parámetro de entrada sólo puede ser o "a" para aumentar el brillo o "d" para disminuirlo"
exit
fi
fi
MAX_BRILLO=`cat /sys/class/backlight/intel_backlight/max_brightness`
MIN_BRILLO_ABSOLUTO="0"
MIN_BRILLO="100" #el brillo mínimo puede ser 0 pero eso deja la pantalla completamente a oscuras
INTERVALO=`expr $MAX_BRILLO - $MIN_BRILLO_ABSOLUTO`
INTERVALO=`expr $INTERVALO / 10`
brillo=`cat /sys/class/backlight/intel_backlight/actual_brightness`
if [ "$1" = "a" ]; then
let "brillo = brillo + INTERVALO"
if [ "$brillo" -gt "$MAX_BRILLO" ]; then
let "brillo = MAX_BRILLO"
fi
else
let "brillo = brillo - INTERVALO"
if [ "$brillo" -lt "$MIN_BRILLO" ]; then
let "brillo = MIN_BRILLO"
fi
fi
echo "$brillo" | tee /sys/class/backlight/intel_backlight/brightness
However as the previous script needs execution permission and /sys/class/backlight/intel_backlight/brightness can only be edited by root and you have to execute in terminal:
chmod a+x ~/.modificarBrillo.sh
sudo chmod a+w /sys/class/backlight/intel_backlight/brightness`
The last command has to be executed every startup because the permissions of the brightness file are renewed with the startup. For doing so sudo vim /etc/rc.local
and add the command sudo chmod a+w /sys/class/backlight/intel_backlight/brightness
before the "exit 0" line
Finally you should install xbindkeys to assgin the Function key to execute the script.
In my case I add the lines to the configuration file ~/.xbindkeysrc
#Aumentar brillo
"/home/alvaro/.modificarBrillo.sh a"
m:0x0 + c:233
XF86MonBrightnessUp
#Disminuir brillo
"/home/alvaro/.modificarBrillo.sh d"
XF86MonBrightnessDown
But you could also install the program xbindkeys-config to do the proccess graphically.
Here is a patch you can do.
Create this script with the name .modificarBrillo.sh (in my case I created it in my home folder: ~/.modificarBrillo.sh)
#!/bin/bash
if [ -z "$1" ]; then
echo "ERROR: Tiene que introducir un parámetro: "a" para aumentar o "d" para disminuir"
exit
else
if [ "$1" != "a" ] && [ "$1" != "d" ]; then
echo "ERROR: el parámetro de entrada sólo puede ser o "a" para aumentar el brillo o "d" para disminuirlo"
exit
fi
fi
MAX_BRILLO=`cat /sys/class/backlight/intel_backlight/max_brightness`
MIN_BRILLO_ABSOLUTO="0"
MIN_BRILLO="100" #el brillo mínimo puede ser 0 pero eso deja la pantalla completamente a oscuras
INTERVALO=`expr $MAX_BRILLO - $MIN_BRILLO_ABSOLUTO`
INTERVALO=`expr $INTERVALO / 10`
brillo=`cat /sys/class/backlight/intel_backlight/actual_brightness`
if [ "$1" = "a" ]; then
let "brillo = brillo + INTERVALO"
if [ "$brillo" -gt "$MAX_BRILLO" ]; then
let "brillo = MAX_BRILLO"
fi
else
let "brillo = brillo - INTERVALO"
if [ "$brillo" -lt "$MIN_BRILLO" ]; then
let "brillo = MIN_BRILLO"
fi
fi
echo "$brillo" | tee /sys/class/backlight/intel_backlight/brightness
However as the previous script needs execution permission and /sys/class/backlight/intel_backlight/brightness can only be edited by root and you have to execute in terminal:
chmod a+x ~/.modificarBrillo.sh
sudo chmod a+w /sys/class/backlight/intel_backlight/brightness`
The last command has to be executed every startup because the permissions of the brightness file are renewed with the startup. For doing so sudo vim /etc/rc.local
and add the command sudo chmod a+w /sys/class/backlight/intel_backlight/brightness
before the "exit 0" line
Finally you should install xbindkeys to assgin the Function key to execute the script.
In my case I add the lines to the configuration file ~/.xbindkeysrc
#Aumentar brillo
"/home/alvaro/.modificarBrillo.sh a"
m:0x0 + c:233
XF86MonBrightnessUp
#Disminuir brillo
"/home/alvaro/.modificarBrillo.sh d"
XF86MonBrightnessDown
But you could also install the program xbindkeys-config to do the proccess graphically.
edited Nov 24 '11 at 14:58
answered Nov 24 '11 at 13:15
ÁlvaroÁlvaro
13615
13615
add a comment |
add a comment |
Edit the /etc/default/grub
file and addpcie_aspm=force acpi_backlight=vendor
afterGRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Then the whole line will look like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force acpi_backlight=vendor"
For more detail visit this link.
add a comment |
Edit the /etc/default/grub
file and addpcie_aspm=force acpi_backlight=vendor
afterGRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Then the whole line will look like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force acpi_backlight=vendor"
For more detail visit this link.
add a comment |
Edit the /etc/default/grub
file and addpcie_aspm=force acpi_backlight=vendor
afterGRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Then the whole line will look like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force acpi_backlight=vendor"
For more detail visit this link.
Edit the /etc/default/grub
file and addpcie_aspm=force acpi_backlight=vendor
afterGRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Then the whole line will look like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force acpi_backlight=vendor"
For more detail visit this link.
edited Feb 13 '15 at 21:03
Severo Raz
4,31232742
4,31232742
answered Feb 13 '15 at 20:18
chirag Hzchirag Hz
111
111
add a comment |
add a comment |
I had the same issue, I am using Gnome3.10 in ubuntu 14.04 ( Unity). I installed tlp for temperature control in my laptop. I just removed 'tlp' and I rebooted my system and I am able to adjust screen brightness using function(fn) + arrow keys.
It might help check it once.
add a comment |
I had the same issue, I am using Gnome3.10 in ubuntu 14.04 ( Unity). I installed tlp for temperature control in my laptop. I just removed 'tlp' and I rebooted my system and I am able to adjust screen brightness using function(fn) + arrow keys.
It might help check it once.
add a comment |
I had the same issue, I am using Gnome3.10 in ubuntu 14.04 ( Unity). I installed tlp for temperature control in my laptop. I just removed 'tlp' and I rebooted my system and I am able to adjust screen brightness using function(fn) + arrow keys.
It might help check it once.
I had the same issue, I am using Gnome3.10 in ubuntu 14.04 ( Unity). I installed tlp for temperature control in my laptop. I just removed 'tlp' and I rebooted my system and I am able to adjust screen brightness using function(fn) + arrow keys.
It might help check it once.
answered Nov 24 '15 at 6:39
Cool TigerCool Tiger
111
111
add a comment |
add a comment |
Had same problem (apparently) with a Lenovo IP G50-70. - In fact, none of the function keys 'appeared' to work. Eventually in the Bios I found a 'Hotkey' enable/disable function. Paradoxically, it was 'Enabled', but this in fact enables a single key press operation for the function keys. In fact, if you use the traditional 'Fn + Function keyX' technique, they don't work.
If you 'Disable' the hotkey function in the Bios, then the function keys work 'as expected' (Fn + Function Keyx). - After doing this, all the function keys worked OK. So much for progress
add a comment |
Had same problem (apparently) with a Lenovo IP G50-70. - In fact, none of the function keys 'appeared' to work. Eventually in the Bios I found a 'Hotkey' enable/disable function. Paradoxically, it was 'Enabled', but this in fact enables a single key press operation for the function keys. In fact, if you use the traditional 'Fn + Function keyX' technique, they don't work.
If you 'Disable' the hotkey function in the Bios, then the function keys work 'as expected' (Fn + Function Keyx). - After doing this, all the function keys worked OK. So much for progress
add a comment |
Had same problem (apparently) with a Lenovo IP G50-70. - In fact, none of the function keys 'appeared' to work. Eventually in the Bios I found a 'Hotkey' enable/disable function. Paradoxically, it was 'Enabled', but this in fact enables a single key press operation for the function keys. In fact, if you use the traditional 'Fn + Function keyX' technique, they don't work.
If you 'Disable' the hotkey function in the Bios, then the function keys work 'as expected' (Fn + Function Keyx). - After doing this, all the function keys worked OK. So much for progress
Had same problem (apparently) with a Lenovo IP G50-70. - In fact, none of the function keys 'appeared' to work. Eventually in the Bios I found a 'Hotkey' enable/disable function. Paradoxically, it was 'Enabled', but this in fact enables a single key press operation for the function keys. In fact, if you use the traditional 'Fn + Function keyX' technique, they don't work.
If you 'Disable' the hotkey function in the Bios, then the function keys work 'as expected' (Fn + Function Keyx). - After doing this, all the function keys worked OK. So much for progress
answered Jan 27 '16 at 18:03
an_otheran_other
111
111
add a comment |
add a comment |
I had to add these lines to grub:
acpi_backlight=vendor acpi_osi=linux thinkpad-acpi.brightness_enable=1
Note that last one. That was the one that made the brightness keys work.
add a comment |
I had to add these lines to grub:
acpi_backlight=vendor acpi_osi=linux thinkpad-acpi.brightness_enable=1
Note that last one. That was the one that made the brightness keys work.
add a comment |
I had to add these lines to grub:
acpi_backlight=vendor acpi_osi=linux thinkpad-acpi.brightness_enable=1
Note that last one. That was the one that made the brightness keys work.
I had to add these lines to grub:
acpi_backlight=vendor acpi_osi=linux thinkpad-acpi.brightness_enable=1
Note that last one. That was the one that made the brightness keys work.
answered Jul 6 '16 at 10:54
Charles GoodwinCharles Goodwin
166117
166117
add a comment |
add a comment |
I was having a problem on a Thinkpad W510 running kubuntu 18.04.
I found this on a Lenovo forum:
tpb - program to use the IBM ThinkPad(tm) special keys
sudo apt-get install tpb
Voila! Brightness adjustment keys now work perfectly! I did not even need to log out and back in.
New contributor
add a comment |
I was having a problem on a Thinkpad W510 running kubuntu 18.04.
I found this on a Lenovo forum:
tpb - program to use the IBM ThinkPad(tm) special keys
sudo apt-get install tpb
Voila! Brightness adjustment keys now work perfectly! I did not even need to log out and back in.
New contributor
add a comment |
I was having a problem on a Thinkpad W510 running kubuntu 18.04.
I found this on a Lenovo forum:
tpb - program to use the IBM ThinkPad(tm) special keys
sudo apt-get install tpb
Voila! Brightness adjustment keys now work perfectly! I did not even need to log out and back in.
New contributor
I was having a problem on a Thinkpad W510 running kubuntu 18.04.
I found this on a Lenovo forum:
tpb - program to use the IBM ThinkPad(tm) special keys
sudo apt-get install tpb
Voila! Brightness adjustment keys now work perfectly! I did not even need to log out and back in.
New contributor
New contributor
answered 24 mins ago
Rick GravesRick Graves
1
1
New contributor
New contributor
add a comment |
add a comment |
You can use this package to deal with brightness from the command line (terminal), with the xbacklight
command.
xbacklight can be installed in the Software Center. Or in the Terminal:
sudo apt-get update && sudo apt-get install xbacklight
you can use
xbacklight -inc <range from 0 to 100>
to increase brightness with value< ... >
xbacklight -dec <range from 0 to 100>
to decrease brightness with value< ... >
add a comment |
You can use this package to deal with brightness from the command line (terminal), with the xbacklight
command.
xbacklight can be installed in the Software Center. Or in the Terminal:
sudo apt-get update && sudo apt-get install xbacklight
you can use
xbacklight -inc <range from 0 to 100>
to increase brightness with value< ... >
xbacklight -dec <range from 0 to 100>
to decrease brightness with value< ... >
add a comment |
You can use this package to deal with brightness from the command line (terminal), with the xbacklight
command.
xbacklight can be installed in the Software Center. Or in the Terminal:
sudo apt-get update && sudo apt-get install xbacklight
you can use
xbacklight -inc <range from 0 to 100>
to increase brightness with value< ... >
xbacklight -dec <range from 0 to 100>
to decrease brightness with value< ... >
You can use this package to deal with brightness from the command line (terminal), with the xbacklight
command.
xbacklight can be installed in the Software Center. Or in the Terminal:
sudo apt-get update && sudo apt-get install xbacklight
you can use
xbacklight -inc <range from 0 to 100>
to increase brightness with value< ... >
xbacklight -dec <range from 0 to 100>
to decrease brightness with value< ... >
edited Mar 11 '17 at 19:00
Community♦
1
1
answered Jan 16 '12 at 22:55
Mohamed HassanMohamed Hassan
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f57236%2funable-to-change-brightness-in-a-lenovo-laptop%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
This has been fixed in Ubuntu 11.10!
– Oleh Prypin
Oct 13 '11 at 17:59
5
This appears broken again in Ubuntu 12.04.
– Mittenchops
May 21 '12 at 21:17
And Ubuntu 16.04 still.
– Diego
Apr 25 '16 at 3:56
1
Possible duplicate of How to change LCD brightness from command line (or via script)?
– Pablo Bianchi
Jan 4 at 23:04