Howto set screen brightness in Toshiba Satellite T130

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

Howto set screen brightness in Toshiba Satellite T130

Postby m4daredsun on Thu Jan 06, 2011 5:46 pm

It seems that dimming the screen brightness in Toshiba Satellite machines is a big issue. I personally have a T130 and I could find no way to reduce the brightness of the screen by using the ' Fn + 3 ' hotkey. In case you have this issue, 2 are the main consequences:
1) your eyes will start complaining after some minutes you look at your screen :evil:
2) on battery power, you won't get much working time :evil:

After many hours spent googling around I found the following post on ubuntuforums which allowed me to partially solve my issue:
http://ubuntuforums.org/showthread.php?t=1321403&page=3, post #26

What you have to do is to modify some ACPI configuration files to set the brightness levels you want to use on battery and AC power. In the following, I will try to explain you how to accomplish this.

0. Check if SETPCI works on your machine

Before wasting time creating and modifying configuration files, I suggest to test the following simple command in a terminal window:

Code: Select all
sudo setpci -s 00:02.0 F4.B=45

The command accpets values from 00 (dark) to FF (bright). The instructions should considerably reduce the brightness of your screen. If this is the case, you can proceed and read the following instructions. If not, I am afraid that this Howto will be useless for you :(

1. Create a file brightness.sh

The first step is to create a file named brightness.sh in the right place and to make it executable. This can be accomplished by typing in terminal:
Code: Select all
sudo touch /etc/acpi/brightness.sh
sudo chmod 755 /etc/acpi/brightness.sh


2. Edit the file brightness.sh

The second step is to write some meaningful instructions in the file brightness.sh. Open the file with your favourite text editor (mine is gedit) by typing:
Code: Select all
sudo gedit /etc/acpi/brightness.sh


Now copy paste the following lines into brightness.sh:
Code: Select all
#!/bin/sh

if [ "`sed -e "s/.[^ ]* *//" /proc/acpi/ac_adapter/ACAD/state`" = "on-line" ]
        then
                logger "ACPI: AC adapter is on-line, brightness up..."
                sudo setpci -s 00:02.0 F4.B=99

        else
                logger "ACPI: AC adapter is off-line, brightness down..."
                sudo setpci -s 00:02.0 F4.B=70

fi


This will set your brigthness to 99 when working on AC power and to 70 on battery power. You can play with the numbers (from 00 to FF) to find your ideal values.

3. Make ACPI use brightness.sh

The last step is to tell ACPI to use the new brightness.sh configuration file. Type the following lines in terminal:
Code: Select all
 sudo su
echo action=/etc/acpi/brightness.sh >> /etc/acpi/events/battery
echo action=/etc/acpi/brightness.sh >> /etc/acpi/events/ac


And then restart ACPI:
Code: Select all
restart acpid


Now you should be able the screen brightness values on Toshiba Satellite machine and next time you'll turn your machine ACPI will magically remember to adjust your screen brightness. On my T130 everything works perfectly :mrgreen: :mrgreen: :mrgreen:
However, you will not be able to manually adjust your brightness by using the Fn key. For this, I haven't found any solution so far.
The only limiting factor of the Linux operating system is its user - Linus Torvalds
User avatar
m4daredsun
Level 2
Level 2
 
Posts: 83
Joined: Thu Mar 04, 2010 5:31 pm

Linux Mint is funded by ads and donations.
 

Re: Howto set screen brightness in Toshiba Satellite T130

Postby MrCleanWithHair on Mon May 16, 2011 1:42 am

Don't know if this will be any help to you.

I couldn't get the fn + F? options to work for my Sony Vaio so I set keybindings for xbacklight to super + up/down to adjust my screen brightness.
I did something very similar to get my audio to work.

If you use openbox: http://crunchbanglinux.org/forums/post/14556/#p14556
MrCleanWithHair
Level 1
Level 1
 
Posts: 16
Joined: Sun Mar 07, 2010 11:51 pm


Return to Tutorials

Who is online

Users browsing this forum: PawelW and 15 guests