From 416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Thu, 2 Sep 2010 17:50:49 +0200 Subject: change dir structure --- .../xserver/init-hooks/00-started/xserver.sh | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/os-plugins/plugins/xserver/init-hooks/00-started/xserver.sh (limited to 'src/os-plugins/plugins/xserver/init-hooks/00-started/xserver.sh') diff --git a/src/os-plugins/plugins/xserver/init-hooks/00-started/xserver.sh b/src/os-plugins/plugins/xserver/init-hooks/00-started/xserver.sh new file mode 100644 index 00000000..0b08ec13 --- /dev/null +++ b/src/os-plugins/plugins/xserver/init-hooks/00-started/xserver.sh @@ -0,0 +1,53 @@ +# Copyright (c) 2008 - RZ Uni Freiburg +# Copyright (c) 2008..2010 - OpenSLX GmbH +# +# This program/file is free software distributed under the GPL version 2. +# See http://openslx.org/COPYING +# +# If you have any feedback please consult http://openslx.org/feedback and +# send your feedback to feedback@openslx.org +# +# General information about OpenSLX can be found at http://openslx.org +# +# stage3 part of 'xserver' plugin - the runlevel script setting up the Xorg +# configuration and checking for 3D capabilities and non-gpl drivers +# +# script is included from init via the "." load function - thus it has all +# variables and functions available + +# get an idea of the installed graphics hardware - might be needed if the +# automatic Xorg configation fails in this field. If no useable info was +# detected just delete the file. + +# tablet detection function +tabletdetect () { + sleep 1; waitfor /etc/hwinfo.bios 20000 + # quickhack for IBM X61/ACER tablet detection (some kind of positive list + # or external admin configurable file needed) + if grep -qiE "tablet|TravelMate C200" /etc/hwinfo.bios ; then + echo 'wacomdev="ttyS0"' >/etc/tablet.conf + fi + # wacom device attached to usb - code to be tested + if [ ! -e /etc/tablet.conf ]; then + if hwinfo --usb | grep -qiE "wacom|tablet" ; then + echo 'wacomdev="input/wacom"' >/etc/tablet.conf + fi + fi +} + +# hardware detection not really needed for Xorg => 1.7 used in newer versions +# distro distinguishing here not 100% conform to the OpenSLX ideas. Hardware +# detection might be needed for proprietary Xorg drivers ... +# (clean up expected with rewritten stage3) +case ${slxconf_distro_ver} in + "10.04"|"11.3") + ;; + *) + # hwinfo --gfxcard moved to general hardware detection as needed for two + # different plugins (bootsplash, xserver) + #( hwinfo --gfxcard >/etc/hwinfo.gfxcard ) & + ( hwinfo --monitor >/etc/hwinfo.display; grep "Generic Monitor" \ + /etc/hwinfo.display >/dev/null 2>&1 && rm /etc/hwinfo.display ) & + ;; +esac +( tabletdetect ) & -- cgit v1.2.3-55-g7522