Screen-session.d scripts specific to Ubuntu (or not ?)

Stéphane Graber <stgraber-GeWIH/[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

For LTSP in Ubuntu I added the 3 attached screen-session.d scripts to
fix several hardware issues/misdetections I've been reported.

XS20-xserver-ati-3drage-hack
 - Fixes visual corruption on old ATI rage, without that fix X shows
visual artefacts (white squares) when clicking on menus for example.

XS20-xserver-geode-gx2-hack
 - Probably Ubuntu-specific, our Xorg has a buggy Geode driver and so
needs that fix to force VESA instead :(

XS20-xserver-intel-desktop-hack
 - This fix is used in cases where thin clients are using netbook
hardware for their video card. It happens for example with
Disklessworkstation 1520 thin client that uses the exact same video card
as Asus's EEE 1000H netbook, making it impossible to distinguish based
on the PCIID, it uses hal to find the type of casing and disable the
LVDS output if it's a desktop.
 - Not having that fix makes a LVDS output appear in xrandr making it
harder to change the display resolution (you have to change both), the
fixes simply removes that output.

If some of these (likely not the Geode one) affects all distributions,
they should be integrated upstream.

- --
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknCiv4ACgkQjxyfqkjBhuz67gCeNCnyU//FnbRGzNaNYCOrgKI9
eaEAoIqPhbOYZTgmQG0GQvXrY7vWygXk
=4azE
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com

_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
XS20-xserver-ati-3drage-hack (text/plain, 293 B)
# This script forces the ShadowFB for the 3D rage ATI cards.
# It cannot be autodetected by upstream X.org currently.
# This is an Ubuntu specific workaround

if [ -n "$(PATH=/sbin:/usr/sbin:/bin:/usr/bin lspci -n |grep 1002:4757)" ]; then
    export X_DEVICE_OPTION_01='"ShadowFB" "True"'
fi
XS20-xserver-geode-gx2-hack (text/plain, 460 B)
# This script forces the VESA driver for the AMD Geode GX2
# It cannot be autodetected by upstream X.org currently (LP: #327484)
# This is an Ubuntu specific workaround

if [ -z "$XSERVER" ] && [ -n "$(PATH=/sbin:/usr/sbin:/bin:/usr/bin lspci -n |grep 100b:0030)" ]; then
    . /etc/lsb-release
    if [ "${DISTRIB_RELEASE}" = "9.04" ]; then
        XSERVER=vesa
    else
        XSERVER=geode
        export X_DEVICE_OPTION_01='"AccelMethod" "XAA"'
    fi
fi
XS20-xserver-intel-desktop-hack (text/plain, 681 B)
# This script disables LVDS for the intel laptop chipsets in desktop computers.
# It cannot be autodetected by upstream X.org currently.
# This is an Ubuntu specific workaround.

if [ -n "$(PATH=/sbin:/usr/sbin:/bin:/usr/bin lspci -n |grep 8086:27ae)" ] && [ "$(PATH=/sbin:/usr/sbin:/bin:/usr/bin hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.chassis.type)" = "Desktop" ]; then
    export X_DEVICE_OPTION_01='"monitor-LVDS" "LVDS"'
    monitor_hacks="$monitor_hacks add_intel_lvds"

    add_intel_lvds() {
        echo 'EndSection'
        echo 'Section "Monitor"'
        echo '    Identifier "LVDS"'
        echo '    Option "Ignore" "True"'
    }
fi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.