[SOLVED] Audio does not work randomly

Re: Audio does not work randomly

Postby pnbalaji » Feb 19th, '16, 09:02

Ok. Will try when I am home and post the update.

Thanks,
Balaji.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: Audio does not work randomly

Postby pnbalaji » Feb 19th, '16, 14:45

Restarted XFWM and deleted the ~/.dbus folder and rebooted.

Sound seems to be working, but no volume control icon in system tray. Trying to launch pavucontrol from "Audio & Video" menu throws the error message "Fatla Error: Unable to connect to Pulse Audio".

Thanks,
Balaji.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: Audio does not work randomly

Postby pnbalaji » Feb 19th, '16, 17:05

Hi,

I did some more research and based on one of the topics in Arch forums https://bbs.archlinux.org/viewtopic.php?id=156057, it appears that my display is not getting reset when I shutdown.

I ran the command "pax11publish -r" from terminal and then I was able to launch pulse audio volume control with out any issues. I created a small shell script to run this command and added to my startup. Pulseaudio seems to be working fine now.

I will wait for a day or two and then mark this thread as solved.

Thank you very much for your help.

Thanks,
Balaji.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: Audio does not work randomly

Postby doktor5000 » Feb 19th, '16, 18:12

pnbalaji wrote:I did some more research and based on one of the topics in Arch forums https://bbs.archlinux.org/viewtopic.php?id=156057, it appears that my display is not getting reset when I shutdown.

If you do a shutdown, every environment variable will be reset as they can only be present during runtime. Seems more something is not properly set during startup. If you check the autostart programs in XFCE, is there anything disabled there?
And if display would not be set, you wouldn't be able to start any X application. Can you try if manually running /usr/bin/start-pulseaudio-x11 instead of your shell script also fixes the issue?

Hence also the hint in pax11publish man page:
man pax11publish wrote:DESCRIPTION
The pax11publish utility can be used to dump or manipulate the PulseAudio server credentials that can be stored as properties on the X11 root window.

Please note that the loadable module module-x11-publish exports the same information directly from the PulseAudio sound server, and should in most cases be used in preference over
this tool.


Use the following command to dump the raw PulseAudio-specific data that is stored in your X11 root window:

xprop -root | grep ^PULSE_


Unrelated, pavucontrol is only the generic volume control. For the normal XFCE mixer see https://wiki.mageia.org/en/Mageia_5_Errata#XFCE
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Audio does not work randomly

Postby pnbalaji » Feb 20th, '16, 05:50

Hi,

I am not sure what was fixed, but now my audio is working fine even after I disabled my shell script from startup and rebooted.

I ran your command and below is the output I am seeing.

Code: Select all
[bneelka@localhost ~]$ /usr/bin/start-pulseaudio-x11
Failure: Module initialization failed
[bneelka@localhost ~]$


I checked to see if pulse is running and it appears that it is running fine.

Code: Select all
[bneelka@localhost ~]$ ps -ef | grep -v grep | grep -i pulse
bneelka   1156     1  0 09:16 ?        00:00:00 /usr/bin/pulseaudio --start --log-target=syslog
bneelka   1251  1156  0 09:16 ?        00:00:00 /usr/libexec/pulse/gconf-helper


Thanks,
Balaji.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: Audio does not work randomly

Postby doktor5000 » Feb 20th, '16, 13:59

Probably dbus can now start regularly for your user. Can you show the output as regular user of
Code: Select all
xprop -root | grep ^PULSE_
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Audio does not work randomly

Postby pnbalaji » Feb 20th, '16, 15:13

Below is the output.

Code: Select all
[bneelka@localhost ~]$ xprop -root | grep ^PULSE_
PULSE_COOKIE(STRING) = "3c33d385da72eeb6b9dbbb08c1a71a5b79191dfd95d218b6b8c6e231097e8be85978d69cdcf865a40cba0d9830565577642f4cba37e41359641c856d332df877d886e0c451c568966e6aa83144ab7e1bb69164c9f815811f642c6186bbcaf88f10080fe948dce380d34d926de9a109df03e3a7f8cb7268c8dbc12f9c0173eba6b3624c06fcd579aa242d1c6ee363ef0aa392f187201190dd9e64d7be6e67144282eec68466966929f6fa39489737d623f119c82add7fe507b28e62c1b836c6cdeedf40d65f95960399d4eb3b175b8f931452d77d7050b0098ca918285db8610f27994149f7d1aeeb41b85f613e92796937c59a826f6e3137e43892f45ee9c212"
PULSE_SERVER(STRING) = "{c2e709e0ae3c42449792e38ba74bfb13}unix:/tmp/pulse-PKdhtXMmr18n/native"
PULSE_ID(STRING) = "1000@c2e709e0ae3c42449792e38ba74bfb13/1156"
[bneelka@localhost ~]$


Thanks,
Balaji.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: Audio does not work randomly

Postby doktor5000 » Feb 20th, '16, 16:00

Ok, looks normal - this is basically what /usr/bin/start-pulseaudio-x11 does, and when you started it manually it might have failed as it was already started.

Just to double-check, can you again post the output as user of

Code: Select all
systemctl --user status pulseaudio.socket pulseaudio.service -a
LC_ALL=C PULSE_LOG=99 pulseaudio --check


And afterwards please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Audio does not work randomly

Postby pnbalaji » Feb 20th, '16, 18:13

Below is the output of the command you have asked for.

Code: Select all
[bneelka@localhost ~]$ systemctl --user status pulseaudio.socket pulseaudio.service -a
Failed to get properties: Process org.freedesktop.systemd1 exited with status 1
[bneelka@localhost ~]$ LC_ALL=C PULSE_LOG=99 pulseaudio --check
D: [pulseaudio] caps.c: Cleaning up privileges.
I: [pulseaudio] main.c: Daemon running as PID 1156
[bneelka@localhost ~]$


Thanks,
Balaji.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: Audio does not work randomly

Postby pnbalaji » Feb 23rd, '16, 07:17

Hi,

I am not having any more audio issues with my mageia. I don't have the pulse fix shell script in the startup either.

Should I mark this thread as SOLVED?

Thanks,
Balaji.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: Audio does not work randomly

Postby isadora » Feb 23rd, '16, 13:46

Balaji,

You can do so, by editing the subject/title in the first message in this topic.
Write [SOLVED] to the left of subject/title, thanks ahead. ;)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2742
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: [SOLVED] Audio does not work randomly

Postby pnbalaji » Feb 23rd, '16, 16:12

Thanks for your help.

I have marked the thread as solved.

Thanks,
Balaji.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Previous

Return to Sound

Who is online

Users browsing this forum: No registered users and 1 guest