Headphones won't work on Thinkpad T420 reddit / freebsd ---------------------------------------------------------------------- msbic · 2020-10-06 18:49 Hi all. Not sure if this the right place for my question, but will ask anyway. Yesterday I decided to install 12.1 on my T420. I got it mostly running, the biggest blocker for me being no sound in the headphones. I did do some googling, all in vain so far. I would really like to keep FreeBSD on this machine, but this is a big hurdle. Here's how /dev/sndstat looks like. Installed devices: pcm0: (play/rec) default pcm1: (play) pcm2: (play) pcm3: (play) ---------------------------------------------------------------------- Neutral_Knievel · 2020-10-06 23:10 I can't test it myself since I don't have that model laptop, but perhaps try the recommendation in this thread: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222636 It looks potentially promising. ---------------------------------------------------------------------- msbic · 2020-10-06 23:23 Thanks. Tried this, but doesn't seem to do the trick ---------------------------------------------------------------------- vermaden · 2020-10-07 04:34 Put that into the **/boot/device.hints** file and reboot. # T420s SOUND ON HEADPHONES hint.hdaa.0.nid31.config="as=1" hint.hdaa.0.nid25.config="as=1 seq=15 device=Headphones mute=0 misc=0" hint.hdaa.0.nid28.config="as=1 seq=15 device=Headphones mute=0 misc=0" Regards. **EDIT:** Just noticed you have **T420** (regular) and not **T420s** (slim). Maybe that is the reason why it will not help ... ---------------------------------------------------------------------- avgapon · 2020-10-07 07:07 Just in case, what's hw.snd.default\_unit ? ---------------------------------------------------------------------- vermaden · 2020-10-07 13:09 With that OID you set which audio device gets the audio. % sysctl -d hw.snd.default_unit hw.snd.default_unit: default sound device For example by default audio can be 'typical output jack' on '0' device and 'HDMI' on '1' device. ​ Here is the output of **/dev/sndstat** with possible devices: ​ % cat /dev/sndstat Installed devices: pcm0: (play/rec) default pcm1: (play/rec) pcm2: (play) No devices installed from userspace. ---------------------------------------------------------------------- dpejesh · 2020-10-07 16:32 I had the same problem with my W520 a year or so ago. A cursory glance at Lenovo's site for the specs of the W520 and T420 show they might use the same or very similar audio devices (cx20672 vs 20672, not sure if the leading cx is important or not). If I remember correctly I had to apply https://github.com/freebsd/freebsd/commit/f33cafa731d2d169e43 2720a11277f99d7a45c2c.patch, but since that laptop is in shambles I can't verify that was what resolved it for me. Based on the commit history, that fix is in releng/12.2 but not in releng/12.1; meaning 12.2 should have it when it's released at the end of the month. You can always try installing 12.2-RC1 if you're not comfortable patching and rebuilding the driver. ---------------------------------------------------------------------- msbic · 2020-10-07 17:09 Thanks a lot, I will take a look