You are not logged in.

#1 2020-04-22 09:49:03

fistrosan
Member
Registered: 2020-04-01
Posts: 171

How to use only ethernet while docking ?

Hello fellow archers,

I am trying to set up my laptop in such a way that when it is docked (via thunderbolt) it only connects via ethernet. As it is right now it starts both services (ethernet and wifi) and I get two IP addresses. Is there a way to start only one of them at startup when the system detects that it is docked ? I have tried changing a couple of options inside my /etc/tlp.conf (namely, DEVICES_TO_DISABLE_ON_DOCK="wifi wwan") but I still get two IP addresses. I would like this to be done automatically at start up. I can of course always do it manually, but that is not the point. Here is a bit of info that might be useful.

1) Output of systemd-analyze blame

http://ix.io/2j3I

2) Output of ip address show

http://ix.io/2j3J

3) Output of sudo cat /etc/tlp.conf

http://ix.io/2j3K

4) Output of dmesg | grep thunderbol

http://ix.io/2j3L

Thanks for your help !

Offline

#2 2020-04-22 11:00:34

fistrosan
Member
Registered: 2020-04-01
Posts: 171

Re: How to use only ethernet while docking ?

Doing a bit of research on my own I have come up with two possible paths to follow. 1) create my own systemd service that does not dhcpcd@wlan if it detects that is docked or 2) add different scripts in /etc/dockd/undocked.hook and docked.hook. I think # 2 is safer because it runs as non-root. However this option will not speed up my startup because it will run after systemd ? Any suggestions ?

Offline

Board footer

Powered by FluxBB