Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]since power cut only root can play sounds
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
bluenuht
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2005
Posts: 130

PostPosted: Tue Feb 20, 2018 9:22 pm    Post subject: [Solved]since power cut only root can play sounds Reply with quote

There was a powercut, rebooted the system and once up in to X I did try mplayer with an ogg as a user and it worked.

Now today any attempt to run mplayer gets
Code:
MPlayer 1.3.0-6.4.0 (C) 2000-2016 MPlayer Team

Playing /usr/share/sounds/alsa/Noise.wav.
libavformat version 57.71.100 (external)
Audio only file format detected.
Load subtitles in /usr/share/sounds/alsa/
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 1 ch, s16le, 768.0 kbit/100.00% (ratio: 96000->96000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   0.0 (unknown) of 1.0 (01.0)  0.0%
Audio device got stuck!
A:   0.0 (unknown) of 1.0 (01.0)  0.0%
Audio device got stuck!
A:   0.0 (unknown) of 1.0 (01.0)  0.0%
Audio device got stuck!
A:   0.0 (unknown) of 1.0 (01.0)  0.0%
Audio device got stuck!
A:   0.0 (unknown) of 1.0 (01.0)  0.0%
Audio device got stuck!
A:   0.0 (unknown) of 1.0 (01.0)  0.0%
Audio device got stuck!
A:   0.0 (unknown) of 1.0 (01.0)  0.0%
Audio device got stuck!
A:   0.0 (unknown) of 1.0 (01.0)  0.0%


and no sound is produced.

But the same command as root works fine.

Tried removing user and /tmp .pulse folders and re-emerging and restarting pulseaudio, no change.
Code:
rm -rf /tmp/pulse* ~/.pulse* ~/.config/pulse


running pulseaudio -vvvv
as user gives
Code:

I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
I: [pulseaudio] core-util.c: Failed to acquire high-priority scheduling: No such file or directory
I: [pulseaudio] main.c: This is PulseAudio 11.1
D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu
D: [pulseaudio] main.c: Compilation CFLAGS: -march=k8 -O2 -pipe -Wall -W -Wextra -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto
D: [pulseaudio] main.c: Running on host: Linux x86_64 4.12.12-gentoo #1 SMP Mon Nov 13 22:11:31 GMT 2017
D: [pulseaudio] main.c: Found 4 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is e573cf72d9a379a488e6d685000010bc.
I: [pulseaudio] main.c: Using runtime directory /var/run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/rednuht/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib64/pulse-11.1/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.


any ideas welcome, I have not had to mess about with pulseaudio before.
_________________
Linux 4.12.12-gentoo #1 SMP Mon Nov 13 22:11:31 GMT 2017 x86_64 AMD Phenom(tm) II X4 850 Processor AuthenticAMD GNU/Linux - Sapphire ATI Radeon HD 6450 - 8G DDR3
Pay for Free Open source Software


Last edited by bluenuht on Thu Feb 22, 2018 10:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6172
Location: /usr/lib64/lv2

PostPosted: Wed Feb 21, 2018 4:45 pm    Post subject: Reply with quote

Double-check whether your user is in the audio group:
Code:

less /etc/group


If not,
Code:

gpasswd -a (user) audio


and re-login.
_________________
Gentoo Studio in open beta. Feedback wanted.
Back to top
View user's profile Send private message
bluenuht
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2005
Posts: 130

PostPosted: Wed Feb 21, 2018 6:06 pm    Post subject: Reply with quote

user is in the audio group

I can not see any errors in logs, stumped
_________________
Linux 4.12.12-gentoo #1 SMP Mon Nov 13 22:11:31 GMT 2017 x86_64 AMD Phenom(tm) II X4 850 Processor AuthenticAMD GNU/Linux - Sapphire ATI Radeon HD 6450 - 8G DDR3
Pay for Free Open source Software
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6172
Location: /usr/lib64/lv2

PostPosted: Thu Feb 22, 2018 4:15 pm    Post subject: Reply with quote

What sticks out for me is this:
Code:

I: [pulseaudio] core-util.c: Failed to acquire high-priority scheduling: No such file or directory


This file belongs to media-sound/pulseaudio, and your user is unable to see it. Try running pulseaudio -vvvv as root and look for this line. If this error doesn't appear for root, try creating a new user to see if the new user is able to use pulseaudio. If the new user works, then something else got bjorked for your regular user. If the new user doesn't work, then something else got bjorked system-wide. If that's the case, you can try syncing and running emerge -vuDN --with-bdeps=y --backtrack=1000 @system @world, and if still no dice, emerge -e @system @world.
_________________
Gentoo Studio in open beta. Feedback wanted.
Back to top
View user's profile Send private message
bluenuht
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2005
Posts: 130

PostPosted: Thu Feb 22, 2018 10:38 pm    Post subject: Reply with quote

I do not get it but that worked.

running pulseaudio -v as a user still gives the message
I: [pulseaudio] core-util.c: Failed to acquire high-priority scheduling: No such file or directory

the
emerge -vuDN --with-bdeps=y --backtrack=1000 @system @world
found nothing to emerge
and
emerge -e @system @world
did remerge pulseaudio but I had already done that manually

Thanks, I just wish I knew what was going on.
_________________
Linux 4.12.12-gentoo #1 SMP Mon Nov 13 22:11:31 GMT 2017 x86_64 AMD Phenom(tm) II X4 850 Processor AuthenticAMD GNU/Linux - Sapphire ATI Radeon HD 6450 - 8G DDR3
Pay for Free Open source Software
Back to top
View user's profile Send private message
bluenuht
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2005
Posts: 130

PostPosted: Fri Feb 23, 2018 8:43 pm    Post subject: Reply with quote

OK, now it gets really weird.

Although I had run nothing exciting since last night, it was all broken again tonight.

I tried restarting pulseaudio as various users and noted that any sound application would automatically start an instance of pulse audio and that even root could not use these instances.

In fact, I am pretty sure my "it works for root" was only true when all instances of pulseaudio had been killed.

so I came here to lament more, when I started up VirtualBox and all of a sudden the sound on that machine started working again.

The process was an auto started instance of pulse audio.

Code:
ps auwx | egrep puls
myuser   4168  2.8  0.1 868372 10892 ?        Sl   20:33   0:00 /usr/bin/pulseaudio --start --log-target=syslog


So am back to being stumped as to what the hell is going on. but, right now it is working, maybe I need to run something continuously to keep it alive in this state.

note: when It was not working, running pavucontrol and then trying to run mplayer would show the realtime VU and it would dance as if the real sound was going through it.
_________________
Linux 4.12.12-gentoo #1 SMP Mon Nov 13 22:11:31 GMT 2017 x86_64 AMD Phenom(tm) II X4 850 Processor AuthenticAMD GNU/Linux - Sapphire ATI Radeon HD 6450 - 8G DDR3
Pay for Free Open source Software
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6172
Location: /usr/lib64/lv2

PostPosted: Sat Feb 24, 2018 3:56 pm    Post subject: Reply with quote

Just to clarify in my head: are you using pulseaudio in a virtual machine? Because when I have a power outage, or even if my VM freezes and I have to force it off, I have problems. I don't give my VM's a sound module, but I often need to re-install grub after a power outage or a force-off. I think Virtualbox VM's might be fragile this way.
_________________
Gentoo Studio in open beta. Feedback wanted.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum