Monthly Archive for April, 2009

disable touchpad in Ubuntu

Do everyting below as root.

Check /etc/X11/xorg.conf if you have turned SHMConfig on.

Section "InputDevice"
	Identifier	"Synaptics Touchpad"
	Driver		"synaptics"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"auto-dev"
	Option		"HorizEdgeScroll"	"0"
	Option 		"SHMConfig" 		"on"
EndSection

If it’s not here, just add the line.

Then write a simple bash script to disable Touchpad into /etc/init.d

#!/bin/bash
synclient TouchpadOff=1

If you would like to turn it off while you type, use the following script

#!/bin/bash
syndaemon -i 1 -d

You can name your script as you wish, I named “touchpad-disable”.

Also, you have to change the script’s status to “Run no Startup” under the Service Manager.

Service Manager is in the KDE Components under System Settings.

Finally, restart your computer.

adjust your screen’s brightness level on Ubuntu

Sometimes, you can’t adjust brightness easily on Ubuntu : Fn buttons might not configured properly.

You can run the following command in a Terminal and set your brightness level to 100

#sudo echo 100 > /proc/acpi/video/NVID/LCD/brightness

Let me precise several details below

  1. sudo let’s you run the following command as root. If this doesn’t work, please switch to root by executing

    #sudo sh

    command and then run the previous command without “sudo” to adjust your brightness level :

    #echo 100 > /proc/acpi/video/NVID/LCD/brightness
  2. 100 is my video card’s maximum brightness level, yours might be different or you might want to reduce the brightness. So, in order to learn your screen’s brightness levels, run the following command under root :
    # cat /proc/acpi/video/NVID/LCD/brightness
  3. According your video card, the adjust file might be in a different folder. /proc/acpi/video is the main folder for your screen. Therefore, search with the following command in your video folder :
    #ls /proc/acpi/video

    When you find NVID, or VGA, or anything similar, look for the subfolder LCD and then brightness

stuck with the default “My Documents”

Normally, you can change your My Documents folder from it’s Properties ( visible with a right-click). A window pops out, and the third tab lets you change your default My Documents folder.

But sometimes this doesn’t work for many reasons, but the following work nicely on Vista ( or XP with a different folder name).

From Start Menu, type “regedit” in the research and open Registry Editor(regedit.exe).

In Registry Editor, find the following folder : HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\

Edit “Personal” to change your old My Documents folder into your new My Documents folder.