LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-22-2008, 06:26 PM   #1
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,621

Rep: Reputation: 142Reputation: 142
Slackware 12.2: No sound on old laptop with Yamaha audio chip


Dear all,

almost everything is now working again on my Slackware boxes, now running the latest 12.2 release. With only one exception.

On my old laptop (Toshiba SatellitePro 4300) I hava a Yamaha chipset. This is detected and, as far as I can tell, the correct modules are loaded. Also, alsaconf shows no errors.

Code:
# alsaconf
===========================
Now ALSA is ready to use.
For adjustment of volumes, use your favourite mixer.

Have a lot of fun!
In /etc/modprobe.d/sound I find:
Code:
alias snd-card-0 snd-ymfpci
alias sound-slot-0 snd-ymfpci
But:

Code:
# alsamixer
alsamixer: function snd_ctl_open failed for default: No such file or directory
And lsmod | grep -i snd gives (among many others):
Code:
snd_seq_dummy
snd_seq_oss
snd_seq_midi_event
snd_seq
snd_pcm_oss
snd_mixer_oss
snd_ymfpci
gameport
snd_ac97_codec
ac97_bus
snd_pcm
snd_opl3_lib
snd_timer
snd_hwdep
snd_page_alloc
snd_mpu401_uart
snd_rawmidi
snd_seq_device
snd
soundcore
Most of these modules are loaded because snd_ymfpci depends on them.

root and my non-privileged user are members of the audio group.

I don't see udev rules for alsa, but I guess this is no problem, because on my other box there are no alsa udev rules, either, and sound works perfectly well there.

Possibly not so good: There is no /dev/dsp on my laptop. Starting KDE I get an error message moaning about this. However, I do have two devices /dev/sequencer and /dev/sequencer2.

I appreciate any hints what to check for. Thanks in advance!

gargamel
 
Old 12-22-2008, 09:58 PM   #2
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,621

Original Poster
Rep: Reputation: 142Reputation: 142
Just discovered that the modules loaded for sound seem to be OSS modules instead of ALSA modules. At least, the names are identical with the blacklisted modules for OSS in /etc/modprobe.d/blacklist.

Now I wonder:
Are the modules for ALSA or for OSS?
Why are they loaded, although they are blacklisted?
Why wasn't this a problem in Slackware 12.1, but is a problem in 12.2?

But most of all:
What should/could I do next to get sound?

All ideas welcome!

gargamel
 
Old 12-23-2008, 12:04 AM   #3
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,486

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Perhaps this link will offer some clues.
http://web1.toshiba.ca/support/techs...t_pro/4300.htm
I note that the contents of your /etc/modprobe.d/sound do not match what is stated in the link (although this is old and RedHat specific).
 
Old 12-23-2008, 02:56 AM   #4
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,621

Original Poster
Rep: Reputation: 142Reputation: 142
Thanks, I tried:

Code:
/etc/modprobe.d/sound
alias char-major-14 soundcore
alias char-major-116 snd
alias snd-card-0 snd-card-ymfpci
snd-slot-0 snd-card-0
as stated in this Red-Hat-related article. But no success...

alsaconf still scans the card database and detects a Yamaha YMF-744B [DS-1S Audio Controller] (rev 02). According to this, it should have complete support (and, in fact, it did work in Slackware 12.1):
hardware4linux Yamaha_DS-1_PCI

Any other ideas what I might look for?

gargamel
 
Old 12-23-2008, 05:01 AM   #5
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,621

Original Poster
Rep: Reputation: 142Reputation: 142
On and on and on...

I found that I had modules for 2.6.24.x kernel on my system, so
- I removed these
- removed all alsa packages
- installed alsa packages again

and tried it again. No success.

I re-checked file ownership, access rights and user groups, and everything seems to be ok.

What puzzles me the most, however, is that the system appears to be able to load the correct modules, and alsaconf finishes without an error message, though without any sound, and writes something useful (at least, as far as I can tell) into /etc/modprobe.d/sound, but alsamixer fails.

I am pretty sure that only some little detail is wrong... But what is it?

BTW, it is a system upgraded from 12.1 using the "Mount install CD from within a running 12.1 system, then upgradepkg everything following the instructions in UPGRADE.TXT" method (as opposed to the "insert CD and boot with it" method).

What else could I try? I am grateful for all your ideas!

gargamel

Last edited by gargamel; 12-23-2008 at 05:14 AM.
 
Old 12-23-2008, 06:02 AM   #6
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,486

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
When you did your upgrade, did you also check and install the *.new files in /etc?
A big change from 12.1 to 12.2 was the relocation of the udev rules which set up device nodes for your devices.
If you cd to /etc and run 'find . -name "*.new" -print' and see output then you still have some work to do.
 
Old 12-23-2008, 07:40 AM   #7
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,621

Original Poster
Rep: Reputation: 142Reputation: 142
Good guess, but this is also not the problem. I have no .new files left in my system, and in particular I was aware of the udev changes.

Other ideas most welcome!

gargamel

Last edited by gargamel; 12-23-2008 at 07:48 AM.
 
Old 12-23-2008, 06:49 PM   #8
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,486

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Are you using any additional kernel modules that may be conflicting, such as modules for an internal modem?
I have a Toshiba Satellite 1410 laptop that uses an Intel chipset for sound. I have found that the kernel modules for the internal modem can interfere with sound.
 
Old 12-24-2008, 01:57 AM   #9
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,621

Original Poster
Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by allend View Post
Are you using any additional kernel modules that may be conflicting, such as modules for an internal modem?
I have a Toshiba Satellite 1410 laptop that uses an Intel chipset for sound. I have found that the kernel modules for the internal modem can interfere with sound.
No, currently I don't use any additional modules.

Looking at the output of lsmod I only wonder, what the modules intel_agp and agpart are loaded for. The computer is too old to support AGP.

And: It is a pure upgrade, with no additional software installed that wasn't there before. In fact, sound worked for a very short time with 12.2, too. It broke after I had fixed my mkinitrd problem (I use LVM and LUKS, mkinitrd 1.3.2 had a problem with this, mkinitrd 1.3.3 fixed it) and run
Code:
# slackpkg clean-system
So, I am pretty sure that it is more likely that I *lost* a module I need than two conflicting ones.

However, one thing I haven't tried yet, is switching off ACPI support. Searching the web, this seems to be a frequent sound stopper. But again, why did it work before, then?

gargamel

Last edited by gargamel; 12-24-2008 at 02:48 AM.
 
Old 12-24-2008, 06:26 AM   #10
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 930

Rep: Reputation: 96
Quote:
Originally Posted by gargamel View Post
In fact, sound worked for a very short time with 12.2, too. It broke after I had fixed my mkinitrd problem (I use LVM and LUKS, mkinitrd 1.3.2 had a problem with this, mkinitrd 1.3.3 fixed it) and run
Code:
# slackpkg clean-system
I'm confused here: If you have LVM+LUKS, after the upgrade you can't have booted with the 12.2 kernel unless you've used mkinitrd. Then how come it worked on 12.2 "for a short time?", before the mkinitrd update? It must have been before booting into the new kernel I think. I'm asking this because I don't think that a working 2.6.27.7 got broken by mkinitrd or slackpkg, it must have been 2.6.24.5 (or whatever you used before) that worked.
 
Old 12-24-2008, 08:00 AM   #11
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,621

Original Poster
Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by Ilgar View Post
I'm confused here: If you have LVM+LUKS, after the upgrade you can't have booted with the 12.2 kernel unless you've used mkinitrd. Then how come it worked on 12.2 "for a short time?", before the mkinitrd update? It must have been before booting into the new kernel I think. I'm asking this because I don't think that a working 2.6.27.7 got broken by mkinitrd or slackpkg, it must have been 2.6.24.5 (or whatever you used before) that worked.
Yep, you are completely right. I had sound after the mkinitrd update, I recall now, but it was broken after I ran
Code:
# slackpkg clean-system
, which I did after I discovered that some outdated packages and modules were still there, such as /lib/modules-2.6.24.5, which I wouldn't use anymore --- so I thought.

So I guess that my problem is not caused by the mkinitrd update, but by cleaning the system with slackpkg.

Assuming this is the cause: Where to go from here?
Reinstalling the 2.6.24 modules is not really an option, I think...

gargamel
 
Old 12-24-2008, 08:59 AM   #12
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 930

Rep: Reputation: 96
Gargamel what I mean is this: You said the sound worked under 12.2 for a short while, until you did the mkinitrd/slackpkg updates. I'm saying that you can't have run the 12.2 kernel before doing mkinitrd, because you need to reboot the machine. So my guess is the following, please tell me if I'm wrong:

1) While running 12.1 with 2.6.24 kernel, you upgraded the packages from a mounted DVD.
2) (Still under 2.6.24) you upgraded your mkinitrd and created an initrd for the new kernel. During this time sound was working.
3) You rebooted your system to use the new kernel.
4) At some point under the new kernel, you ran 'slackpkg clean-system'.

If this is correct, the question is: Did the sound get broken after step 4, or somewhere between step 3 and 4? If the first case is true then slackpkg is under suspicion but since 2.6.24 modules are irrelevant for the new kernel, I can't imagine what could have gone wrong. My guess is that your sound card never worked under 2.6.27 in which case we may have to look what has changed and caused this breakage from .24 to .27 (or 12.1 to 12.2).

Last edited by Ilgar; 12-24-2008 at 09:00 AM.
 
Old 12-24-2008, 04:59 PM   #13
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,621

Original Poster
Rep: Reputation: 142Reputation: 142
Ilgar, thanks, this is exactly what I was going to say. Sorry for being too concise and/or misleading.

Currently I assume, that for whatever reason the old kernel, or at least the old kernel module, was used for the new system. After cleaning the system both were gone, along with their support for my sound hardware. Perhaps I had forgotten to redefine one symlink or so.

So I agree with you completely, that I must have been using the old kernel for the first 12.2 boot.

Even so, the situation is a bit strange. I am still wondering, why the sound chip is detected correctly, and the right modules are loaded, but then alsamixer fails. All the above is doubtlessly correct. But something is still missing...

gargamel

P.S.: This is all very interesting and fascinating, and it is really great to find some people providing helping hands, even today, on 24th December, 2008. What I want to say, is just:

Merry Christmas to you and all Slackers and LQ.org members wherever you are!

Last edited by gargamel; 12-24-2008 at 05:05 PM.
 
Old 12-24-2008, 05:08 PM   #14
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 930

Rep: Reputation: 96
Ok since it's the new kernel that fails, I must ask what allend did: Is it possible that the new kernel names another device as the default sound device? For example, does

alsamixer -c 1

work (card #0 is the default one)? And which kernel are you runnnig, the huge one or the generic one?
 
Old 12-24-2008, 05:31 PM   #15
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,621

Original Poster
Rep: Reputation: 142Reputation: 142
I'm running 2.6.27.7-smp generic (not huge). alsaconf finds two card(s) on my system:

Code:
1. ymfpci  Yamaha Corporation YMF-744B [DS-1S Audio Controller] (rev 02)
2. legacy  Probe legacy ISA (non-PnP) chips
Option 1. is what I choose, because as far as I could research my
sound chip is completely compatible with the DS-1S.

Then alsaconf asks me, if I want /etc/modprobe.d/sound to be modified, which I confirm. The screen turns black and after some 5
seconds alsaconf reappears:

Code:
OK, sound driver is configured. 

     ALSA CONFIGURATOR 

will prepare the card for playing now. Now I'll run alsasound init
script, then I'll use amixer to raise the default volumes. You can
change the volume later via a mixer program such as alsamixer or
gamix.
And with the following messages I am thrown back to the console
prompt:
Code:
Now ALSA is ready to use.
For adjustment of volumes, use your favorite mixer.

Have a lot of fun!
Again, alsamixer fails:

Code:
# alsamixer -c 1
wrong -c argument '1'

# alsamixer -c 0
wrong -c argument '0'
Finally, when I start KDE, I am always "informed" that there is no
sound available, because /dev/dsp is not available, but that the
sound server continues to run in the background using /dev/null.

What does this all tell us, now? Do you have any ideas, how to
further track this down?

(BTW, I wouldn't hesitate to reinstall from CD, but my CD burner is
malfunctioned; I did the upgrade by mounting the ISO image from an
external USB device; for a complete reinstall this won't work, I
am afraid).

gargamel

Last edited by gargamel; 12-24-2008 at 05:33 PM.
 
  


Reply

Tags
sound


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sound on slackware 12 with yamaha opl3-sa3 el0gic Slackware - Installation 10 09-12-2008 12:41 PM
alsa with a yamaha codec chip pdjones2112 Linux - Hardware 4 01-13-2005 06:05 PM
Getting sound in slackware 9.1 with a ess 1868 onboard chip! HELP! toolfan Slackware - Installation 6 05-19-2004 07:21 PM
Yamaha PCI sound card on slackware?? deaczkie Linux - Hardware 0 09-13-2003 09:10 AM
Audio driver for Gigabyte GA8IK1100's onboard sound chip? TMMO Linux - Newbie 1 08-10-2003 05:59 PM


All times are GMT -5. The time now is 02:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration