You are not logged in.
I connected few smartphones to my laptop (HP Probook 650) via USB. Activated USB tethering and in any case my laptop didn't see the network (I'm using Network Manager). Tethering didn't work with any of them.
I tried to manually set up connection, so...
I switched off wireless using the hardware key on laptop.
I connected phone & activated tethering.
Then I type
$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
link/ether 48:0f:cf:23:0a:fd brd ff:ff:ff:ff:ff:ff
3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
link/ether 7c:5c:f8:a5:f8:f2 brd ff:ff:ff:ff:ff:ff
39: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 100
link/none
I think that enp0s25 should be my USB port.
Then I type 'ip link set enp0s25 up' and nothing happens.
State is still 'DOWN'.
When I don't have any phone plugged 'ip link' gives me same output as above. I think there's something with those USB ports going on.
$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 05c8:0369 Cheng Uei Precision Industry Co., Ltd (Foxlink)
Bus 003 Device 003: ID 8087:07dc Intel Corp.
Bus 003 Device 061: ID 04e8:6864 Samsung Electronics Co., Ltd GT-I9070 (network tethering, USB debugging enabled)
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Laptop recognizes phone with tethering on.
What can I do to investigate and solve this problem?
Last edited by niezniszczalny (2017-05-01 03:58:44)
Offline
enp0s25 is your ethernet interface.
Edit:
Try with tun0:
Last edited by Alber (2017-04-30 21:00:16)
Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.
Offline
Why is there a tun0 device and did you follow https://wiki.archlinux.org/index.php/Android_tethering an which approach did you take?
I'm using Network Manager
In order to effectively do anything with the network devices by hand, first ensure to stop the networkmanager service!
Offline
Can transfer files with the (Android) phone?
Have you MTP? packages like: libmtp, gvfs-mtp (for filemanagers that use gvfs)
Edit:
Tested and is not MTP.
tun0 looks like a tunnel for a VPN.
Testing my movil, when connecting by USB it shows up several options; for me works (translated): Network Anchor
Last edited by Alber (2017-04-30 21:31:44)
Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.
Offline
What is the output of ip link when the phone is not attached?
Anything interesting added to the journal when the phone is tethered?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
tun0 looks like a tunnel for a VPN
Yes. AziLink uses a VPN, that's why I asked ;-)
Offline
Alber wrote:tun0 looks like a tunnel for a VPN
Yes. AziLink uses a VPN, that's why I asked ;-)
I didn't know that.
Testing with my phone, if it was connected for charging or transfer with MTP, ip link doesn't show the interface.
Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.
Offline
What happens if, when the device is shown, you just run dhcpcd as root ?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Why is there a tun0 device and did you follow https://wiki.archlinux.org/index.php/Android_tethering an which approach did you take?
I'm using Network Manager
In order to effectively do anything with the network devices by hand, first ensure to stop the networkmanager service!
tun0 device is a VPN I'm using in laptop. When I'm not connected to the Internet tun0 disappears.
I've stopped NetworkManager.service but I still cannot tether via USB using ip link and dhcpcd. I just use pure USB tethering, without AziLink or EasyTether.
Can transfer files with the (Android) phone?
Have you MTP? packages like: libmtp, gvfs-mtp (for filemanagers that use gvfs)
I've got those packages. I can transfer files between phone & laptop.
What is the output of ip link when the phone is not attached?
ip link stays the same whenever I attach or detach phone. I think the issue might be that it doesn't recognize the phone/tethering connection.
Journalctl - 02:41:02 I attach plug phone, 02:41:09 I activate tethering.
journalctl -f
May 01 02:41:02 kujawLap kernel: usb 3-10: new high-speed USB device number 68 using xhci_hcd
May 01 02:41:03 kujawLap mtp-probe[17464]: checking bus 3, device 68: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10"
May 01 02:41:03 kujawLap mtp-probe[17464]: bus: 3, device: 68 was not an MTP device
May 01 02:41:09 kujawLap kernel: usb 3-10: USB disconnect, device number 68
May 01 02:41:10 kujawLap kernel: usb 3-10: new high-speed USB device number 69 using xhci_hcd
May 01 02:41:10 kujawLap mtp-probe[17475]: checking bus 3, device 69: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10"
May 01 02:41:10 kujawLap mtp-probe[17475]: bus: 3, device: 69 was not an MTP device
[edit]
I remember I was using USB tethering when I was installing Arch few months ago, it was super easy to set up but I don't know exactly how I did it.
Last edited by niezniszczalny (2017-05-01 00:47:17)
Offline
What happens if, when the device is shown, you just run dhcpcd as root ?
$ sudo dhcpcd
[sudo] password for kujaw:
sending commands to master dhcpcd process
Offline
Yeah, I'd expect that. The problem is that your phone is not being detected as a NIC. Have you ever used this phone in a USB tethered mode successfully with other hosts?
What gets added to the journal when you attach it the phone? When you enable tethering?
Edit: I missed most of your pot. Sorry.
Edit 2: Sanity check. What are the output of uname -a and of pacman -Q Linux (assuming you are using the stock kernel)
Last edited by ewaller (2017-05-01 01:40:12)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
uname -a
Linux kujawLap 4.10.8-1-ARCH #1 SMP PREEMPT Fri Mar 31 16:50:19 CEST 2017 x86_64 GNU/Linux
$ pacman -Q linux
linux 4.10.11-1
Offline
There's your problem. The kernel you are running is not the kernel that is installed. The running kernel cannot find the loadable modules it needs as they were replaced by those for the newer kernel.
Have you rebooted since the last time you updated your kernel?
If so, this can happen if you had updated your kernel when your boot partition was not mounted on /boot. Is the boot partition currently mounted on /boot?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
I've been only hibernating since like two weeks so that may be the cause why my kernel is not updated. I've just restarted laptop, kernel updated automatically. USB Tethering works out of the box, I've got new entry in ip link.
Is there any way to update kernel without restarting laptop? I just love having my session open with everything opened as I closed it before, it saves a lot of time and asspain, otherwise I have to reopen my work environment from scratch.
Offline
https://wiki.archlinux.org/index.php/Kexec and you don't want to do that. You want to store your session and reboot. Far less hassle.
Offline