Quote:
Originally posted by sino
I did install kernel-2.6.3, mouse works now, but i get all kind of QM_functions: not implemented ! no modules are being loaded so non of my nics , usb and sound are working! I have the init-tools installed ! any ideas or may be i'm doing something wrong in the kernel config file.
thanks
|
-- look for obsolete modules in /etc/sysconfig/kernel
-- change scripts in /etc/init.d/ that erroneusly report failure. e.g.:
startproc $CRON_BIN
if test $? -eq 7 ; then
rc_reset
/bin/ps -e w | grep $CRON_BIN | grep -qv grep
fi
# Remember status and be verbose
rc_status -v
-- check /etc/modprobe.conf + /etc/modules.conf for invalid module names / module arguments
(agpgart + snd..)
-- have a look for wrong module names in /etc/hotplug/*.agent
-- From /etc/rc.d/alsasound : --------------------------------
function restore_mixer() {
#
# restore driver settings
#
if [ -d /proc/asound ]; then
if [ ! -r $asoundcfg ]; then
if [ -x /usr/bin/set_default_volume ]; then
echo "No mixer config is found - adjusting default volumes"
grep '^[0-9]' /proc/asound/cards | while read card; do
/usr/bin/set_default_volume $card
done
else
echo "No mixer config in $asoundcfg, you have to unmute your card!"
fi
else
echo -n "Restoring the previous sound setting"
$alsactl -F -f $asoundcfg restore >/dev/null 2>&1
rc_status -v
fi
fi
}
function get_drivers() {
echo "snd_intel8x0"
#/sbin/modprobe -c | \
# grep -E "^[[:space:]]*alias[[:space:]]+snd-card-[[:digit:]]" | sort |\
# awk '{print $3}'
}
function start() {
#
# insert all sound modules
#
module_loaded=0
c=""
drivers=`get_drivers`
for i in $drivers; do
if [ $i != off ]; then
if [ x$c = x ]; then
echo -n ": "
c=1
fi
echo -n " ${i##snd_}"
probe_module $i && module_loaded=1
fi
done
rc_status -v -r
test $module_loaded -eq 0 && return
# # check ALSA driver version 0.9
# if head -n 1 /proc/asound/version | grep -q '0\.9'; then
# :
# else
# cat /proc/asound/version
# echo -n "The running ALSA driver looks obsolete. Stop ALSA now."
# stop
# rc_failed 1
# rc_status -v
# return
# fi
#
# insert 32bit ioctl wrapper if exists
#
/sbin/modprobe snd-ioctl32 >/dev/null 2>&1
#
# rest of start action...
#
load_sequencer
restore_mixer
load_carddeps $drivers
}
function terminate() {
#
# Kill processes holding open sound devices
#
# DEVS=`find /dev/ -follow -type c -maxdepth 1 -print 2>/dev/null | xargs ls -dils | grep "1*1[46]," | cut
-d: -f2 | cut -d" " -f2; echo /proc/asound/dev/*`
fuser -k /dev/admmidi? /dev/adsp? /dev/amidi? /dev/audio* /dev/dmfm* \
/dev/dmmidi? /dev/dsp* /dev/dspW* /dev/midi0? /dev/mixer? /dev/music \
/dev/patmgr? /dev/sequencer* /dev/sndstat >/dev/null 2>&1
if [ -d /proc/asound/dev ]; then
fuser -k /proc/asound/dev/* >/dev/null 2>&1
fi
if [ -d /dev/snd ]; then
fuser -k /dev/snd/* >/dev/null 2>&1
fi
#
# remove all sequencer connections if any
#
if [ -f /proc/asound/seq/clients -a -x $aconnect ]; then
$aconnect --removeall
fi
}
function stop() {
#
# store driver settings
#
if [ -x $alsactl ]; then
$alsactl -f $asoundcfg store
else
echo -n -e "${rc_warning}!!!alsactl not found!!!${rc_reset} "
fi
#
# mute master to avoid clicks at unload
#
/usr/bin/amixer set Master mute >/dev/null 2>&1
#
# remove all sound modules
#
$lsmod | grep -E "^snd" | grep -Ev "(snd-page-alloc|snd_page_alloc)" | while read line; do \
/sbin/rmmod `echo $line | cut -d ' ' -f 1`; \
done
}