Questions tagged [usb-device]

282 questions
27
votes
3 answers

How to safely insert USB stick/device to Linux computer?

When inserting a USB stick or device to computer, there is always the risk that the device is malicious, will act as an HID and potentially do some damage on the computer. How can I prevent this problem? Is disabling HID on specific USB port…
Martin Heralecký
  • 850
  • 2
  • 8
  • 20
23
votes
3 answers

How can I set up a "USB proxy" for /dev/ttyUSB0 over the network?

I have a device under test (DUT) and I measure its power usage the using a Power Analyzer Datalogger using the data from /dev/ttyUSB0. The problem is that the DUT is now remotely from the workstation I used to gather data with, but in the same…
Eduard Florinescu
  • 11,153
  • 18
  • 57
  • 67
14
votes
2 answers

Consistent Linux device enumeration

In our Linux box we have USB -> serial device which was always identified as /dev/ttyACM0. So I've written an application and until yesterday, everything worked fine. But suddenly (yeah, during the remote presentation ...) the device stopped…
folibis
  • 379
  • 5
  • 14
14
votes
5 answers

Extract Bluetooth MAC Address: hcitool dev

I have to extract from the command hcitool dev only the MAC address of the bluetooth dongle. Output of hcitool dev is: Devices: hci0 xx:xx:xx:xx:xx:xx I write this output to a file and try to get the info with awk: hcitool dev >…
mario
  • 143
  • 1
  • 1
  • 4
10
votes
1 answer

How to logically eject/disconnect & reattach a usb device (dongle)?

We've bought a commercial application who just work only if their dongle usb is connected to the server. However sometimes the application can not recognize the dongle, so it doesn't work, but if someone eject the dongle physically from USB port and…
IAmAliYousefi
  • 247
  • 4
  • 11
9
votes
1 answer

Safely remove usb from linux device

I am using a USB with an embedded device running linux. The issue is that in some cases when I unmount the usb by giving the command umount /media/sda1 the unmount is successful but when I proceed to remove the usb I get an error saying unable to…
malik12
  • 191
  • 1
  • 1
  • 4
8
votes
4 answers

Does every USB device have a vendor id and product id?

I have a random speaker and I want to develop a driver for it so I can report statistics, battery, etc to the dev file system. However, I'm having a hard time finding the speaker's vendor and device id in order to properly associate it with the…
vmemmap
  • 253
  • 1
  • 9
8
votes
5 answers

systemd: failed to mount NFS share: mount.nfs: Network is unreachable until later in boot process

My laptop has a USB Ethernet adapter. Apparently the network doesn't come up until later in the boot process than normal. My NFS shares are not mounting at boot. However, as soon as the laptop is booted up, I can mount all shares with this…
MountainX
  • 17,168
  • 59
  • 155
  • 264
8
votes
0 answers

USB cdc_acm driver not assigning Data interface to any port

I have a USB CDC-ACM device emulating Serial over USB communication. The CDC Communications and Data interfaces are shown respectively on 2-1:1.0 (Comm) and 2-1:1.1 (Data) interface descriptors, and the cdc_acm driver is being loaded properly. My…
Pierre B.
  • 181
  • 1
  • 4
8
votes
2 answers

How to keep USB device (action cam) from going to sleep?

I've got an action cam (iON Air Pro Lite WiFi). It uses an SD card and can be connected to the PC via USB cable. It comes with only Windows and Mac support. However, once connected via USB and turned on, the cam does show up as a 32 GB Volume (size…
domsson
  • 211
  • 2
  • 9
7
votes
1 answer

How to reset bluetooth that stopped working on a Linux laptop? (after resuming from standby)

Context: Linux kernel 5.10.x (5.18.x also) Thinkpad X1c (gen7) laptop Problem: Sometimes, when I set my system to sleep (suspend to RAM) and then resume, the bluetooth adapter is not found anymore. If I reboot, it works again. When it works, here…
Totor
  • 19,302
  • 17
  • 75
  • 102
7
votes
2 answers

How to set xinput properties triggered by udev device connection?

I'm trying to set xinput properties for a USB input device whenever it is connected. I have seen solutions that require a script to run in the background and poll USB devices, but I would like to find a triggered approach rather than one involving…
Ian Mackinnon
  • 660
  • 1
  • 7
  • 14
7
votes
1 answer

why doesn't lsusb list a device

lsusb gives me the following - % lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 002: ID 046d:c31c Logitech, Inc. Keyboard K120 Bus 001 Device 004: ID 1ecb:02e2 Bus 001 Device 003: ID 046d:c05a Logitech, Inc.…
shirish
  • 11,967
  • 27
  • 107
  • 190
7
votes
1 answer

Can I update firmware using a virtual machine?

I've got a Native Instruments Komplete Audio 6 audio interface, which is a usb 2 compliant device. I'm having some problems with it, and it might be related to the firmware. Using usb-devices, I see that my device is on revision 0.25. On the…
Ernst
  • 71
  • 1
  • 2
6
votes
2 answers

Why does my USB modem produce multiple /dev/ttyUSB* files?

I have a single Sierra Wireless USB 308 modem we are using for sending SMS message to, and receiving SMS messages from, customers. When this single device is plugged in, the system creates multiple device files: /dev/ttyUSB0, /dev/ttyUSB1,…
Magnus
  • 101
  • 1
  • 6
1
2 3
18 19