summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/xserver/XX_xserver.sh
diff options
context:
space:
mode:
authorDirk von Suchodoletz2008-08-06 16:23:50 +0200
committerDirk von Suchodoletz2008-08-06 16:23:50 +0200
commit40f40942657bf430227b3c8a23e213cc97b08b87 (patch)
treea9f4eb4594cebc6f22264a28a1e262444638fd04 /os-plugins/plugins/xserver/XX_xserver.sh
parentNext iteration of Xorg setup (xserver plugin) (diff)
downloadcore-40f40942657bf430227b3c8a23e213cc97b08b87.tar.gz
core-40f40942657bf430227b3c8a23e213cc97b08b87.tar.xz
core-40f40942657bf430227b3c8a23e213cc97b08b87.zip
Improved Xorg setup stage3 script (xserver plugin)
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1971 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/xserver/XX_xserver.sh')
-rw-r--r--os-plugins/plugins/xserver/XX_xserver.sh33
1 files changed, 25 insertions, 8 deletions
diff --git a/os-plugins/plugins/xserver/XX_xserver.sh b/os-plugins/plugins/xserver/XX_xserver.sh
index 615a97c5..6879c5fe 100644
--- a/os-plugins/plugins/xserver/XX_xserver.sh
+++ b/os-plugins/plugins/xserver/XX_xserver.sh
@@ -73,29 +73,29 @@ EndSection
Section "InputDevice"
Identifier "Generic Mouse"
Driver "mouse"
- Option "CorePointer"
# Option "Device" "/dev/input/mice"
# Option "Protocol" "ImPS/2"
# Option "ZAxisMapping" "4 5"
# Option "Emulate3Buttons" "true"
+ Option "CorePointer"
EndSection
Section "InputDevice"
Driver "wacom"
- Identifier "stylus"
+ Identifier "Stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
- Identifier "eraser"
+ Identifier "Eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
- Identifier "cursor"
+ Identifier "Cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
@@ -123,16 +123,33 @@ Section "ServerLayout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Generic Mouse"
- InputDevice "stylus" "SendCoreEvents"
- InputDevice "cursor" "SendCoreEvents"
- InputDevice "eraser" "SendCoreEvents"
+ InputDevice "Stylus" "SendCoreEvents"
+ InputDevice "Cursor" "SendCoreEvents"
+ InputDevice "Eraser" "SendCoreEvents"
EndSection
Section "DRI"
Mode 0666
EndSection
' >> $xfc
sed "s/vesa/$xmodule/;s/\"us\"/\"${XKEYBOARD}\"/" -i $xfc
-
+ # these directories might be distro specific
+ for file in /var/lib/xkb/compiled ; do
+ testmkd /mnt/${file}
+ done
+ # if a synaptic touchpad is present, add it to the device list
+ if grep -E "ynaptics" /etc/hwinfo.mouse ; then
+ sed -e '/\"CorePointer\"/ {
+a\
+EndSection\
+Section "InputDevice"\
+ Identifier "Synaptics TP"\
+ Driver "synaptics"\
+ Option "Device" "/dev/input/mice"\
+ Option "SendCoreEvents" "true"
+}' -e '/Device "Generic Mouse"/ {
+a\ \ InputDevice\ \ "Synaptics TP"\ \ \ \ \ \ "SendCoreEvents"
+}' -i $xfc
+ fi
[ $DEBUGLEVEL -gt 0 ] && echo "done with 'xserver' os-plugin ...";
fi
fi