WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: "alsasound start" into "/opt/bootlocal.sh": i do not like this solution.  (Read 2766 times)

Offline paskali

  • Jr. Member
  • **
  • Posts: 71
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?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: "alsasound start" into "/opt/bootlocal.sh": i do not like this solution.
« Reply #1 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.

Offline paskali

  • Jr. Member
  • **
  • Posts: 71
Re: "alsasound start" into "/opt/bootlocal.sh": i do not like this solution.
« Reply #2 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: "alsasound start" into "/opt/bootlocal.sh": i do not like this solution.
« Reply #3 on: December 28, 2013, 12:35:11 AM »
You could try an upgrade to 5.1?

Offline paskali

  • Jr. Member
  • **
  • Posts: 71
Re: "alsasound start" into "/opt/bootlocal.sh": i do not like this solution.
« Reply #4 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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: "alsasound start" into "/opt/bootlocal.sh": i do not like this solution.
« Reply #5 on: December 28, 2013, 09:11:29 AM »
It might be better to start flit from ~/.X.d