cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HonzaMolnar
Serial Port
Posts: 15
Registered: ‎05-11-2017
Location: CZ
Views: 26,946
Message 1 of 22

USB-C dock & Linux

What is the status of ThinkPad USB-C dock on Linux, please?

Do DisplayPorts, all USB-3 + USB-C, Ethernet, audio... work?

wookasz
Paper Tape
Posts: 2
Registered: ‎06-29-2017
Location: PL
Views: 26,138
Message 2 of 22

Re: USB-C dock & Linux

On Arch Linux installation it works pretty out of the box.

Only realtek ethernet port needed additional module.

 

have a look on this:

https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_5)#Lenovo_ThinkPad_USB-C_Dock

HonzaMolnar
Serial Port
Posts: 15
Registered: ‎05-11-2017
Location: CZ
Views: 25,783
Message 3 of 22

Re: USB-C dock & Linux

@wookasz, unfortunately this is not a solution any more. The linked dock was renamed from USB-C to Thunderbolt 3 (another model).

 

Today I received USB-C dock. USBs work out of the box. Charging works. Audio works (output tested only). To use ethernet I had to compile Realtek driver. Displayports work only rarely – further investigation is needed. (Experienced on Kubuntu 17.04.)

dbahn25
Paper Tape
Posts: 3
Registered: ‎08-23-2017
Location: DE
Views: 25,388
Message 4 of 22

Re: USB-C dock & Linux

how exactly did you compile the new driver? I'm a noob to that but would really like to get my usb-c dock running Smiley Happy

 

fyi, on my dock with the thinkpad 13, both displayports work properly out of the box.

HonzaMolnar
Serial Port
Posts: 15
Registered: ‎05-11-2017
Location: CZ
Views: 25,370
Message 5 of 22

Re: USB-C dock & Linux

Hi @dbahn25, I do not remember whether everything worked as usual, it should be st like:

 

cd <your path to extracted directory – .../r8152-2.08.0/>
make
sudo make install

If you use Secure Boot, sign the module (apply e.g. this VirtualBox how-to on r8152 – i.e. replace vboxdrv by r8152).

 

 

Could you send me the output of uname -rv command, please? (It contains kernel info – maybe you use a newer one which might explain the displayport issue. Mine is 4.10.0-32-generic #36-Ubuntu SMP Tue Aug 8 12:10:06 UTC 2017.)

dbahn25
Paper Tape
Posts: 3
Registered: ‎08-23-2017
Location: DE
Views: 25,344
Message 6 of 22

Re: USB-C dock & Linux

thanks a lot, it works now!

for anyone else having problems with this: The downloaded bzip2 file from realtek didn't extract correctly for me, I had to rename it to end in .tar.bz2 and then use tar -xvf <file> to extract it. And with secure boot, make install will *fail* because the correct key is missing, but I guess that just means the secure boot keys, which you are about to add in the next step (see the virtualbox how-to)

 

uname -rv gives

4.10.0-32-generic #36~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017

edit: also, I'm on the Unity ubuntu flavor. Maybe your issue is with KDE?

Myxaxa
What's DOS?
Posts: 3
Registered: ‎12-07-2017
Location: US
Views: 22,990
Message 7 of 22

Re: USB-C dock & Linux

PERFECTLY worked for me appreciate your answer

Myxaxa
What's DOS?
Posts: 3
Registered: ‎12-07-2017
Location: US
Views: 22,835
Message 8 of 22

Re: USB-C dock & Linux

with all regret I admit this stopped working after kernel updates

uname -rv
4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017

trying to reinstall drivers gives errors
sudo make install
make -C /lib/modules/4.10.0-42-generic/build SUBDIRS=/home/user/Downloads/r8152-2.09.0 INSTALL_MOD_DIR=kernel/drivers/net/usb modules_install
make[1]: Entering directory '/usr/src/linux-headers-4.10.0-42-generic'
INSTALL /home/user/Downloads/r8152-2.09.0/r8152.ko
At main.c:158:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
DEPMOD 4.10.0-42-generic
make[1]: Leaving directory '/usr/src/linux-headers-4.10.0-42-generic'
modprobe r8152
modprobe: ERROR: could not insert 'r8152': Exec format error
Makefile:35: recipe for target 'install' failed
make: *** [install] Error 1

HonzaMolnar
Serial Port
Posts: 15
Registered: ‎05-11-2017
Location: CZ
Views: 22,481
Message 9 of 22

Re: USB-C dock & Linux

Hi @Myxaxa, it seems you are using SecureBoot and need to sign the modules. Have a look on the VirtualBox how-to. Alternatively upgrade to a newer version of *Ubuntu, the driver is already included in its kernel by default.

Kyle_Benzle
Blue Screen Again
Posts: 3
Registered: ‎02-16-2018
Location: US
Views: 20,531
Message 10 of 22

Re: USB-C dock & Linux

I am on brandnew ThinkPad x380 with brand new USB-C dock and fresh Ubuntu 17.1 install. 

 

USB-C dock display port DOES NOT WORK. Only charging/USB works. Oddly, if I plug in my Dell (D1000, HDMI to USB) dock, and plug the USB (3.0) into the dock, then it all works!

 

I am returning the Thinkpad along with the dock and will watch for this to get resolved. 

Check out current deals!


Shop current deals

Top Kudoed Authors