Questions tagged [usb-device]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
2k views

No UDC shows up for USB mass storage gadget with configfs

I'm currently trying to make USB mass storage gadget work on a raspberry pi zero W. My main objective is to implement both mass_storage and mtp responder functions into one gadget but it'll come ...
0
votes
2answers
373 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
0answers
1k 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 ...
0
votes
1answer
876 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
votes
2answers
40 views

Find device's MAC address connected through USB

I'm interested in finding the MAC address of a device (in this case an ESP8266) connected through an USB serial to my computer. Is there a linux command to achieve that? I tried with dmesg or lsusb ...
0
votes
0answers
7 views

Several program web-camera issue

I have the Logitech C270 web-camera. I cant use it on Skype and OBS at the same time! If my Skype is running and I run OBS I see the green light on the camera. But, I do not see the picture on the ...
0
votes
2answers
3k views

Wifi dongle doesn't detect networks on kali linux VM

I have recently bough an usb wifi dongle with a MT7601U chipset to use with a Kali linux virtual machine, and everything is apparently set up correctly (usb enabled on virtual box, no apparent driver ...
0
votes
2answers
308 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
1answer
944 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 ...
1
vote
1answer
1k views

Wifi Adapter Not Working In Kali-Linux [duplicate]

My Wifi-Adapter is TL-WN823N, initially my pc did not recognize anything. So i installed two solutions finded googling: rtl8192cu-fixes rtl8192eu-linux-driver Now my Wifi adapter is recognized by ...
3
votes
1answer
608 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 ...
1
vote
1answer
20 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
25 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
31 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 ...
0
votes
2answers
4k views

Motion is taking an image every second even though it is setup not to

I am running motion on a Raspberry Pi with a surplus Microsoft Xbox camera. To the best of my knowlege I have set it up to only take an image every 30 minutes and to also create a daily timelapse with ...
5
votes
5answers
6k 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 ...
2
votes
1answer
30 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 ...
1
vote
1answer
150 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
1answer
987 views

Unbind/bind new Bluetooth Device Driver - Ubuntu 14.04 Trust Tahr

Preface II swallowed the first 3-chapters of the Linux Device Drivers, Edition 3 - PDF, so I know a bit more about it than I did at the start of the week, but still not so much. System Distribution:...
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
6k 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
23 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 ...
1
vote
2answers
454 views

Is value of bInterfaceProtocol fixed or decided by Kernel?

Let's say: $ ls -l /dev/input/by-id lrwxrwxrwx 1 root root 10 Feb 10 03:47 usb-Logitech_USB_Keyboard-event-if01 -> ../event22 lrwxrwxrwx 1 root root 10 Feb 10 03:47 usb-Logitech_USB_Keyboard-event-...
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
32 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
41 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 ...
2
votes
1answer
440 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, ...
0
votes
0answers
38 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
2answers
884 views

I have a usb flash drive mounted in both sdb1 and sdb2. How to format it correctly?

I have a 4GB usb flash drive. When I plugged it on my debian linux I found that it mounted on both /dev/sdb1 and /dev/sdb2. Each one detected as 2.5GB EFI System and 1.3GB Linux filesystem ...
1
vote
1answer
57 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
1k 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
44 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}==...
1
vote
1answer
863 views

Unable to playback captured audio using USB sound card

I am trying to capture and play audio using C program. For this I got this tutorial.. Here is the program which I am running:- /** * Jan Newmarch */ #define PERIOD_SIZE 1024 #define BUF_SIZE (...
0
votes
0answers
194 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
1answer
264 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 ...
1
vote
2answers
754 views

USB 3.1 hub shown as USB 2.0

My problem is the following. My system is detecting my USB 3.1 Gen1 hub (onboard hub). First, I confirmed that my motherboard does indeed have support for USB 3.1. I have an Asus H97-PRO which has ...
0
votes
0answers
213 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
2answers
759 views

Can't mount device

I can't mount my e-reader. Here's what I tried: I connected my e-reader to the computer via usb. dmesg tells me the OS (debian 9) recognized the device and assigned /dev/sdb and /dev/sdc to it: usb ...
0
votes
0answers
106 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
36 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
0answers
87 views

How to get the photos off a Windows phone

How can I see the photos taken with a Windows phone? I'm used to simply plugging in a phone using an USB cable and being able to browse to the folder containing the photos. In this case however, ...
0
votes
0answers
103 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
134 views

USB receiver communication Raspberry Pi

I'm wanting to connect a USB receiver to my Pi (3) so to be able to able to receive Rf transmittions from hand help remotes running 403MHz. I need to gather the transmitters ID through the connected ...
1
vote
0answers
218 views

Mount two same usb device Always in the same port UBUNTU

need to mount two device (identical/equal) at the same port...not difficult but look this: /dev/input/event6 - Sycreader_RFID_Technology_Co.__Ltd_SYC_ID_IC_USB_Reader_08FF20140315 /dev/input/event2 - ...
0
votes
2answers
36 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 ...
1
vote
1answer
81 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 ...
8
votes
1answer
385 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 ...
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 ...
1
vote
1answer
7k views

Bluetooth Problem in Linux Mint 18.2

I am running Linux Mint 18.2 (64-bit, Xfce) on a Dell Latitude D430. It runs fine, but bluetooth does not appear to be working. I can detect devices, but connecting doesn't always work, and sending ...