펄스 오디오 사운드 문제

펄스 오디오 사운드 문제

내 전체 질문의 기반이 되는 전반적인 질문은 Linux의 사운드에 관한 것입니다. alsa나 pulse 또는 무엇을 사용해야 합니까? 저는 지금 펄스를 사용하고 있는데 제 문제는 다음과 같습니다. Awesome을 구성하고 음악을 재생하는 동시에 Awesome을 다시 시작했는데 사운드가 더 이상 작동하지 않는 것을 발견했습니다. 약간의 디버깅과 좌절 끝에 재부팅했는데 소리가 여전히 작동하지 않습니다. pulseaudio는 매우 장황한 모드(포스트 하단 참조)에서 실행될 때 많은 출력을 제공하지만 핵심은 다음과 같습니다.

D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9.21/modules/module-udev-detect.so': success
D: module-udev-detect.c: /dev/snd/controlC0 is accessible: no
D: module-udev-detect.c: /dev/snd/controlC29 is accessible: no

추측이 있나요?


전체 로그:

rob@lennyubuntu:~$ pulseaudio -vvvv
I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
D: core-rtclock.c: Timer slack is set to 50 us.
D: core-util.c: RealtimeKit worked.
I: core-util.c: Successfully gained nice level -11.
I: main.c: This is PulseAudio 0.9.21-63-gd3efa-dirty
D: main.c: Compilation host: i486-pc-linux-gnu
D: main.c: Compilation CFLAGS: -g -O2 -g -Wall -O3 -Wall -W -Wextra -pipe -Wno-long-long -Winline -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing=2 -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
D: main.c: Running on host: Linux i686 2.6.32-24-generic-pae #42-Ubuntu SMP Fri Aug 20 15:37:22 UTC 2010
D: main.c: Found 2 CPUs.
I: main.c: Page size is 4096 bytes
D: main.c: Compiled with Valgrind support: no
D: main.c: Running in valgrind mode: no
D: main.c: Running in VM: no
D: main.c: Optimized build: yes
D: main.c: All asserts enabled.
I: main.c: Machine ID is 37b1a2935e121fd776c640534c92c393.
I: main.c: Session ID is 37b1a2935e121fd776c640534c92c393-1284741785.538707-879649589.
I: main.c: Using runtime directory /home/rob/.pulse/37b1a2935e121fd776c640534c92c393-runtime.
I: main.c: Using state directory /home/rob/.pulse.
I: main.c: Using modules directory /usr/lib/pulse-0.9.21/modules.
I: main.c: Running in system mode: no
I: main.c: Fresh high-resolution timers available! Bon appetit!
I: cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3 SSE4_1 
I: svolume_mmx.c: Initialising MMX optimized functions.
I: remap_mmx.c: Initialising MMX optimized remappers.
I: svolume_sse.c: Initialising SSE2 optimized functions.
I: remap_sse.c: Initialising SSE2 optimized remappers.
I: sconv_sse.c: Initialising SSE2 optimized conversions.
D: memblock.c: Using shared memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65496
D: database-tdb.c: Opened TDB database '/home/rob/.pulse/37b1a2935e121fd776c640534c92c393-device-volumes.tdb'
I: module-device-restore.c: Sucessfully opened database file '/home/rob/.pulse/37b1a2935e121fd776c640534c92c393-device-volumes'.
I: module.c: Loaded "module-device-restore" (index: #0; argument: "").
D: database-tdb.c: Opened TDB database '/home/rob/.pulse/37b1a2935e121fd776c640534c92c393-stream-volumes.tdb'
I: module-stream-restore.c: Sucessfully opened database file '/home/rob/.pulse/37b1a2935e121fd776c640534c92c393-stream-volumes'.
I: module.c: Loaded "module-stream-restore" (index: #1; argument: "").
D: database-tdb.c: Opened TDB database '/home/rob/.pulse/37b1a2935e121fd776c640534c92c393-card-database.tdb'
I: module-card-restore.c: Sucessfully opened database file '/home/rob/.pulse/37b1a2935e121fd776c640534c92c393-card-database'.
I: module.c: Loaded "module-card-restore" (index: #2; argument: "").
I: module.c: Loaded "module-augment-properties" (index: #3; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9.21/modules/module-udev-detect.so': success
D: module-udev-detect.c: /dev/snd/controlC0 is accessible: no
D: module-udev-detect.c: /dev/snd/controlC29 is accessible: no
I: module-udev-detect.c: Found 2 cards.
I: module.c: Loaded "module-udev-detect" (index: #4; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9.21/modules/module-bluetooth-discover.so': failure
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9.21/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #5; argument: "").
I: module.c: Loaded "module-native-protocol-unix" (index: #6; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9.21/modules/module-gconf.so': failure
I: module-default-device-restore.c: Saved default sink 'auto_null' not existant, not restoring default sink setting.
I: module-default-device-restore.c: Saved default source 'auto_null.monitor' not existant, not restoring default source setting.
I: module.c: Loaded "module-default-device-restore" (index: #7; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #8; argument: "").
D: module-always-sink.c: Autoloading null-sink as no other sinks detected.
I: sink.c: Created sink 0 "auto_null" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: sink.c:     device.description = "Dummy Output"
I: sink.c:     device.class = "abstract"
I: sink.c:     device.icon_name = "audio-card"
D: core-subscribe.c: Dropped redundant event due to change event.
I: source.c: Created source 0 "auto_null.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: source.c:     device.description = "Monitor of Dummy Output"
I: source.c:     device.class = "monitor"
I: source.c:     device.icon_name = "audio-input-microphone"
D: module-null-sink.c: Thread starting up
I: module.c: Loaded "module-null-sink" (index: #9; argument: "sink_name=auto_null sink_properties='device.description="Dummy Output"'").
I: module.c: Loaded "module-always-sink" (index: #10; argument: "").
I: module.c: Loaded "module-intended-roles" (index: #11; argument: "").
D: module-suspend-on-idle.c: Sink auto_null becomes idle, timeout in 5 seconds.
I: module.c: Loaded "module-suspend-on-idle" (index: #12; argument: "").
D: dbus-util.c: Successfully connected to D-Bus system bus 37167102d347eef17e1632d54c939a90 as :1.19
I: client.c: Created 0 "ConsoleKit Session /org/freedesktop/ConsoleKit/Session1"
D: module-console-kit.c: Added new session /org/freedesktop/ConsoleKit/Session1
I: module.c: Loaded "module-console-kit" (index: #13; argument: "").
I: module.c: Loaded "module-position-event-sounds" (index: #14; argument: "").
D: dbus-util.c: Successfully connected to D-Bus session bus 72094675a23ec627dd2a6a7b4c939a9c as :1.8
D: main.c: Got org.pulseaudio.Server!
I: main.c: Daemon startup complete.
D: module-console-kit.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired

답변1

내 생각에는(동일한 문제에 대한 내 솔루션을 기반으로) 일부 응용 프로그램이 사운드 장치를 잠그고 있는 것 같습니다. Flash와 Pidgin은 모두 내 젠투 상자의 주범입니다. fuser -v /dev/snd/*거기에 나열된 모든 프로세스를 실행하고 종료해 보십시오 . 이것은 음성이 다시 제대로 작동하는 데 충분할 수 있습니다.

(당신은 또한 볼 수 있습니다https://wiki.gentoo.org/wiki/PulseAudio#Troubleshooting)

답변2

우분투를 사용하고 계시군요. 업무용 노트북에도 비슷한 문제가 있습니다. 때때로 사운드 장치가 아무 이유 없이 죽고 다시 시작하면 문제가 해결됩니다. 어떤 종류의 사운드 카드를 사용하고 있나요?

답변3

또한 최신 우분투 13.10에서 오디오가 작동하는 데 문제가 있습니다. 실제로 무선, 스캐너 등에 액세스할 수도 없습니다.

맥박 증상은 다음과 유사합니다.

D: module-udev-detect.c: /dev/snd/controlC0 is accessible: no
D: module-udev-detect.c: /dev/snd/controlC1 is accessible: no

PAM 문제인 것으로 밝혀졌습니다. /etc/pam.d/의 일부 파일을 약간 변경한 후 distro 업그레이드 중에 제대로 업데이트되지 않았습니다.

다음 명령은 /etc/pam.d/ 파일을 정상으로 복원합니다:

sudo pam-auth-update --force

나에게는 이로 인해 오디오, 무선 및 스캐너가 모두 정상으로 돌아왔습니다.

답변4

/dev/snd/controlC0 is accessible: no한 컴퓨터에 여러 X 세션이 있을 때 비슷한 사운드 문제가 있었습니다(). 첫 번째 세션에서는 pulseaudio/alsamixer/pavucontrol이 제대로 작동하는 KDE5를 사용합니다. 첫 번째 세션에서 이를 중지하고 나열된 모든 프로세스를 종료했지만 두 번째 세션(fluxbox)에서 pulseaudio 데몬을 시작할 수 없습니다 fuser -v /dev/snd/*. 제 경우에는 사용자를 audio그룹 에 추가하는 것이 해결책이었습니다 .

관련 정보