SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to connect an unlocked Pixel 3 running lineageos 18.1 to my Slackware machine via usb/adb. The device previously connected (prior to upgrading to slackware 15.0), usb debugging is enabled, but I can't get the device to show up in any form. I have tried troubleshooting via adb, lsusb, and dmesg - the computer simply doesn't seem to notice the device being plugged in.
I have also tried multiple new cables (since faulty cables seem to be the #1 cause), I have tried usb-A/B vs usb-c cables, and since I also saw that sometimes usb 3.0 seems to be an issue I purchased a new usb-2 hub and tried connecting via that, but nothing. I have tried disabling xhci via kernel parameters at boot but then my keyboard stops working, so that's a non-starter also.
I realize this is unlikely to be slackware-specific, but if anyone has any thoughts/experiences, your help would be greatly appreciated! :-)
Thanks so much petelq! I have android-tools v31 installed, and I tried adding in the relevant udev rules also, with no luck. I think the issue is deeper because there is no dmesg output on connecting the device, hence there is nothing to even trigger udev. Thank you though - I really appreciate your suggestions!
Since you made a reference to a USB hub, have you been trying to connect your Pixel through a hub? If so try plugging your cable directly into a USB port on your PC instead.
Hi svim, and thank you for your idea! I indeed first tried plugging it directly into the USB ports, both A/B and C. The purchase of the usb-2.0 hub was an attempt to force a connection over usb-2.0, based on some posts that seemed to suggest this might fix the problem. Alas, none of the options work. Thank you though! :-)
Thanks so much, rokytnji. I have tried a number of USB A/B and C cables, including a number of high-quality brand-new ones, but no luck. Thank you for the suggestion, though. I've now also tried using other distros and other machines, and the same problem persists, so it's clearly not just Slackware. Thanks anyway! :-)
Thinking back there might be a USB option in the Android OS? Sorry I can't be more helpful, try toggling the different modes that the phone can emulate. I think there is mass storage, adb mode and some others... I have had problems in the past too, trying to remember what I did. Could be your phone is trying to be the host to a mass storage (ie plugging additional storage into the phone)
Last edited by ricky_cardo; 06-05-2022 at 04:25 PM.
Reason: spelling/grammer
I have tried those things (all available USB options as well as enabling developer options). Specifically, I have tried:
- Two different computers
- Two different linux distros (Slackware, Ubuntu)
- Many, many (new, high-quality) USB cables, both USB-C and USB-A/B
- Developer mode enabled
- USB debugging enabled, authorizations revoked and re-enabled
- Setting default USB configuration to File Transfer/USB tethering/MIDI/PTP/No data transfer
- Airplane mode
- Connecting over a USB-2.0 hub
- Booting the device to recovery mode, enabling adb
Regardless, I have the same outcome. The phone charges but no other recognition of being plugged in is made. That is, the computer cannot see the phone in 'adb devices', 'lsusb' or 'dmesg'. The phone doesn't see the computer either, in that it doesn't bring up the USB notification.
At this point, either the USB connector is faulty or the software is buggy.
You can reboot the phone in recovery mode and see if enabling adb sideload makes the phone visible via adb to the pc.
If you are brave enough, you can boot a custom recovery (TWRP or similar) and use MTP/adb from there.
If that doesn't work, it's probably a physical problem.
EDIT: sorry, i saw you already tried recovery mode, i guess LOS recovery.
EDIT2: you could use adb wifi, but iirc you first need to authorize the pc using adb via cable.
I wouldn't spend too much time messing with different cables or your anything with your Pixel 3. Given that you things were apparently working out OK before and the problem only started occurring when you upgraded to Slack 15, that's an indicator you need to focus on something that changed with the newer OS. It just isn't likely that upgrading to 15 would cause a USB cable to fail nor would it reset any options in your phone.
Are you having any issues with any other external devices connecting to your PC via USB?
This is a long-shot but did you alter anything in your PC's BIOS/UEFI to do the upgrade?
It's odd that there's not even a failure notation in dmesg.
Have you checked the USB port of the Pixel 3? On my older Pixel 2 XL (that I have since replaced with the P5 and now P6), I would get pocket lint in the port and after enough build-up, the plug wouldn't seat all the way and charging/data connections would be intermittent. I would clear it with a needle. Some of it would be quite compacted.
[123574.101304] usb 1-2: new high-speed USB device number 4 using xhci_hcd
[123574.235042] usb 1-2: New USB device found, idVendor=18d1, idProduct=4ee1, bcdDevice= 4.40
[123574.235047] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[123574.235048] usb 1-2: Product: Pixel 4 XL
[123574.235049] usb 1-2: Manufacturer: Google
[123574.235050] usb 1-2: SerialNumber: xxxxxxxxxxx
So I definitely see when connected in dmesg I would T/S that first.
( I have developer mode enabled but did not change any usb options yet)
Last edited by ricky_cardo; 06-08-2022 at 12:45 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.