SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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...
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.
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.
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.
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.
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.