Configure touch screen in Gnome

From BlueWiki

Revision as of 09:39, 25 February 2011 by Harald.krapfenbauer (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The touch screen is enabled in Gnome by default. However, it's rotation is wrong.

Steps

  • Execute the touch screen calibration, if not done so already.
ts_calibrate
  • Edit the file /etc/X11/xorg.conf and add a section for the touchscreen:
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
EndSection

Section "Device"
        Identifier      "i.MX Accelerated Framebuffer Device"
        Driver          "imx"
        Option          "ShadowFB"                      "false"
        Option          "MigrationHeuristic"            "smart"
EndSection

Section "Monitor"
        Identifier      "Configured Monitor"
EndSection 

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

Section "InputDevice" 
	Identifier      "PMIC-Touchscreen" 
	Driver	        "tslib"
	Option          "Device" "/dev/input/touchscreen0"
	Option          "Protocol" "Auto"
	Option          "Rotate" "CCW"
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
	InputDevice	"PMIC-Touchscreen"
EndSection
Personal tools