You are not logged in.
Pages: 1
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
2) Output of ip address show
3) Output of sudo cat /etc/tlp.conf
4) Output of dmesg | grep thunderbol
Thanks for your help !
Offline
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
Pages: 1