Universal Serial Bus (USB) establishes a connection between devices and a host computer.
Questions tagged [usb]
2011 questions
101
votes
7 answers
command to determine ports of a device (like /dev/ttyUSB0)
I have a question regarding the ports in Linux. If I connect my device via USB and want to check its port I can't do it using the command lsusb, which only specifies bus number and device number on this bus:
[ziga@Ziga-PC ~]$ lsusb
Bus 003 Device…
71GA
- 1,056
- 5
- 18
- 38
73
votes
9 answers
How to bind USB device under a static name?
I have an Arduino which sometimes gets bound to /dev/ttyUSB0 and other times to /dev/ttyUSB1, making my script fail.
I do not want to enumerate all the possibilities of where my device could be, but I'd rather have it be bound somewhere static, e.g.…
k0pernikus
- 14,853
- 21
- 58
- 79
68
votes
9 answers
How to reconnect a logically disconnected USB device?
It is possible for a USB storage device to become logically disconnected: the device is still plugged in, but is invisible from the operating system (e.g. it's not listed under /proc/bus/usb). Maybe this can happen to other kinds of USB or other…
Gilles 'SO- stop being evil'
- 807,993
- 194
- 1,674
- 2,175
54
votes
3 answers
How to disable USB autosuspend on kernel 3.7.10 or above?
I've updated my HTPC from kernel 3.7.10 to 3.10.7 and it seems CONFIG_USB_SUSPEND is now gone from the kernel options and included in PM.
The main problem I'm facing is that I have an external HDD and when suspending and waking up the HTPC, it…
Peter
- 541
- 1
- 5
- 6
54
votes
18 answers
How do I transfer files between Android and Linux over USB?
I want to copy some movie files from Linux to my HTC One SV Android phone (not rooted).
In Windows, my phone mount its internal and SD-card volumes automatically when I plug it in, allowing me to transfer files.
In Linux Mint 13 Mate, I always get…
lamwaiman1988
- 1,996
- 6
- 23
- 32
54
votes
1 answer
How to read/write to tty* device?
I have a device that sends information over USB to my computer. Arch Linux sets up this device by creating a file named ttyUSB0 in /dev/. I have been using GTKterm to receive this incoming information and display it in an emulated terminal…
sherrellbc
- 2,461
- 7
- 28
- 41
49
votes
2 answers
How to run custom scripts upon USB device plug-in?
What is the state-of-the-art method for automatically executing custom scripts upon USB device plug-in under current Linux distributions like Debian/CentOS/Fedora?
For example if you want to automatically mount/copy some files/umount a USB mass…
maxschlepzig
- 56,316
- 50
- 205
- 279
49
votes
3 answers
Gnome, nautilus copy files to USB stops at 100% or near
I had similar issues before but i don't remember how i solved it.
When i try to copy something to USB stick, with FAT, it stops near the end, sometimes at 100%. And of course, when i transfer the memory stick somewhere else, it doesn't contain…
user27938
49
votes
2 answers
Turning off power to usb port. Or turn off power to entire usb subsystem
I have a usb lamp which I specifically bought in order to turn it off programmatically at a certain time, thus I need to remove the power to its usb port.
I believe I have a usb-hub at usb6. The lamp is connected to one of the ports in this…
user84207
- 871
- 2
- 14
- 19
49
votes
3 answers
How to automatically mount an USB device on plugin-time on an already running system?
I know how to use /etc/fstab to automatically mount devices on boot or when doing sudo mount -a, which works perfectly fine. For example, here is my current line for my device
UUID=B864-497A /media/usbstick vfat…
Foo Bar
- 3,462
- 7
- 21
- 28
47
votes
5 answers
Get power consumption of a USB device
Is there a way to check how much power a USB device requires?
Why do I need this?
I need to connect an LTE USB stick to my Raspberry Pi, and don't know how much power it needs. We got it quite easily on Windows, but haven't found a way to do it on…
TheMeaningfulEngineer
- 5,735
- 15
- 64
- 113
42
votes
6 answers
Make a computer act as a virtual USB device for other equipments
Some applications simulate a virtual USB or CD Rom drive as if a USB drive is attached to the computer.
Is there any configuration or application that provides a virtual USB drive, not for the the operating system itself, but for other equipments…
Minimus Heximus
- 2,377
- 6
- 24
- 33
41
votes
5 answers
How can I enable access to USB devices within VirtualBox guests?
I cannot see any USB devices within my VirtualBox guest VMs from my host. How do I enable access for my guest VMs?
slm
- 363,520
- 117
- 767
- 871
39
votes
8 answers
Why is USB not working in Linux when it works in UEFI/BIOS?
For background I have just built a new machine with modern hardware including:
AMD FX-8350
Gigabyte GA-990FXA-UD3 motherboard
16GB RAM
NVidia GTX 650 Ti
Kingston SSD
Given that, I tried to install various versions of Linux on the SSD and was met…
BrionS
- 841
- 1
- 7
- 10
34
votes
1 answer
How to assign USB driver to device
This question is two-fold:
First, how do you manually detach a driver from a USB device and attach a different one? For example, I have a device that when connected automatically uses the usb-storage driver.
usbview output
Vendor Id: xxxx
Product…
linsek
- 450
- 1
- 6
- 12