Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [usb-device]

The tag has no usage guidance.

1
vote
1answer
28 views

Wireless adapter is detected, but no options to create a wireless network

I have a wireless adapter (the Panda 300Mbps PAU05) plugged in to a USB port on my Linux Mint 19.1 Tessa desktop computer (my kernel version is 4.15.0-47-generic). Yesterday, I had it plugged in to ...
0
votes
0answers
20 views

How to ensure that I refer to the correct USB device? [duplicate]

I connected a USB-serial dongle to Ubuntu and I get it as /dev/ttyUSB0. I can also see it: $ lsusb Bus 001 Device 007: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port However, I may ...
0
votes
1answer
47 views

Phony USB hubs in Linux

Using Ubuntu 18.04, with my desktop motherboard I obtain: $ lsusb -t /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=...
13
votes
1answer
937 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 ...
0
votes
0answers
19 views

Create udev rules to run a shell script after insert an USB device

Actually, I have two lines of rules in my rules.d folder: SUBSYSTEM=="tty", ATTRS{idVendor}=="23b8", ATTRS{idProduct}=="0005", SYMLINK+="ttyACM-Daruma", MODE="0777" SUBSYSTEM=="tty", ATTRS{idVendor}==...
0
votes
0answers
70 views

How to resume the USB device after selective suspend configuration in Ubuntu host

I have Linux based development board on which DWC3 USB controller driver is present. I have implemented Link Power Management(L2 state) in the usb driver. Ubuntu is the host which on which my ...
0
votes
0answers
120 views

Using multiple wireless usb adapters (Huawei E3372) with the same mac address

If I connect two usb wireless adaptors (via a usb hub), only one of them gets assigned an ip address. I want each to be assigned a different ip address to be able to use both wireless adapters at the ...
0
votes
0answers
41 views

apparent permission problem with USB devices

I've got problems with adding USB devices in virtualbox when it's started as user. Starting it as root seems to work fine but when I start it as user, I get: $ VBoxManage list usbhost Host USB ...
0
votes
0answers
55 views

Simulating UVC webcam from v4l2loopback stream

Is there any way to emulate a USB camera device (UVC) from my v4l2loopback stream at /dev/video0, so my linux can recognize it as a real USB device?
0
votes
0answers
26 views

How to know in which device an USB printer is mapped?

For example when I plug an USB printer (say, Canon), Debian use /dev/usb/lp0. If I plug a second printer (say, HP), it is mapped to /dev/usb/lp1. If I plug them in reverse order, then Canon=lp1 and HP=...
0
votes
1answer
107 views

Bind serial device address to specific usb port

My OS: Raspbian Stretch Lite tl;dr; I have 2 identical USB device I want to make sure their address didn't get confused My thinking goes to bind the address to specific USB Port. I'm fine to "...
0
votes
0answers
49 views

Handling USB endpoint Zero Length Packet request in Linux Kernel USB driver

I have a test app which basically sends block of characters over USB by using NCM connection. When packet size is exact 512 bytes i see NCM is getting hung. By analyzing further i have found that it ...
0
votes
1answer
495 views

How to write data to a HID USB device?

I have to develop an application to communicate with a C8051F340-TB board from Silicon Labs through USB (just to be clear, I am using the P3 connector from fig. 4 of previous link, not the USB Debug ...
1
vote
1answer
49 views

How to use udevadm to fix unrecognized usb device

I am having trouble getting a midi controller (piano keyboard) to work on a raspberry pi. It works on my linux laptop, and another midi keyboard does work on the pi. It is listed under lsusb, so I ...
2
votes
1answer
68 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.. ...
0
votes
1answer
592 views

Udev Rules Not Running

I'm playing with Udev Rules on OpenSuse Leap, and I'm trying to run a simple and small script once a USB device is plugged into my system. However, my script which I added in my keyword "RUN+=" does ...
4
votes
1answer
4k 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 ...
0
votes
0answers
12 views

Disable a single USB port not all and enable it after 30 seconds after boot [duplicate]

I want to disable some USB Port,I mean that on every boot the system should not recognize if there is a device connected to the port. and after that there is a Bash script that run on every boot to ...
1
vote
0answers
129 views

Specify Function on USB Device

I am trying to make a composite USB device using ConfigFS on my Raspberry Pi Zero. I followed this guide to create a USB device: http://isticktoit.net/?p=1383 I have set up a standard USB device ...
1
vote
1answer
85 views

/lib/udev/findkeyboards missing

I'm trying to follow the answer here to set up some key swaps (Capslock as CTRL) on external keyboards (Microsoft Natural Ergonomic 4000). First step is this. Get the details of your USB keyboard. ...
4
votes
1answer
227 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 ...
2
votes
2answers
52 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=/...
0
votes
0answers
12 views

Creating a virtual device that claims to be an audio player

Quod Libet doesn’t seem to support copying music files to a directory or a USB stick. It seems that QL only supports copying files to a connected audio player. Is there a way to lead a GNU/Linux ...
0
votes
2answers
447 views

Can't wipe partition table after messing with dd

Context: Today I was trying to figure out how to install NixOS live usb with a writeable filesystem (dd-ing the iso results in read-only iso9660 fs). I split my usb into two partitions, one empty and ...
0
votes
1answer
219 views

Can't find /dev/disk/by-label/ANARCHYV100

Today I wanted to install Anarchy. But there's a problem: It says: ERROR: '/dev/disk/by-label/ANARCHYV100' device did not show up after 30 seconds... In /dev/disk/ there's no by-label directory. I ...
0
votes
0answers
53 views

system call to peek next byte from serial port

have a program that does an open() on /dev/ttyACM0. I know how to get bytes available using ioctl(), but I want to know what is the next available byte's value, without grabbing it. (A peek). Is by ...
0
votes
0answers
899 views

qemu usb mouse passthrough to windows 10 guest

Trying to passthrough a usb mouse with qemu 2.0 fails however I try it. What I have tried so far: evdev passthrough: -object input-linux,id=mouse,evdev=/dev/input/by-id/usb-...
2
votes
2answers
335 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 ...
0
votes
0answers
767 views

Docker running inside a USB Flash Drive

How can I run a Docker Image inside a USB Flash Drive to use in a Linux Computer without Docker installed? To avoid Installing in Each Linux Computer, I just need to use docker inside the USB Flash ...
1
vote
1answer
1k views

How to load my custom driver module on USB device connected?

I am writing a small simple driver module for a LED badge. I followed a couple of tutorials and references to do the job. All of them seem to imply that the module will be automatically loaded when ...
0
votes
1answer
260 views

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 ...
0
votes
2answers
71 views

HOWTO make Linux system look like USB Drive [closed]

I have a custom NAS built from a CentOS 6.5 baseline. I need the storage of this NAS to be accessible via its USB port. I cannot use the network connection. My cell phone can do this, there has to ...
-1
votes
1answer
24 views

USB Devices don't connect at the same time

This problem is a bit weird and complex. I recently installed linux on virtualbox.So when I run the system I can access websites from firefox using the linux system.At the same time I can access ...
0
votes
0answers
161 views

How do I mount USB CDROM Drive

I have an external usb cdrom drive but cannot find it in RHEL 7.4. The attached image is the results of my "ls /dev/". When I execute the "cat /var/log/dmesg | grep usb" I get the below results but ...
2
votes
1answer
160 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 ...
0
votes
0answers
241 views

connecting M-Audio USB midi keyboard

I have a M-Audio Keystation 61es USB keyboard, and I could not manage to make it work under Linux despite a reasonable amount of trying. My system is Linux Mint 17.2 (rafaela). My laptop is an Asus ...
1
vote
0answers
54 views

How to detect a (possibly corrupt) hard disk? [closed]

I have been stupid and impatient and removed the usb connection between my pc and an external hard disk when I shouldn't have and now ubuntu cannot detect the HD anymore. Before this, ubuntu always ...
3
votes
0answers
72 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 ...
1
vote
0answers
400 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 ...
0
votes
2answers
472 views

Why Udev is loading two kernel modules for a single USB device?

I've a RTL8153 based USB ethernet adapter, which uses the cdc_ether driver by default. I want to use the r8152 driver, which could be loaded by creating a custom udev rule, as present in the Realtek'...
0
votes
2answers
576 views

How to read extra keys from keyboard (Steelseries APEX 300)

I try to get the extra keys of the Steelseries APEX 300 working. The main keys and the standard special keys working correctly. At the end I want to write a small app (C/C++ Qt) to assign some ...
0
votes
0answers
79 views

Microsoft keyboard media keys and USB hub

I have a puzzle: 1) Debian 4.9.65 system 2) Microsoft Natural Keyboard 4000 3) Acer monitor working as USB hub When the keyboard is plugged to the monitor's USB hub, it mostly works, visible in lsusb ...
4
votes
1answer
194 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 ...
0
votes
1answer
2k views

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 ...
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 ...
0
votes
2answers
33 views

Need to access USB

Have ~300Gig of data on a usb . All data came from OSX and trying to move them onto a windows machine. I was able to see the files on my linux (ubuntu 16.04) machine , but after sticking the usb ...
2
votes
1answer
712 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 ...
0
votes
1answer
746 views

How to make g_printer (USB-gadget printer) work in Raspberian Pi

I'm trying to use gadget mode on a Raspberry Pi Zero W and the g_printer device to emulate a printer so I can capture data, process it, and send it to some APIs over wi-fi. I've set up the board using ...
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 ...
1
vote
2answers
105 views

Disconnected block device remains in /dev/, sync commands unkillable

I'm running Linux Mint 18/2 with 4.10.0-38-lowlatency kernel and KDE5 desktop. I'm testing lots of USB flash memory with a custom bash script and f3 and I had a strange situation today. One drive ...