LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   FC12: Sound not working (https://www.linuxquestions.org/questions/fedora-35/fc12-sound-not-working-778168/)

antonucc 12-26-2009 07:27 AM

FC12: Sound not working
 
I have installed FC12 on a Thinkpad R61i, Intel Dual Core. The problem is that audio devices are not always working.

I have modules snd_hda_intel and snd_pcm:

..................
snd_hda_codec_analog 54684 1
snd_hda_intel 25080 4
snd_hda_codec 60584 2 snd_hda_codec_analog,snd_hda_intel
snd_hwdep 6900 1 snd_hda_codec
snd_seq 46960 0
snd_seq_device 6232 1 snd_seq
arc4 1616 2
ecb 2492 2
snd_pcm 64772 2 snd_hda_intel,snd_hda_codec
snd_timer 17992 2 snd_seq,snd_pcm
snd 50908 16 snd_hda_codec_analog,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
.......................

When I run amixer also seems ok:

# amixer
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 46396 [71%] [on]
Front Right: Playback 46396 [71%] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 65536
Front Left: Capture 65535 [100%] [on]
Front Right: Capture 65535 [100%] [on]
...............


I also tried to kill and restart pulseaudio:

pulseaudio -vvvvv

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
D: main.c: Compilation host: i386-redhat-linux-gnu
D: main.c: Compilation CFLAGS: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -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.31.6-166.fc12.i686 #1 SMP Wed Dec 9 11:14:59 EST 2009
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 64427f1116419983479dc6434b2cd41d.
I: main.c: Session ID is 64427f1116419983479dc6434b2cd41d-1261825792.219644-440530680.
I: main.c: Using runtime directory /home/antonucc/.pulse/64427f1116419983479dc6434b2cd41d-runtime.
I: main.c: Using state directory /home/antonucc/.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: MMX SSE SSE2 SSE3 SSSE3
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/antonucc/.pulse/64427f1116419983479dc6434b2cd41d-device-volumes.tdb'
I: module-device-restore.c: Sucessfully opened database file '/home/antonucc/.pulse/64427f1116419983479dc6434b2cd41d-device-volumes'.
I: module.c: Loaded "module-device-restore" (index: #0; argument: "").
D: database-tdb.c: Opened TDB database '/home/antonucc/.pulse/64427f1116419983479dc6434b2cd41d-stream-volumes.tdb'
I: module-stream-restore.c: Sucessfully opened database file '/home/antonucc/.pulse/64427f1116419983479dc6434b2cd41d-stream-volumes'.
I: module.c: Loaded "module-stream-restore" (index: #1; argument: "").
D: database-tdb.c: Opened TDB database '/home/antonucc/.pulse/64427f1116419983479dc6434b2cd41d-card-database.tdb'
I: module-card-restore.c: Sucessfully opened database file '/home/antonucc/.pulse/64427f1116419983479dc6434b2cd41d-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
I: module-udev-detect.c: Found 1 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': success
D: dbus-util.c: Successfully connected to D-Bus system bus a8ee541bd03972d165c896834b35edfd as :1.184
D: bluetooth-util.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
D: bluetooth-util.c: Bluetooth daemon is apparently not available.
I: module.c: Loaded "module-bluetooth-discover" (index: #5; argument: "").
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: #6; argument: "").
I: module.c: Loaded "module-native-protocol-unix" (index: #7; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9.21/modules/module-gconf.so': success
E: module-gconf.c: Unable to read or parse data from client.
E: module.c: Failed to load module "module-gconf" (argument: ""): initialization failed.
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: #8; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #9; argument: "").
D: module-always-sink.c: Autoloading null-sink as no other sinks detected.
I: module-device-restore.c: Restoring volume for sink auto_null.
I: module-device-restore.c: Restoring mute state for sink auto_null.
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: #10; argument: "sink_name=auto_null sink_properties='device.description="Dummy Output"'").
I: module.c: Loaded "module-always-sink" (index: #11; argument: "").
I: module.c: Loaded "module-intended-roles" (index: #12; 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: #13; argument: "").
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: #14; argument: "").
I: module.c: Loaded "module-position-event-sounds" (index: #15; argument: "").
I: module.c: Loaded "module-cork-music-on-phone" (index: #16; argument: "").
E: main.c: Module load failed.
D: dbus-util.c: Successfully connected to D-Bus session bus 49d93656c0ec452096f3dc264b35ef00 as :1.89
D: main.c: Got org.pulseaudio.Server!
I: main.c: Daemon startup complete.
I: module-suspend-on-idle.c: Sink auto_null idle for too long, suspending ...
D: sink.c: Suspend cause of sink auto_null is 0x0004, suspending
D: core-subscribe.c: Dropped redundant event due to change event.
.............................


Apparently the moudle is not loaded, but the daemon is anyhow started. What should I do?

Many thanks in advance.

neo8307 12-26-2009 11:58 AM

Quote:

Originally Posted by antonucc (Post 3805130)
I have installed FC12 on a Thinkpad R61i, Intel Dual Core. The problem is that audio devices are not always working.

I have modules snd_hda_intel and snd_pcm:

..................
snd_hda_codec_analog 54684 1
snd_hda_intel 25080 4
snd_hda_codec 60584 2 snd_hda_codec_analog,snd_hda_intel
snd_hwdep 6900 1 snd_hda_codec
snd_seq 46960 0
snd_seq_device 6232 1 snd_seq
arc4 1616 2
ecb 2492 2
snd_pcm 64772 2 snd_hda_intel,snd_hda_codec
snd_timer 17992 2 snd_seq,snd_pcm
snd 50908 16 snd_hda_codec_analog,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
.......................

When I run amixer also seems ok:

# amixer
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 46396 [71%] [on]
Front Right: Playback 46396 [71%] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 65536
Front Left: Capture 65535 [100%] [on]
Front Right: Capture 65535 [100%] [on]
...............


I also tried to kill and restart pulseaudio:

pulseaudio -vvvvv

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
D: main.c: Compilation host: i386-redhat-linux-gnu
D: main.c: Compilation CFLAGS: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -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.31.6-166.fc12.i686 #1 SMP Wed Dec 9 11:14:59 EST 2009
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 64427f1116419983479dc6434b2cd41d.
I: main.c: Session ID is 64427f1116419983479dc6434b2cd41d-1261825792.219644-440530680.
I: main.c: Using runtime directory /home/antonucc/.pulse/64427f1116419983479dc6434b2cd41d-runtime.
I: main.c: Using state directory /home/antonucc/.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: MMX SSE SSE2 SSE3 SSSE3
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/antonucc/.pulse/64427f1116419983479dc6434b2cd41d-device-volumes.tdb'
I: module-device-restore.c: Sucessfully opened database file '/home/antonucc/.pulse/64427f1116419983479dc6434b2cd41d-device-volumes'.
I: module.c: Loaded "module-device-restore" (index: #0; argument: "").
D: database-tdb.c: Opened TDB database '/home/antonucc/.pulse/64427f1116419983479dc6434b2cd41d-stream-volumes.tdb'
I: module-stream-restore.c: Sucessfully opened database file '/home/antonucc/.pulse/64427f1116419983479dc6434b2cd41d-stream-volumes'.
I: module.c: Loaded "module-stream-restore" (index: #1; argument: "").
D: database-tdb.c: Opened TDB database '/home/antonucc/.pulse/64427f1116419983479dc6434b2cd41d-card-database.tdb'
I: module-card-restore.c: Sucessfully opened database file '/home/antonucc/.pulse/64427f1116419983479dc6434b2cd41d-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
I: module-udev-detect.c: Found 1 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': success
D: dbus-util.c: Successfully connected to D-Bus system bus a8ee541bd03972d165c896834b35edfd as :1.184
D: bluetooth-util.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
D: bluetooth-util.c: Bluetooth daemon is apparently not available.
I: module.c: Loaded "module-bluetooth-discover" (index: #5; argument: "").
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: #6; argument: "").
I: module.c: Loaded "module-native-protocol-unix" (index: #7; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9.21/modules/module-gconf.so': success
E: module-gconf.c: Unable to read or parse data from client.
E: module.c: Failed to load module "module-gconf" (argument: ""): initialization failed.
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: #8; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #9; argument: "").
D: module-always-sink.c: Autoloading null-sink as no other sinks detected.
I: module-device-restore.c: Restoring volume for sink auto_null.
I: module-device-restore.c: Restoring mute state for sink auto_null.
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: #10; argument: "sink_name=auto_null sink_properties='device.description="Dummy Output"'").
I: module.c: Loaded "module-always-sink" (index: #11; argument: "").
I: module.c: Loaded "module-intended-roles" (index: #12; 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: #13; argument: "").
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: #14; argument: "").
I: module.c: Loaded "module-position-event-sounds" (index: #15; argument: "").
I: module.c: Loaded "module-cork-music-on-phone" (index: #16; argument: "").
E: main.c: Module load failed.
D: dbus-util.c: Successfully connected to D-Bus session bus 49d93656c0ec452096f3dc264b35ef00 as :1.89
D: main.c: Got org.pulseaudio.Server!
I: main.c: Daemon startup complete.
I: module-suspend-on-idle.c: Sink auto_null idle for too long, suspending ...
D: sink.c: Suspend cause of sink auto_null is 0x0004, suspending
D: core-subscribe.c: Dropped redundant event due to change event.
.............................


Apparently the moudle is not loaded, but the daemon is anyhow started. What should I do?

Many thanks in advance.

http://fedoraproject.org/wiki/Common..._on_Headphones

try the above link.. this might get your headphone sound back..

PTrenholme 12-26-2009 02:03 PM

Hum. Compare your config file with this one on my systems.
Code:

$ pulseaudio --dump-conf
### Read from configuration file: /etc/pulse/daemon.conf ###
daemonize = no                                             
fail = yes                                                 
high-priority = yes                                       
nice-level = -11                                           
realtime-scheduling = yes                                 
realtime-priority = 5                                     
allow-module-loading = yes                                 
allow-exit = yes                                           
use-pid-file = yes                                         
system-instance = no                                       
cpu-limit = no                                             
enable-shm = yes                                           
flat-volumes = yes                                         
lock-memory = no                                           
exit-idle-time = 20                                       
scache-idle-time = 20
dl-search-path = /usr/lib64/pulse-0.9.21/modules
default-script-file = /etc/pulse/default.pa
load-default-script-file = yes
log-target = auto
log-level = notice
resample-method = auto
enable-remixing = yes
enable-lfe-remixing = no
default-sample-format = s16le
default-sample-rate = 44100
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 4
default-fragment-size-msec = 25
shm-size-bytes = 0
log-meta = no
log-time = no
log-backtrace = 0
rlimit-fsize = -1
rlimit-data = -1
rlimit-stack = -1
rlimit-core = -1
rlimit-rss = -1
rlimit-as = -1
rlimit-nproc = -1
rlimit-nofile = 256
rlimit-memlock = -1
rlimit-locks = -1
rlimit-sigpending = -1
rlimit-msgqueue = -1
rlimit-nice = 31
rlimit-rtprio = 9
rlimit-rttime = 1000000

That's a default set-up. You might also want to see what "audio" processes are running:
Code:

$ ps aux | grep -i audio
root      696  0.0  0.0      0    0 ?        S<  11:25  0:00 [hd-audio0]
Peter    2135  0.0  0.1 447136  4692 ?        S<sl 11:26  0:00 /usr/bin/pulseaudio --start
Peter    5899  0.0  0.0 102728  852 pts/1    S+  11:54  0:00 grep -i audio

Note that, on my system, both the audio driver ([hd-audio]) and the local process (/usr/bin/pluseaudio) are sleeping. That's because I don't, normally, let my laptop generate any sounds, since I don't like it when other users bother me with their sound systems. :)


All times are GMT -5. The time now is 11:53 AM.