udev
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 d开发者_运维技巧o that?As a crude solution, you may be able to poll on sysfs. On[详细]
2023-02-20 16:29 分类:问答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[详细]
2023-02-13 12:07 分类:问答Ejecting USB devices on linux
I\'m using Udisks via dbus in python to unmount a usb device (in this case a Kindle), but I\'d like to send the eject signal to it, as this kicks the Kindle back from USB mode into its usual interface[详细]
2023-02-12 09:56 分类:问答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[详细]
2023-02-12 03:44 分类:问答How does polling a file for changes work?
The problem I expected the script below to print at most one event and then stop (it\'s written only to illustrate the problem).[详细]
2023-02-06 04:53 分类:问答XOpenDisplay fails from udev event
开发者_如何学编程I am trying to open the X display like so: disp = XOpenDisplay(NULL); When I run this from my users shell it works fine but if it is run from a udev event (Ubuntu 10.10) the functi[详细]
2023-01-29 08:31 分类:问答Discover where are my USB speakers (device)
I\'m running Debian Sid and I want to know where are my USB speakers in system. For example: When I plug my pen drive, dmesg shows where it is (sda, sdb, etc). But when I plug my USB Speakers, it does[详细]
2023-01-25 03:12 分类:问答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开发者_JS百科 drive with a directory?For future reference, here\'s how to run a bash scrip[详细]
2023-01-25 00:52 分类:问答How to assign /dev/fbX?
I would like to assign /dev/fbX device like below. /dev/fb0 for USB-LCD device. /dev/fb1 for Main Display device.[详细]
2023-01-21 17:07 分类:问答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[详细]
2023-01-08 09:15 分类:问答
加载中,请稍侯......