LinuxQuestions.org
Review your favorite Linux distribution.
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 05-10-2016, 04:25 PM   #1
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
I do not have sound as regular user (Slackware-current)


As a regular user (didier) I am a member of the audio group, as is pulse.

As root I can use alsamixer on fluxbox and listen Hilary Hahn on youtube.com in all cases.

As didier I have no sound (not from youtube and not from pidgin at least) nad get this when trying to run alsamixer if there is no pulse daemon running
Code:
bash-4.3$ LANG=en alsamixer
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

cannot open mixer: Connection refused
bash-4.3$
If I type "/etc/rc.d/rc.pulseaudio start" then I can run alsamixer but get no sound.

Also "start-pulseaudio-x11" fails if run as didier.

I have read the two articles on SlackDocs but am still lost, and do not feel comfortable running firefox as root even just to hear Hilary.

Could a kind soul provide some guidance on how-to simply set sound on Slackware-current on a laptop? What rc. files should be executable and started? What do i need to write in what config file? What mixer to use on fluxbox?
 
Old 05-10-2016, 04:41 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
If you have hdmi out, have you changed your module option to ensure your onboard sound is set as device 0?
 
Old 05-10-2016, 04:57 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Original Poster
Rep: Reputation: Disabled
I do not have hdmi out (if I understand what that mean), just a basic headphone.

I don't even know what module you are speaking about, sorry I am a complete newbie in that field.

Last edited by Didier Spaier; 05-10-2016 at 04:58 PM.
 
Old 05-10-2016, 04:59 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I use pulseaudio in stable 14.1, installed from Slackbuild.org
I had to create ~/.asoundrc with content:
Code:
pcm.pulse {
    type pulse
}

ctl.pulse {
    type pulse
}

pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}
Then on xfce session setup I enabled pulseaudio at startup.
I believe you could start it manually by just run "pulseaudio" as user in a terminal, I never used the rc script
I use pavucontrol (installed from Slackbuild.org) to set up sound

Last edited by keefaz; 05-10-2016 at 05:01 PM.
 
1 members found this post helpful.
Old 05-10-2016, 04:59 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
If you can run alsamixer but get no sound it may be that every column in alsamixer is muted.
Launch alsamixer and use your arrow keys to unmute to each column (master, PCM etc..)

(00) means umuted and (mm) means muted.

Check and see if alsa utilities are installed.
I think the configuration file you want for sound is /etc/asound.conf.

What sound card do you have?
 
Old 05-10-2016, 05:01 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
http://docs.slackware.com/howtos:har...s_on_slackware
 
Old 05-10-2016, 05:13 PM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Original Poster
Rep: Reputation: Disabled
Thanks all, especially keefaz whose post leaded me to the find what was wrong.

At first I ran pulsaudio and got
Code:
 bash-4.3$ LANG=en pulseaudio
E: [pulseaudio] module-protocol-stub.c: Failed to create socket directory '/tmp/.esd-1000/socket': Permission denied
E: [pulseaudio] module.c: Failed to load module "module-esound-protocol-unix" (argument: ""): initialization failed.
E: [pulseaudio] main.c: Module load failed.
E: [pulseaudio] main.c: Failed to initialize daemon.
Permission denied? I did as root "rm -r /tmp/.esd*" and now I can run pulseaudio and hear https://www.youtube.com/watch?v=o1dBg__wsuo as didier.

PS I assume that in slackware-current the file /etc/asound.conf does the same as ~/asoundrc as I see:
Code:
# ALSA system-wide config file
# By default, redirect to PulseAudio:
pcm.default pulse
ctl.default pulse
For the records I do not need to have /etc/rc.d/rc.alsa started. So I will "chmod 644 /etc/rc.d/{rc.alsa,rc.pulseaudio}"

I mark this thread as [SOLVED].

Last edited by Didier Spaier; 05-10-2016 at 05:22 PM.
 
2 members found this post helpful.
Old 05-10-2016, 09:37 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Glad to hear you now have sound.
Any clue what was causing the initialization of the module to fail? (other than the fact that it wasn't loading)

BTW mendelssohn Violin Concerto is a beautiful peace!
 
Old 05-10-2016, 11:33 PM   #9
dunne
Member
 
Registered: May 2014
Distribution: OpenBSD
Posts: 67

Rep: Reputation: 36
You are running Linux, so it is perfectly normal not to have sound. Don't worry, be happy! Listen to the birds sing!
 
2 members found this post helpful.
Old 05-11-2016, 08:26 AM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Original Poster
Rep: Reputation: Disabled
@Ztcoracat: a directory /tmp/.esd-<number> was owned by root and it seems that pulse should be able to write there. I will investigate further later (too busy to do it now).

@dunne: be happy, both alsa and pulseaudio are available at least for FreeBSD according to this.

Also, in my country house I hear birds all day, but I posted at night when they were sleeping.
 
Old 05-11-2016, 04:15 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
@Ztcoracat: a directory /tmp/.esd-<number> was owned by root and it seems that pulse should be able to write there. I will investigate further later (too busy to do it now).
Ok, that's fine; when you have the time.
 
  


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
vbox 4.1.10, slackware current 64, kde not starting for regular user glorsplitz Slackware 1 03-27-2012 07:55 PM
Sound working as root, but not as a regular user... s2cuts Linux - General 4 06-29-2009 12:28 PM
v9.1 Slackware: no sound for regular users? Laurana Slackware 16 09-20-2007 03:50 PM
no sound when regular user LQ496873 Linux - Newbie 10 07-22-2006 03:21 PM
The_Sims for Linux doesnt run in regular User, but in Root. Slackware issue. RHLinuxGUY Linux - Games 4 11-02-2004 09:35 PM

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

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