You are not logged in.

#1 2014-07-02 09:03:15

Janusz11
Member
Registered: 2007-05-16
Posts: 87

NetworkManager - switching between wired and wireless

Hello!

I’ve set up a new laptop with Arch and now have a question concerning NetworkManager. Is it possible in NM to switch between wired and wireless connections like it is with Connman (https://wiki.archlinux.org/index.php/Co … d_wireless)?

So far it appears that NM only disables the wired connection when wireless is used but keeps the wireless alive when switching to wired.

I have already looked for a corresponding configuration but couldn’t find anything that helps.

Thanks in advance.

Offline

#2 2014-08-05 23:03:57

fungle
Member
Registered: 2014-05-01
Posts: 81

Re: NetworkManager - switching between wired and wireless

Easy Mode:
You can install the tlp-rdw package and edit the /etc/default/tlp configuration file which has an option that does that.

Hard Mode:
If you don't want to install a package and its dependencies, you can write your own script and put it in /etc/NetworkManager/dispatcher.d and have the NetworkManager dispatcher hook run the script (which is actually what tlp-rdw does but you don't have to install the tlp package as a dependency)

Note: tlp is a power manager and if you have any other power managers installed it might conflict with them so be wary of that.
Here is the wiki page on tlp https://wiki.archlinux.org/index.php/Tlp

Last edited by fungle (2014-08-05 23:05:00)

Offline

Board footer

Powered by FluxBB