вторник, октября 15, 2024

ThinkPad X1 Carbon Gen9. Important useful sound settings

I've found the following important useful settings for the /boot/device.hints on the FreeBSD forum:

hint.hdaa.0.nid19.config="as=1 seq=0"

hint.hdaa.0.nid20.config="as=1 seq=2"

hint.hdaa.0.nid23.config="as=1 seq=1"

hint.hdaa.0.nid24.config="as=1 seq=2"

hint.hdaa.0.nid26.config="as=1 seq=1"

hint.hdaa.0.nid27.config="as=1 seq=2"

hint.hdaa.0.nid30.config="as=1 seq=1"

hint.hdaa.0.nid33.config="as=1 seq=15 device=Headphones"


i3 and sound control from keyboard on FreeBSD

bindsym XF86AudioRaiseVolume exec --no-startup-id mixer vol=+10% && $refresh_i3status

bindsym XF86AudioLowerVolume exec --no-startup-id mixer vol=-10% && $refresh_i3status

bindsym XF86AudioMute exec --no-startup-id "mixer vol.mute | grep on; [ $? -eq 0 ] && mixer vol.mute=off || mixer vol.mute=on && $refresh_i3status"

bindsym XF86AudioMicMute exec --no-startup-id "mixer mic.mute | grep on; [ $? -eq 0 ] && mixer mic.mute=off || mixer mic.mute=on && $refresh_i3status"