Bug 361141 - No automatic connection with USB tethering from Android phone
Summary: No automatic connection with USB tethering from Android phone
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Networking in general (other bugs)
Version First Reported In: master
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Lukáš Tinkl
URL:
Keywords:
: 361080 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-03-29 13:21 UTC by flyos
Modified: 2024-12-23 18:23 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Settings that seem to work with android phone. (253.24 KB, image/png)
2016-04-05 07:55 UTC, dippa.sailo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description flyos 2016-03-29 13:21:21 UTC
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.
Comment 1 Jan Grulich 2016-04-04 10:36:40 UTC
*** Bug 361080 has been marked as a duplicate of this bug. ***
Comment 2 Jan Grulich 2016-04-04 10:46:32 UTC
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.
Comment 3 dippa.sailo 2016-04-05 01:09:14 UTC
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.
Comment 4 flyos 2016-04-05 07:42:25 UTC
@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?
Comment 5 dippa.sailo 2016-04-05 07:55:47 UTC
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.
Comment 6 dippa.sailo 2016-04-05 07:58:37 UTC
@flyos@mailoo.org So basically i suggest you leave the "restrict to device" -field completely empty.
Comment 7 Jan Grulich 2016-04-05 08:00:19 UTC
@flyos@mailoo.org Yes, report it there if you wish.
Comment 8 flyos 2016-04-05 08:02:24 UTC
Yes, leaving it empty did the job, thanks! FYI "All users may connect..." options doesn't seem to be required.
Comment 9 Ben Cooksley 2024-12-23 18:23:47 UTC
Bulk transfer as requested in T17796