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 was going along watching a video in VLC then when I went to open a different video I get this message.
VLC
Quote:
Audio output failed:
The audio device "default" could not be used:
Connection refused.
I had already loaded mplayer to play a list.m3u in my Music Directory, it was still up but paused, so I un=paused it I can hear music,
Quote:
Playing Music/./17 - Diamonds (Duet with Herb A6.mp3.
Audio only file format detected.
Load subtitles in Music/./
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
===== PAUSE =====
A: 118.3 (01:58.3) of 232.0 (03:52.0) 0.4%
But, when I run mplayer to play a different file, in another terminal it again gives me errors.
Code:
userx@SlackDaddy~>> mplayer "Music/1 - Sonic Youth with James Tenney - ..mp3"
MPlayer 1.2.1-5.3.0 (C) 2000-2016 MPlayer Team
Playing Music/1 - Sonic Youth with James Tenney - ..mp3.
libavformat version 56.40.101 (internal)
Audio only file format detected.
Load subtitles in Music/
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 160.0 kbit/11.34% (ratio: 20000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
Exiting... (End of file)
the only thing I did was run a few slackbuilds, deleted everything in my /tmp directory etc ... prior to me noticing this,
I just hit enter on the terminal running the mplayer that was working, now it is no longer putting out sound either, I lost sound on Slack 14.2 ~ Halloween mishaps.
sounds is back, BUT
now that I set this up by giving rc.pulseaudio executable permissions it gets started at boot, when it wasn't(?) but still worked.
so what am I to expect now after I reboot this ?
it was not actually a fix because I have no idea why it stopped.
# In this mode, a single system instance of PulseAudio will be shared by
# multiple local users.
#
# Please note: this is not generally the best way to use PulseAudio!
# Normally pulseaudio will start automatically as-needed with an instance
# per audio user. Unless you really need to use system mode you should leave
# this script non-executable.
Likely this was just a hiccup of pulseaudio. If you would've rebooted, it likely would've brought your sound back without you needing to do anything to the rc.pulseaudio file. Personally, I would remove the execute bit from the file and see what a reboot does.
You probably could've also just killed pulse (pulseaudio --kill) and then restart it (pulseaudio --start) to fix your problem, although, I'm not sure if it would work since you're now using system mode. It might work, it might not. I've never toyed with it.
# In this mode, a single system instance of PulseAudio will be shared by
# multiple local users.
#
# Please note: this is not generally the best way to use PulseAudio!
# Normally pulseaudio will start automatically as-needed with an instance
# per audio user. Unless you really need to use system mode you should leave
# this script non-executable.
Likely this was just a hiccup of pulseaudio. If you would've rebooted, it likely would've brought your sound back without you needing to do anything to the rc.pulseaudio file. Personally, I would remove the execute bit from the file and see what a reboot does.
You probably could've also just killed pulse (pulseaudio --kill) and then restart it (pulseaudio --start) to fix your problem, although, I'm not sure if it would work since you're now using system mode. It might work, it might not. I've never toyed with it.
I've never toyed with this either it usually just works. I've never ran into this problem before, and I am in a state of right now unable to reboot for a few hours so I was looking for a (quick) fix without having to reboot. and hopefully a why did it do that so I can try to prevent it from happening again.
I'll remove the x from the rc.xx file. before I reboot in a few... see if I gets back should, prob will, but again, still does not find that why did it happen so I can try to prevent it from happening again. if it was in fact a hiccup, well then that is what it was.
Pulseaudio "vanishes' for me on occassion, especially when shutting down vncserver (tigervnc). Instead of rc.pulseaudio, as your normal logged in user, all you need to (usually) do is:
Code:
$ pulseaudio --start
It seems pulseaudio is a bit brittle when rocking a few X windows.
Pulseaudio "vanishes' for me on occassion, especially when shutting down vncserver (tigervnc). Instead of rc.pulseaudio, as your normal logged in user, all you need to (usually) do is:
Code:
$ pulseaudio --start
It seems pulseaudio is a bit brittle when rocking a few X windows.
I've never toyed with this either it usually just works. I've never ran into this problem before, and I am in a state of right now unable to reboot for a few hours so I was looking for a (quick) fix without having to reboot. and hopefully a why did it do that so I can try to prevent it from happening again.
I'll remove the x from the rc.xx file. before I reboot in a few... see if I gets back should, prob will, but again, still does not find that why did it happen so I can try to prevent it from happening again. if it was in fact a hiccup, well then that is what it was.
thanks.
You could check /var/log/messages, dmesg, and/or /var/log/syslog to see if any provide any error messages related to pulse.
I have rebooted so a lot of info prob got lost, but after deleting everything in /tmp
Code:
Failed to connect to socket /tmp/dbus-ddKr2aKDZ3: Connection refused
/var/log/syslog:Oct 31 12:57:42 SlackDaddy pulseaudio[1329]: [pulseaudio] pid.c: Failed to open PID file
'/tmp/pulse-FJC6SkzvMY69/pid': No such file or directory
If I remember right, pulse relies on files in /tmp/, so if you clear that while pulse is running, it will likely break. If you did this before, it is likely the cause of your problem.
If I remember right, pulse relies on files in /tmp/, so if you clear that while pulse is running, it will likely break. If you did this before, it is likely the cause of your problem.
first time completely clearing /tmp but I bet you a pumpkin you're right.
got a few things back in tmp after reboot
If you want to clear your tmp, it's best to use something that won't kill files from a certain period of time (see below) or have it cleared on shutdown (maybe add an entry to /etc/rc.d/rc.local_shutdown, which might need to be created if it isn't already there). The following command will remove anything over 7 days old:
If you want to clear your tmp, it's best to use something that won't kill files from a certain period of time (see below) or have it cleared on shutdown (maybe add an entry to /etc/rc.d/rc.local_shutdown, which might need to be created if it isn't already there). The following command will remove anything over 7 days old:
Code:
find /tmp -mindepth 1 -mtime +7 -delete
it was one of them dang this is getting cluttered looking, after installing a few slackbuilds ,, it is temp don't need them ?? oh well . . I'll find out, del everything in tmp moods ... thanks for the commands ..
Distribution: Slackware 15.0 x64, Slackware Live 15.0 x64
Posts: 618
Rep:
Looks like pulseaudio is turning our linux system(s) into good ol' windows systems by having to 'reboot' when one burps or blinks more than twice in 30 seconds. (yeah, I know, hating on poor pulseaudio again ain't I).
Looks like pulseaudio is turning our linux system(s) into good ol' windows systems by having to 'reboot' when one burps or blinks more than twice in 30 seconds. (yeah, I know, hating on poor pulseaudio again ain't I).
NNAAAAAAAHHHH you're miss informed
I deleted everything in my /tmp while using it so when I went to watch another movie the file it was using was no longer there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.