The udev tag has no wiki summary.
24
votes
4answers
3k views
How can I detect when a monitor is plugged in or unplugged?
Is there any event that is triggered when I plug in or out an external monitor into the DisplayPort of my laptop? ACPID and UDEV don't react at all.
I'm using onboard graphics on an intel chip. Here ...
16
votes
1answer
5k 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 ...
15
votes
5answers
4k views
A tool for automatically applying RandR configuration when external display is plugged in
is there a tool which enables one to:
remember current RandR configuration (position, orientation, resolution etc) on per-monitor basis,
automatically apply last known good configuration as soon as ...
12
votes
3answers
7k views
How to reload udev rules without reboot?
How should one reload udev rules, so that newly created one can function?
I'm running Arch Linux, and I don't have a udevstart command here.
Also checked /etc/rc.d, no udev service there.
10
votes
2answers
5k 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 ...
9
votes
3answers
879 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 ...
8
votes
2answers
379 views
What's the difference between udev and hald?
I'm just beginning to dive into the internals of Linux, and I was wondering what the difference is between udev and the hal daemon. From what I gather, both seem to be responsible for managing hot ...
7
votes
1answer
754 views
Suggestions needed for udev, udisks, autofs, notification setup for a complete automounting solution on Linux
Continuing on Automounting plugged devices in linux, which left things a bit basic. Running Gentoo, I'm automounting a combination of local and network devices on my laptop with autofs-5.0.4-r5. Doing ...
6
votes
2answers
808 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?
6
votes
2answers
1k views
In which log should I check for udev errors?
I've written a udev rule which is run each time my device is mounted/dismounted.
However, in which Linux (Debian) error log should I check when debugging such rules?
6
votes
2answers
758 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", ...
5
votes
1answer
2k 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 ...
5
votes
2answers
732 views
mknod permanent in archlinux
I have a custom kernel module (on ArchLinux) that I can load manually and interact with. What I would like to do is have it loaded at boot time. So far I have managed to get the device appear in ...
5
votes
1answer
853 views
How do I disable udevd in systemd?
I'm trying to boot a Fedora Rawhide LXC container from a Fedora 16 host, and it's not working - systemd just keeps dropping into emergency mode. Because udevd doesn't work in LXC containers, I thought ...
5
votes
2answers
884 views
Making UDEV ignore certain devices during boot.
I'm trying to make UDEV stop mounting one of my devices at boot time, and I've created a rule in /etc/udev/rules.d/ called 1-myblacklist.rules. All the rule does is matches the device by kernel ...
4
votes
3answers
69 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
4answers
2k views
UDEV rule when USB flash drive is unplugged
I wrote a rule to automount my USB stick to certain folder
but when I unplug it the folder still mounted and when I ls there
I see a lot of errors like: Directory bread (block: NNNN) failed
I tried ...
4
votes
1answer
2k views
Preventing mounting some partition by user (gnome+udisk)
I'd like to prevent automounting one partition (known UUID etc. ) on one external harddrive. Others should be automounted. Distro is 'modern' (uses lots of beta software) and uses udisk+udev for ...
4
votes
1answer
1k views
Udev rule is not being used?
I'm setting up udev to handle my external USB hard drive when it gets plugged in and removed (no mounting yet). So far, I've made two new rules in /etc/udev/rules.d/10-local.rules to log ...
4
votes
1answer
241 views
How does udev create /dev/sr*? (Or: Which rule does create /dev/sr*?)
udev is responsible for populating /dev. It adds and removes device nodes to /dev dynamically based on rules/configs/scripts under /lib/udev and /etc/udev/.
If I have a CDROM device node /dev/sr0 I ...
4
votes
2answers
1k 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} ...
4
votes
1answer
502 views
Change permissions for LEDs (e.g. ThinkLight) with udev
/edit/
Getting the question more generic:
How can I change the permissions to alter the state of a LED/light using udev?
\edit\
I've got a Thinkpad and would like to use the ThinkLight (the ...
3
votes
3answers
1k views
Why is pcmanfm such a headache when it comes to mounting filesystems?
If I would have known how much 'customization' it takes to get LXDE and its default file manager, pcmanfm, just working, I would probably have never chosen to try it.
I've got a problem. Lots of ...
3
votes
2answers
110 views
Reference material about device management
Can anybody recommend materials about device management in the Linux environment? From the point where I insert a cdrom or usb device to the point where it is mounted in /media/somedir.
I know that I ...
3
votes
1answer
951 views
script does not behave properly when called by acpi and udev events
I have the following files in /etc/acpi/events and /etc/udev/rules.d
/etc/acpi/events/lidclose
# Pass all events to our one handler script
event=button/lid
action=/etc/acpi/monitors.sh
...
3
votes
1answer
2k views
xrandr command not exectured within shell command called from udev rule
I own a Thinkpad with an UltraBase (a docking station). My operating system is Ubuntu 10.10. Now, I would like to react on the "docking" event by setting the resolution of my external display ...
3
votes
2answers
2k views
Arch Linux not booting after system update
After running a system update pacman -Syu with the testing repo not commented, my computer no longer boots. It shows the udev loading, then shows a black screen with a cursor blinking in upper left. I ...
3
votes
2answers
605 views
Auto-mounting to a directory other than /media in Fedora 13
I am using Fedora 13. I need to be able to configure how media are mounted automatically. For an example, I want to change the parent of all mounted media to be a directory other than /media. All the ...
3
votes
2answers
107 views
Where to install local software that runs before /usr is available?
I'm writing a local program to be called by a udev IMPORT{program} rule. Normally, I'd install local software in /usr/local, but these udev rules are run when block devices appear. So they're running ...
3
votes
1answer
369 views
Udev Rule file for Modem not working
I am using modem for sending sms which has 16 ( ttyUSB0 to ttyUSB15 ) ports. I want to make udev rule to give device name "AMPM" and ports should be name Port1, Port2,...Port16.
Check out this output ...
3
votes
1answer
56 views
Starting backintime at disk plug
I use backintime, you can tell it to backup via backintime -b as user (not root, but I can change that if needed). Now I'd like it to start as soon as I plug my backup hd. As udev is likely the right ...
3
votes
1answer
170 views
UDEV assign ATTRS{variable} to ENV{variable}
I am writing my first udev rule. I read many how tos but can't find a way
to assign ATTRS{variable} to ENV{variable}
in order to have access to that variable from RUN
like ...
3
votes
1answer
63 views
udev: How do you identify the physical device that a sys device belongs to?
I have several USB modems that each have several endpoints: lot of TTYs, a network interface, a cdc-wdm port, and some other things. I'm trying to group them together so that I know, for instance, ...
3
votes
1answer
102 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 ...
3
votes
1answer
428 views
FUSE : Allow any user in the fuse group to unmount
I'm currently trying to write a couple of systemd/udev configuration files that will allow me to automount/unmount MTP Android devices on my Archlinux laptop. It took me some time, but so far it works ...
3
votes
1answer
232 views
How to run long time process on Udev event?
I want to run a ppp connection when my USB modem is connected, so I use this udev rule:
ACTION=="add", SUBSYSTEM=="tty", ATTRS{idVendor}=="16d8",\
RUN+="/usr/local/bin/newPPP.sh $env{DEVNAME}"
...
3
votes
0answers
492 views
Problems copying large files to USB drive
I've got some issues when copying larger files to my USB drive. First of all, my system stopped recognizing my USB drives automatically. I now have to run modprobe usb-storage in order for my USB ...
3
votes
0answers
683 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 ...
3
votes
1answer
329 views
udev randomly mixing up ethernet devices on Debian Squeeze
Installing Squeeze with newer kernels on servers with 4, 6 or more interfaces, I keep getting this really annoying problem: interfaces are always mixed up across cards, and don't even follow ascending ...
2
votes
3answers
6k views
Automounting USB sticks on Debian
I'm running Debian Squeeze on a plug computer (so SSH only, no GUI) and what I'm trying to do is get it so that when a USB stick is plugged in, it gets automatically mounted.
What I've done is ...
2
votes
2answers
470 views
Network naming on Arch Linux
I've just installed Arch Linux on my old PC, to do the installation I used wifi-menu wlan0, now I've reboot but if I type:
ifconfig wlan0 up
I have as a result:
wlan0: ERROR while getting ...
2
votes
2answers
92 views
Why doesn't xsetwacom work from udev?
I made a script to rotate my Wacom Bamboo tablet 180 degrees. It works fine when I execute it as myself (user) or root, but when started from udev (i.e. when plugging the tablet into a usb port) it ...
2
votes
1answer
95 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 ...
2
votes
1answer
78 views
Enable udev and speex support for pulseaudio
I tried to install pulse audio, but after running ./configure I got a warning message:
===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING =====
You do not have udev support enabled. It is ...
2
votes
1answer
294 views
udev weirdness: /dev/hda1 mounted but file not present
I think my question is related to udev and/or udisks, but I am really not sure at all what's going on here. To start with, my system works more or less fine. The less part is due to the fact that, ...
2
votes
1answer
264 views
Removing the [ OK ] From start_udev
Under /sbin/start_udev, how can I remove the [ OK ] so it's not printed?
I'm trying to change /etc/rc.sysinit to display the information I like, and I have managed to remove all the info output ...
2
votes
1answer
112 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 ...
2
votes
1answer
61 views
How to list all present optical drivers?
How can I list all the installed optical drivers with udev or any other core-based tool (perl is also very good) ?
P.S.: I know about the wodim --devices command, but it's an undesirable ...
2
votes
1answer
190 views
How to execute a shellscript when I plug-in a USB-device
I want to execute a script when I plug in a device in my Linux machine. For example, run xinput on mouse or a backupscript on a certain drive.
I have seen a lot of articles on this, most recently ...
2
votes
2answers
949 views
building my own initrd, how to populate dev directory
I am trying to learn stuff about initrd. I have followed this tutorial to build my own initrd from scratch, and I installed busybox on it. Then I made an .iso from it with isolinux, so I could test it ...
