Hallo Suse-Linux,
bin Suse-Linux-(6.4)-Anfänger und eigentlich nur PC-Anwender.
Jetzt habe ich mit dem Sound unter Linux Probleme.
Habe mal vorab eine Frage:
1) Kann ich in diese Mailingliste auch Fragen zu Sound mit Alsa
einbringen ? Oder gibt es eine andere Möglichkeit in deutsch ?
(Alsa-Mailinglisten sind - soweit ich weiß - doch nur englisch)
2) Alsaconf hat eigene devices (z.B. /proc/alsasound/~)
Kann es sein, dass die devices der startkde mit den devices von Alsa
nicht zurechtkommen ?
Meine Kenntnisse reichen nicht aus, um das zu prüfen. Wäre schön, wenn
mir mal jemand sagen könnte, ob in nachstehender Startkde was geändert
werden muss, wenn Alsa verwendet wird. Und wenn ja, wie ?
Ich hänge deshalb hier mal einen Auszug aus /opt/kde/bin/startkde an:
Mit freundlichen Grüßen
Siegfried
#!/bin/bash
#
# this file is not the original startkde, but a version for SuSE Linux
# which tests for the existence of the services being started
# furthermore some variables are set. It installs also the SuSE Theme
#
#
# Author: Mathias Kettner
# Adrian Schroeter
#
unset CREATE_ICONS
#
# set the background color
#
BG_COLOR="`grep ^Color1\= ~/.kde/share/config/desktop0rc i|cut -d \=
-f 2`"
if [ "$BG_COLOR" ]; then
xsetroot -cursor_name left_ptr -solid "$BG_COLOR"
else
xsetroot -cursor_name left_ptr -solid "#646491"
fi
#
# Check first for current resolution/depth
#
X=`xdpyinfo |grep dimensions:|cut -d " " -f 7|cut -d "x" -f 1`
Y=`xdpyinfo |grep dimensions:|cut -d " " -f 7|cut -d "x" -f 2`
D=`xdpyinfo |grep depths\ \(1\):|cut -d " " -f 8`
#
----------------------------------------------------------------------
# DIESER BEREICH WURDE GEÄNDERT (AUSSER FUNKTION GESETZT)!!!!!!!!!!!!!
#
#tests if a service is available and starts it
#
#function startifthere () {
#
# type -p $1 &> /dev/null
# test $? -eq 0 && \
# ( echo -n "Starting $*..."; ( $* & ); echo "Done." ) || \
# echo "startkde: program $1 not found!"
#}
#
#
----------------------------------------------------------------------
#
# sound detection.
#
function startifaudio () {
if [ "`grep sound /proc/devices`" ]; then
startifthere $@
else
echo "No sound device available. $@ not started."
fi
}
#--------------------------------------------------------------------
-------
# [.....]
#
----------------------------------------------------------------------
install_default_theme
create_default_desktop
tartifthere kcontrol -init
sleep 1 ; startifaudio kaudioserver
(sleep 1 && startifaudio kwmsound) &
if [ $D -gt 8 ]; then
(sleep 1 && startifthere kfm) &
else
(sleep 1 && startifthere kfm -ncols 128) &
fi
(sleep 1 && startifthere krootwm) &
(sleep 3 && startifthere kbgndwm) &
#
(sleep $waits && startifthere kpanel) &
exec kwm
---------------------------------------------------------------------
To unsubscribe, e-mail: suse-linux-unsubscribe@suse.com
For additional commands, e-mail: suse-linux-help@suse.com