In KDE Plasma 4, connecting an Android phone to a USB port and activating the USB tethering (on the phone side) resulted in the automatic creation of a "ethernet" connection in NextworkManager. In Plasma 5, the same steps lead to a change in Plasma NM icon (from red to white with a blue cable) but nothing more. No connection is created. A connection must be manually created and restricted to usb0. The problem is, since the phone seems to be creating a new MAC address everytime, these additional steps are required everytime. Reproducible: Always Steps to Reproduce: 1. Connect an Android phone (tested with Lollipop 5.1) to a USB port of the computer 2. Activate USB tethering on Android Actual Results: The icon in Plasma-nm is changing from red to "white with a blue cable" but no connection is created and the computer is still offline Expected Results: A connection using usb0 as a device should be automatically created (as in KDE Plasma 4) and Plasma-nm should automatically connect to it.
*** Bug 361080 has been marked as a duplicate of this bug. ***
I'm sorry, but plasma-nm is not responsible for creating connections automatically, all this magic is done by NetworkManager. The reason for changed icon is that we assume, once you connected your phone, that your ethernet cabel is plugged in (mobile phone behaves like a wired device) and you can create and activate a connection. Btw. if you don't restrict the newly created connection to current MAC addresso of your phone then you should be able to use it next time.
Thanks Jan, that helped. I removed the MAC address from "restrict to device ", and now when i plug in the android phone, the connection activates automatically.
@dippa.sailo@gmail.com How did you do it? I cannot restrict to usb0 without MAC address. When the phone is unplugged, typing usb0 in "restrict to device" results in a greyed out "OK" button in the config dialog and when the phone is plugged the MAC address is automatically added. @Jan Grulich Where shall I report the bug upstream? In Gnome Bugzilla > NetworkManager?
Created attachment 98249 [details] Settings that seem to work with android phone. I put these settings in the network manager and the wired connection automatically comes on when i turn on tethering on my android phone.
@flyos@mailoo.org So basically i suggest you leave the "restrict to device" -field completely empty.
@flyos@mailoo.org Yes, report it there if you wish.
Yes, leaving it empty did the job, thanks! FYI "All users may connect..." options doesn't seem to be required.
Bulk transfer as requested in T17796