[SOLVED] I do not have sound as regular user (Slackware-current)
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 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?
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
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.
@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.
@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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.