LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-12-2010, 04:18 PM   #31
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32

I just ran alsaconf and it detected my card said it configured it. I also ran alsamix and readjusted the volume levels. Still not getting any sound.

I am going to consider rebuilding the system this time using the mplayer's official website for the audio drivers. and see what I can learn from the README.

Thanks for your help Keith.
 
Old 04-12-2010, 04:20 PM   #32
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
You didn't address anything I said in #28. You might want to have another look at that.
 
Old 04-12-2010, 04:22 PM   #33
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by dugan View Post
Do other programs fail to play sounds, or is it just MPlayer?

Also, you are a member of the audio group, right? You can check by entering "groups" and seeing if "audio" appears in the list. If not, you can add yourself to the audio group with:
Code:
su -c 'gpasswd -a user audio'
Then log out and log back in (this is not optional), and try MPlayer again.
I'd look at that first. If audio doesn't work at all (I like `aplay /dev/urandom` to test sound...Ctrl+C to kill it, and trust me you will want to kill it quickly if it works), then rebuilding mplayer isn't going to help. First make sure your user is part of the audio group. Beyond that it would be nice to get the output of `lspci -vv` as root and `aplay -l`.

Of course, if sound works everywhere else and not just mplayer, then you can go ahead and continue screwing around with mplayer sources...
 
1 members found this post helpful.
Old 04-12-2010, 10:52 PM   #34
KeithE
Member
 
Registered: Jan 2003
Location: Mesa, AZ
Distribution: Linux Mint
Posts: 155

Rep: Reputation: 35
MPlayer on Slackware 13

Quote:
Originally Posted by dugan View Post
You didn't address anything I said in #28. You might want to have another look at that.
I just checked my machine and I am a member of the audio group. And I didn't have to enter it manually, unlike previous versions of Slackware.
 
Old 04-12-2010, 11:13 PM   #35
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by KeithE View Post
I just checked my machine and I am a member of the audio group. And I didn't have to enter it manually, unlike previous versions of Slackware.
If you run the `adduser` script instead of manually settings things with `useradd`, it prompts you to add the user to the groups that you like. In this prompt, it suggests pressing the up arrow to select default groups. You are not added to any groups automatically (except perhaps users), but if you follow that prompt logically instead of blindly pressing enter then you will be added to the suggested groups (audio cdrom floppy plugdev video power netdev).

It is entirely possible (and I have seen it many times) that the OP did not add his user to the required groups and therefore has no access to /dev/snd/* or /dev/dsp, for example, whose permissions are root:audio.
 
1 members found this post helpful.
Old 04-13-2010, 01:46 AM   #36
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Siawash, you've recently expressed interest in installing GNOME. If you're actually running GNOME, then you needed to mention that because GNOME uses a sound daemon by default.

Also,
Code:
fuser /dev/dsp
will tell you if there's a program blocking the OSS sound device (the first one that MPlayer tried and failed to open). It's one thing I would try.

EDIT: changed post to be less confrontational. I now realize that the original version of the post wasn't justified.

Last edited by dugan; 04-13-2010 at 09:28 AM.
 
Old 04-13-2010, 03:38 AM   #37
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
Guys thanks for all the contributions. The last rebuild I used kde to add user instead useradd from the terminal.

I just added audio,video, floppy, cdrom,plugdev,disk to my user and now I have sound. Yeppeee...!

I am going to have to wait a day to try out MPlayer as I am going to be away from my machine. I will let you all know as soon I get back to it.

Once again many thanks.!

Last edited by siawash; 04-13-2010 at 03:51 AM.
 
Old 04-13-2010, 05:36 AM   #38
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Siawash,
Glad you finally got sound working ok.
For MPlayer, after you get MPlayer installed, in order to be sure that MPlayer uses alsa instead of OSS, just add this to your ~/.mplayer/config file:
Code:
# use alsa
ao=alsa
Then restart MPLayer. You can confirm that MPlayer is indeed using alsa just by playing a music or audio file using MPlayer from the terminal.
 
Old 04-13-2010, 09:16 AM   #39
KeithE
Member
 
Registered: Jan 2003
Location: Mesa, AZ
Distribution: Linux Mint
Posts: 155

Rep: Reputation: 35
MPlayer on Slackware 13

Quote:
Originally Posted by T3slider View Post
If you run the `adduser` script instead of manually settings things with `useradd`, it prompts you to add the user to the groups that you like. In this prompt, it suggests pressing the up arrow to select default groups. You are not added to any groups automatically (except perhaps users), but if you follow that prompt logically instead of blindly pressing enter then you will be added to the suggested groups (audio cdrom floppy plugdev video power netdev).

It is entirely possible (and I have seen it many times) that the OP did not add his user to the required groups and therefore has no access to /dev/snd/* or /dev/dsp, for example, whose permissions are root:audio.
I probably did add the audio group when I ran adduser, totally subconsiously. It's one of those things I do out of habit and didn't even realize I was doing it at the time.

Last edited by KeithE; 04-13-2010 at 09:17 AM.
 
Old 04-13-2010, 09:22 AM   #40
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by siawash View Post
The last rebuild I used kde to add user instead useradd from the terminal.

I just added audio,video, floppy, cdrom,plugdev,disk to my user and now I have sound. Yeppeee...!
Hurray! Good work, siawash.
 
1 members found this post helpful.
Old 04-13-2010, 10:49 AM   #41
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
I would't have been able to do it without you guys. Many thanks!

Just one thing, I am noticing MPlayer takes a long time to cache streams, before it starts outputting audio. Is it a question of increasing cache size?
 
Old 04-13-2010, 12:19 PM   #42
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
If you *increase* the cache size it will take *longer* to play audio but you will get very few (if any) buffering moments (so the stream will play perfectly). You could *reduce* the cache size if it really is taking too long to play a stream, but you may suffer stuttering audio or buffering delays. See /etc/mplayer/mplayer.conf for the current settings, which can be modified there, in ~/.mplayer/config, or passed as command-line options. You would want to play with -cache-min, I believe, which allows you to leave the cache alone but start playing earlier.

Last edited by T3slider; 04-13-2010 at 12:20 PM.
 
Old 04-13-2010, 01:12 PM   #43
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
I will look into this when I get the chance. I just remember realplayer was much quicker with very occassional jitter.
 
Old 04-13-2010, 03:22 PM   #44
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
Another thing i notice is when watching flash movies the max volume level is only moderate when compared to what it can be. alsamixer shows all levels in the red.

When listening to local audio files the volume level can be brought up much louder.
 
Old 04-13-2010, 03:50 PM   #45
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by siawash View Post
Another thing i notice is when watching flash movies the max volume level is only moderate when compared to what it can be. alsamixer shows all levels in the red.

When listening to local audio files the volume level can be brought up much louder.
Some movies are just quiet. Try passing the -softvol-max option to mplayer (see `man mplayer`) to set a maximum software amplification if your hardware will not amplify adequately.
 
  


Reply



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
Mplayer Install on Slackware 11 treyh Linux - Desktop 2 10-21-2006 10:59 PM
Slackware- Mplayer coolo Linux - Software 1 01-30-2006 04:43 PM
Slackware Mplayer not working VampireL0rd Linux - Software 2 11-21-2005 06:35 AM
installing mplayer in Slackware 10 edison Linux - Software 5 03-01-2005 08:26 PM
mplayer in Slackware iZvi Slackware 2 06-06-2004 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:08 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration