← Back to team overview

ubuntu-phone team mailing list archive

Re: Tethering with Nexus 4 mako

 

On 11/02/2016 03:13 AM, Sam Bull wrote:
>> 2. USB tether: I change USB mode in TweakGeek from media to network;
>> connect to laptop using USB cable; my Ubuntu 16.04 recognizes
>> network
>> device, tries to establish network connection for few minutes and
>> eventually gives up.
>
> I believe this is supposed to work. But, I had the same problem as you
> when I tried it a few weeks ago.
>

Using the steps here - 
http://askubuntu.com/questions/607073/tetherings-not-running-in-ubuntu-touch-how-to-solve-it#757677 
- I was able to get USB tethering to work on mako rc-proposed channel - yay:

0. enable developer mode
1. make system image writable (I did it with UT Tweak Tool)
2. it will ask you to reboot - do it
3. sudo sed -i -e 's/rndis0/usb0/g' /usr/bin/tethering
4. go to UT Tweak Tool and set ADB mode to RNDIS (the device may reboot 
on its own; not sure if it's a crash or expected)
5. after reboot go to UT Tweak Tool again and set the ADB mode to RNDIS 
again; this time it shouldn't reboot
6. sudo tethering enable
7. connect to computer via USB cable: it should be detected as a network 
device and connection should succeed, resulting in a successful tether

Steps 0-3 only need to be done once; steps 4-6 after every reboot or 
changing ADB mode.

References