注意:本教程的前提是,已安装 ubuntu并进入系统。

提取codec

进入系统桌面使用快捷键 CTRL+ALT+t打开终端,输入如下命令

cd ~/Desktop/ # 进入用户桌面
cp /proc/asound/card0/codec* . # 将codec开头的文件复制到当时位置
sudo cp -R /sys/firmware/acpi/tables .  # 将acpi/tables目录复制到当时位置,tables目录包括了全部的DSDT和SSDT
ls -l   # 列表
sudo chown -R redeio:redeio *   # 将当前目录下所有文件及目录所有人修改为ubuntu
ls -l   # 列表

使用verbit.sh工具整理有效节点[点击下载]

将下载好的 verbit.sh文件放在 ubuntu桌面,输入如下命令

./verbit.sh codec#0

输入 ./verbit.sh codec#0命令会生成显示如下信息

redeio@redeio-FX503VD:~/桌面$ ./verbit.sh codec#0

Verbs from Linux Codec Dump File: codec#0

Codec: Realtek ALC295     Address: 0     DevID: 283902613 (0x10ec0295)

     Jack     Color    Description                                    Node         PinDefault                         Original Verbs
--------------------------------------------------------------------------------------------------------
Digital Unknown  Mic at Int N/A              18 0x12   0x90a60130   01271c30 01271d01 01271ea6 01271f90
Unknown Unknown  Line Out at Ext N/A         19 0x13   0x40000000   01371c00 01371d00 01371e00 01371f40
 Analog Unknown  Speaker at Int N/A          20 0x14   0x90170110   01471c10 01471d01 01471e17 01471f90
    1/8   Black  Speaker at Ext Rear         22 0x16   0x411111f0   01671cf0 01671d11 01671e11 01671f41
    1/8   Black  Speaker at Ext Rear         23 0x17   0x411111f0   01771cf0 01771d11 01771e11 01771f41
    1/8   Black  Speaker at Ext Rear         24 0x18   0x411111f0   01871cf0 01871d11 01871e11 01871f41
    1/8   Black  Speaker at Ext Rear         25 0x19   0x411111f0   01971cf0 01971d11 01971e11 01971f41
    1/8   Black  Speaker at Ext Rear         26 0x1a   0x411111f0   01a71cf0 01a71d11 01a71e11 01a71f41
    1/8   Black  Speaker at Ext Rear         27 0x1b   0x411111f0   01b71cf0 01b71d11 01b71e11 01b71f41
 Analog    Pink  Modem Line at Ext N/A       29 0x1d   0x40679a2d   01d71c2d 01d71d9a 01d71e67 01d71f40
    1/8   Black  Speaker at Ext Rear         30 0x1e   0x411111f0   01e71cf0 01e71d11 01e71e11 01e71f41
    1/8   Black  HP Out at Ext Left          33 0x21   0x03211020   02171c20 02171d10 02171e21 02171f03

     Jack     Color    Description                                    Node         PinDefault                         Modified Verbs
--------------------------------------------------------------------------------------------------------
Digital Unknown Mic at Int N/A               18 0x12   0x90a60130   01271c30 01271d00 01271ea6 01271f90
 Analog Unknown Speaker at Int N/A           20 0x14   0x90170110   01471c10 01471d00 01471e17 01471f90
    1/8   Black Speaker at Ext Rear          22 0x16   0x411111f0   01671cf0 01671d10 01671e11 01671f41
    1/8   Black Speaker at Ext Rear          23 0x17   0x411111f0   01771c40 01771d10 01771e11 01771f41
    1/8   Black Speaker at Ext Rear          24 0x18   0x411111f0   01871c50 01871d10 01871e11 01871f41
    1/8   Black Speaker at Ext Rear          25 0x19   0x411111f0   01971c60 01971d10 01971e11 01971f41
    1/8   Black Speaker at Ext Rear          26 0x1a   0x411111f0   01a71c70 01a71d10 01a71e11 01a71f41
    1/8   Black Speaker at Ext Rear          27 0x1b   0x411111f0   01b71c80 01b71d10 01b71e11 01b71f41
 Analog    Pink Modem Line at Ext N/A        29 0x1d   0x40679a2d   01d71c20 01d71d90 01d71e67 01d71f40
    1/8   Black Speaker at Ext Rear          30 0x1e   0x411111f0   01e71c90 01e71d10 01e71e11 01e71f41
    1/8   Black HP Out at Ext Left           33 0x21   0x03211020   02171ca0 02171d10 02171e21 02171f00
--------------------------------------------------------------------------------------------------------

Modified Verbs in One Line: 01271c30 01271d00 01271ea6 01271f90 01471c10 01471d00 01471e17 01471f90 01671cf0 01671d10 01671e11 01671f41 01771c40 01771d10 01771e11 01771f41 01871c50 01871d10 01871e11 01871f41 01971c60 01971d10 01971e11 01971f41 01a71c70 01a71d10 01a71e11 01a71f41 01b71c80 01b71d10 01b71e11 01b71f41 01d71c20 01d71d90 01d71e67 01d71f40 01e71c90 01e71d10 01e71e11 01e71f41 02171ca0 02171d10 02171e21 02171f00
--------------------------------------------------------------------------------------------------------

如果你希望将输出结果保存下来,可以使用如下命令:

./verbit.sh codec#0 > ALC295_dump.txt  

未完待续

Last modification:April 17th, 2021 at 02:59 pm