1
vote
1answer
213 views

USB passthrough for LXC containers

PROBLEM: So I've been trying to get a usb device (primesense - the OEM reference for the Kinect) to passthrough to an LXC container so I can develop without worrying about polluting my stable system ...
2
votes
0answers
56 views

How to get device filename from lsusb output or by device path

Related question: USB connect/disconnect notification When the device is plugged/unplugged, I get instant notification, that's great. But to make it (almost) perfect, I also want to get device ...
0
votes
1answer
39 views

Automounting with udev takes too much time

Specifically, using udev to automount usb memory sticks takes about 3-4 seconds according to its own logs. It may not sound like that much, but it is on an embedded distribution for a system that ...
1
vote
0answers
112 views

Modifier keys cannot be mapped to regular keys on USB keyboard with udev

Using an hwdb file, /etc/udev/hwdb.d/99-keyboard.hwdb, I can remap the left Alt key on my USB keyboard as the Ctrl key: keyboard:usb:v*p* KEYBOARD_KEY_700e2=leftctrl This also works when I try to ...
3
votes
0answers
207 views

linux udev rule to load gadget module for client driver

I'm having a hard time automating loading a gadget module and bringing up the usb0 device as a eth interface. The interface in question is g_ether for a embedded Linux device and connecting to a PC. ...
2
votes
0answers
182 views

How can I set repeat rate of USB keyboard with udev?

How can I get my keyboard repeat rate to apply to a hotplugged USB keyboard? I made a udev rule to set the keyboard repeat delay and rate, /etc/udev/rules.d/99-usb-keyboard.rules with the following ...
2
votes
1answer
414 views

Map physical USB device path to the Bus/Device number returned by lsusb

I need to get the title of the attached USB device. I can do that with lsusb. udev allows some substitutions when I write rules: say, we can use $kernel to get name of the device, or $devpath to get ...
0
votes
0answers
142 views

External disk doesn’t appear in /dev/

I have an external (USB-2.0) hard drive. Today I couldn’t mount it after plugging to my computer. When I look in /dev/ $ ls /dev/sd* There is no new disk, only sda and sdb with their partitions, ...
3
votes
1answer
215 views

udev rule for a USB device and ignoring others

Is it possible to create a udev rule for an USB device and ignore other USB devices? I want my system to support HID USB touchscreen (hid.ko) and ignore HID devices such as keyboards, mice, etc.
3
votes
1answer
354 views

Kernel recognizes USB device but then I can't find it in /sys or /dev

When I connect my Samsung 390G (a cheap cell phone!) to Ubuntu 13.04, dmesg seems to indicate that the storage device thereon is recognizable: [Sun Dec 29 01:26:10 2013] scsi16 : usb-storage ...
2
votes
2answers
74 views

Kodak still camera udev problem

My still camera is not includev in udev list. lsusb stands: Bus 007 Device 016: ID 040a:058b Kodak Co. Digital Camera So I add to /usr/lib/udev/rules.d/40-libgphoto2.rules ...
1
vote
1answer
99 views

udev GROUP and MODE assignments on symbolic link have no effect

I'm trying to connect my velleman k8055 board per usb to my pc. For this I have the udev rule SUBSYSTEM !="usb_device", ACTION !="add", GOTO="velleman_rules_end" ATTRS{idVendor}=="10cf", ...
5
votes
1answer
682 views

udev rule for assigning known symlinks for identical usb serial devices

I have two (and possibly in the future, more) USB serial devices which are identical (down to the serial number, unfortunately) - they're actually BTC miners. Currently they end up as ttyUSBX where X ...
3
votes
5answers
9k views

Ubuntu 13.04 does not recognize USB drive

Using Ubuntu 13.04 (with Gnome 3), my new USB stick (details see dmesg/lsusb) doesn't show up automatically. Situation: The drive does not show up at fdisk -l The drive does appear when running ...
3
votes
1answer
145 views

Is it possible to have two seperate one way (simplex) serial ports to make single tty device?

I am building embeded device, which has IR comunication with PC and it will have two IR Led/detector pairs which are one-way and are setup like this: IR source input commands -> near embeded device ...
1
vote
1answer
334 views

Udev rules involving X11 don't run on startup

I have some udev rules written to run when I connect certain usb devices. For example, I change pointer velocity for certain mice, and change xmodmaps for particular keyboards. The scripts work well ...
1
vote
3answers
1k views

udev rule not working

I have created a udev rules which is supposed to mount a USB device, backup some datas et cleanup everything. I am actually working on a Debian server. There is the information about my usb device ...
5
votes
3answers
836 views

Watch USB connections vendor id, product id, revision

I'd like to simply watch all devices added and removed from my system and view their USB vendor ID, product ID, and revision and other relevant information. How can I do this in Linux? Is there a ...
4
votes
1answer
2k views

Why doesn't this udev rule trigger upon removal of the device?

I have two mice, one which has an issue where the middle mouse button and button6 get triggered simultaneously. So I configured my ~/.Xmodmap to disable this button. At the same time, however, I ...
0
votes
1answer
2k views

Fixed udev rules for USB modems

On gentoo i have 10 USB modems and every of them has 3 interfaces /dev/ttyUSB0, 1, 2 and so on for each modem. Sometimes their postitions can change, so it is very difficult to work with them. I'm ...
1
vote
1answer
522 views

Change value of USB “max_sectors” for an entire family of devices

I've been using Linux for a while, but only since I started using "recent" distros (ie.: anything non-Debian) I have started having I/O problems with most of my USB devices. Basically when trying to ...
2
votes
1answer
272 views

What is the udev rule to allow specific thumb drive vendors?

How can I write a udev rule that whitelists specific vendors and doesn't allow other USB drives? Do I put it in /etc/udev/rules.d, or /lib/udev/rules.d? What command do I run to test if the rule is ...
3
votes
1answer
261 views

Removing device from USB hub triggers udev event for removing hub

I have a udev rule to halt the system when a usb hub is removed: SUBSYSTEM=="usb", ACTION=="remove", ENV{ID_VENDOR_ID}="050d", ENV{ID_MODEL_ID}="0237", RUN+="/sbin/halt" Unfortunately, this also ...
1
vote
1answer
365 views

Why do I not seem to have hidraw options on my system, and how can I fix my usb devices?

Starting today, I noticed a few problems with my system. USB devices, including the internal ones such as microphones, don't seem to be working at all. I first noticed when my keyboard and mouse ...
6
votes
2answers
2k views

Auto-run script when Wifi card is plugged in (udev)

I've been trying to use udev to make a Debian system run a bash script when a wireless card is connected. So far I created this file /etc/udev/rules.d/wifi-detect.rules: ACTION=="add", ...
7
votes
1answer
5k views

Understand output of `udevadm info -a -n /dev/sdb`

I plug an external HDD into my laptop. I try to find out the information by $ udevadm info -a -n /dev/sdb Udevadm info starts with the device specified by the devpath and then walks up the chain of ...
7
votes
2answers
2k views

How can I hide messages of udev?

When I plug in a usbhub (7 sticks in) udev displays a lot of messages in console. Can I hide these messages or send them to /dev/null?
2
votes
1answer
3k views

Understanding udev rules and permissions in libusb

I had a problem with my scanner. Xsane worked only as root. Using it as normal user it didn't find any devices. Adding the user to the groups saned or scanner didn't help. Finally I solved the ...
4
votes
1answer
2k views

Udev triggers are not firing on insert of CF card into USB card reader (anymore)

I've got a udev rule that triggers a shell script that copies photos off my CF card when I insert the card into my USB card reader. This worked fine for a while. But after a recent upgrade it has ...
17
votes
2answers
13k views

How to run custom scripts upon USB device plug-in?

What is the state-of-the-art method for automatically executing custom scripts upon USB device plug-in under current Linux distributions like Debian/CentOS/Fedora? For example if you want to ...
17
votes
1answer
10k views

How to assign USB driver to device

This question is two-fold: First, how do you manually detach a driver from a USB device and attach a different one? For example, I have a device that when connected automatically uses the ...
4
votes
2answers
2k views

udev rules don't appear to be working

I'm running Arch Linux on my server, and I need to let users of the group usb access my weather station. Here's my rule: /etc/udev/rules.d/usb-70.rules SYSFS {idVendor} == "1941", SYSFS {idProduct} ...
9
votes
3answers
2k views

Fake serial number of USB device

I have a mobile phone connected to my PC via USB. When viewing the device info using sudo udevadm info --attribute-walk the product and vendor id's show up fine, but there is no ATTR{serial}. An ...