pax_global_header00006660000000000000000000000064111377111770014520gustar00rootroot0000000000000052 comment=f1a141939a99c360d72dc053cc61fef4813ddd3f X-multiseat-preinit-0.02/000075500000000000000000000000001113771117700153235ustar00rootroot00000000000000X-multiseat-preinit-0.02/.gear/000075500000000000000000000000001113771117700163175ustar00rootroot00000000000000X-multiseat-preinit-0.02/.gear/rules000064400000000000000000000003151113771117700173730ustar00rootroot00000000000000#copy: *.1 #copy: *.patch #copy: *.init #copy: *.perms #copy: *.png #copy: *.wrapper #copy: *.sh #copy: *.fdi #tar.bz2: foomatic-db-hpijs name=foomatic-db-hpijs #tar.bz2: hplip name=hplip-@version@ tar: . X-multiseat-preinit-0.02/x-multiseat-preinit.init000075500000000000000000000031041113771117700221350ustar00rootroot00000000000000#! /bin/sh # # Preinitialize multiple video cards before dm service # # chkconfig: 5 34 99 # description: Preinitialize multiple video cards before dm service # ### BEGIN INIT INFO # Provides: x-multiseat-preinit # Required-Start: $syslog # Required-Stop: $syslog # Default-Start: # Default-Stop: # Description: Preinitializer of video cards in multiseat environment. Due to bugs/features in video drivers, nvidia among others, first simultaneous launch of multiple X servers can cause X to freeze. Calling X in multihead but oneseat configuration (with a unique X server) in -probeonly mode before the dm dervice does solve this problem. # Short-Description: Video cards preinitializer in multiseat environment ### END INIT INFO # TODO(lsb init): also possibly requre usb devices (hotplug,sysfs)? # Do not load RH compatibility interface. WITHOUT_RC_COMPAT=1 . /etc/init.d/functions XSERVER=/usr/bin/Xorg XARGS= XCLIENT="sleep 1" # Source service configuration. SourceIfNotEmpty /etc/sysconfig/x-multiseat-preinit PROGRAM="$XSERVER -nolisten tcp -dpi 96 -audit 0 $XARGS" RETVAL=0 start() { action "MultiSeat: preinitializing X11:" xinit $XCLIENT -- $PROGRAM RETVAL=$? if [ $RETVAL = 0 ]; then success "MultiSeat: preinitializing X11 OK" else failure "MultiSeat: preinitializing X11 failed" fi return $RETVAL } case "$1" in start) start ;; status) true RETVAL=$? ;; stop|condstop|condrestart|condreload|restart|reload) RETVAL=1 ;; *) msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|condreload|status}" RETVAL=1 esac exit $RETVAL X-multiseat-preinit-0.02/x-multiseat-preinit.spec000064400000000000000000000027651113771117700221350ustar00rootroot00000000000000Summary: Preinitialize multiple video cards before dm service. Name: X-multiseat-preinit Version: 0.02 Release: alt1 License: GPL2+ or Artistic Group: System/X11 Url: http://www.altlinux.org/X11/DualSeat Packager: Igor Vlasenko Source0: %{name}-%{version}.tar BuildArch: noarch %description Preinitializer of video cards in multiseat environment. Due to bugs/features in video drivers, nvidia among others, first simultaneous launch of multiple X servers can cause X to freeze. Calling X in multihead but oneseat configuration (with a unique X server) before the dm service seems to solve this problem. %prep %setup -q %build %install mkdir -p %buildroot%_initdir/ install -m 755 x-multiseat-preinit.init %buildroot%_initdir/%name mkdir -p %buildroot%_sysconfdir/sysconfig/ cat > %buildroot%_sysconfdir/sysconfig/x-multiseat-preinit < 0.02-alt1 - added minimal documentation * Mon Feb 11 2008 Igor Vlasenko 0.01-alt1 - first build X-multiseat-preinit-0.02/xorg.conf.multiseat000064400000000000000000000161341113771117700211640ustar00rootroot00000000000000 # Composite is not yet stable on even major drivers; # uncomment to enable #Section "Extensions" # Option "RENDER" "Enable" # Option "Composite" "Enable" #EndSection Section "ServerFlags" Option "AllowMouseOpenFail" "true" Option "AllowEmptyInput" "true" # Option "DefaultServerLayout" "seat0" # Option "DefaultServerLayout" "xinerama" Option "DefaultServerLayout" "dualhead" # Option "DefaultServerLayout" "default" # Option "Xinerama" "true" Option "AutoAddDevices" "false" # Option "AutoEnableDevices" "false" EndSection Section "ServerLayout" Identifier "default" Screen "Screen0" 0 0 InputDevice "Keyboards" "CoreKeyboard" InputDevice "mice" EndSection Section "ServerLayout" Identifier "dualhead" InputDevice "Keyboards" "CoreKeyboard" InputDevice "mice" "CorePointer" Screen 0 "Screen0" 0 0 Screen 1 "Screen1" RightOf "Screen0" EndSection Section "ServerLayout" Identifier "xinerama" InputDevice "Keyboards" "CoreKeyboard" InputDevice "mice" "CorePointer" Screen 0 "Screen0" 0 0 Screen 1 "Screen1" RightOf "Screen0" Option "Xinerama" "on" EndSection Section "ServerLayout" Identifier "seat0" InputDevice "Keyboard0e" "CoreKeyboard" InputDevice "usbmouse0" "CorePointer" Screen 0 "Screen0" 0 0 # the same as IsolateDevice, but use bus id from "device" section # note: only make things worse # Option "SingleCard" "true" EndSection Section "ServerLayout" Identifier "seat1" # this usb keyboard has separate core and multimedia parts InputDevice "Keyboard1e.0" "CoreKeyboard" InputDevice "Keyboard1e.1" "SendCoreEvents" InputDevice "Keyboard1e.2" "SendCoreEvents" # InputDevice "VoidKeyboard" "CoreKeyboard" InputDevice "usbmouse1" "CorePointer" Screen 0 "Screen1" 0 0 # Option "SingleCard" "true" EndSection Section "Module" Load "freetype" Load "glx" Load "dri" Load "dbe" SubSection "extmod" Option "omit xfree86-dga" EndSubSection EndSection Section "InputDevice" Identifier "VoidKeyboard" Driver "void" Option "CoreKeyboard" EndSection Section "InputDevice" Identifier "VoidPointer" Driver "void" Option "CorePointer" EndSection Section "InputDevice" Identifier "Keyboards" Driver "kbd" Option "AutoRepeat" "250 40" #Option "XkbModel" "pc105" Option "XkbModel" "a4techKBS8" #Option "XkbLayout" "us,ru,ua" #Option "XkbVariant" ",winkeys,winkeys" #Option "XkbOptions" "grp:menu_toggle,grp_led:scroll" EndSection Section "InputDevice" Identifier "Keyboard0e" #Driver "kbd" Driver "evdev" Option "Device" "/dev/input/by-path/platform-i8042-serio-0-event-kbd" #Option "AutoRepeat" "250 30" #Option "XkbModel" "pc105" # Option "XkbModel" "a4techKBS8" Option "XkbModel" "evdev" # Option "XkbLayout" "us,ru,ua" # Option "XkbVariant" ",winkeys,winkeys" # Option "XkbOptions" "grp:menu_toggle,grp_led:scroll" EndSection Section "InputDevice" # keyboard 1 - the main part (useful keys) Identifier "Keyboard1e.0" #Driver "kbd" Driver "evdev" Option "Device" "/dev/input/by-path/pci-0000:00:02.1-usb-0:1.1:1.0-event-kbd" # Option "AutoRepeat" "250 30" # Specify which keyboard LEDs can be user-controlled (eg, with xset(1)) #Option "XkbModel" "pc105" Option "XkbModel" "evdev" # Option "XkbLayout" "us,ru,ua" # Option "XkbVariant" ",winkeys,winkeys" # Option "XkbOptions" "grp:menu_toggle,grp_led:scroll" EndSection Section "InputDevice" # keyboard 1 - the extra part (multimedia keys) Identifier "Keyboard1e.1" Driver "evdev" Option "Device" "/dev/input/by-path/pci-0000:00:02.1-usb-0:1.1:1.1-event-" EndSection Section "InputDevice" # keyboard 1 - the extra part (multimedia keys) # seems to be exact clone of "Keyboard1e.1" Identifier "Keyboard1e.2" Driver "evdev" Option "Device" "/dev/input/by-path/pci-0000:00:02.1-usb-0:1.2:1.3-event-" EndSection Section "InputDevice" Identifier "mice" Driver "mouse" Option "Device" "/dev/input/mice" Option "Protocol" "IMPS/2" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" Identifier "usbmouse0" Driver "mouse" Option "Device" "/dev/input/by-path/pci-0000:00:02.0-usb-0:3:1.0-mouse" Option "Protocol" "IMPS/2" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" Identifier "usbmouse1" Driver "mouse" Option "Device" "/dev/input/by-path/pci-0000:00:04.0-usb-0:1:1.0-mouse" Option "Protocol" "IMPS/2" Option "ZAxisMapping" "4 5" EndSection Section "Monitor" Identifier "Monitor0" # HorizSync 31.50-i65.0 # VertRefresh 50-85 EndSection Section "Monitor" Identifier "Monitor1" Option "DPMS" "true" EndSection Section "Device" Identifier "CardInt" Driver "nvidia" BoardName "GeForce 8200" BusID "PCI:2:0:0" # Option "AddARGBVisuals" "True" # Option "AddARGBGLXVisuals" "True" Option "NoLogo" "True" Option "ProbeAllGpus" "False" EndSection Section "Device" Identifier "CardExt" Driver "nvidia" BoardName "GeForce 8400 GS" BusID "PCI:3:0:0" # Option "AddARGBVisuals" "True" # Option "AddARGBGLXVisuals" "True" Option "NoLogo" "True" Option "ProbeAllGpus" "False" EndSection Section "Screen" Identifier "Screen0" Device "CardExt" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 8 Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480" EndSubSection SubSection "Display" Depth 15 Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480" EndSubSection SubSection "Display" Depth 16 Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480" EndSubSection SubSection "Display" Depth 24 Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480" EndSubSection SubSection "Display" Depth 32 Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480" EndSubSection EndSection Section "Screen" Identifier "Screen1" Device "CardInt" Monitor "Monitor1" # DefaultDepth 16 DefaultDepth 24 SubSection "Display" Depth 8 Modes "1680x1050" # Modes "1680x1050" "1024x768" "832x624" "800x600" "720x400" "640x480" EndSubSection SubSection "Display" Depth 16 Modes "1680x1050" # Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480" EndSubSection SubSection "Display" Depth 24 Modes "1680x1050" # Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480" EndSubSection EndSection Section "DRI" Group "xgrp" Mode 0660 EndSection