This is a compatibility guide to running Linux with the Toshiba Satellite T130 laptop.
This page is just for discussing using Linux on the Toshiba Satellite T130. For a general discussion about this laptop you can visit the Toshiba Satellite T130 page on LapWik.
#!/bin/bash # increase/decrease/set/get the backlight brightness (range 0-255) by 16 # #get current brightness in hex and convert to decimal var1=`setpci -s 00:02.0 F4.B` var1d=$1) case “$1” in up) #calculate new brightness var2=`echo “ibase=10; obase=16; a=($var1d+16);if (a<255) print a else print 255” | bc` echo “$0: increasing brightness from 0x$var1 to 0x$var2” setpci -s 00:02.0 F4.B=$var2 ;; down) #calculate new brightness var2=`echo “ibase=10; obase=16; a=($var1d-16);if (a>15) print a else print 15” | bc` echo “$0: decreasing brightness from 0x$var1 to 0x$var2” setpci -s 00:02.0 F4.B=$var2 ;; set) #n.b. this does allow “set 0” i.e. backlight off echo “$0: setting brightness to 0x$2” setpci -s 00:02.0 F4.B=$2 ;; get) echo “$0: current brightness is 0x$var1” ;; toggle) if [ $var1d -eq 0 ] ; then echo “toggling up” setpci -s 00:02.0 F4.B=FF else echo “toggling down” setpci -s 00:02.0 F4.B=0 fi ;; *) echo “usage: $0 {up|down|set <val>|get|toggle}” ;; esac exit 0
in a file - in my case backlight. Make this file executable with chmod+x:
# chmod +x backlight
then move it to /usr/bin for example:
# sudo mv backlight /usr/bin/
You can test if it works by entering:
# sudo backlight down
Now do this to bind the correct keys to this command:
# sudo apt-get install xbindkeys xbindkeys-config
# xbindkeys
follow the instructions (basicly copy the given command) to create a first file. Then:
# xbindkeys-config
With 'Delete Selected' remove what is there and create a New entry. Do 'Get Key' and press the desired key combi (FN-F6 in my case) and give it the Action gksu backlight down. Click Apply and create the other one, when finished close with Save&Apply&Exit and it should be functional. Just the first time you do it in a session you have to provide the password..
wifi It works with kernel 2.6.38-1 - for example current debian sid.
Jean-Luc, Sunday 24 of April, 2011 [18:03:33]
Hi,
I've a Debian system and the WiFi works fine… with the Realtek driver. Which module is used to have it to work natively with 2.6.38?
Jason, Wednesday 02 of March, 2011 [09:14:43]
Status at 2 Mar 2011 with a T130 (version T130-170) on Ubuntu 10.10:
Wifi - works fine. Can't disable it with the fn key though
Brightness - the setpci method is the only thing I've found to work, you can set this to your keypresses if you are clever but I've not managed to integrate with the graphical thing.
Bluetooth - working.
Battery measure icon - kind of working, generally thinks it has an hour less than it does! Hibernates at the right time though which is the main thing.
ivano arpino, Sunday 20 of February, 2011 [19:15:33]
I had to slightly modify the script (ubuntu 10.10), in order to make it work with my version of bc (i had upper-lower case troubles):
#!/bin/bash
# increase/decrease/set/get the backlight brightness (range 0-255) by 16
#
#get current brightness in hex and convert to decimal
var1=`setpci -s 00:02.0 F4.B`
var1=`echo $var1 | tr '[a-z]' '[A-Z]'`
var1d=$var1
case "$1" in
up)
#calculate new brightness
var2=`echo "ibase=16; obase=10; a=($var1d+F);if (a<FF) print a else print FF" | bc`
echo "$0: increasing brightness from 0x$var1 to 0x$var2"
setpci -s 00:02.0 F4.B=$var2
;;
down)
#calculate new brightness
var2=`echo "ibase=16; obase=10; a=($var1d-F);if (a>01) print a else print 01" | bc`
echo "$0: decreasing brightness from 0x$var1 to 0x$var2"
setpci -s 00:02.0 F4.B=$var2
;;
set)
#n.b. this does allow "set 0" i.e. backlight off
echo "$0: setting brightness to 0x$2"
setpci -s 00:02.0 F4.B=$2
;;
get)
echo "$0: current brightness is 0x$var1"
;;
toggle)
if [ $var1d -eq 0 ] ; then
echo "toggling up"
setpci -s 00:02.0 F4.B=FF
else
echo "toggling down"
setpci -s 00:02.0 F4.B=0
fi
;;
*)
echo "usage: $0 {up|down|set <val>|get|toggle}"
;;
esac
exit 0
the instead of using xbindkeys i used ubuntu s graphical keys configurator.
steven, Tuesday 05 of October, 2010 [17:31:01]
I have installed Ubuntu 10.04 desktop version on my T130.
I cannot get the internal mic to work?
Help please
Adam Taylor, Tuesday 28 of December, 2010 [08:32:05]
I too am having trouble getting the internal microphone to work on this model of laptop. Does anyone have any ideas?
Fred, Monday 20 of September, 2010 [15:14:55]
Hello,
I have installed Ubuntu 10.04 lynx, and wireless is ok without doinf anything, i think so thanks update :)
Unhopfully, i have trouble with bluetooth… If someone has an idea?
regards
tanguy, Tuesday 22 of June, 2010 [12:11:50]
For the sound the technic indicated here is not working for me, on ubuntu 10.04.
if you like to using your wireless on battery, disable (#) all ”-DENABLE_LPS” occurence in each MAKEFILE
then
# sudo su
# make && make install
# gksudo gedit /etc/modules and add r8192se_pci at the end of the configuration file
kouki31, Saturday 27 of March, 2010 [21:39:08]
Perfect !!! i have light OK !!! but sound is not working … the booth of sound withh casque … and wifi but i didnt try …
kouki31, Saturday 27 of March, 2010 [21:45:01]
i have forget Bluetooth Work wery well ^^
Nick, Tuesday 23 of March, 2010 [22:53:36]
If backlight control doesn't work with the 'XRANDR' option above, use this:
Open terminal and run: sudo gedit /etc/default/grub Search for 'GRUB_CMDLINE_LINUX' (NOT 'GRUB_CMDLINE_LINUX_DEFAULT'!!) GRUB_CMDLINE_LINUX=“nomodeset acpi_backlight=vendor”
Discussion
wifi It works with kernel 2.6.38-1 - for example current debian sid.
Hi,
I've a Debian system and the WiFi works fine… with the Realtek driver.
Which module is used to have it to work natively with 2.6.38?
Status at 2 Mar 2011 with a T130 (version T130-170) on Ubuntu 10.10:
Wifi - works fine. Can't disable it with the fn key though
Brightness - the setpci method is the only thing I've found to work, you can set this to your keypresses if you are clever but I've not managed to integrate with the graphical thing.
Bluetooth - working.
Battery measure icon - kind of working, generally thinks it has an hour less than it does! Hibernates at the right time though which is the main thing.
I had to slightly modify the script (ubuntu 10.10), in order to make it work with my version of bc (i had upper-lower case troubles):
#!/bin/bash # increase/decrease/set/get the backlight brightness (range 0-255) by 16 # #get current brightness in hex and convert to decimal var1=`setpci -s 00:02.0 F4.B` var1=`echo $var1 | tr '[a-z]' '[A-Z]'` var1d=$var1 case "$1" in up) #calculate new brightness var2=`echo "ibase=16; obase=10; a=($var1d+F);if (a<FF) print a else print FF" | bc` echo "$0: increasing brightness from 0x$var1 to 0x$var2" setpci -s 00:02.0 F4.B=$var2 ;; down) #calculate new brightness var2=`echo "ibase=16; obase=10; a=($var1d-F);if (a>01) print a else print 01" | bc` echo "$0: decreasing brightness from 0x$var1 to 0x$var2" setpci -s 00:02.0 F4.B=$var2 ;; set) #n.b. this does allow "set 0" i.e. backlight off echo "$0: setting brightness to 0x$2" setpci -s 00:02.0 F4.B=$2 ;; get) echo "$0: current brightness is 0x$var1" ;; toggle) if [ $var1d -eq 0 ] ; then echo "toggling up" setpci -s 00:02.0 F4.B=FF else echo "toggling down" setpci -s 00:02.0 F4.B=0 fi ;; *) echo "usage: $0 {up|down|set <val>|get|toggle}" ;; esac exit 0the instead of using xbindkeys i used ubuntu s graphical keys configurator.
I have installed Ubuntu 10.04 desktop version on my T130.
I cannot get the internal mic to work?
Help please
I too am having trouble getting the internal microphone to work on this model of laptop. Does anyone have any ideas?
Hello,
I have installed Ubuntu 10.04 lynx, and wireless is ok without doinf anything, i think so thanks update :)
Unhopfully, i have trouble with bluetooth… If someone has an idea?
regards
For the sound the technic indicated here is not working for me, on ubuntu 10.04.
But for the wireless card:
download the driver from realtek :
http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=48&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#RTL8192SE"
tar xzvfif you like to using your wireless on battery, disable (#) all ”-DENABLE_LPS” occurence in each MAKEFILE
then
# sudo su
and add r8192se_pci at the end of the configuration file# make && make install
# gksudo gedit /etc/modules
Perfect !!!
i have light OK !!!
but sound is not working … the booth of sound withh casque …
and wifi but i didnt try …
i have forget Bluetooth Work wery well ^^
If backlight control doesn't work with the 'XRANDR' option above, use this:
Open terminal and run:
sudo gedit /etc/default/grub
Search for 'GRUB_CMDLINE_LINUX' (NOT 'GRUB_CMDLINE_LINUX_DEFAULT'!!)
GRUB_CMDLINE_LINUX=“nomodeset acpi_backlight=vendor”
Safe the file, run 'sudo update-grub' and reboot.
Credits: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/392948
Thank you Nick. I had try several things, but your tip really works. Tanks a lot. I'm running 64 bit ubuntu, and it's quite fast and stable.
You're welcome.
The reason I came back: after installing 10.10 I'm unable (again) to change the backlight.
Can someone help?
I have installed Ubuntu Karmic Koala and I ama unable to use the wireless card.
It is a Realtek RTL819SE-VA2.
See http://ubuntuforums.org/showpost.php?p=8723901&postcount=28
or here https://bugs.launchpad.net/ubuntu/+source/linux/+bug/401126
for a solution