Xorg

From Eeebuntuwiki

Jump to: navigation, search

File:Xorg.png

Contents

Replacing your xorg.conf for Touchpad toggle

Xorg.conf

So.... you wanna toggle your touchpad but getting an error stating that your Xorg isn't configured correctly?

Nothing to worry about. Simply hit alt + F2 and type

gksu gedit /etc/X11/xorg.conf

No before Changing anything hit File > Save As and save a backup under a name like xorgbk.conf(just in case you need to restore the default at any time).

Once you've saved your xorg.conf close the texteditor and hit Alt + F2 yet again.

gksu gedit /etc/X11/xorg.conf and hit ok.

Now we will edit the xorg file. Simply Copy and paste the below in replacing the entire file.

Section "Device"
	Identifier	"Configured Video Device"
	Driver	"intel"

	# Uncomment the following options if lspci returns 915GMA
	# Option "HWCursor"	"False"
	# Option "MigrationHeuristic"	"greedy"
	# Option "XAANoOffscreenPixmaps"	"true"
	# Option "XaaNoPixmapCache"
	# Option "DRI"	"true"
	# Option "XvMCSurfaces"	"6"
	# Option "May_Need_ForceBIOS"	"1"

	# Uncomment XAA if you are using 8.10 w/ the 915GM
	# Option "AccelMethod"	"XAA"

	# Uncomment UXA if you are using 9.04 w/ the 915GM
	# Option "AccelMethod"	"UXA"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"

	# Uncomment if your screen resolution is 1024x600
	# DisplaySize 195 113
EndSection

Section "InputDevice"
    Identifier  "ETPS/2 Elantech Touchpad"
    Driver      "synaptics"
    Option      "SendCoreEvents"    "true"
    Option      "Device"        "/dev/psaux"
    Option      "Protocol"      "auto-dev"
    Option      "HorizScrollDelta"  "0"
    Option      "MaximumTapTime"        "200"
    Option      "ClickTime"     "50"
    Option      "VertTwoFingerScroll"   "1"
    Option      "HorizTwoFingerScroll"   "1"
    Option      "VertEdgeScroll"    "0"
    Option      "HorizEdgeScroll"   "0"
    Option      "SingleTapTimeout"  "400"
    Option      "FastTabs"          "0"
    Option      "VScrollEmuOff"     "1"
    Option      "VertScrollDelta"   "80"
    Option      "SHMConfig"         "1"
    Option      "CircularScrolling" "1"
    Option      "CircScrollTrigger" "8"
    Option      "CircScrollDelta"   "0.14"
    Option      "TapButton3"        "2"
    Option      "TapButton2"        "3"
EndSection	

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
	Device		"Configured Video Device"
	DefaultDepth	24
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"ExplorerPS2"
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Configured Mouse"
        InputDevice     "ETPS/2 Elantech Touchpad"
EndSection


All done?

Just hit save. Close texteditor and reboot your machine. If all has gone well then you should get your GDM screen and once logged in be able to toggle with ease!


Errors?

Don't worry! we can restore the earlier backed up file.

You should get presented with a full screen like terminal asking you to login. Here just login with your usual credentials.

Then type

su

Enter your Root password and then type the following; hitting enter after each line

cd cd /etc/X11/

In your X11 folder? type;

ls

You should see a list of all the files currently in this folder. We now want to remove the broken xorg and replace with our backup we created earlier.

rm xorg.conf

Now rename your backed up xorg to xorg.conf ;

mv xorgbk.conf xorg.conf

No errors?!

Then you've done it! Just type:

shutdown -r now

and your system will be rebooted. It should now boot up no problems with the original xorg.conf file.

Still not working?

If this happens and you cant get the xorg.conf working just ask for help in the forums!