Add pulse configs
This commit is contained in:
parent
4107d6f232
commit
f2013a8ef0
@ -23,6 +23,8 @@
|
|||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
mode: "{{ item.mode }}"
|
mode: "{{ item.mode }}"
|
||||||
loop:
|
loop:
|
||||||
|
- { src: "pulse-daemon.conf", dest: "/etc/pulse/daemon.conf", mode: "0644" }
|
||||||
|
- { src: "pulse-default.pa", dest: "/etc/pulse/default.pa", mode: "0644" }
|
||||||
- { src: "sshd_config", dest: "/etc/ssh/sshd_config", mode: "0644" }
|
- { src: "sshd_config", dest: "/etc/ssh/sshd_config", mode: "0644" }
|
||||||
- { src: "nomouseaccel.conf", dest: "/etc/X11/xorg.conf.d/90-mouse-acceleration.conf", mode: "0644" }
|
- { src: "nomouseaccel.conf", dest: "/etc/X11/xorg.conf.d/90-mouse-acceleration.conf", mode: "0644" }
|
||||||
- { src: "touchpad.conf", dest: "/etc/X11/xorg.conf.d/90-touchpad.conf", mode: "0644" }
|
- { src: "touchpad.conf", dest: "/etc/X11/xorg.conf.d/90-touchpad.conf", mode: "0644" }
|
||||||
|
23
roles/desktop-common/templates/pulse-daemon.conf
Normal file
23
roles/desktop-common/templates/pulse-daemon.conf
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
|
||||||
|
# more information. Default values are commented out. Use either ; or # for
|
||||||
|
# commenting.
|
||||||
|
|
||||||
|
# Bugfixes for my desktop's audio card
|
||||||
|
realtime-scheduling = no # Fixes a weird stutter issue
|
||||||
|
|
||||||
|
# Sanity
|
||||||
|
flat-volumes = no
|
||||||
|
|
||||||
|
# Audio Quality
|
||||||
|
default-sample-format = s32le # Pulse does 16bit sampling by default for some reason
|
||||||
|
default-sample-rate = 48000 # Higher sample rate than default
|
||||||
|
alternate-sample-rate = 44100
|
||||||
|
resample-method = speex-float-5 # Increase resampling quality
|
||||||
|
avoid-resampling = true
|
||||||
|
|
||||||
|
default-fragments = 5 # Pulse, why are you so friggin latent by default?
|
||||||
|
default-fragment-size-msec = 10
|
||||||
|
|
||||||
|
high-priority = yes
|
||||||
|
nice-level = -19
|
||||||
|
|
10
roles/desktop-common/templates/pulse-default.pa
Normal file
10
roles/desktop-common/templates/pulse-default.pa
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/pulseaudio -nF
|
||||||
|
.include /etc/pulse/default.pa
|
||||||
|
|
||||||
|
# Gets around a weird audio skipping bug on my desktop
|
||||||
|
.ifexists module-udev-detect.so
|
||||||
|
load-module module-udev-detect tsched=0
|
||||||
|
|
||||||
|
# My laptop gets sink suspension popping when using headphones
|
||||||
|
unload-module module-suspend-on-idle
|
||||||
|
|
Loading…
Reference in New Issue
Block a user