Questions tagged [usb-device]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
25
votes
3answers
3k views

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 ...
13
votes
1answer
980 views

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 ...
10
votes
3answers
9k views

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 ...
8
votes
1answer
379 views

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 ...
7
votes
1answer
10k views

Safely remove usb from linux device [duplicate]

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 ...
6
votes
1answer
1k views

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 ...
5
votes
1answer
21k views

Kali Linux and RTL8812AU

Currently I am running into an issue where I can't seem to find a way to identify which WiFi adapter I want to use as my primary in Kali (v 2017.1) My laptop has a normal PCI WiFi card inside however ...
5
votes
5answers
5k views

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 ...
5
votes
2answers
779 views

Disable a USB device which has no driver

I have an HP Envy laptop on which I have installed Ubuntu 16.04. This model of laptop has 'Swipe Fingerprint Sensor' installed, lsusb reports: Bus 002 Device 004: ID 138a:0050 Validity Sensors, Inc. ...
5
votes
1answer
231 views

FreeBSD mixes names of similar USB to ethernet adapters

I have two Asix USB to ethernet adapters. The FreeBSD determines those as ue1 and ue2 adapters. The problem is, that on reboot, sometimes the interface ue1 become ue2 and viceversa, which pretty much ...
5
votes
0answers
1k views

Android device not recognized by lsusb anymore

I know this question has been asked before, however none of the threads were helpful. My android device is not being recognized anymore. When I connect my phone, it does not show the USB-Debugging ...
4
votes
2answers
131 views

Is it possible to transport any device over TCP?

Is it possible to transport whole device as in /dev entry over TCP? I'm talking about transporting eg. joystick over TCP or mouse/rs232 port/framebuffer dev, soundcard dev, disks etc. I'm mostly ...
4
votes
3answers
780 views

USB/HDMI adapter detected only as audio adapter

My employers want to try to send a video signal from a laptop in their storage room to a tv they have mounted in the dining room (restaurant). There is no HDMI output from this laptop (Toshiba ...
4
votes
1answer
35 views

How do I figure whether a drive is connected?

There is already a drive connected where the model name of the drive is fixed and we have to play the movie using the same drive but due to crank it gets mounted in different path frequently. Assume ...
4
votes
2answers
542 views

How can I make a udev rule using a “sibling” device's serial number (for USB devices with no unique serials)?

I have testing equipment that is made-up of the following: a USB Hub connected to the master PC, the hub is embedded in the test jig and is used so that we have only 1 USB cable running from the jig ...
4
votes
2answers
1k views

USB bus port number vs USB physical position

I have multiple devices connected to 3 USB ports. I can list them connected with some identification numbers through the following commands: # cd /sys/bus/usb/drivers/usb # ls 1-1 1-1.2 1-1.3 ...
4
votes
1answer
1k views

Using “LuxTrust Signing Stick” on Fedora (this is specific to Luxembourg)

This is a question specific to the country of Luxembourg: In Luxembourg, electronic signature infrastructure for official and banking business is provided by the company LuxTrust S.A.. They offer USB ...
4
votes
1answer
2k views

Can I masquerade a kernel uevent?

What I think happens From my understanding this is what happens when I connect a USB device to my computer: Kernel recognizes that I plugged in a USB device Kernel setups the very low-level things ...
4
votes
1answer
276 views

Prevent Linux kernel from setting USB device configuration

I'm trying to write a Linux driver for an existing USB device, based on captured USB communication. The device has multiple configurations. Unfortunately, it seems like the device doesn't follow the ...
4
votes
1answer
1k views

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 ...
4
votes
1answer
5k views

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 ...
4
votes
0answers
373 views

WLAN stick not working at boot time

I am failing to use a FRITZ!WLAN USB Stick N to connect my Raspberry Pi 1B to my wireless network. I see several problems, but am unable to locate and eliminate the root cause. The problem is ...
3
votes
2answers
2k views

How to read lsusb?

What is the vendor id and what is the product id in the output of lsusb? ➜ lsusb Bus 001 Device 018: ID 0781:5576 SanDisk Corp. Bus 001 Device 011: ID 0e0f:000b VMware, Inc. Bus 001 Device 001: ID ...
3
votes
0answers
87 views

How can I stop my USB hub from crashing my computer when it gets un-plugged?

Every time the power goes out or I blow a fuse, my system crashes. That would be normal for a desktop, but I have a laptop with a fully-working battery. In fact, I can unplug my laptop without issue ...
3
votes
0answers
252 views

USB 3.0 XCHI endpoints

I am having a very hard time finding USB-related debugging utilities or strategies for linux. I have a USB 3.0 device that fails when connected to an EspressoBin 3.0 port with a Not enough host ...
3
votes
1answer
595 views

Detect change in usb gadget state

Problem: How can I detect when the gadget is or is not connected to a host from the gadget itself? Background: The g_mass_storage Linux kernel module can be used to provide a mass storage device via ...
3
votes
0answers
3k views

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 ...
3
votes
1answer
712 views

wifi slowdown after time, how to troubleshoot

I do not currently have access to the computer with the issue, to I am sorry if this question is a bit vague. I only need to know how to troubleshoot and not the actual solution. Right, I have a USB ...
3
votes
1answer
741 views

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 ...
2
votes
1answer
806 views

How to write to a character special device?

Due to a broken udev setup on a machine from which I'm trying to rescue data (see this post of mine) I'm trying to write to a "character special" device corresponding to a USB flash drive, but am ...
2
votes
1answer
191 views

What Happens to /dev/bus/usb After 1001 Connections

/dev/bus/usb/*/* lists all the usb devices connected on Alpine Linux. For example a phone could be /dev/bus/usb/001/009. When that phone is reconnected it will be /dev/bus/usb/001/010, i.e. it ...
2
votes
3answers
745 views

Redragon Asura USB keyboard maps all Ctrl, Alt, Win keys to Shift_L

Status: This is fixed as of Kernel 4.18, see the accepted answer for details. I just started using a Redragon Asura USB Keyboard. The keyboard works at a basic level, but unfortunately all the Ctrl, ...
2
votes
1answer
4k views

VitualBox not detecting my USB devices with a linux host [duplicate]

Since I installed virtualbox 5.0.40 on a mint 18.2 (mate) box I have not been able to connect my usb devices to my virtual machines I have added guest additions and in my usb configurations I select ...
2
votes
1answer
45 views

Can I list my usb content without mounting it?

I am wondering if there was a way to list files on a device without mounting it (i.e la output )
2
votes
2answers
62 views

Using 'sync' when wiping a device with /dev/urandom

Is it necessary to synchronize cached writes to persistent storage with the sync command when wiping a USB, or any device, with /dev/urandom? This is a common practice, i.e. dd if=/dev/urandom of=/...
2
votes
1answer
1k views

Use USBIP for devices that are being removed and reconnected

I am using usbip and a raspberry pi to extend the range of a wireless keyboard to a computer that is just a tad too far away for the keyboard to work reliably on its own. Sometimes the USB receiver ...
2
votes
2answers
101 views

Determine and unload usb mouser diver

I've tried to write a simple usb mouse driver, now it's done and I want to test it. So I need to rmmod system's driver and insmod mine. The question is how to determine which exactly driver is ...
2
votes
1answer
484 views

Automount disk connected through USB when the PC is turned on

I have a PC with Linux Mint 18 XFCE with an external drive permanently connected through USB. I never disconnect it. When I turn on my PC, the disk is recognized but it is not mounted. I have to "...
2
votes
1answer
45 views

USB keyboard is ignoring key presses in some very frustrating pattern

I booted my laptop docked to a USB keyboard and external monitor. I've used it in this setup very recently and it was fine. Today, the USB keyboard is sometimes ignoring a key press. It happened a ...
2
votes
1answer
5k views

udev rules driving me nuts

I have this usb-serial device: root@imx6_armboard:/etc/udev/rules.d# udevadm info -a -p $(udevadm info -q path -n /dev/ttyUSB0) Udevadm info starts with the device specified by the devpath and then ...
2
votes
1answer
29 views

Merge two usb ports/two keyboards into one

I use two keypads (Koolertron AE-SMKD72 Type A), that I use as one split keyboard. But they are recognized as two separate keyboards, what causes some problems: I use an alternative keyboard layout ...
2
votes
1answer
117 views

How to find out two usb devices are on the same hub

I have a microcontroller board which has a USB hub to which several CP2108 USB to serial modules are connected and one PIC Microcontroller is connected. The USB hub is connected to Laptop USB Port.. ...
2
votes
2answers
488 views

Is there a way for a systemd service to find out a device path and restart if it changes?

I'm running a daemon that needs a path to a device when it starts. This device is connected to the USB bus but sometimes drops off the USB and reconnects again (either a loose connector or crashing ...
2
votes
1answer
429 views

USB devices not recognized when laptop runs on battery

When I use my laptop on battery, no USB device I connect (i.e. memory stick, external hard drive or mouse) is recognized on either USB 2.0 or USB 3.0 ports. I found two workarounds, which I, however, ...
2
votes
2answers
13k views

driver for Ralink USB RT2870 --> 148f:7601

I bought the Ralink USB Network Interface device listed below $lsusb Bus 004 Device 002: ID 148f:7601 Ralink Technology, Corp. And I've looked at many threads which all point to the same chipset ...
2
votes
4answers
5k views

How to check if unmount of USB device is completed?

I once unmounted an USB device using Ubuntu or Debian file manager, and when the icon next to the drive that shows it is mounted disappeared I immediately pulled the USB device out. Turns out that ...
2
votes
2answers
2k views

Disable laptop keyboard to only use USB keyboard

I need to disable my laptop's keyboard so that keyboard can only be used via USB. I am not using X, I am on the Linux console. The solution should be able to start as early in the boot process as ...
2
votes
1answer
28 views

/dev/ttyACM0 not added upon resuming CentOS VM

I'm running CentOS v.7.5.1804, Kernel 3.10.0-862.el7.x86_64. Host machine has a USB dongle mapped to /dev/ttyACM0 on the guest VM. Upon running systemctl suspend and resuming the VM, /dev/ttyACM0 ...
2
votes
0answers
470 views

Binding linux gadget to udc driver

I want to bind my g_hid gadget to the usb otg port on my board. I Know that using the configFS one can bind the gadget to a UDC driver just by pass the name of the otg port, as explained here but if ...
2
votes
1answer
541 views

How can I disable my internal webcam?

I recently bought a refurbished second hand Lenovo ThinkPad T530. It mostly works very well, but the internal webcam seems to have a problem, which sometimes causes the laptop not to boot on Linux (I'...