udev Questions

1

Solved

I've been developing an application that monitors the USB device tree using libusb_hotplug_register_callback(). When a device that matches some criteria is attached, it will fork() and exec() an ap...
Megathere asked 9/2, 2017 at 19:13

9

Solved

I am developing for android on a linux machine and I have already created a udev rule for android and it works. After a while if I unplug the device and plug it back in again, adb doesn't recognize...
Undaunted asked 5/10, 2011 at 7:45

2

I'm trying to start a python script that waits for user input via a shell script triggered by a UDEV rule. After the input arrives the python script needs to make some database calls. I'm running i...
Isagogics asked 18/8, 2016 at 3:56

3

Solved

I have an embedded system development image contained in a Docker file. In order to flash the code I need to connect to the nodes via USB Serial (e.g. /dev/ttyACM0). With Docker I used the new bin...
Etch asked 22/7, 2013 at 16:0

3

Solved

I have a rf-reader with ftdio usb to serial chip. I was able to write a program to control it using ftdi d2xx library. So far so good. The issue is that when the reader is reconnected to the PC I ...
Dialect asked 29/11, 2015 at 8:59

2

Solved

I have udev rules written to create SYMLINKS when a device is connected. The rules are working fine on the host machine, but when I start a container with these same rules installed in /etc/udev/ru...
Strife asked 27/4, 2016 at 4:50

2

Solved

I've installed libudev-dev, I can see the file /usr/lib/x86_64-linux-gnu/libudev.so but when I run gcc -Wall -ludev -o test test.c I get following error.. opensourcegeek@box:~/project/udev_device...
Goby asked 21/12, 2015 at 20:19

1

Solved

There is a custom USB device I need to communicate with. There is no particular driver for it. The device doesn't show as /dev/tty*. I found out how I can use libudev to enumerate the USB devices ...
Slumber asked 22/9, 2015 at 15:50

0

I have two systems, one running Ubutu 14.04, one running raspbian. When I connect a usb printer to my Ubuntu machine I can can get lots of information about from udevadm: :~$ udevadm info -q prope...
Secretariat asked 3/6, 2015 at 17:36

2

I am relatively new to linux having made the switch from Windows to have a headless media centre. I am running KODIBuntu. I am trying to achieve an automated ripping system to backup my hard copy ...
Jp asked 30/4, 2015 at 17:11

3

Solved

I have a some sample c++ code that receives hotplug events using the udev library. It worked fine in Ubuntu 10.04. It's only prerequisite was the libudev-dev package: sudo apt-get install libudev-...
Lobbyism asked 19/6, 2013 at 0:21

2

Solved

I am writting an udev rule to set name of two serial ports. I want to use the value of the attribute bInterfaceNumber in the symlink. My rules is: SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{idVen...
Tish asked 9/10, 2013 at 13:25

1

Solved

The field I'm interested is iSerial from the output of: lsusb -d <idVendor>:<idProduct> -v Example output of a non-unique iSerialNumber: Device Descriptor: bLength 18 bDescriptorTyp...
Eugene asked 18/9, 2014 at 12:52

2

In the rules file a script is executed by passing the arguments "LABEL" and "DEVNAME" for mounting ACTION=="add", RUN+="/appmount/scripts/usb_mount.sh %E{ID_FS_LABEL} %E{DEVNAME}" In the usb_mou...
Pretzel asked 4/12, 2012 at 9:3

2

Using the lsusb command in Linux I have come to know about bus and device numbers, along with its name of newly attached USB devices. But how can I know on which device directory (/dev/*) USB dev...
Hautesalpes asked 4/7, 2014 at 12:44

3

I have two LCD's using Xorg's xinerama feature. Each LCD screen has a touchscreen which are connected to their respective USB lines. Looking into the '/var/log/messages' file, I see the following:...
Buckden asked 24/9, 2009 at 21:32

2

Solved

EDIT: This occurs when I am trying to use a separate partition with ANY mount point, not just /var. I am using Buildroot to build an embedded linux system. I am trying to use a separate partition ...
Piegari asked 29/4, 2014 at 17:38

1

Solved

uevents has been sent from kernel space to user space through netlink socket. In kernel, there must be something trigger uevent. I guess there are two possibilities: Hardware interrupt - this ...
Papageno asked 18/4, 2014 at 3:27

1

Solved

I knew that udev plays on the linux system and it receives uevents sent from the kernel through netlink socket. However, my questions are: How kernel sends out the event ? It must be something t...
Wapiti asked 2/4, 2014 at 6:45

1

Solved

I am trying to get a script to run whenever ANY USB flash drive (not just a specific one) is plugged in to the system and I have been pulling my hair out for about 2 weeks now on and off tryi...
Joann asked 19/11, 2013 at 23:56

1

I'm trying to use udev to give relevant names a USB-serial device but I'm having now luck. # lsusb -d 04e2:1412 -v Bus 004 Device 028: ID 04e2:1412 Exar Corp. Device Descriptor: bLengt...
Shockproof asked 4/10, 2013 at 6:11

2

Solved

On my Linux (Angstrom distro on BeagleBone Black) I have a USB dongle which presents as a serial port and per default is available as /dev/ttyUSB0 I want to start a daemon, which will connect to t...
Urdar asked 27/8, 2013 at 11:9

2

Solved

I have a script which is run whenever a usb device by vendor 1004 is connected. The udev rule I am using works and looks like this. SUBSYSTEM=="usb", ATTR{idVendor}=="1004", RUN+="/var/www/beta/tr...
Truancy asked 10/10, 2012 at 12:8

3

Solved

I'm using udev to detect USB drive connection and disconnection on my Ubuntu 10.04 LTS x64 server. Everything works fine when USB devices are connected while the machine is running, but if one is a...
Gregarine asked 23/8, 2011 at 15:57

1

Solved

I wrote a small shell script configuring attached external displays with xrandr. # cat /home/didi/bin/monitor_autoswitcher.sh #!/bin/bash xrandr | grep "HDMI1 connected" if [[ $? == 0 ]]; then ...
Willamina asked 8/10, 2012 at 13:2

© 2022 - 2024 — McMap. All rights reserved.