Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: vinceASPECT on May 23, 2011, 07:51:53 PM

Title: getting sound working in Tinycore Linux
Post by: vinceASPECT on May 23, 2011, 07:51:53 PM
Hello Forum,

is it best to ask here to save some time.

I have Tinycore Linnux working here. It finds the sound chip on the motherboard
and sound is working.

I also have a USB soundcard plugged in. Tinycore linux finds the USB soundcard.

When i install OSS and run "osstest", tinycore finds both the motherboard sound chip
and the USB soundcard. Both devices produce audible sound results during the test.

My issue is that i really want to use the USB soundcard instead of the motherboard sound chip.

I want tinycore to use the USB soundcard as it's default soundcard for applications.

How can i tell tinycore to ignore the motherboard sound chip and instead sellect the USB soundcard
as it's default sound device?

thanks

Vince.
Title: Re: getting sound working in Tinycore Linux
Post by: Rich on May 23, 2011, 08:23:45 PM
Hi vinceASPECT
Take a look at the output of  dmesg  and try to locate any references to the chip on the motherboard.
Then see which module TC is loading for it and blacklist it by using the boot code  blacklist=modulename
Title: Re: getting sound working in Tinycore Linux
Post by: vinceASPECT on May 23, 2011, 08:37:10 PM
Hello,

the output of "dmesg" shows many things and there is just "one" single line that
refers to the on board sound chip

How do i now find the TC module that is loading with reference to the above single line.

How do i then blacklist that module?

thanks

Vince.
Title: Re: getting sound working in Tinycore Linux
Post by: Juanito on May 23, 2011, 08:44:59 PM
How do i now find the TC module that is loading with reference to the above single line.
Use the command "lsmod" and have a look at the list of modules produced

Quote
How do i then blacklist that module?
Add the boot code "blacklist=module_name"
Title: Re: getting sound working in Tinycore Linux
Post by: vinceASPECT on May 23, 2011, 08:55:02 PM
Hello,

OK i will try that but there is another hitch.

My laptop keyboard is broken. At Boot level only 3 keys work, enter, F1 and Escape.

It is not possible to use a USB keyboard plugged in .....boot level won't find it. (bios level)

How can i type a boot parameter?

thanks

Vince.
Title: Re: getting sound working in Tinycore Linux
Post by: Rich on May 23, 2011, 08:59:25 PM
Hi vinceASPECT
Check your BIOS for a  legacy usb  option and change it, that should allow your USB keyboard to
work when booting.
Title: Re: getting sound working in Tinycore Linux
Post by: vinceASPECT on May 23, 2011, 09:35:46 PM
Hello

i don't n know if this is any help to you  but..

without doing any of the above and just knowing what i already know

when the machine is booted into Tinycore there are certain Applications that
can correctly work with sound coming from the USB soundcard.

i run tinycore LIVE from CD disc. I only install OSS.

Then i install the player XMMS. This tool allows you to choose the soundcard in it's preferences.
I choose USB audio.  (da da....the music player plays songs using the USB soundcard)

BUt there is no volume control When i look at the OSS mixer the SUB sound card has a totally
empty tab. Where-as the motherboard sound chip has a full mixer interface.
It's as if tinycore is not really finding the USB sound card properly.

but other apliccations don't use the USB soundcard no matter how i alter the preferences.

FOr example, there is no sound during web browsing.  Flash plug in i guesse is the sound archicect
there but it won't find the USB soundcard over the motherboard sound chip.

installing ALSA has no further effect on the desire to get the USB soundcard to override the
motherboard sound chip.

thanks

Vince.

Title: Re: getting sound working in Tinycore Linux
Post by: Rich on May 23, 2011, 09:46:15 PM
Hi vinceASPECT
I don't think you should run alsa and oss at the same time, pick one or the other.

You might try unloading the module using  rmmod -f module_name
Title: Re: getting sound working in Tinycore Linux
Post by: tinypoodle on May 23, 2011, 09:56:18 PM
You might also have a look at the wiki and forum of OSS.   ;)
Title: Re: getting sound working in Tinycore Linux
Post by: vinceASPECT on May 23, 2011, 10:28:47 PM
Hello

Yes i have been reading the wiki about sound cards.

does this line below mean that it is possible to arrange bootcodes from the desktop
and be able to ignore certain modules at load time  "by simply editing your grub files etc"

---------------------------------------------------------------------------------------------------------------------

Blacklisting of sound devices

For each target….add the relevant bootcode to blacklist the relevant module or modules to your bootloader config file, either menu.lst or grub.cfg

----------------------------------------------------------------------------------------------------------------------

would this editing of the config file therefor assume that you have a hard drive install of Tinycore?

in short, i am asking you if it is indeed possible to use "bootcodes" and to blacklist "modules" at boot time by editing your config file at the desktop level. (thus not needing any keyboard entry at Bios boot level?)

thanks

Vince.
Title: Re: getting sound working in Tinycore Linux
Post by: tinypoodle on May 23, 2011, 10:38:12 PM
Yes, that should basically work with most bootloaders.
Same would apply with isolinux and remastering an .iso.
Title: Re: getting sound working in Tinycore Linux
Post by: vinceASPECT on May 23, 2011, 10:45:32 PM
Hello,

I see.

Thanks for replying soon enough.

So there is some purpose in my pursuit of getting this USB soundcard working as the default sound card.

Once i have conquered this above, at least it can be a permanent thing on the cranky old laptop.

yes, i will read some more

thanks

Vince.
Title: Re: getting sound working in Tinycore Linux
Post by: Juanito on May 24, 2011, 12:24:10 AM
Quote from: vinceASPECT link=topic=9733.msg52979#msg52979
would this editing of the config file therefor assume that you have a hard drive install of Tinycore?
No - it would work from any install where you can edit the boot config and even from a cd boot if you enter the codes at the prompt.

Quote
in short, i am asking you if it is indeed possible to use "bootcodes" and to blacklist "modules" at boot time by editing your config file at the desktop level. (thus not needing any keyboard entry at Bios boot level?)

Yes, you can edit menu.lst (grub), extlinux/syslinux.conf or whatever from the desktop using a text editor.
Title: Re: getting sound working in Tinycore Linux
Post by: curaga on May 24, 2011, 12:27:32 AM
The blacklisting info in our wiki is for alsa autodetection. See the OSS wiki:

http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Changing_the_default_sound_output
Title: Re: getting sound working in Tinycore Linux
Post by: aus9 on May 24, 2011, 01:49:01 AM
hi

"The blacklisting info in our wiki is for alsa autodetection "

IMHO
No auto detection occurs. Its simply a way of stopping a module from loading to stop Alsa using a module that relates to a particular sound device.

2) I gather the OP does not wish to use Alsa?

3) Is OP able to pull out laptop keys and clean underneath at the contact area?
Title: Re: getting sound working in Tinycore Linux
Post by: vinceASPECT on May 24, 2011, 11:10:34 AM
The blacklisting info in our wiki is for alsa autodetection. See the OSS wiki:

http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Changing_the_default_sound_output

this looks promising, it mentions simply changing some elements in a file
so that TC defaults to the first soundcard that you put into the start of the list
....instead of what TC puts there.

thanks

Vince.
Title: Re: getting sound working in Tinycore Linux
Post by: vinceASPECT on May 26, 2011, 06:37:53 AM
Hello

thanks ever so much for the advice about soundcards and soundchips in TinyCore Linux.

Your advice has worked correctly. I now have TinyCore sound coming out of my USB
soundcard plugged into USB.

I followed the simple instruction in the OSS sound wiki at the very end paragraph which
simply told users to edit a certain file and either shift the Order of the soundcard listings
or delete soundchips that you don't want TCL to find.

1) firstly i switched off OSS (i think i typed "sudo soundoff")
2) i changed the permissions of the OSSLIB file so that it could be edited.
3) i edited that  file in 2)  to leave only my USB souncard present in position one in the list.
4) i re-started OSS (i think by typing "sudo soundon"
5)i then used the command "sudo ossdevlinks -v -r" to relink the sound.
6) These 5 steps above then allowed TCL to use my USB soundcard for all sound in the operating
system.

------------------------------------------------------------------------------------------------------------------------------------------Alternative: $OSSLIBDIR/etc/installed_drivers influences the order of sound cards set by ossdetect. By removing other devices or moving the desired sound card to the first place, the default device can be modified. After the change, restart OSS and run "sudo ossdevlinks -v -r" and it will relink /dev/dsp for you.

------------------------------------------------------------------------------------------------------------------------------------------

so thanks very much to the forum.

These USB soundcards are only 50 cents NEW on Ebay.  They are CD quality sound and do not require and drivers in windows or Linux. They are handy when your laptop headphone socket is broken.

It had worked in Puppy Linux and Debian and Ubuntu right out of the box. I figured it was worth the
effort to get it working in Tinycore Linux.

Vince.

I shifted my USB sound card into first position and deleted all other references to
any soundchips in the computer.

Title: Re: getting sound working in Tinycore Linux
Post by: Daniel on May 30, 2011, 01:29:23 AM
Hi,

Can't you deactivate your board sound card in BIOS ?
...
 ;D

D.

Title: Re: getting sound working in Tinycore Linux
Post by: Tahoe on August 20, 2011, 12:55:21 PM
Sorry for the late entry folks but I just had to thank Rich for his mention about running one or the other (I don't think you should run alsa and oss at the same time, pick one or the other). As I choose to run OSS, getting rid of the alsa stuff ironed me out. Everything's working beautifully now.
Title: Re: getting sound working in Tinycore Linux
Post by: cast-fish on August 20, 2011, 04:02:33 PM
Tahoe

i am not sure what your sound situation was with your computer?

in my case i have a laptop and it's internal sound chip and also
an external USB soundcard. (i did not want to use the internal sound chip)

Getting ALSA working in my situation was surprisingly simple as can be.

1)Boot your tinycore machine. (assuming you don't have any sound stuff present)
2)Install the alsa extension and alsa plugin.tcz and alsa.conf.tcz and alsa module 2.6.tzc
3)Unplug your USB soundcard  (if it was plugged in at boot up)
4) open a terminal and run the alsaconf script. Don't configure anything just exit it.
5) Plug your USB soundcard back in.

That's it. Your sound will now be working on your USB soundcard via the Alsa driver.

V.