How do I change screen brightness from a terminal?
I'm running Ubuntu 11.04 with the Gnome Classic (No effects) display manager. My laptop's brightness keys work. However, when I boot or resume from suspend when using the integrated Intel graphics card the display brightness is turned all the way down, and I have to turn up the brightness using the brightness function keys so I that can see the display. I'd like to automate this by putting a terminal command in a script so I can automatically turn up the screen brightness when the system boots.
I've tried the following commands with no success: Code:
echo 9>/sys/class/backlight/acpi_video0/brightness Code:
setpci -s 00:02.0 F4.B=10 Code:
xbacklight -set 90 Code:
acpi_backlight=vendor Any suggestions of anything else I could try to change the screen brightness from a terminal? |
I would look under the Gnome keyboard shortcut configuration, if I remember rightly from when I used Ubuntu you can see what command it runs when you press the brightness keys :) and then you should be able to run that from terminal...
|
Quote:
Code:
sudo echo 9>/sys/class/backlight/acpi_video0/brightness Code:
#!/bin/bash |
Quote:
|
Quote:
Code:
root@john-laptop:/home/john# sudo su |
Worked for me!
Quote:
Code:
sudo echo "9">/sys/class/backlight/acpi_video0/brightness Quote:
|
Worked great! as root...
this worked great:
Code:
echo "24">/sys/class/backlight/acpi_video0/brightness I want to bind this to a hotkey in openbox but i cant exactly do stuff as root there. |
Quote:
Code:
man xbacklight Code:
xbacklight -inc 20 xbacklight man page on-line. |
Perfect!
that was perfect! thanks allot!
|
Quote:
|
Hi, I'm new at linux and got a similiar problem:
Hotkeys won't work. (sudo) echo xx>/sys... gives bash: /sys/class/backlight/acpi_video0/brightness: Permission denied (sudo) echo "xx">/sys... gives the same btw: brightness has -rw-r--r-- then I installed xbacklight but no matter what I wrote in commandline (xbacklight -get, xbacklight -set 10, xbacklight -inc 20, ...) nothing happens nor output. Can someone help me? I'm working on a Thinkpad Edge something with Linux Mint 17 and cinnamon Please feel free to correct my english so that I can improve it. |
Code:
sudo tee /sys/class/backlight/acpi_video0/brightness <<< "value" "and I have a similar problem" "nothing happens and there is no output" ;) |
Your code gives just out 1 or 5 or 10 or whatever I wrote for value. But the actual brightness doesn't change.
Do you have more suggestions, maybe? Thanks anyway |
What is the output of:
Code:
ls /sys/class/backlight Which kernel version and graphics card are you using? |
great, the command aplied on ...radeon_bl0/brightness works.
thanks for that hind. Quote:
But I think that doesn't matter anymore. Thanks for your help. Good night |
All times are GMT -5. The time now is 09:36 PM. |