Questions tagged [udev]

Udev manages the Linux /dev directory, and hooks userspace into kernel device events.

udev (userspace /dev) is a device manager for the Linux kernel. As the successor of devfsd and hotplug, udev primarily manages device nodes in the /dev directory. At the same time, udev also handles all user space events raised when hardware devices are added into the system or removed from it, including firmware loading as required by certain devices.

https://en.wikipedia.org/wiki/Udev

https://wiki.debian.org/udev

http://reactivated.net/writing_udev_rules.html

518 questions
0
votes
1 answer

linux usb printer driver miss DEVTYPE?

this is a…
kangear
  • 2,493
  • 2
  • 31
  • 44
0
votes
1 answer

Archive location for libudev on Ubuntu?

I currently have Ubuntu 12.04.3 and I'm trying to change my version of libudev. I'm looking for libudev.so.0.9.3 and libudev.so.1… Does anyone know where archives of this library lives?
Chef Pharaoh
  • 2,387
  • 3
  • 27
  • 38
0
votes
0 answers

How can I (programmatically) prevent mount of USB storage devices? I'll prefer an answer involving udev

I've been reading udev's documetation and so far, I've not found nothing can help me. This is what I intend to do: Any user inserts a flash drive. My application catch the event. My app does some checks. Negative result. The user is not able to…
Raydel Miranda
  • 13,825
  • 3
  • 38
  • 60
0
votes
2 answers

Restart udev on Makefile

I've made a simple Makefile for an application and after install I need to restart udev rules. INSTALLDIR=/pkt/bin OS:=$(shell uname -v) LBITS:=$(shell getconf LONG_BIT) LIBDIR=/usr/lib ifeq ($(LBITS),64) LIBDIR64=/usr/lib64 else …
0
votes
1 answer

Udev rule doesn't run

I'm trying to write a udev rule on my Beaglebone White that runs when a Pantech UML 295 finishes booting. When using udevadm monitor --environment I get the following final output which I would like to base the rule on: UDEV [3163.454297] add…
Luke Plewa
  • 31
  • 5
0
votes
1 answer

Udev Rule no longer works

I wrote a simple udev rule to mount my compact flash card reader to a writeable device node. The rule was working earlier, but seems to have stopped for some reason, I was editing the file before, but now it just contains: KERNEL=="/dev/sd*",…
James
  • 3,957
  • 4
  • 37
  • 82
0
votes
1 answer

sysfs entries for hotpluggable devices

I have read that driver core sends uevents through netlink from sysfs to udev or some daemons which are listening to it and thenafter corresponding driver is recongnised by udev and loads it. But how this sysfs entries are created corresponding to a…
0
votes
1 answer

libudev monitoring returns NULL pointer on Raspbian

I'm trying to port an application that was running before on an Ubuntu system to the Raspberry Pi, using Raspbian. The application should detect new USB flash drives. This is how the udev monitoring is done: /* Create the udev object */ udev =…
Phate
  • 1
  • 4
0
votes
1 answer

udevlib Does udevlib work with mdev

We have to enumerate usb devices on board. Can we build busybox with mdev instead of udev? Can we also use udevlib functions in case we have mdev on board.
ramesh
  • 31
  • 3
0
votes
1 answer

anyone got android debug bridge on nikon s800c to linux host working?

OK, I have a brand new Nikon S800c android camera I want to develop a specialized camera app for, and I can't seem to get it to show up in an "adb devices" command. It is USB ID 04b0:018f. I definitely see activity when monitoring events with…
user1160711
  • 463
  • 1
  • 5
  • 11
0
votes
1 answer

BusyBox: How can I replace the imple function of udev with mdev?

I run a smart Embedded Linux on a board and I want to create device files, for that I need udev. But Udev needs alot of other small programs or libs. So the question is: How can I replace the imple function of udev with mdev?
Peter
  • 1,629
  • 2
  • 25
  • 45
0
votes
0 answers

Linux Error during make gobject-introspection-1.32.1

I want to install gobject-introspection-1.32.1 on my embedded Linux. But during make this error message appear. Do anybody now what to do? -bash-3.2# make [ -d gir ] || /bin/mkdir -p…
Peter
  • 1,629
  • 2
  • 25
  • 45
0
votes
1 answer

libudev returns duplicated usb devices

I'm creating a program to list all USB devices in Linux (Ubuntu in my case). I've been following this tutorial http://www.signal11.us/oss/udev/ and changed the subsystem from "hidraw" to "usb". It lists the devices fine but it contains duplicates. I…
DiogoNeves
  • 1,727
  • 2
  • 17
  • 36
0
votes
0 answers

When USB drive is connected, message on console using udev

Is it possible to send some message like Device Added or Removed etc to console on my target using udev rules?
123456
  • 81
  • 1
  • 8
0
votes
2 answers

How to trigger a script with udev when connecting sda, but NOT sda1-x

I need to run a script, when connecting a usb-drive to an embedded system. My idea was: SUBSYSTEM=="block",ACTION=="add", KERNELS=="sd?",RUN+="/script param1 %k" It needs to run with any usb-stick, so I am not able to use Vendor-specific…
nico
  • 1,039
  • 4
  • 13
  • 27