ubuntu18.04 没声,自己的设置,耳机有声音,机子内置没声音,录音声音很杂

ubuntu18.04 没声,自己的设置,耳机有声音,机子内置没声音,录音声音很杂

声卡 realtek 1220

alick@alick-pc:~$ cat /proc/asound/card0/codec#0| grep -i codec
Codec: Realtek ALC1220
1 查看 alsa driver(去alsa下仓库)中的HD-Audio-Models.txt找声卡(realtek 1220)对应的 models名
alick@alick-pc:~/Downloads/alsa-driver/Documentation/sound/alsa$ less HD-Audio-Models.txt

ALC88x/898/1150
======================
  acer-aspire-4930g     Acer Aspire 4930G/5930G/6530G/6930G/7730G
  acer-aspire-8930g     Acer Aspire 8330G/6935G
  acer-aspire           Acer Aspire others
  inv-dmic              Inverted internal mic workaround
  no-primary-hp         VAIO Z/VGC-LN51JGB workaround (for fixed speaker DAC)

没找见,用了 inv-dmic 实验,可以发声在耳机

2 添加用户组
id # 查看当前用户所在的组
usermod -a -G audio alick
usermod -a -G audio root
3 修改alick@alick-pc:/etc/modprobe.d$ cat alsa-base.conf
- 注释掉# options snd-cmipci mpu_port=0x330 fm_port=0x388
- 添加 options snd_hda_intel model=inv-dmic
- 其中inv-dmic就是刚找见的
4 安装 pavucontrol配置
在configuration选一个,我选Analog Stereo Duplex,选完耳机就有声音了
5 用alsamixer把能开的都开着
Loopback Mi这个选项关着,开了噪音很大

总结: 这样现在能有声音,先将就用着

参考

https://blog.csdn.net/MrGong_/article/details/78189160
https://blog.csdn.net/fuchaosz/article/details/51886878
http://www.cnblogs.com/lykyl/archive/2012/05/03/2479916.html
官网qa https://help.ubuntu.com/stable/ubuntu-help/sound-nosound.html
一种方法:
https://docs.slackware.com/howtos:hardware:audio_and_snd-hda-intel

realtek官网high definition audio drivers驱动 http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=24&PFid=24&Level=4&Conn=3&DownTypeID=3&GetDown=false#2
编译问题

https://ubuntuforums.org/showthread.php?t=2392151
http://th7.cn/system/lin/201501/81592.shtml

你可能感兴趣的:(Linux)