LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-09-2025, 04:41 PM   #1
exerceo
Member
 
Registered: Oct 2022
Posts: 161

Rep: Reputation: 31
Question How come a USB device is sometimes not recognized without re-plugging the USB-OTG adapter?


[Log in to get rid of this advertisement]
A newly inserted USB device is sometimes not recognized without re-plugging USB-OTG adapter.

When unplugging a USB stick from the USB-OTG adapter and inserting a new one, the new USB stick is not detected.

When unplugging the USB-OTG adapter from the laptop and inserting it again, the new USB stick is recognized.

Is this normal? Has someone else had this experience? Has anyone had a similar experience? And how to detect the new device without physically unplugging the USB-OTG adapter?

For clarity:
Code:
USB flash drive
|   USB-A - plugging in new device = new device not detected.
|   |             USB-OTG - re-plugging = new device detected.
|   |             |  
|   |             | __________
↓   ↓             ↓ | Laptop  |
==- >|||)---------=-|_________|
                   ↑
                   USB-C ending
dmesg:
Code:
[2502221.569255] usb 4-1: USB disconnect, device number 2
[2502221.612368] sd 5:0:0:0: [sdd] Synchronizing SCSI cache
[2502221.612474] sd 5:0:0:0: [sdd] Synchronize Cache(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
No new dmesg appear when plugging the new device.
 
Old 10-09-2025, 08:38 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 20,275
Blog Entries: 28

Rep: Reputation: 6470Reputation: 6470Reputation: 6470Reputation: 6470Reputation: 6470Reputation: 6470Reputation: 6470Reputation: 6470Reputation: 6470Reputation: 6470Reputation: 6470
I have encountered this occasionally. I've always thought the device just didn't make a good connection the first time.
 
Old 10-10-2025, 09:04 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 14,100
Blog Entries: 48

Rep: Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304
Member Response

Hi,
Apparently your On-The-Go adapter had lost it's connection/system control and when you removed device then it was identified again thus the USB plugged in was identified. I would think your OTG device could be at fault or the USB port connections are not stable. But when re-insertion a new connection was established by the system.
 
Old 11-10-2025, 08:20 AM   #4
MargueriteBScarlett
LQ Newbie
 
Registered: Nov 2025
Posts: 1

Rep: Reputation: 0
Thank you for sharing

Last edited by Timothy Miller; 11-15-2025 at 04:43 PM. Reason: Removing spam.
 
Old 11-10-2025, 09:18 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 28,111

Rep: Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323
Quote:
Originally Posted by MargueriteBScarlett View Post
Thank you for sharing
What helped you most in this thread???

::EDIT::
Spammer reported.

Last edited by TB0ne; 11-15-2025 at 03:33 PM.
 
Old 11-10-2025, 09:48 AM   #6
ArthurSeta
LQ Newbie
 
Registered: Oct 2025
Posts: 1

Rep: Reputation: 0
It happens when the OTG adapter doesn’t fully renegotiate power and data roles after the first disconnect, so the host never sees a new device event. Re-initializing the adapter forces a new handshake; replacing the OTG cable or using a powered hub usually fixes the detection issue.
 
Old 11-10-2025, 10:19 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 28,111

Rep: Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323
Quote:
Originally Posted by ArthurSeta View Post
It happens when the OTG adapter doesn’t fully renegotiate power and data roles after the first disconnect, so the host never sees a new device event. Re-initializing the adapter forces a new handshake; replacing the OTG cable or using a powered hub usually fixes the detection issue.
Right, that's what the OP was told and did. Did you read the thread?
 
Old 11-15-2025, 03:33 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 28,111

Rep: Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323Reputation: 8323
Spammer reported
 
  


Reply

Tags
otg, usb-c



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] USB 3.0 Dual-Role OTG device on non-HNP port unable to enumerate USB device gildbg Slackware 4 03-18-2020 03:05 AM
need support to configure Dragonboard (qualcom 410E) as a USB mass storage device to be accessed from the connected linux host through OTG bani_j Linux - Embedded & Single-board computer 2 03-04-2017 09:00 AM
Debian chroot OTG WiFi adapter yordi.derijcke Linux - Mobile 1 03-26-2015 04:56 AM
USB peripheral device not found on USB OTG port with Linux 3.0.0 kernel lmorda Linux - Embedded & Single-board computer 1 04-28-2012 12:56 PM
USB-OTG device mode - Unable to load g_file_storage.ko Padmasri Linux - Software 2 08-19-2010 01:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration