USB Tethering - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139) +---- Thread: USB Tethering (/showthread.php?tid=10723) Pages:
1
2
|
RE: USB Tethering - devrtz - 08-01-2020 I just checked and I could only get the interface up on the braveheart, not the CE :( I wanted to try reloading the kernel modules. Code: sudo modprobe -r g_multi this works on the BH. but hangs on unloading the module on CE :( RE: USB Tethering - scott_VYuCAbn3k1NFK - 08-01-2020 Hotspot works well for me - both ssh and data (which is excellent!). USB tethering worked for me once, about a month ago, but my CE pinephone hasn't been appearing as a USB device on my laptop with any of the images that I have used recently. RE: USB Tethering - dukla2000 - 08-02-2020 (07-31-2020, 08:20 PM)HLing Wrote: ... I am still unable to use USB tethering, ... I remain absolutely puzzled why for me it is "easy" and yet others are struggling, so to test my sanity I have just
The PinePhone has Code: $ ip a The laptop has Code: $dmesg Code: $ ip a and tethering of my phone data works just fine. @devrtz - you shouldn't need to assign an ip address to your PC - my phone (after above steps) has dnsmasq-base installed and so is a DNS. But bizarre that your BraceHeart & CE are apparently behaving differently. For the WiFi hotspot I only need pinephone-devtools installed on a fresh install. (Yup the phosh selections/options can be a pain, switching of fWiFi enables Flight mode, switching off Flight mode enables BlueTooth etc, just cycle round the same screens and you can eventually get it to do what you want!) RE: USB Tethering - Nato - 08-02-2020 Hello, folks, I have this exact problem, and after blowing a weekend on it, I think it's a problem with the 5.7 kernel. The problem is that the Pinephone would not show up at all in dmesg, nor in the lsusb listings, of the host PC, when it's plugged into USB. The usb0 interface does show up on the phone side, can be configured with an ip address, and the interface can be set to "up", but "ip addr" and ifconfig will still show it as either "state DOWN" or "NO-CARRIER" no matter what. My Pine Phone is a ubports CE - hardware rev 1.2 - shipped with Ubuntu Touch My host PC is an amd64 system running Ubuntu Bionic. There are two ways I //have// gotten this to work with a 5.7 kernel: * The jumpdrive image works perfectly, as advertised. This uses a configfs implementation, which is completely different than the "g_multi" module most distros seem to be using. * booting the Ubuntu Touch installed on emmc using volume up + power, which boots the phone into a rescue mode. it looks an awful lot like the Jump drive distro, so it's probably a modification of that. What hasn't worked: * postmarketos - with phosh, plasma mobile, fbkeyboard, and shelli interfaces (I was distro-hopping, since I just got my phone last week). * Mobian image from July 16, using the scripts from the pinephone-devtools package * Manjaro Alpha1 image from early July * Attempting to backport the jumpdrive's USB configfs implementation into a Mobian system. It would not produce errors, and would create the usb0 interface, but it would still always be "state DOWN". I was able to blacklist the g_multi kernel module, but that did not help. The Ubuntu touch distro that shipped with the phone happens to have a 5.6 kernel, but frankly, that distro is so alien to me that I have given even getting an openssh server working on it. Since a few of you folks thought this used to work, I backtracked and pulled down the Mobian image from Jun 11th. It had the 5.6 kernel. The usb networking worked perfectly! I'm pleased to know that this is definitely not a hardware issue. I'll leave my results here, and hope more adept kernel hackers than I can make use of it. RE: USB Tethering - Hiraghm - 08-02-2020 Out of curiosity, I did the ip a... usb0 showed up, <NO-CARRIER, BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default glen 1000 it's connected to my Mint desktop, so I figured I'd give it a shot ssh 10.0.0.2... nothing. The terminal just... does nothing til I hit ctrl-C. I tried pinging 10.0.0.2, and I got ping back with a 13-19 ms ping time. I did dmesg on my desktop (why not?) and amid the bazillion "irq 4: Affinity broken due to vector space exhaustion, I got 1 message that said: usb 2-1: reset high-speed USB device number 45 using ehci-pci. RE: USB Tethering - scott_VYuCAbn3k1NFK - 08-07-2020 (07-31-2020, 08:20 PM)dukla2000 Wrote: I remain absolutely puzzled why for me it is "easy" and yet others are struggling I took the comment from @devrtz to indicate that maybe it works with the latest kernel for BH but not for CE? I submitted an issue for Mobian (https://gitlab.com/mobian1/issues/-/issues/57), but from @Nato's comments looks like it also affects other distributions. RE: USB Tethering - HLing - 08-28-2020 I still have not been able to get my laptop online with USB tethering, even though the web surfing on the pine phone is working flawlessly now. I was reminded of the time when I was trouble shooting the USB tethering of Nokia N9 to the laptop. After trying to create a wired Mobile Broadband access point and failing. I read on the Meego forum to enable developer mode, then with the three option that popped up, select "sync and connect", instead of SDK mode. I tried it. and it connected without any more prompting. No pre-configuring of the Network connections were needed. Might there be a similar way with the Pine phone that I'm not seeing? RE: USB Tethering - RTP - 09-07-2020 (08-28-2020, 12:29 PM)HLing Wrote: I still have not been able to get my laptop online with USB tethering, even though the web surfing on the pine phone is working flawlessly now. I was reminded of the time when I was trouble shooting the USB tethering of Nokia N9 to the laptop. After trying to create a wired Mobile Broadband access point and failing. I read on the Meego forum to enable developer mode, then with the three option that popped up, select "sync and connect", instead of SDK mode. I tried it. and it connected without any more prompting. No pre-configuring of the Network connections were needed. Might there be a similar way with the Pine phone that I'm not seeing? Could this relate to the attempts to fix the battery draining by the anx7688 chip? Apparently in the Braveheart the chip/usb c tethering seems reported to work no problem. However the chip 'hogged the battery' (according to the link below). And it would make sense to disable (I have noticed anx7688 errors in dmesg). Could there a tradeoff to prevent battery drain from happening when phone is off? Just a theory. If this were the case it would make sens for usb c tethering to work on Braveheart (with battery drain relation) and not to work to Community Edition UT. https://xnux.eu/devices/feature/anx7688.html has some info on the hardware issue. RE: USB Tethering - SJSEng - 10-22-2020 (08-02-2020, 03:23 PM)dukla2000 Wrote:[*](07-31-2020, 08:20 PM)HLing Wrote: ... I am still unable to use USB tethering, ... i get package 'pinephone-devtools' has no installation candidate RE: USB Tethering - dukla2000 - 10-22-2020 (10-22-2020, 06:34 AM)SJSEng Wrote: ... If you are running a recent Mobian image (say since 1 October) you don't need to do anything any more: tethering another computer to the PinePhone internet via the PinePhone USB works "out of the box". |