LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-03-2011, 04:38 PM   #1
aundy
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
No Sound in X11 session in Slackware 13.1


My sound does not work in the X11 session. When I try to use alsamixer, it prints
Code:
cannot open mixer: No such file or directory
and when I try to play an audio file, I get
Code:
[oss.c:182] error: Can't open default sound device!
[audio.c:625] error: failed to open audio device
[audio.c:180] error: Unable to find a working output module in this list: alsa,oss
[audio.c:527] error: Failed to open audio output module
[mpg123.c:847] error: Failed to initialize output, goodbye.
However, if I switch to a virtual terminal all of this works. Also, if I attach to a tmux session that was started in one of the virtual terminals sound works, and even video will work if I set the DISPLAY variable to :0.0. This problem only occurs if I use a display manager, if I just start x11 with xinit, sound works.
 
Old 03-06-2011, 06:38 PM   #2
vitorsgoncalves
Member
 
Registered: Mar 2010
Posts: 96

Rep: Reputation: 18
Run the command lspci in a console and see if your sound device is listed there.
 
Old 03-06-2011, 07:54 PM   #3
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
aundy,
Did you run /usr/sbin/alsaconf as root, and check /etc/modprobe.d/sound.conf
? KDE will sometime pick the wrong default device, so you need to check that. What desktop are you using? The ones provided in a standard Slackware installation (KDE, Xfce, blackbox, fluxbox, etc) have always worked for me. If you rolled your own X11 session, you may have forgotten something in the configuration. Did you do a partial or a full Slackware installation? Did you set /etc/rc.d/rc.alsa as executable?
 
Old 03-07-2011, 11:34 PM   #4
aundy
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
I have never run alsaconf, and there is no file called /etc/modprobe.d/sound.conf.
Maybe the display manager is picking the wrong default sound device, how would I check this? I did a full slackware installation, but I have done some modifications to the system, so maybe a reinstall would fix this problem.

Also sound doesn't work if I use xdm or kdm, but I if start a kde session or an xfce session manually using xinit (as a non-root user) then sound will work. So I guess it has something to do with the display manager.

EDIT: I tried running alsaconf as root, and that didn't fix it, but I noticed that if I run alsamixer as root the problem goes away.

Last edited by aundy; 03-07-2011 at 11:40 PM.
 
Old 03-08-2011, 03:11 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
After running 'alsamixer' as root, run 'alsactl store' to store the settings.
 
  


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
x11 forwarding an open session toredo Linux - Software 1 12-20-2010 11:43 AM
Can ARPWATCH warn me using my X11 session ? PlatinumX Linux - Security 2 01-04-2009 08:41 AM
Starting up X11 session manager .... atkfossiili Slackware 5 08-01-2007 08:13 AM
X11 session doesn't start martincho Slackware 2 12-01-2004 04:48 PM
Remote X11 Session cli_man Linux - Software 10 04-16-2003 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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