个人使用的笔记本是暗影精灵2 PRO,产品名称是: OMEN by HP Laptop 15-ax210TX.
最初本人装的是ubuntu,左边耳机的声音一直有噼里啪啦的炸裂声,后来换了Arch还是一样的情况,而且本人喜欢听安静的声音,类似读故事或是心跳声这种,每次听到劈裂啪啦的声音真是难受.
最初尝试过Arch wiki中的各种方法 包括
PulseAudio/Troubleshooting#Glitches,_skips_or_crackling
PulseAudio/Troubleshooting#Static_noise_when_using_headphones
都没有任何改进.
直到后来才发现这是linux下Realtek ALC295的驱动不完善导致的,这个bug在17年就提出了,至今都没有得到解决.
Bug 195457 - Realtek ALC295 still unsupported
Crackling and popping sound when using headphones
即使有人提交补丁并合并到了linux内核中
但是事实证明并没有用
依照上面有人提供的方法却有效(看起来跟提交补丁差不多,但是补丁却没有起作用):
1 | I've managed to fix this problem on my machine (HP Omen 15 running Ubuntu 17.04 using codec for Realtek ALC295 sound device). To fix the problem, I can do the following: |
arch下类似 除了是用pacman安装alsa-tools,之后操作是一样的.
不使用crontab,使用systemd的方法ASUS_Zenbook_UX430/UX530#Headphones_audio_is_too_low
1 | In order to fix it, install alsa-tools or hda-verbAUR and create the file: |
1 |
|
1 | Then create a systemd script with the following content: |
1 | [Unit] |
1 | And finally, start and enable fix_headphones_audio.service. |
Bug 195457 - Realtek ALC295 still unsupported
Crackling and popping sound when using headphones
How to install Bang and Olufsen Audio drivers for HP laptop?
ASUS_Zenbook_UX430/UX530#Headphones_audio_is_too_low