Questions tagged [usb-device]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

CDC-ACM device - pull data using linux

Warning.... I do not know much about embedded systems or much in this realm of programming/electronics... I bought a Dexcom CGM meter for blood glucose and then only after found out that my phone was ...
1
vote
1answer
18 views

Creating a bootable Arch USB key, not appearing bootable

Question Hello all! Please pardon the fact that this is probably a very simple problem with a simple answer. I'm having some difficulty booting into a USB key I bootstrapped and configured Arch onto....
0
votes
0answers
21 views

USB virtual serial device continuously disconnects/reconnects until data is read

I have a USB device that creates a virtual COM port on Raspbian Linux. The device is detected, and the device node (/dev/serial1) is created fine. If I then use screen the device steams data to me ...
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
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 ...
0
votes
0answers
20 views

Mismatch in USB devices listed by lsusb and sys filesystem

I work on a Ubuntu 18.04 LTS PC. I have a need to find out the USB device name that matches a particular USB device ID. When I run the lsusb command to list USB device interfaces, here is the output I ...
0
votes
0answers
9 views

Can the USB subsystem copy only one file at a time?

Xubuntu 18.04 up-to-date $ uname -a Linux haggis 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux In one session, I'm copying a lot of files from a LV with ...
1
vote
0answers
22 views

how to make sure SCSI is properly freed

I have external SSD that I want to safely remove (as part of automation): lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 89.3M 1 loop /snap/core/...
1
vote
1answer
30 views

Why does a single Yubico show as multiple devices, what's the difference between hid-generic and input?

When I plug in my Yubikey it shows as, usb 1-1: new full-speed USB device number 46 using xhci_hcd usb 1-1: New USB device found, idVendor=1050, idProduct=0407, bcdDevice= 5.12 usb 1-1: New USB ...
1
vote
1answer
37 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
30 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 ...
1
vote
1answer
56 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
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 ...
0
votes
0answers
37 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
165 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
199 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 ...
1
vote
1answer
115 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
96 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
31 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
264 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
97 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
791 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
75 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
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.. ...
0
votes
1answer
881 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
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 ...
1
vote
0answers
186 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
96 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
277 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
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=/...
0
votes
2answers
575 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
257 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
63 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
1k 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
490 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
995 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
2k 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
329 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
103 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
25 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
192 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
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 ...
0
votes
0answers
271 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
55 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
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 ...
2
votes
0answers
471 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
574 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
641 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
98 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 ...
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 ...