Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: paskali on August 09, 2013, 05:35:27 AM

Title: [SOLVED] OSS sound crashes at the cold boot. Why?
Post by: paskali on August 09, 2013, 05:35:27 AM
Hi all, as in the title, i load at the boot the OSS extension to enable the sound on my notebook; however it has a "crazy" behaviour: at the cold boot it crashes and the sound does not work but if i reboot the sound works so well.
Why?

P.S.
I do not really want to use ALSA, i would want to try to resolve with OSS.
Title: Re: OSS sound crashes at the cold boot. Why?
Post by: bmarkus on August 09, 2013, 05:38:05 AM

P.S.
I do not really want to use ALSA, i would want to try to resolve with OSS.

Why?
Title: Re: OSS sound crashes at the cold boot. Why?
Post by: paskali on August 09, 2013, 05:53:06 AM
Quote
Why?

Because i found it more hard to configure, i do not have so time to waste, and because on this notebook i do not have enough resources.
Title: Re: OSS sound crashes at the cold boot. Why?
Post by: tinypoodle on August 09, 2013, 08:30:06 AM
What happens if you remove OSS4 from onboot.lst and then load it after cold boot?
Title: Re: OSS sound crashes at the cold boot. Why?
Post by: paskali on August 09, 2013, 10:19:45 AM
What happens if you remove OSS4 from onboot.lst and then load it after cold boot?

If i do not load OSS on cold boot but after, ondemand, it seems to work well.
Title: Re: [SOLVED] OSS sound crashes at the cold boot. Why?
Post by: paskali on August 10, 2013, 08:05:06 AM
Dear friends, thanks for your help but i have solved by myself.
I use a persistent home directory in which there is the .profile startup script.
I have edit this file and below the definition of the ONDEMAND enviroment variable:

Code: [Select]
ONDEMAND=/etc/sysconfig/tcedir/ondemand
[ -d "$ONDEMAND" ] && export PATH=$PATH:"$ONDEMAND"

i wrote:
Code: [Select]
# Load and enable sound
sleep 3
ondemand -e OSS.tcz &&
sudo soundoff &&
sudo soundon

This solution makes the startup boot process a bit more slow but works fine in the cold boot as well as in warm boot.
I hope this tip can to be usefull.
Title: Re: [SOLVED] OSS sound crashes at the cold boot. Why?
Post by: gerald_clark on August 10, 2013, 09:46:16 AM
I think you will find ondemand is already in your path.