X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-x;h=5b1be94f4380105cdc91b9441cffc860e804b8a7;hb=6cbd51bdaa6417aee38793145be06fd1e91d4d99;hp=cce459578b6b36cc7b2d22548c376329fd51e4ee;hpb=a7b536f5cee5b88cc8fb87a005b2b4bb3e49f3ac;p=grml-x.git diff --git a/grml-x b/grml-x index cce4595..5b1be94 100755 --- a/grml-x +++ b/grml-x @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Don Jul 12 01:20:47 CEST 2007 [mika] +# Latest change: Don Jul 12 02:53:42 CEST 2007 [mika] ################################################################################ # debugging {{{ @@ -120,17 +120,18 @@ usage() Usage: $PROGRAMNAME $PROGRAMNAME [-options] windowmanager -Examples: +Usage examples: $PROGRAMNAME wmii - $PROGRAMNAME pekwm $PROGRAMNAME fluxbox + $PROGRAMNAME openbox $PROGRAMNAME -force -nostart fluxbox $PROGRAMNAME -nosynaptics fluxbox $PROGRAMNAME -nosync fluxbox $PROGRAMNAME -noddc wmii - $PROGRAMNAME -module radeon -mode 1024x768 -vsync 60 wmi - XINITRC=~/.xinitrc $PROGRAMNAME ion - $PROGRAMNAME -display 8 wmii + $PROGRAMNAME -xinerama -composite wmii + $PROGRAMNAME -module radeon -mode 1024x768 -vsync 60 openbox + XINITRC=~/.xinitrc $PROGRAMNAME openbox + $PROGRAMNAME -display 8 openbox More information on grml-x can be found in the manual page: man grml-x @@ -174,23 +175,6 @@ sort -nur | perl -ne 's/\s+/ /; s/(\d+x\d+)/"$1"/; print') Option for $fg[yellow]Xinerama$fg[green] found, please use xrandr inside X.org for your further configuration! Trying to identify monitors now..." - # Currently we only know that it works with current intel driver, - # so inform user about that: - if [[ "$MODULE" != "intel" ]] ; then - print "$fg[red] - -Warning: using a non-intel driver - trying Xinerama setup anyway. -If it worked please contact grml developers providing information -about your setup so we can adjust grml-x according! - - -> http://grml.org/contact/ - -Sleeping for 10 seconds now... Will continue then... -Just press Ctrl-C to cancel operation. -" -# sleep 10 # FIXME - fi - # make sure we have information from 2 monitors: # - first one from 'hwinfo --monitor' => $MONITORINFO # - second one from 'hwinfo --framebuffer' => $FRAMEBUFFER @@ -200,9 +184,10 @@ Just press Ctrl-C to cancel operation. Fatal: could not identify two monitors - no chance to set up multihead using Xinerama - sorry. :-( -Please run grml-x without the -xinerama option and contact -grml developers if you have any further useful information. - => http://grml.org/bugs/ +Please run grml-x without the -xinerama option to start +X anyway (dropping support for Xinerama of course) and +contact grml developers if you have any further useful +information. => http://grml.org/bugs/ " bailout 10 fi @@ -215,6 +200,23 @@ Fatal: could not identify monitor - no chance to " bailout 11 else + # Currently we only know that it works with current intel driver, + # so inform user about that: + if [[ "$MODULE" != "intel" ]] ; then + print "$fg[red] + +Warning: using a non-intel driver - trying Xinerama setup anyway. +If it worked please contact grml developers providing information +about your setup so we can adjust grml-x according! + + -> http://grml.org/contact/ + +Sleeping for 10 seconds now... Will continue then... +Just press Ctrl-C to cancel operation. +" + sleep 10 + fi + # now calculate Virtual size for use with Xinerama HORIZ_RES1="$(grep 'Max. Resolution:' $MONITORINFO | sed 's/ Max\. Resolution: \(.*\)x\(.*\)/\1/')" VERIZ_RES1="$(grep 'Max. Resolution:' $MONITORINFO | sed 's/ Max\. Resolution: \(.*\)x\(.*\)/\2/')" @@ -633,7 +635,7 @@ requirements() { if ! [ -x $(which hwinfo) ] ; then print "$bg[black]$fg[red]${bold_color}Error: hwinfo not found in path.${reset_color} -Note: run 'apt-get install hwinfo' on systems running debian. +Note: run 'aptitude install hwinfo' on systems running debian. Exiting.${reset_color}" exit -1 fi @@ -911,8 +913,8 @@ Please exit screen and try to run $PROGRAMNAME again." get-edid | parse-edid Do you want to go the debian way of life? Run: - apt-get install x-window-system-core read-edid mdetect hwinfo xdebconfigurator - dpkg-reconfigure x-window-system-core (or xserver-xorg depending on your system) + aptitude install xorg read-edid mdetect hwinfo xdebconfigurator + dpkg-reconfigure -phigh xserver-xorg Problems with the module used for X? Try to load another one or fall back to module vesa: