Re: sound problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le 17/03/2018 à 17:32, stan a écrit :
> On Sat, 17 Mar 2018 11:08:46 +0100
> François Patte <francois.patte@xxxxxxxxxxxxxxxxxxxx> wrote:
> 
>> But in /usr/lib/modprobe.d/ I have a dist-alsa.conf file with:
>>
>> # ALSA Sound Support
>> #
>> # We want to ensure that snd-seq is always loaded for those who want
>> to use # the sequencer interface, but we can't do this automatically
>> through udev # at the moment...so we have this rule (just for the
>> moment). #
>> # Remove the following line if you don't want the sequencer.
>>
>> install snd-pcm /sbin/modprobe --ignore-install snd-pcm &&
>> /sbin/modprobe snd-seq
>>
>> Don't know what it means....
> 
> I also have that and sound works fine here.  So, I would say not a
> problem.
> 
>> In ~/.config/pulse I have:
>> bd9a117e29a44dd4b335896e866a41d2-default-sink
>> bd9a117e29a44dd4b335896e866a41d2-default-source
>>
>> Which are empty when I log-in (in that case the config is: "sortie
>> stéréo numérique (iec958) + entrée stéréo analogique" which does not
>> work, no sound)
> 
> You must have run alsainfo.sh after you corrected your system because
> this is not what it showed.  It showed that the default was pcm
> (analog). For some reason, at start up, your system is defaulting to
> the iec958 (digital) interface on your nvidia card at startup.  

Not the nvidia card: I recently installed this card and the problem
existed before.

> What
> happens if immediately after startup you run?
> aplay -D plughw:0,0 [some wav file here]
> It has to be a wav file as there is no decoding in aplay.  You should
> get sound without making any changes to configuration.

Yes, that works

> 
>> If I change, in the config tab, to duplex stéréo analogique (which
>> works) and going to the "output peripheric" tab and press the button
>> "define as alternative" these two files in ~/.config/pulse, have
>> alsa_input.pci-0000_00_1b.0.analog-stereo inside, but these files are
>> erased at next login/boot.
> 
> This is correct, but the erasure, I don't know where that is coming
> from.
>  
>>> It doesn't make sense that you don't have sound.    
>>
>> What could erase the files source/sink in my ~/.config/pulse and why
>> does the fedora default config does not follow the man
>> pulse-client.conf for, according to this manual, there should be a
>> ~/.config/pulse/client.conf file or
>> ~/.config/pulse/client.conf.d/*.conf files...
> 
> I suspect, because of the signature at the front, that those files are
> recreated by pulse at each start.  I think *you* have to create the
> configuration files in your ~/.config/pulse directory.
> 
> Try this:
> cp the /etc/pulse/client.conf file to ~/.config/pulse.
> Edit the home directory file and change the line
> ; default-sink =
> to
> default-sink = hw:0,0

This does not work.

> 
> That should do the right thing at next boot.
> 
> If it doesn't work, run
> pulseaudio --dump-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
local-server-type = user
cpu-limit = no
enable-shm = yes
flat-volumes = no
lock-memory = no
exit-idle-time = 20
scache-idle-time = 20
dl-search-path = /usr/lib64/pulse-11.1/modules
default-script-file = /etc/pulse/default.pa
load-default-script-file = yes
log-target =
log-level = notice
resample-method = auto
avoid-resampling = yes
enable-remixing = yes
remixing-use-all-sink-channels = yes
enable-lfe-remixing = no
lfe-crossover-freq = 0
default-sample-format = s16le
default-sample-rate = 44100
alternate-sample-rate = 48000
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 4
default-fragment-size-msec = 25
enable-deferred-volume = yes
deferred-volume-safety-margin-usec = 8000
deferred-volume-extra-delay-usec = 0
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 = 200000
<-------------------------------------------------------------


> Then paste the output and the contents of /etc/pulse/default.pa

----------------------------------------------------------->
#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

# This startup script is used only if PulseAudio is started per-user
# (i.e. not in system mode)

.fail

### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties

### Should be after module-*-restore but before module-*-detect
load-module module-switch-on-port-available

### Load audio drivers statically
### (it's probably better to not load these drivers manually, but instead
### use module-udev-detect -- see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-null-sink
#load-module module-pipe-sink

### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev
support)
load-module module-detect
.endif

### Automatically connect sink and source if JACK server is present
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect channels=2
.fail
.endif

### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
.endif

.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif

### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish

### Load the RTP receiver module (also configured via paprefs, see above)
#load-module module-rtp-recv

### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2
rate=44100 sink_properties="device.description='RTP Multicast Sink'"
#load-module module-rtp-send source=rtp.monitor

### Load additional modules from GConf settings. This can be configured
with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might
conflict with manually
### loaded modules.
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif

### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent
modules
### that look up the default sink/source get the right value
load-module module-default-device-restore

### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams

### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink

### Honour intended role device property
load-module module-intended-roles

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle

### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
.ifexists module-console-kit.so
#load-module module-console-kit
.endif
.ifexists module-systemd-login.so
load-module module-systemd-login
.endif

### Enable positioned event sounds
load-module module-position-event-sounds

### Cork music/video streams when a phone stream is active
load-module module-role-cork

### Modules to allow autoloading of filters (such as echo cancellation)
### on demand. module-filter-heuristics tries to determine what filters
### make sense, and module-filter-apply does the heavy-lifting of
### loading modules and rerouting streams.
load-module module-filter-heuristics
load-module module-filter-apply

### Make some devices default
set-default-sink  output
set-default-source  input
<-------------------------------------------------


Is there somewhere a comprhensive list of configuration files for alsa
and pulseaudio?

Thank you.

-- 
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
http://www.math-info.univ-paris5.fr/~patte


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux