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

learn more… | top users | synonyms

13
votes
2answers
5k views

How to create a callback for “monitor plugged” on an intel graphics?

I've got an eeepc with an intel graphics. I'd like to hook a script to the event of a monitor plugged via VGA. How to do that?
12
votes
2answers
6k views

USB devices UDev and D-BUS

I am trying to get a list of currently plugged in USB devices in Ubuntu 10.10 and monitor changes that happen, like devices being plugged in or out using UDev and D-BUS. I'm fairly new to programming ...
11
votes
1answer
381 views

How do I log data from my serial ports consistently?

I need to deal with two pieces of custom hardware which both send debugging data over two serial connections. Those serial connections go through two serial-to-USB converters. The serial-to-USB ...
9
votes
5answers
1k views

Adb stops detecting my phone after a while

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 ...
7
votes
1answer
3k views

Linux: How to assign USB driver to device

This question is two-fold: 1- 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 usb-storage ...
6
votes
1answer
4k views

Get link speed programmatically?

I am writing an application that reports attributes of network devices on the local machine. I need the mac address, mtu, link speed and a few others. I'm using udev for this. I've already figured out ...
5
votes
4answers
9k views

How to get USB vendor and product info programmatically on Linux?

Using udev I have been able to get this information for a certain USB device: idVendor: 13b1 idProduct: 0018 manufacturer: product: USB 2.0 Network Adapter ver.2 serial: 00FFFF Now I want to get ...
5
votes
3answers
973 views

Create UNIX “special character” file

Suppose I want to create, in the spirit of /dev/zero, a file /dev/seven that produces the character '7' whenever it is read from. How should I go about doing something like this? Would I need to ...
5
votes
1answer
483 views

udev monitor is slow without polling

I tried udev as recommended (udevadm monitor). The VGA-Plug is reported after approx. two seconds. If I poll it, the change is reported almost instantly. What happens here?
5
votes
1answer
1k views

How to get notifications for SD card events?

I want to check the presence of an SD card, and receive notifications for SD card add/remove. So far I have used libudev, and I've made a small application which listens for SD card events. The code ...
4
votes
2answers
3k views

python udisks - enumerating device information

It's apparently possible to get a lot of info relating to attached disks using the udisks binary: udisks --show-info /dev/sda1 udisks is apparently just enumerating the data which is available ...
4
votes
3answers
2k views

Bash script to detect when my USB is plugged in and to then sync it with a Directory

Is there a Bash script and/or daemon that I can write that will detect a specific USB drive and then sync that drive with a directory?
4
votes
2answers
251 views

Need more than 32 USB sound cards on my system

I'm working on an educative multiseat project where we need to connect 36 keyboards and 36 USB sound cards to a single computer. We're running Ubuntu Linux 12.04 with the 3.6.3-030603-generic kernel. ...
4
votes
2answers
2k views

adb no permissions error suddenly [closed]

I have been working on the Snapdragon Dragonboard for a few days now. I had been able to set it up and even push some applications onto it and run them. Needless to say, the commands adb shell and adb ...
4
votes
1answer
2k views

libudev advice needed

I am embarking on a programming project that will need to confirm device identity of removable media (e.g. usb thumb drives) before it will go on to do a bunch of other cool stuff. Some friends of ...

1 2 3 4 5 9
15 30 50 per page