Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: paskali on December 27, 2013, 11:42:05 AM

Title: "alsasound start" into "/opt/bootlocal.sh": i do not like this solution.
Post by: paskali on December 27, 2013, 11:42:05 AM
Hi, to avoid the message that tell me the codec is not ready, i have tried a similar solution on my bootlocal.sh:

Code: [Select]
sleep 3s && /usr/local/etc/init.d/alsasound start
Some time work and some no; i do not really want to increase the number of seconds, for me it does not have much sense.

I have found a similar (ugly) solution too, to wait the xserver to start:

Code: [Select]
while [ ! -e /tmp/wm_errors ]; do
            sleep 0s
done
/usr/local/etc/init.d/alsasound start

I do not know if these messages are a problem; i have noticed on kernel message log by dmesg that this happen in any case when i load alsa.tcz, sound always works fine.

What do you thik about?
Title: Re: "alsasound start" into "/opt/bootlocal.sh": i do not like this solution.
Post by: Juanito on December 27, 2013, 01:13:04 PM
you don't mention which version you're using, but ever since 5.0, just loading the alsa extension is enough for sound to work on both of my machines, I have no further need to issue the "/usr/local/etc/init.d/alsasound start" command.
Title: Re: "alsasound start" into "/opt/bootlocal.sh": i do not like this solution.
Post by: paskali on December 27, 2013, 01:50:29 PM
you don't mention which version you're using, but ever since 5.0, just loading the alsa extension is enough for sound to work on both of my machines, I have no further need to issue the "/usr/local/etc/init.d/alsasound start" command.

Sound volume is too low in my case. I use tiny core 4.7.6
Title: Re: "alsasound start" into "/opt/bootlocal.sh": i do not like this solution.
Post by: Juanito on December 28, 2013, 12:35:11 AM
You could try an upgrade to 5.1?
Title: Re: "alsasound start" into "/opt/bootlocal.sh": i do not like this solution.
Post by: paskali on December 28, 2013, 08:39:14 AM
I have found also this solution that works with alsa in conjunction  with flit, a small applet that shows the time, the day, the power status and the sound status. In bootlocal.sh i append the following commands:

Code: [Select]
while [ ! -e /tmp/wm_errors ]; do
        if [ -e /home/$USER/.flit.pid ]; then
                rm /home/$USER/.flit.pid
        fi     
done
/usr/local/etc/init.d/alsasound start

and in .xsession the followings:

Code: [Select]
if [ ! -e $HOME/.flit.pid ]; then
        while [ ! -e /sys/module/snd_via82xx_modem ]; do
                sleep 0s
        done
fi
flit &

This resolve the alsasound message and an issue of flit that some time does not start. I do not like this solution but it works.
Title: Re: "alsasound start" into "/opt/bootlocal.sh": i do not like this solution.
Post by: Juanito on December 28, 2013, 09:11:29 AM
It might be better to start flit from ~/.X.d