View previous topic :: View next topic |
Author |
Message |
bluenuht Tux's lil' helper
Joined: 01 Oct 2005 Posts: 141
|
Posted: Tue Feb 20, 2018 9:22 pm Post subject: [Solved]since power cut only root can play sounds |
|
|
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. _________________ x86_64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz GenuineIntel GNU/Linux GeForce GTX NVIDIA 1660TI 16GB
Last edited by bluenuht on Thu Feb 22, 2018 10:38 pm; edited 1 time in total |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
bluenuht Tux's lil' helper
Joined: 01 Oct 2005 Posts: 141
|
Posted: Wed Feb 21, 2018 6:06 pm Post subject: |
|
|
user is in the audio group
I can not see any errors in logs, stumped _________________ x86_64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz GenuineIntel GNU/Linux GeForce GTX NVIDIA 1660TI 16GB |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
Posted: Thu Feb 22, 2018 4:15 pm Post subject: |
|
|
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. _________________ decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN |
|
Back to top |
|
|
bluenuht Tux's lil' helper
Joined: 01 Oct 2005 Posts: 141
|
Posted: Thu Feb 22, 2018 10:38 pm Post subject: |
|
|
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. _________________ x86_64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz GenuineIntel GNU/Linux GeForce GTX NVIDIA 1660TI 16GB |
|
Back to top |
|
|
bluenuht Tux's lil' helper
Joined: 01 Oct 2005 Posts: 141
|
Posted: Fri Feb 23, 2018 8:43 pm Post subject: |
|
|
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. _________________ x86_64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz GenuineIntel GNU/Linux GeForce GTX NVIDIA 1660TI 16GB |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
|