LinuxQuestions.org
Visit the LQ Articles and Editorials 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 02-24-2010, 04:33 AM   #1
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 13.1,13.37,14.0,14.1 64 and 32bit and arm
Posts: 118

Rep: Reputation: 18
Question alsamixer fails but kde sound ok slackware 13


on ecs gf8100vm-m5 motherboards (which have gf8200 chipset) hardware is detected ok. result from lspi|grep Audio gives
Code:
00:07.0 Audio device: nVidia Corporation MCP72XE/MCP72P/MCP78U/MCP78S High Definition Audio (rev a1)
and lsmod|grep snd gives
Code:
snd_seq_dummy       3172  0
snd_seq_oss        33536  0
snd_seq_midi_event  7264  1 snd_seq_oss
snd_seq            56320  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device      7188  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss        42976  0
snd_mixer_oss      16768  1 snd_pcm_oss
snd_hda_codec_via  32836  1
snd_hda_intel      27176  0
snd_hda_codec      60192  2 snd_hda_codec_via,snd_hda_intel
snd_hwdep           8456  1 snd_hda_codec
snd_pcm            80872  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer          22256  2 snd_seq,snd_pcm
snd                65000  10 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore           7168  1 snd
snd_page_alloc      9616  2 snd_hda_intel,snd_pcm
running alsaconf detects the builtin sound card and makes no complaints,
but running alsamixer gives
Code:
alsamixer: function snd_mixer_load failed: Invalid argument
this is a clean install (on a multiboot system running slack12.2,13.0 and 64-13.0) and the same problem is in both 13.0 versions of slackware.
(12.2 doesn't load modules)
I do get sound in kde even though kmixer settings seem to be ignored - you can set everything to mute, and sounds still play in gxine
i've checked the forum and google and haven't found a problem quite like this reported. needless to say the hardware is new and i am running as root, although get the same problem running as regular user who is member of usual audio,plugdev... etc groups
I am guessing that alsaconf is generating an config file that doesn't match the hardware properly, but that's as far as i have got.

any assistance greatly appreciated, thanks

extra comment - the same problem is on knoppix 6.01 (dvd) although I can't test from xwindows - kde as it doesn't like the refresh mode on my monitor.

I have another earlier edition of the same make,model and version number of motherboard which works in slack12.2 but it's chip is slightly different. lspci|grep Audio reports
Code:
00:07.0 Audio device: nVidia Corporation MCP78S [GeForce 8200] High Definition Audio (rev a1)

Last edited by timsoft; 02-24-2010 at 06:16 AM. Reason: more info
 
Old 02-24-2010, 08:33 AM   #2
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 227

Rep: Reputation: 54
Please show the contents of /proc/asound/cards and /proc/asound/devices and the output of "ls -l /dev/snd/".
 
Old 02-24-2010, 09:07 AM   #3
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 13.1,13.37,14.0,14.1 64 and 32bit and arm
Posts: 118

Original Poster
Rep: Reputation: 18
running cat /proc/asound/cards gives
Code:
0 [NVidia     ]: HDA-Intel - HDA NVidia
                 HDA NVidia at 0xfce78000 irq 21
and cat /proc/asound/devices gives
Code:
 0: [ 0]   : control
 1:        : sequencer
 4: [ 0- 0]: hardware dependant
16: [ 0- 0]: digital audio playback
17: [ 0- 1]: digital audio playback
24: [ 0- 0]: digital audio capture
33:        : timer
and ls -l /dev/snd gives
Code:
crw-rw---- 1 root audio 116,  0 2010-02-24 10:34 controlC0
crw-rw---- 1 root audio 116,  4 2010-02-24 10:34 hwC0D0
crw-rw---- 1 root audio 116, 24 2010-02-24 10:34 pcmC0D0c
crw-rw---- 1 root audio 116, 16 2010-02-24 11:33 pcmC0D0p
crw-rw---- 1 root audio 116, 17 2010-02-24 10:34 pcmC0D1p
crw-rw---- 1 root audio 116,  1 2010-02-24 10:35 seq
crw-rw---- 1 root audio 116, 33 2010-02-24 10:34 timer
hope that helps..
 
Old 02-24-2010, 09:10 AM   #4
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 227

Rep: Reputation: 54
Everything looks OK.

Do the following commands succeed?
amixer -c 0 controls
amixer controls
 
Old 02-24-2010, 09:55 AM   #5
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 13.1,13.37,14.0,14.1 64 and 32bit and arm
Posts: 118

Original Poster
Rep: Reputation: 18
not entirely.
both options report the same - see below

Code:
numid=2,iface=MIXER,name='Master Front Playback Switch'
numid=1,iface=MIXER,name='Master Front Playback Volume'
numid=6,iface=MIXER,name='Headphone Playback Switch'
amixer: Control hw:0 snd_hctl_elem_info error: Invalid argument
as you can see, an error after the first two entries
 
Old 02-24-2010, 10:14 AM   #6
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 227

Rep: Reputation: 54
This looks like an ALSA bug.
Please try a newer version of the alsa-lib package (-current has 1.0.21a, latest release is 1.0.22).
 
Old 02-24-2010, 11:52 AM   #7
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 13.1,13.37,14.0,14.1 64 and 32bit and arm
Posts: 118

Original Poster
Rep: Reputation: 18
Thumbs down

I've tried 1.0.21a from current and same problem. I've just downloaded 1.0.22 source from alsa.org (well a mirror as the main site's ftp was not behaving). I've run a ./configure and then make install but it's complaining that make file is in future (must be time zone difference - about 15 minutes difference) so i'll post results of that test later this evening,
thanks for help so far.

still no joy with 1.0.22 (assuming I did it right)
I guess I'll post a bug on alsa.org
if I get any joy i'll post the info here

Last edited by timsoft; 02-24-2010 at 04:34 PM.
 
Old 02-25-2010, 11:26 AM   #8
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 13.1,13.37,14.0,14.1 64 and 32bit and arm
Posts: 118

Original Poster
Rep: Reputation: 18
Smile solved!!

Well, i downloaded all sorts of alsa packages and tried to compile and install them. The one that seemed to do the trick was downloading
alsa-driver-1.0.22.1.tar.bz2

extracting it with
Code:
tar -xjf alsa-driver-1.0.22.1.tar.bz2
going into the directory
Code:
cd alsa-driver-1.0.22.1
running
Code:
./configure --with-debug=full --enable-dynamic-minors --with-moddir=updates
then
Quote:
make
then
Code:
make install
then reboot the computer.

all of a sudden, alsamixer works a treat, and the volume controls and mute in kmix work and all the different channels etc are available.

thanks again for your assistance cladisch

Last edited by timsoft; 02-27-2010 at 02:11 AM. Reason: correction of time error in compiling
 
Old 03-03-2010, 11:02 AM   #9
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 13.1,13.37,14.0,14.1 64 and 32bit and arm
Posts: 118

Original Poster
Rep: Reputation: 18
Question alsa-driver slackware package where is it? or how to create?

There isn't a alsa-driver slackware package, but my hardware requires alsa-driver-1.0.22-1 to work. (on-board sound on new motherboard/s). I have downloaded and run
Code:
./configure
then
Code:
make
then
Code:
make install
to install it, which sorted the sound/alsamixer problems, (it installs ok on slackware 12.2/13.0/64-13.0 ) but I would prefer to install it as a slackware package.

Does anyone have any suggestions?
It isn't available on slackbuilds.org and as it requires the source for the currently installed kernel to be available and isn't available in slackware itself as a separate package, i'm a bit stuck. Obviously the package would have to be tied to the kernel version eg. alsa-driver-1.0.22.1-2.6.29.4.tgz or whatever.
If i had the slackbuild script that pat/alien/etc uses that would work.
thanks
 
Old 03-03-2010, 12:01 PM   #10
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,630

Rep: Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429
The ALSA driver is part of the kernel.

Here's a previous thread about upgrading ALSA:
http://www.linuxquestions.org/questi...ir-own-749056/

Mentioning which motherboard you have, btw, would be helpful to people who have the same one, or are thinking of purchasing one.
 
Old 03-03-2010, 02:20 PM   #11
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 13.1,13.37,14.0,14.1 64 and 32bit and arm
Posts: 118

Original Poster
Rep: Reputation: 18
board info etc

for those out there wanting to get sound on these motherboards working...
the motherboard is an ECS GF8100VM-M5 motherboard which has a GF8200 chipset. the audio part is reported by
Code:
lspci -vv|grep Audio
as
Code:
nVidia Corporation MCP72XE/MCP72P/MCP78U/MCP78S High Definition Audio (rev a1)
this is not to be confused with earlier production runs of the same ECS GF8100VM-M5 motherboards which work fine in slackware13.0 and 64-13.0 whose audio is reported as
Code:
nVidia Corporation MCP78S [GeForce 8200] High Definition Audio (rev a1)
I checked the previous thread you listed (plus a load of other ones) but it didn't really solve my question.

As I can successfully install alsa-driver-1.0.22.1 on slack12.2/13/64-13 without recompiling the kernel, it should be possible to create a slack package or packages of alsa-driver-1.0.22.1 targeted at a particular kernel/s. A simple uname -r check in the install script could install the relevant binaries. I'm sure it's already done by the folks at slackware even if it is bundled into a single kernel package.

thanks for the input.
 
Old 03-03-2010, 02:25 PM   #12
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,630

Rep: Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429
Quote:
Originally Posted by timsoft View Post
I'm sure it's already done by the folks at slackware even if it is bundled into a single kernel package.
You are mistaken on that. Slackware did not use an alsa-driver build script since it started including the 2.6 kernel.

The simplest answer to your question, btw, is "use src2pkg on the alsa-driver source tarball."

Last edited by dugan; 03-03-2010 at 02:41 PM.
 
Old 03-03-2010, 02:59 PM   #13
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,517

Rep: Reputation: 90
Quote:
Originally Posted by timsoft View Post
I'm sure it's already done by the folks at slackware even if it is bundled into a single kernel package.
Alsa driver is part of the kernel. If you want to see which version your kernel has (current should be 1.0.21 at the moment I think) you can take a look at /path-to-kernel-source/include/sound/version.h and at /proc/asound/version to see what you're actually running in case you have installed a newer version.
 
Old 03-03-2010, 05:32 PM   #14
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,630

Rep: Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429
In case you're wondering, timsoft previously discussed his research in this thread:
http://www.linuxquestions.org/questi...are-13-791215/
 
Old 03-05-2010, 07:52 AM   #15
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 13.1,13.37,14.0,14.1 64 and 32bit and arm
Posts: 118

Original Poster
Rep: Reputation: 18
thanks for the info on src2pkg. I've created a package for slack64-13.0 so i'll reinstall on a new hard drive, and install the created package to see if it works... - i'll post the result here, and if it does - and there is a need for it, i'm open to suggestions as to where to put it so that others can download it. (if it works, i'll try slack-13.0 and slack-12.2 as well.)

- well the package wasn't there, i tried setting FHS_POLICY to none, as stuff gets installed into lib or lib64 but it created a tgz file containing just an install script but no files.

It looks like i'll have to manually create a slackware package (and script) myself, something I was hoping to avoid.

Last edited by timsoft; 03-05-2010 at 11:35 AM.
 
  


Reply

Tags
alsa, ecs, fix, mixer


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, RealPlayer, Alsamixer BashTin Slackware 3 06-06-2007 09:18 PM
sound problem - no alsamixer chstani Linux - Newbie 3 12-02-2006 12:37 AM
alsamixer fails to load on SUSE 9.3 Hrothgar15 Linux - Hardware 1 08-18-2005 10:05 PM
kde 3.3 + alsamixer chakkerz Linux - General 1 09-01-2004 12:16 AM
Slackware 10 Nforce2 Sound alsamixer shows tv card jimdaworm Slackware 8 06-29-2004 06:51 PM


All times are GMT -5. The time now is 06:02 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