HOWTO SWITCH AUTOMATICALLY BETWEEN STAMINA AND SPEED MODE
Like you know, on sony SZ3 or SZ4, you have an nvidia board (speed-mode) and an intel video board (stamina-mode).
Before, don't forget to download the nvidia driver with synaptic :
Add in your /etc/X11 folder these files (it works fine on my vaio SZ3 ) for the X server :
xorg.conf-staminaxorg.conf-speedWARNING : maybe you'll have to change screen size in these files if you don't have a 1280x800 Flat Display ( 13'3 display on sony SZ3 or SZ4)
Save your xorg.conf file please, if you have a problem you could use it anyway...
Now create a script like that in your /etc/init.d folder :
vaio#gedit /etc/init.d/vaio <----- copy inside
#chmod 755 /etc/inid.d/vaio
#ln -s /etc/inid.d/vaio /etc/rc2.d/S12vaio
restart and enjoy
N.B. :
You can test your server fast if you replace the "xorg.conf" file by the good one and restart Xorg server :
tape "<Ctrl>+<Alt>+<F1>"
log in root and do :
#mv xorg.conf xorg.conf.save <<<< don't forget to save your xorg.conf
#cp yourxorg.conf /etc/X11/xorg.conf
#pkill gdm
#gdm
If it doesn't work, you could tape "<Ctrl>+<Alt>+<F1>" again , rechange xorg.conf and retest it...
It's probably the best way the test and improve your X server. You can add or remove some things in your xorg.conf file with "vi" editor, but not really easy to use it (see
there) :
#vi /etc/X11/xorg.conf
tape "a" to edit , write your text...
tape escape
tape "x" to remove text
tape "dd" to remove line
tape escape
tape "wq" to save your file or tape "q!" to save nothing...
HOWTO CONTROL NVIDIA BRIGTHNESS (SPEED)
Donwload
smartdimmer , uncompress it and compil it :
#cd folder_smart/
#./configure
#make
#chmod 755 src/smartdimmer
#cp src/smartdimmer /usr/bin
you could change brigthness like that :
#smartdimmer -d
#smartdimmer -i#gedit /etc/init.d/vaio
#chmod 755 /etc/inid.d/vaio
#ln -s /etc/inid.d/vaio /etc/rc2.d/S12vaio
N.B. : if it doesn't compil, you'll have to add some package with synaptic. Read errors and try to add the good packages, there is a solution:)
HOWTO CONTROL THE MOTHERBOARD VIDEO BRIGTHNESS (STAMINA)
Download the standalone module
sony_acpi (information on stelian
website) , uncompress it and compil it (you can try
my module for kernel 2.6.20):
#cd folder_sonyacpi/
#make
#insmod sony_acpi.ko
#cp sony_acpi.ko /lib/modules
you could change brightness like that :
#echo 2 >/proc/acpi/sony/brightness
#echo 7 >/proc/acpi/sony/brightness
N.B. : if it doesn't compil, you'll have to add some package with synaptic. Read errors and try to add the good packages, there is a solution:)
HOWTO CONTROL BRIGHTNESS WITH "FN" KEYS
if you did everything in the "installation" sheet and in this one :
- install the sonypi.ko module in /lib/modules
- install the spicctrl software in /usr/bin
- install the smartdimmer software in /usr/bin
- install module "sony_acpi.ko" in /lib/modules
it will work with this script :
vaio#gedit /etc/init.d/vaio <------copy inside
#chmod 755 /etc/inid.d/vaio
#ln -s /etc/inid.d/vaio /etc/rc2.d/S12vaio
restart and enjoy