蓝牙耳机偏音了(警惕国内某水),品牌品控一言难尽,几次了都是偏音(保修期内就修了俩次,甚至我从京东退回去的别人从 PDD 上买到了)。然后手上还有另一个水的有线塞子(摔了几次,但 耐🌿 鲁棒性高),想起箱子里吃灰的 CX31993,闲鱼 19.9 不包邮但是能响,于是拿来折腾折腾,反正耳朵听不出差别。
搜索引擎照抄配置
原文链接:提高音频输出采样率以充分利用声卡 作者:Starx
一切都很顺利,但是配置完一看还是48000,进入思考人生🤔阶段。遇事不决看 ArchWiki
然后就真寄了。
用journalctl -b -0 | grep -i wireplumber
可知 0.5 版本的 WirePlumber不支持 .lua
配置文件了。
然后进入下边的链接可知以下修改:
~/.config/wireplumber/wireplumber.conf.d/
替换 ~/.config/wireplumber/main.lua.d/
原文对应的配置则修改为(记得后缀为.conf
而不是.lua
):
monitor.alsa.rules = [
{
matches = [
{
node.nick = "CX31993 384Khz HIFI AUDIO"
}
]
actions = {
update-props = {
audio.format = "s32le"
audio.rate = 192000
alsa.resolution_bits = 24 #我自己加的,看自己选择
}
}
}
]
然后记得systemctl --user restart wireplumber.service pipewire.service
之后就应该正常启动了。
More
但我觉着感觉还是不够折腾,然后就把 PipeWire 也给干了。
配置都可以在/usr/share/pipewire/
中找到,首先拿/usr/share/pipewire/pipewire.conf
开刀。
#~/.config/pipewire/pipewire.conf.d/any.conf
context.properties = {
## Configure properties in the system.
#mem.warn-mlock = false
#mem.allow-mlock = true
#mem.mlock-all = false
####log.level = 0
# clock.power-of-two-quantum = false
# default.clock.quantum-limit = 2048
## Properties for the DSP configuration.
default.clock.rate = 192000
default.clock.allowed-rates = [ 192000 ]
# 对于这行可以自行修改
# /usr/share/pipewire/pipewire.conf.avail/10-rates.conf
# Adds more common rates
#context.properties = {
# default.clock.allowed-rates = [ 44100 48000 88200 96000 ]
#}
default.clock.quantum = 1024
default.clock.min-quantum = 32
default.clock.max-quantum = 2048
default.clock.quantum-limit = 4096
#default.clock.quantum-floor = 4
#default.video.width = 640
#default.video.height = 480
#default.video.rate.num = 25
#default.video.rate.denom = 1
}
其实一开始只动了default.clock.quantum-limit
然后发现这玩意越调小越断断续续带电音越不清晰,只有在听 192kHz24bit 的时候正常。然后用 coppwr 看了眼感觉是 PipeWire-PulseAudio 的锅,反手对应/usr/share/pipewire/pipewire-pulse.conf
:
#~/.config/pipewire/pipewire-pulse.conf.d/any.conf
context.properties = {
## Configure properties in the system.
#mem.warn-mlock = false
#mem.allow-mlock = true
#mem.mlock-all = false
#log.level = 2
default.clock.quantum-limit = 4096
}
然后修好了,再对应/usr/share/pipewire/pipewire.conf
根据感觉瞎调一番🌁。
题外话
丙戊酸镁和喹硫平最近在吃,感觉像吸大了一样,之后再去看 ADHD,因为那个左键注意力测试警惕值为0,医生让我先稳定下来再看,不知道要不要顺便测测 ASD。
主页的邮箱不太常看,如果想尽快联系用主页邮箱@前用户名+@+当前的域名就行(别加www.)。