summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
authorDirk von Suchodoletz2007-12-06 01:03:03 +0100
committerDirk von Suchodoletz2007-12-06 01:03:03 +0100
commitbd2e40f5ceded5d0924c8791fe7b995f9e76bca4 (patch)
tree7f8b02f01902b8ac2d42cfd38095ff9d9ffdf09e /initramfs
parentIntroduced completely new approach of xorg.conf setup into stage3 ... seems to (diff)
downloadcore-bd2e40f5ceded5d0924c8791fe7b995f9e76bca4.tar.gz
core-bd2e40f5ceded5d0924c8791fe7b995f9e76bca4.tar.xz
core-bd2e40f5ceded5d0924c8791fe7b995f9e76bca4.zip
Heavy cleanup after changing xorg configuration ...
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1423 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs')
-rw-r--r--initramfs/distro-specs/suse/functions-10.21
-rwxr-xr-xinitramfs/initrd-stuff/bin/hwautocfg19
-rwxr-xr-xinitramfs/initrd-stuff/bin/screenres226
-rwxr-xr-xinitramfs/initrd-stuff/bin/xconfig27
-rw-r--r--initramfs/initrd-stuff/etc/messages19
-rw-r--r--initramfs/initrd-stuff/etc/messages.de21
-rwxr-xr-xinitramfs/initrd-stuff/init3
7 files changed, 39 insertions, 277 deletions
diff --git a/initramfs/distro-specs/suse/functions-10.2 b/initramfs/distro-specs/suse/functions-10.2
index 9c5e8273..c1c1a1ec 100644
--- a/initramfs/distro-specs/suse/functions-10.2
+++ b/initramfs/distro-specs/suse/functions-10.2
@@ -194,6 +194,7 @@ GROUP=\"video\",MODE=\"0666\"" > /mnt/etc/udev/rules.d/10-nvidia-devperms.rules
esac
}
+# deprecated this way ...
# Xorg variable settings. Lots of stuff changed from 10.1 to 10.2
displayvars () {
Files='\tModulePath\t"/etc/X11/modules"\n
diff --git a/initramfs/initrd-stuff/bin/hwautocfg b/initramfs/initrd-stuff/bin/hwautocfg
index 6c997456..c035d8fe 100755
--- a/initramfs/initrd-stuff/bin/hwautocfg
+++ b/initramfs/initrd-stuff/bin/hwautocfg
@@ -235,19 +235,12 @@ else
fi
[ $DEBUGLEVEL -eq 21 ] && echo "** finished hdd stuff at $(sysup)"
-# check if USB mouse and/or keyboard is connected and remove usbhid if
-# not (does not work properly)
-#strinfile "genericwheelusb" /tmp/hwsetup.info || \
-# (strinfile "keybdev" /tmp/hwsetup.info || rmmod usbhid)
-
# configure some variables from configuration file - wait for dhcp or ldap
# confiurator to complete
cfgcomplete
. /etc/machine-setup
[ $DEBUGLEVEL -eq 21 ] && echo "** finished waiting for config at $(sysup)"
-# run X11 / Xorg configurator if no xorg.conf file was provided by
-# ConfigTGZ (check for /rootfs/${D_XF86CONFFILE#/mnt})
# set X11 configuration file
if [ -n "${D_XF86CONFFILE}" ] ; then
D_XF86CONFFILE="/mnt/${D_XF86CONFFILE}"
@@ -255,6 +248,8 @@ else
D_XF86CONFFILE="/mnt/etc/X11/xorg.conf"
error "$hcfg_xcfg" nonfatal
fi
+# move Xorg configuration if no xorg.conf file was provided by ConfigTGZ
+# (check for /rootfs/${D_XF86CONFFILE#/mnt})
if [ ! -f /rootfs${D_XF86CONFFILE#/mnt} ] ; then
. /etc/sysconfig/xserver >/dev/null 2>&1 || error "${hcfg_hwsetup}" nonfatal
# replace OSS 3D server with proprietary one
@@ -264,13 +259,11 @@ if [ ! -f /rootfs${D_XF86CONFFILE#/mnt} ] ; then
[ -d "/mnt/usr/X11R6/lib64/modules" ] && \
sed -e "/Section \"Files\"/a\ \ ModulePath \"/usr/X11R6/lib64/modules\"" \
-i $xfc
+ # check for kind of xorg module used
+ # if intel
+ # 915resolution -l|sed -n "/32 bits/p" > /tmp/ires
+ # match existing and set missing resolutions
fi
-
-# add entries to initialize keytable and consolefont to boot.slx
-# postpone some commands into normal bootup environment
-#echo -e "\t# entries added by $0: $date" >> /mnt/etc/${D_INITDIR}/boot.slx
-#[ -n "${KEYTABLE}" ] && keytable
-#[ -n "${CONSOLE_FONT}" ] && consolefont
# if any new device appeared up to now
if [ -x /bin/mdev ] ; then
diff --git a/initramfs/initrd-stuff/bin/screenres b/initramfs/initrd-stuff/bin/screenres
deleted file mode 100755
index 4a9f5fd9..00000000
--- a/initramfs/initrd-stuff/bin/screenres
+++ /dev/null
@@ -1,226 +0,0 @@
-#!/bin/sh
-#
-# Author(s): Felix Endres
-# Dirk von Suchodoletz, 04-07-2006
-#
-# Copyright: (c) 2006 - RZ Universitaet Freiburg
-#
-# Description:
-#
-# This script gives information about recommended display modes for the
-# attached monitor
-
-# The script tries to guess whether the attached monitor is a lcd or
-# a crt based on age, display size and pixel size.
-# For CRTs the script tries to determine which screen modes are
-# convenient to work with:
-# - High resolutions are not recommended for small displays, because
-# everything on the screen would be too tiny.
-# - The highest resolution is not recommended if the refresh rate is
-# not known or lower than 80 Hz
-# - Though the mode 1400x1050 never shows up in the ddc info, it is
-# Recommended as a replacement for 1600x1200 if that one is not.
-#
-
-## For CRTs determine recommended screen modes ####################################################
-
-# enable debugging in higher debug levels
-[ -z "$DEBUGLEVEL" ] && DEBUGLEVEL=0
-[ $DEBUGLEVEL -gt 1 ] && DEBUG="yes"
-# heavy debugging output in level 3 and above ...
-[ $DEBUGLEVEL -gt 3 -a $DEBUGLEVEL -lt 8 -o $DEBUGLEVEL -eq 14 ] && set -x
-
-# Define some default output values if the script fails to find better values
-# Empty defaults, s.t. hwautocfg defines the defaults
-default_horiz_freq_range_khz="" #"31.5-63.5"
-default_vert_freq_range_hz="" #"60-90"
-default_recommended_screen_modes="" #'"1024x768" "800x600" "640x480"'
-
-
-calculate_max_horizontal_freq () {
- highest_resolution=` echo $screen_resolutions | sed -n 's/"\([0-9x]*\)".*/\1/p'`
- [ -z $highest_resolution ] && return # if the highest resolution can not be extracted, the frequency can not be calculated
- freq_for_highest_res=`sed -n /$highest_resolution'/s/[^@]*@\([0-9]\{2,3\}\).*/\1/p' $tmp_ddcprobe_output | sort -nr|sed -n 1p`
- if [ -z "$freq_for_highest_res" ]; then
- #Search for a number followed by the term "Hz" in the same line as the highest resolution
- freq_for_highest_res=`sed -n /$highest_resolution'/s/.*[^a-zA-Z0-9]\([0-9]\{2,3\}\)[ \t]*[Hh][Zz].*/\1/p' $tmp_ddcprobe_output | sort -nr|sed -n 1p`
- fi
- [ -n "$DEBUG" ] && echo " # Vertical Frequency for highest resolution.: $freq_for_highest_res"
- if [ -z "$freq_for_highest_res" ]; then
- [ -n "$DEBUG" ] && echo "Vertical Frequency not available. Calculation not possible. Return default value."
- horiz_freq_range_khz=$default_horiz_freq_range_khz
- return
- fi
-
- highest_res_line_count=` echo $highest_resolution | sed -n 's/.*[0-9]*x//p'`
- [ -n "$DEBUG" ] && echo " # of lines in highest res.: $highest_res_line_count"
- horiz_freq_khz=$(( $highest_res_line_count * $freq_for_highest_res / 950)) # 950 = 0,95 * 1000 (invisible range * Kilohertz)
- [ -n "$DEBUG" ] && echo " Assumed Horizontal Frequency: $horiz_freq_khz"
- horiz_freq_range_khz="31.5-$horiz_freq_khz"
-}
-determine_recommended_crt_modes () {
- ## Introduce the standard resolution 1400x1050 as it is seldom in the list the monitors output, though supported
- [ -n "$DEBUG" ] && echo "Screen Modes: $screen_resolutions"
- if [ -z "`echo $screen_resolutions|sed -n /1400/p`" ]; then
- [ -n "$DEBUG" ] && echo "Inserting 1400x1050 (if 1600x.... is present"
- # Insert "1400x1050" after 1600x.... (of course only if a 1600er res. is there because 1400x1050 would otherwise be listed)
- screen_resolutions=`echo $screen_resolutions|sed 's/\(.*"1600x[0-9]*"\)\(.*\)/\1 "1400x1050"\2/'`
- fi
- # For CRTs check if the highest frequency can be displayed with reasonable refresh rate (> 80Hz)
- highest_resolution=` echo $screen_resolutions | sed -n 's/"\([0-9x]*\)" .*/\1/p'`
- #Search for an @ in the same line as the highest resolution; FIXME: Sort only considers the vertical resolution
- freq_for_highest_res=`sed -n /$highest_resolution'/s/[^@]*@\([0-9]\{2,3\}\).*/\1/p' $tmp_ddcprobe_output | sort -nr|sed -n 1p`
- #echo $freq_for_highest_res
- if [ -z "$freq_for_highest_res" ]; then
- #Search for a number followed by the term "Hz" in the same line as the highest resolution
- freq_for_highest_res=`sed -n /$highest_resolution'/s/.*[^a-zA-Z0-9]\([0-9]\{2,3\}\)[ \t]*[Hh][Zz].*/\1/p' $tmp_ddcprobe_output | sort -nr|sed -n 1p`
- fi
- # Assure that the highest resolution is removed if we do not know at what refresh rate it is displayed
- # Chances are it would be flickering at that resolution
- if [ -z "$freq_for_highest_res" ]; then
- freq_for_highest_res=75 # Assume 75 Hz to be the least a monitor is able to do.
- fi
- # Cut the first resolution if it is displayed with less than 85Hz
- # It's assumed here, that the second best resolution will be displayed with > 85Hz
- if [ $freq_for_highest_res -lt 85 ]; then
- screen_resolutions=` echo $screen_resolutions | sed -n 's/"[0-9x]*" \(.*\)/\1/p'`
- fi
- define_max_recommended_horizontal_pixel_count # sets max_wanted_resolution
-# max_wanted_resolution="$?"
- [ -n "$DEBUG" ] && echo " The screen is too small for resolutions greater than ${max_wanted_resolution}x...."
- # Fetch the first resolution in the list
- new_highest_resolution=` echo $screen_resolutions | sed -n 's/"\([0-9x]*\)" .*/\1/p'`
- [ -n "$DEBUG" ] && echo " new highest resolution: $new_highest_resolution"
- new_highest_horizontal_resolution=`echo $new_highest_resolution | sed -n 's/\([0-9]*\)x.*/\1/p'`
- [ -n "$DEBUG" ] && echo " new_highest_horizontal_resolution: $new_highest_horizontal_resolution"
- while [ $new_highest_horizontal_resolution -gt $max_wanted_resolution ]; do
- # Cut the highest resolution because the display size is to small for it to be convenient
- screen_resolutions=` echo $screen_resolutions | sed -n 's/"[0-9x]*" \(.*\)/\1/p'`
- new_highest_resolution=` echo $screen_resolutions | sed -n 's/"\([0-9x]*\)".*/\1/p'`
- [ -n "$DEBUG" ] && echo " new highest resolution: $new_highest_resolution"
- new_highest_horizontal_resolution=`echo $new_highest_resolution | sed -n 's/\([0-9]*\)x.*/\1/p'`
- [ -n "$DEBUG" ] && echo " new_highest_horizontal_resolution: $new_highest_horizontal_resolution"
- done
- ##########
-}
-
-define_max_recommended_horizontal_pixel_count () {
- ## To high resolutions are not wanted on small screens #####################################
- # For 15 inch and below
- if [ $screen_size_in_qcm -lt 704 ]; then max_wanted_resolution=1024
- # For 15" to 17"
- elif [ $screen_size_in_qcm -lt 918 ]; then max_wanted_resolution=1280
- # For 17" to 19"
- elif [ $screen_size_in_qcm -gt 1121 ]; then max_wanted_resolution=1400
- else max_wanted_resolution=50000 # Accept any resolution on Monitors above 19"
- fi
- [ -n "$DEBUG" ] && echo " Max. recommended resolution: $max_wanted_resolution"
- #return $max_wanted_resolution
-}
-
-
-#TODO command line arguments processing (--help --defaults)
-tmp_ddcprobe_output=$1
-if [ -z $tmp_ddcprobe_output ]; then
- tmp_ddcprobe_output=/tmp/ddcprobe_output
- ddcprobe | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/" \
- > ${tmp_ddcprobe_output}
-fi
-# fixme: parameter I is not compatible with busybox - how to circumvent?
-failed=`sed -n '/edid.*failed/p' ${tmp_ddcprobe_output}`
-if [ -n "$failed" ]; then
- echo "Error: Display seems to be incapable of providing DDC Information"
- # Print Defaults OPTIMIZEME: The defaults could be command line parameters
- echo "Recommended Screen Modes: $default_recommended_screen_modes"
- echo "Horizontal Frequency Range (kHz): $default_horiz_freq_range_khz"
- echo "Vertical Frequency Range (Hz): $default_vert_freq_range_hz"
- exit 1;
-fi
-screen_size_in_qcm=$((`sed -n "s/screen.*size[^0-9]*\([0-9]*\)[^0-9]*\([0-9]*\).*/\1 * \2/p" ${tmp_ddcprobe_output}`))
-max_pixels=$((`echo "\`sed -n '/edid/,$s/.*[ \t]\([0-9]\{3,4\}\)x\([0-9]\{3,4\}\).*/\2 * \1/p' ${tmp_ddcprobe_output}|sort -rn| sed -n 1p\`"`))
-manufacturing_year=`sed -n 's/manufact.*\([12][90][0-9][0-9]\).*/\1/p' ${tmp_ddcprobe_output}`
-
-[ -n "$DEBUG" ] && echo "Maximal Resolution: $max_pixels"
-# 640x400 (below)
-if [ -z $screen_size_in_qcm ] || [ -z $manufacturing_year ] || [ 256000 -gt $max_pixels ] ; then
- echo "Error: Display seems to be incapable of providing all relevant DDC Information"
- # Print Defaults OPTIMIZEME: The defaults could be command line parameters
- echo "Recommended Screen Modes: $default_recommended_screen_modes"
- echo "Horizontal Frequency Range (kHz): $default_horiz_freq_range_khz"
- echo "Vertical Frequency Range (Hz): $default_vert_freq_range_hz"
- exit 1;
-fi
-
-## Determine probabilitiy for TFT ###########################################
-pix_per_qcm=$(($max_pixels/$screen_size_in_qcm))
-echo "Display size: $screen_size_in_qcm qcm"
-echo "Max Pixels per qcm: $pix_per_qcm"
-echo "Manufacturing year: $manufacturing_year"
-# Set probability for having an LCD by means of age and size
-# 15" ~ 30.6cm x 23cm
-# 17" ~ 34cm x 27cm (17,1")
-# 19" ~ 38,6cm x 29cm
-# if older than 1998 it is most probably not a LCD
-if [ $manufacturing_year -lt 1998 ] ;then tft_probability=1
-# if older than 2002 is probably no LCD, especially if larger than 15"
-elif [ $manufacturing_year -lt 2002 ];then
- if [ $screen_size_in_qcm -gt 704 ]; then tft_probability=1
- else tft_probability=20
- fi
-# if older than 2003 is maybe no LCD, yet for sure if larger than 17"
-elif [ $manufacturing_year -lt 2003 ];then
- if [ $screen_size_in_qcm -gt 918 ]; then tft_probability=5
- else tft_probability=40
- fi
-# if older than 2005 is probable an LCD, but not if larger than 19"
-elif [ $manufacturing_year -lt 2005 ];then
- if [ $screen_size_in_qcm -gt 1121 ]; then tft_probability=10
- else tft_probability=60
- fi
-# in 2005 few people would buy a (new) CRT
-elif [ $manufacturing_year -lt 2006 ];then tft_probability=90
-# after 2006 nobody would buy a new CRT
-else tft_probability=99
-fi
-if [ $pix_per_qcm -gt 1599 ]; then tft_probability=$(($tft_probability - 15))
-else tft_probability=$(($tft_probability + 15))
-fi
-if [ -n "$DEBUG" ];then
- echo -ne "Is a TFT: "
- if [ $tft_probability -ge 50 ]; then
- echo -n "true"
- else echo -n "false"
- fi
- echo " ($tft_probability)"
-fi
-
-# Find the lines with two times 3 to 4 digits delimited by an x. Print with the two values reverted, so sort sorts w.r.t the 2nd value. Then swap back
-# Minor problem: If two Modes are found in a line, the second one is used.
-screen_resolutions=`sed -n '/edid/,$s/\(.*[ \t]\)*\([0-9]\{3,4\}\) *x *\([0-9]\{3,4\}\).*/\3 x \2/p' ${tmp_ddcprobe_output}| sort -rn | sort -rnu | sed -n 's/\([0-9]\{3,4\}\) x \([0-9]\{3,4\}\).*/"\2x\1"/p' `
-screen_resolutions=`echo $screen_resolutions`
-echo "Supported Screen Modes: $screen_resolutions"
-
-
-
-######## Vertical and horizontal frequency ranges #########
-# find a line with the word range and and numbers with a minus in the middle (e.g 123-321)
-frequency_ranges=`sed '/range/!d;s/[^0-9]*\([1-9][0-9]\)[ \t]*-[ \t]*\([1-9][0-9]*\)[^0-9]*\([1-9][0-9]*\)[ \t]*-[ \t]*\([1-9][0-9]*\).*/\1-\2 \3-\4/' ${tmp_ddcprobe_output}`
-
-set -- $frequency_ranges # split into $1 und $2
-if [ -z "$frequency_ranges" ] && [ $tft_probability -lt 50 ]; then
- calculate_max_horizontal_freq # gives us $horiz_freq_range_khz
- horiz_freq_range="$horiz_freq_range_khz"
-else horiz_freq_range=$1
-fi
-########################################
-
-
-if [ $tft_probability -lt 50 ]; then
- determine_recommended_crt_modes;
-fi
-
-echo "Recommended Screen Modes: $screen_resolutions"
-
-#Fixme: How to Calculate the Vertical Refresh rate?
-echo "Horizontal Frequency Range (kHz): $horiz_freq_range"
-echo "Vertical Frequency Range (Hz): $2"
diff --git a/initramfs/initrd-stuff/bin/xconfig b/initramfs/initrd-stuff/bin/xconfig
index 8865674c..54113fec 100755
--- a/initramfs/initrd-stuff/bin/xconfig
+++ b/initramfs/initrd-stuff/bin/xconfig
@@ -18,6 +18,7 @@
iscrt () {
local dim=$1
local year=$2
+# first three characters are interpreted CRT/TFT
local crt="CRT Generic"
# sub 17" displays
if [ $dim -lt 750 ] ; then
@@ -33,27 +34,27 @@ elif [ $dim -lt 1000 ] ; then
crt="CRT 19inch"
echo "1400x1050\n1280x1024\n1152x864" > /tmp/res
else
- crt="TFT 4:3 17inch"
+ crt="TFT 4:3 17''"
fi
# 18/19" tft displays (available after 2001)
elif [ $dim -lt 1200 ] ; then
if [ $year -ge 2002 ] ; then
- crt="TFT 4:3 18+inch"
+ crt="TFT 4:3 18(+)''"
else
- crt="CRT 20inch"
+ crt="CRT 20''"
echo "1400x1050\n1280x1024\n1152x864" > /tmp/res
fi
# sub 22" displays are crts if older than 2004 :)
elif [ $dim -lt 1300 ] ; then
if [ $year -ge 2004 ] ; then
- crt="TFT 4:3 19+inch"
+ crt="TFT 4:3 19(+)''"
else
- crt="CRT 20+inch"
+ crt="CRT 20(+)''"
echo "1600x1200\n1400x1050\n1280x1024\n1152x864" > /tmp/res
fi
# any bigger display is most probably a tft
elif [ $year -ge 2004 ] ; then
- crt="TFT 4:3 22+inch"
+ crt="TFT 4:3 22+''"
fi
echo "$crt"
}
@@ -76,7 +77,7 @@ echo "# ${D_XF86CONFFILE}" > $xfc
echo '
## autogenerated X hardware configuration by $0 ##
## OpenSLX.ORG Project <openslx-users@openslx.org> ##
-## DO NOT EDIT THIS FILE BUT '$0' INSTEAD ##
+## DO NOT EDIT THIS FILE BUT 'xconfig' INSTEAD ##
Section "Files"
EndSection
Section "ServerFlags"
@@ -178,7 +179,7 @@ ddcprobe|sed "/mode: /d"|while read line ; do
[ "${IsCrt%% *}" = "TFT" -a $((${Width}00 / ${Height})) -ge 125 ] && \
echo $Res >> /tmp/res
[ "x${VendorName}" = "x" ] && VendorName="No vendor string detected"
- grep ModelName $xfc 2>&1 >/dev/null || \
+ grep ModelName $xfc 2>&1 > /dev/null || \
sed -e "/Section \"Monitor\"/a\ \ ModelName \"Display - ${IsCrt}\"" \
-e "/Section \"Device\"/a\ \ VendorName \"${VendorName}\"" \
-i $xfc
@@ -219,15 +220,19 @@ if [ -n "${hw_monitor}" ] ; then
#VS=${hw_monitor%Hz*}
Modes="\"${hw_monitor##* }\""
else
- for line in $(sort -run /tmp/res) ; do Modes="$Modes \"$line\""; done
+ # to be checked if correct
+ if [ -f /tmp/res ] ; then
+ for line in $(sort -run /tmp/res) ; do Modes="$Modes \"$line\""; done
+ else
+ error "$hcfg_res" nonfatal
+ fi
fi
sed "s/Modes \"/Modes ${Modes} \"/" -i $xfc
-
# run localizator and configure X11 keyboard
localization "${country}"
if [ -z "${XKEYBOARD}" ] ; then
- error "${hcfg_keyb}" nonfatal
XKEYBOARD="us"
+ error "${xcfg_keyb}" nonfatal
fi
sed "s/XKEYBOARD/${XKEYBOARD}/" -i $xfc
# displayvars
diff --git a/initramfs/initrd-stuff/etc/messages b/initramfs/initrd-stuff/etc/messages
index be30a00d..32d9e0a5 100644
--- a/initramfs/initrd-stuff/etc/messages
+++ b/initramfs/initrd-stuff/etc/messages
@@ -109,7 +109,7 @@ is not known to the kernel."
init_errcfg="of this client did not finish in\n time. You might check the \
process list and list the modules loaded until\n now."
init_errhw=" For some reason the hardware autoconfig $init_errcfg"
-init_errxorg=" For some reason no xorg.conf appeared"
+init_errxorg=" For some reason no xorg.conf appeared, check xconfig!"
init_errsw=" For some reason the software configuration $init_errcfg"
init_wait=" Waited $ticks ticks to unmount kernel module directory ..."
init_errumnt=" Unmount of the kernel modules directory \
@@ -190,21 +190,16 @@ hcfg_xcfg=" You should define the variable D_XF86CONFFILE in yours distro \
configuration\n file"
hcfg_hwsetup=" The X server configuration file generated by hwautocfg could \
not\n be found."
-hcfg_keyb=" No settings found for keyboard, using default of \
-'${DEFKEYTABLE}' defined\n in $0."
gfx_msg="Please check your graphic adaptor settings ($hw_graphic)."
-hcfg_gfxdrv=" Manual configuration of your graphic hardware module setting \
-failed.\n $gfx_msg"
-hcfg_gfxcdp=" Manual configuration of your graphic systems color depth \
-failed.\n $gfx_msg"
hw_msg=" Please check your predefined monitor settings ($hw_monitor): \
Automatic\n configuration of display"
-hcfg_hfrq=" $hwmsg timings was attempted, but the horizontal frequency \
-could not be detected. Using default frequency range (${HSYNCRANGE})"
-hcfg_vfrq=" $hwmsg timings was attempted, but the vertical frequency \
-could not be detected. Using default frequency range (${VSYNCRANGE})"
hcfg_res=" $hwmsg resolution was attempted but not established. Using \
-default resolutions (${DEFAULTMODES})"
+default resolutions (defined in xconfig)"
hcfg_hwsetup=" Expected information from hwsetup to appear in \
/tmp/hwsetup.info.\n Unable to configure parts of the systems hardware. \
Please check that\n hwsetup is properly installed and executable."
+
+# messages from xconfig
+xcfg_keyb=" No settings found for keyboard, using default of '${XKEYBOARD}' \
+defined\n in $0."
+
diff --git a/initramfs/initrd-stuff/etc/messages.de b/initramfs/initrd-stuff/etc/messages.de
index ad7f9cac..0f723cb4 100644
--- a/initramfs/initrd-stuff/etc/messages.de
+++ b/initramfs/initrd-stuff/etc/messages.de
@@ -201,21 +201,16 @@ hcfg_xcfg=" Sie sollten die Variable D_XF86CONFFILE in ihrer\n \
Distributions-Konfigurations-Datei definieren."
hcfg_hwsetup=" Die xserver-Konfigurations-Datei, erstellt von hwsetup, konnte \
nicht\n gefunden werden."
-hcfg_keyb=" Keine Einstellungen fuer ihre Tastatur gefunden, benutze den Standard-Wert \
-'${DEFKEYTABLE}' definiert\n in $0."
gfx_msg="Bitte pruefen Sie ihre Grafik-Adapter-Einstellungen ($hw_graphic)."
-hcfg_gfxdrv=" Manuelle Konfiguration des Grafik-Treiber-Moduls schlug fehl. \
-\n $gfx_msg"
-hcfg_gfxcdp=" Manuelle Konfiguration von ihrer Graphik-System-Farbtiefe \
-schlug fehl.\n $gfx_msg"
hw_msg=" Bitte pruefen Sie ihre vordefinierten Monitor-Einstellungen ($hw_monitor): \
-Automatische\n Konfiguration des Bildschirms"
-hcfg_hfrq=" $hwmsg Timing wurde versucht, aber die horizontale Frequenz \
-konnte nicht erkannt werden. Benutze Standard Wertebereiche (${HSYNCRANGE})"
-hcfg_vfrq=" $hwmsg Timing wurde versucht, aber die vertikale Frequenz \
-konnte nicht erkannt werden. Benutze Standard Wertebereiche (${VSYNCRANGE})"
+Automatische\n Konfiguration des Bildschirms."
hcfg_res=" $hwmsg Aufloesung wurde versucht aber nicht eingerichtet. Benutze \
-Standard Aufloesungen (${DEFAULTMODES})"
+Standard-Aufloesungen (defined in xconfig)"
hcfg_hwsetup=" Erwartete Informationen von hwsetup in \
/tmp/hwsetup.info.\n Teile des Systems koennen nicht eingerichtet werden. \
-Bitte pruefe, dass\n hwsetup richtig installiert und ausfuehrbar ist."
+Bitte pruefen, dass\n hwsetup richtig installiert und ausfuehrbar ist."
+
+# messages from xconfig
+hcfg_keyb=" Keine Einstellungen fuer ihre Tastatur gefunden, verwende den \
+Standard-Wert '${XKEYBOARD}' definiert\n in $0."
+
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init
index a4f48c87..f3d4ae7a 100755
--- a/initramfs/initrd-stuff/init
+++ b/initramfs/initrd-stuff/init
@@ -767,11 +767,10 @@ waitfor /tmp/hwcfg 20000 || error "$init_errhw"
>> /mnt/etc/udev/rules.d/04-scanner.rules
# move Xorg configuration to final destination depending if user or system
# generated
-#waitfor /tmp/xready 10000 || error "$init_errxorg" nonfatal
if [ -f /rootfs${D_XF86CONFFILE#/mnt} ] ; then
mv /rootfs${D_XF86CONFFILE#/mnt} /mnt/${D_XF86CONFFILE}
else
- mv /tmp/xorg.conf /mnt/${D_XF86CONFFILE}
+ mv /tmp/xorg.conf /mnt/${D_XF86CONFFILE} || error "$init_errxorg" nonfatal
fi
# wait a while for services setup to complete
waitfor /tmp/svcfg 10000 || error "$init_errsw"