Udev is a Linux process that manages device file entries under /dev

learn more… | top users | synonyms

3
votes
4answers
3k views

udev re-numbering when creating symlinks

I have USB cellular modem attached to an ALIX 3d2 board running voyage linux (which is based on Debian Squeeze). The modem registers itself as a TTY device, and so by default, udev will create TTY ...
1
vote
0answers
18 views

External monitor script has become unreliable

I have been using the following udev rule and bash script to automatically configure my external monitor for some time now, however recently the script has become unreliable, usually doing the ...
2
votes
2answers
43 views

Udev hwdb rule does not work

I am switching from Ubuntu to Arch Linux and encountering the issue that a udev hwdb rule that has worked until now does not work anymore. The only obvious difference between the systems is that ...
1
vote
0answers
10 views

Using USB intermet through android phone rename dev name

I had a issue every time I connect my phone and enable Internet USB, the assosiated interfaces name changes like enx$(random mac). There's a way to set the name like ppp0 vía udev? I tried vía vendor ...
7
votes
4answers
23k views

Udev : renaming my network interface

I just installed RHEL 6.3 on a Dell 1950 server. This server as two GBit ports, Gb0 and Gb1. For some obscure reason, udev chose to name Gb0 eth1 and Gb1 eth0. This is definitly not a good find for ...
8
votes
2answers
1k views

How can I change the permissions in /sys to alter the state of a LED/light using `udev`?

I've got a Thinkpad and would like to use the ThinkLight (the white flash light above the screen designed to light up the keyboard) for notifications on incoming Jabber messages. It is easy to ...
4
votes
0answers
23 views

Change eth settings before udev loads

I have a custom version of CENTOS that I'm importing into Hyper-V on a Windows Server. Whenever I import it however, the mac addresses of eth1 and eth2 are now different. So they get incremented to ...
1
vote
0answers
19 views

My usb udev rule not triggering when I do echo 0 >authorized ; echo 1 >authorized

My custom rule runs a shell command when I physically plug the USB device. /etc/udev/rules.d/85-my_stk1160_pal.rules : ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05e1", ...
2
votes
1answer
72 views

Ubuntu 14.04 server: Change em1 to eth0 - no /etc/udev/rules.d/70-persistent-net.rules file

I am trying to rename one of my network interfaces from em1 to eth0. I do not have /etc/udev/rules.d/70-persistent-net.rules. I have tried to regenerate this file by running these commands: udevadm ...
7
votes
3answers
3k views

Udev- How do I find out which subsystem a device belongs to?

For example, I have device /dev/sdb. How do I find out it's udev subsystem?
2
votes
1answer
1k views

XFCE on Debian: hiding block devices

I'm running XFCE 4.8 on Debian Wheezy, and I can't find a clean way to hide a block device (system's SATA/SSD drive) on the desktop but still be able to see / mount removable devices via Thunar. The ...
3
votes
1answer
2k views

udev rule for usb attach/detach not triggering

I'm running RHEL6 and I'm trying to write a udev rule that is triggered upon plugging in and removing usb devices. I created a file called 80-usb.rules in /etc/udev/rules.d/ and I gave it the ...
1
vote
1answer
801 views

No ttyUSB when connecting USB-RS485 to Beaglebone Black

I'm trying to connect a externally powered board to control the motors of a robot to my BeagleBone Black. I'm using ssh over USB(the mini-usb) to control the Beaglebone from my laptop. The BBB is ...
8
votes
3answers
109 views

Will a usb key have the same name everytime I mount it?

I have a usb key which will be used to save data on it daily, via a bash script. I managed to mount it for a specific user to be able to write folders in it using the command mount /dev/sdc1 ...
1
vote
0answers
58 views

Debian upgrade from Wheezy to Jessie fails on Amazon EC2

I have searched and read other debian upgrade threads, but my situation doesn't seem to match that described in the other questions on this topic. I have a t1.micro instance of debian running on ...
3
votes
0answers
54 views

Help with udev rules my Keyboard thinks it's a Joystick

I'm running Archlinux and I have a weird problem my "Microsoft Wired Keyboard 600" gets picked up as a Joystick and a Keyboard for some reason. Note: Output trimmed ─$ xinput list Virtual core ...
0
votes
1answer
3k views

Consistent network interface name ubuntu using pci slot

One can set consistent interface naming via mac address by modifying /etc/udev/rules.d/70-persistent-net.rules. Can you establish consistent interface naming by PCI slot number? (I tried but failed) ...
1
vote
1answer
67 views

Reload network interfaces without rebooting

I'm doing a BASH script for Arch Linux in a Raspberry Pi 2. The thing is that in some point I'd like to reload the network interfaces without reboot and have my new named network interfaces (en0 and ...
3
votes
1answer
31 views

Is there any way to prevent a bad drive from disappearing from /dev?

I'm trying to recover a partition on a bad drive with ddrescue. I run: $ sudo ddrescue -r -1 -v /dev/sdd3 OUT.img dd_rescue_logfile and it seems to do great for a while, but after about an hour, ...
1
vote
1answer
733 views

Why do I not seem to have hidraw options on my system, and how can I fix my usb devices?

Starting today, I noticed a few problems with my system. USB devices, including the internal ones such as microphones, don't seem to be working at all. I first noticed when my keyboard and mouse ...
0
votes
1answer
64 views

udev+udisks2: udisksctl gives 'Error looking up object for device'

In Debian Wheezy I had a special rule for my ntfs usb hdd. When it is inserted it is mounted in /media under a specific sub-folder. ACTION=="add", SUBSYSTEMS=="usb", ...
0
votes
0answers
27 views

Starting a script when a certain usb is inserted problems

I want to start a script when a certain usb flash drive is inserted. I had a python script in my home folder "test.py", I ran lsusb and found the vendorid and productid, I went to udev and made a rule ...
4
votes
1answer
3k 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 ...
2
votes
1answer
21 views

How to make CUPS show a USB printer as disabled when it is disconnected?

I'm using CUPS on an ARM single-board computer to share a USB printer over the network. To conserve power, the printer is usually powered off via a remote-controlled power outlet and only switched on ...
3
votes
1answer
27 views

give group permissions to specific device

I have a panning web camera I built, (future robot arm). The camera pans via a web interface (cgi scripts and JS interface) which access an arduino. To enable sending of commands via the interface, I ...
3
votes
0answers
170 views

Can I masquerade a kernel uevent?

What I think happens From my understanding this is what happens when I connect a USB device to my computer: Kernel recognizes that I plugged in a USB device Kernel setups the very low-level things ...
2
votes
1answer
104 views

Udev rule not setting group

I'm trying to write a udev rule to change the group on my MSP-FET430UIF USB programmer. This is what I have so far (filename /etc/udev/rules.d/40-ti-fet430.rules): SUBSYSTEM=="usb", ...
3
votes
1answer
753 views

How to get device filename from lsusb output or by device path

Related question: USB connect/disconnect notification When the device is plugged/unplugged, I get instant notification, that's great. But to make it (almost) perfect, I also want to get device ...
2
votes
1answer
140 views

Udev rule- change group

I would like to change group of /dev/nvidia0. I was write udev rule: KERNEL="nvidia[0-9]", GROUP="video", MODE="0666" But it does't change group, after reboot file is in rootgroup. How do this?
1
vote
0answers
42 views

USB 56k modem not detected

I have this USB 56k modem which I'm using to write some home automation software that will let me know when my home phone is ringing. My software works on my Ubuntu 14.04 LTS laptop, with my modem ...
0
votes
1answer
48 views

Device shown using lspci but udev not loading the driver

My nic shows using lspci -v but udev is not loading the driver for it. Links to screenshots of diagnostic output are below. dmesg insmod lspci pacman -Qi ls /sys/class/net uname -a original ...
0
votes
1answer
44 views

How to avoid duplicate connection names? (32) Connection 'Auto Ethernet' is already active on enpXXX

Is there any way that I can make networkmanager to assign some unique names or device derrived name instead of Auto Ethernet so that we can avoid the names conflict? After I've upgraded to Ubuntu ...
8
votes
3answers
1k views

How to enable “Predictable Network Interface Names”?

I decided to check out what name my ethernet device will end up with, but contrary to other distros, Debian doesn't seem to have activated this change (or is holding it back?), * Keep the old ...
1
vote
0answers
32 views

Ubuntu 14.04 - Multiple Griffin Technology Powermate Knobs

I am running Ubuntu 14.04, and I want to run multiple griffin powermate knobs: https://store.griffintechnology.com/powermate. I want to map them to different keys other than audio control. I want to ...
2
votes
2answers
79 views

Which udev rule triggered?

a. Is it possible to find out, which udev rule triggered as soon as some USB/serial device plug-in or plug-out ? b. Is it possible to reload one specific rule out of many rules, without device replug ...
1
vote
0answers
40 views

figuring out the e “manufacturer” and “product” attributes using udev for pendrive

I saw Writing raw images safely to USB sticks On Debian though, get nada from that command :- [$] udevadm info -a -p $(udevadm info -q path -n /dev/sdb)|grep -iE "manufacturer|product" [$] I ...
0
votes
0answers
14 views

udev usb stick device list

we have 2 different yocto distributes. 1) ARM Kernel 3.10.53 2) X86 SMP Kernel 3.10.0 if we add a usb stick to the ARM system we get the different udev Messages. usb/usb_device usb/use_interface ...
1
vote
1answer
17 views

How to specify a specific product in udev hwdb file?

I'm trying to remap the buttons on a peripheral that incorrectly has its buttons mapped to F keys. To remedy this I'm trying to use a udev hwdb file to remap keys only on specif devices. So far my ...
5
votes
2answers
157 views

How to debug an udev rule (in /etc/udev/rules.d/…)

I'm creating a new basic rule /etc/udev/rules.d/10-myrule.rules containing: KERNEL!="sdb*", GOTO="auto_mount_end" ACTION=="add", RUN+="/usr/bin/mount /dev/sdb1 /media" LABEL="auto_mount_end" I ...
1
vote
1answer
78 views

Files in folder /run/udev/data

Does someone know, when and how the files in this folder /run/udev/data are generated. I ask because I have a program, which needs udev in jail. But the version in jail is newer (version 208) than ...
1
vote
1answer
139 views

udev keyboard remapping with hwdb for secondary keyboards

I have a laptop, and I save the following to /etc/udev/hwdb.d/90-custom-keyboard.hwdb keyboard:usb:v*p* keyboard:dmi:bvn*:bvr*:bd*:svn*:pn*:pvr* KEYBOARD_KEY_1a=a KEYBOARD_KEY_1b=b and run $ ...
1
vote
1answer
30 views

How to remap an F key on a specific Keyboard?

I have a peripheral attached that is actually not a keyboard, but all of its buttons are being treated as F keys, they all send the same scancode and keycode as the standard F keys (based of of ...
68
votes
5answers
101k 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.
36
votes
6answers
14k 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 ...
32
votes
11answers
13k 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 ...
4
votes
1answer
66 views

Is it possible to set interface name permanently in Raspbian?

I'm using 2 wifi dongles. First one is used to monitor and second one is used to access internet. Even if I changed /etc/udev/rules.d/70-persistent-net.rules as below, at startup sometimes wlan0 ...
2
votes
0answers
20 views

Attributes not available in udev

I'm attempting to write a udev rule for a USB device, however I'm having trouble matching the ATTRS{*} attributes in my rules. After a little debugging using udevadm info, I've found that none of my ...
1
vote
0answers
14 views

Detect power_supply online status for different device in udev rule

In order to save battery power, I enable runtime PM for all devices using a variant of this rule set: ACTION!="add", GOTO="powersave_end" SUBSYSTEM=="usb", GOTO="powersave" LABEL="powersave" ...
3
votes
1answer
106 views

What ENV variables can be set in udev rules?

Recently I discovered the ENV{REMOVE_CMD} variable, which removes the need for using the ACTION=="remove" match in the case you need both add and remove. I was trying to find some info on other useful ...
4
votes
2answers
4k views

Point USB phone to specific /dev/ttyACM using udev

We have a Nagios + check_mk setup on Ubuntu 12.04 LTS server with smstools for sending text message notifications. We are using an old Nokia 6230 phone connected by a USB cable, though I do not ...