JackHack96 / dell-xps-9570-ubuntu-respin

Collection of scripts and tweaks to adapt Ubuntu running smooth on Dell XPS 15 9570.
999 stars 113 forks source link

Enable high quality audio - mic issues with Slack App #72

Closed sahlouls closed 5 years ago

sahlouls commented 5 years ago

Hi,

Thanks for sharing this precious repo :+1:

After updating the PulseAudio config, Slack is not picking the mic anymore. Any ideas how to solve this ?

JackHack96 commented 5 years ago

Do other apps manage to pick it?

sahlouls commented 5 years ago

Yes, no issues with all the other apps. What is weird is that Slack from Browser works fine.

After I reverted all changes back in /etc/pulse/daemon.conf the Slack app is working again and reload pulse config

$ pulseaudio --kill
$ pulseaudio --start

I did go with steps enable and test to check which config is letting Slack fails. Any ideas what might let things fail ? default-fragment-size-msec maybe ?

philiporlando commented 5 years ago

@sahlouls Can you provide some more details to revert the /etc/pulse/daemon.conf back to default? I'm also experiencing this issue with the Slack app.

JackHack96 commented 5 years ago

Yes, no issues with all the other apps. What is weird is that Slack from Browser works fine.

After I reverted all changes back in /etc/pulse/daemon.conf the Slack app is working again and reload pulse config

$ pulseaudio --kill
$ pulseaudio --start

I did go with steps enable and test to check which config is letting Slack fails. Any ideas what might let things fail ? default-fragment-size-msec maybe ?

Uhm, this is very weird... It could be default-fragment-size-msec, but I can't be sure. @philiporlando If you want to revert to medium quality audio, just edit /etc/pulse/daemon.conf by replacing the text with the following:

# 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/>.

## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
## more information. Default values are commented out.  Use either ; or # for
## commenting.

; daemonize = no
; fail = yes
; allow-module-loading = yes
; allow-exit = yes
; use-pid-file = yes
; system-instance = no
; local-server-type = user
; enable-shm = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
; lock-memory = no
; cpu-limit = no

; high-priority = yes
; nice-level = -11

; realtime-scheduling = yes
; realtime-priority = 5

; exit-idle-time = 20
; scache-idle-time = 20

; dl-search-path = (depends on architecture)

; load-default-script-file = yes
; default-script-file = /etc/pulse/default.pa

; log-target = auto
; log-level = notice
; log-meta = no
; log-time = no
; log-backtrace = 0

; resample-method = speex-float-1
; enable-remixing = yes
; enable-lfe-remixing = yes
; lfe-crossover-freq = 120

flat-volumes = no

; rlimit-fsize = -1
; rlimit-data = -1
; rlimit-stack = -1
; rlimit-core = -1
; rlimit-as = -1
; rlimit-rss = -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

; 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 = 1
; deferred-volume-extra-delay-usec = 0
philiporlando commented 5 years ago

Awesome, I'll give this a try and see if things improve. Thank you!