Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message

Problem with audio through HDMI connected to minidock.

T400/410/420 and T500/510/520 series specific matters only
Post Reply
Message
Author
T-Man
Posts: 4
Joined: Wed Mar 13, 2019 5:31 am
Location: Overijssel, Netherlands

Problem with audio through HDMI connected to minidock.

#1 Post by T-Man » Tue Apr 09, 2019 3:13 pm

I have two T420's and I cannot make audio work through HDMI connected to a minidock using linux mint.
HDMI audio works fine for the same two laptops using windows 7
My wife's X230 with the same linux mint and the same docking station also work fine.
When I put the T420 harddisk in my T410 HDMI audio also works fine.
I tested all the tips I could find online, installing pavucontrol, other drivers etc.
The hardware simply doesn't show up.
Anybody here with the same problem and maybe a solution ?
T-400 i5 6 GB, T-410i i5 6 GB, T-410 i5 8 GB, T-420 i7 8 GB, T-420 i7 8 GB

dr_st
Moderator
Moderator
Posts: 8053
Joined: Sat Oct 29, 2005 6:20 am
Location: Israel

Re: Problem with audio through HDMI connected to minidock.

#2 Post by dr_st » Wed Apr 10, 2019 2:26 am

You probably need a specific driver version or a specific setting in that Linux installation. I know that in Windows you also frequently have issues with HDMI audio not working until the right version of the Intel HD Audio driver is installed.
Thinkpad 25 (20K7), X1 Carbon (20HQ), Yoga 14 (20FY), T430s (IPS FHD + Classic Keyboard), X220 4291-4BG
X61 7673-V2V, T60 2007-QPG, T42 2373-F7G, X32 (IPS Screen), A31p w/ Ultrabay Numpad, A21m 2628-GXU

T-Man
Posts: 4
Joined: Wed Mar 13, 2019 5:31 am
Location: Overijssel, Netherlands

Re: Problem with audio through HDMI connected to minidock.

#3 Post by T-Man » Thu Apr 11, 2019 4:32 pm

Yes it has to be a problem between mint and the T-420. I tried all the available drivers for the NVIDIA card but no go.
Also switched graphic cards in the bios.
I was just hoping somebody else solved this already.
T-400 i5 6 GB, T-410i i5 6 GB, T-410 i5 8 GB, T-420 i7 8 GB, T-420 i7 8 GB

T-Man
Posts: 4
Joined: Wed Mar 13, 2019 5:31 am
Location: Overijssel, Netherlands

Re: Problem with audio through HDMI connected to minidock.

#4 Post by T-Man » Mon Apr 22, 2019 5:15 am

I got a little further on this. Found this old Ubuntu bug https://bugs.launchpad.net/ubuntu/+sour ... omments/19
Following the instructions makes the computer hang at startup.
However ramming the esc button when starting eventually makes the computer start and yes the HDMI audio is working.
This is not a working solution because of the hangup.
After a lot of experimenting I found out that the computer seems to hang at the sh -c 'echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove' line.
If anyone has good idea because this could solve the problem for many T420 and T430 owners.

The instructions:

Create the file "/etc/systemd/system/fix-hdmi-audio.service" as per below:
[Unit]
Description=nVidia HDMI Audio Fixer
Before=systemd-logind.service display-manager.service
After=module-init-tools.service

[Service]
Type=oneshot
ExecStart=/root/fix-hdmi-audio.sh

[Install]
WantedBy=multi-user.target

Create the file "/root/fix-hdmi-audio.sh" as per below (Note, adjust the PCI device paths to the PCI ID of the PCIe Bride and NVidia card):
Note: I didnt change anything for the T420 and linux mint

#!/bin/sh
setpci -s 01:00.0 0x488.l=0x2000000:0x2000000
rmmod nvidia-uvm nvidia-drm nvidia-modeset nvidia
sh -c 'echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove'
sh -c 'echo 1 > /sys/bus/pci/devices/0000:00:01.0/rescan'
modprobe nvidia nvidia-modeset nvidia-drm nvidia-uvm

And then execute the following commands (as root) to make it do this at boot:

chmod +x /root/fix-hdmi-audio.sh
systemctl enable fix-hdmi-audio.service
T-400 i5 6 GB, T-410i i5 6 GB, T-410 i5 8 GB, T-420 i7 8 GB, T-420 i7 8 GB

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “ThinkPad T400/410/420 and T500/510/520 Series”

Who is online

Users browsing this forum: dr_st and 11 guests