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

learn more… | top users | synonyms

0
votes
1answer
38 views

Persisting network names irrespective of network address

We are in process of developing custom linux device with unifil wifi card. Whenever we change wireless device with in device urules changing wlan index based on ATTR{address}. Is there a way to tell ...
1
vote
1answer
38 views

Weird udev rules behaviour

I am trying to get my head around how udev rules are interpreted. Context: make a USB scanner accessible to myself as non-root user (I am part of the scanner group). The following rule does not ...
0
votes
1answer
62 views

problem with udev rules when i want to start bash script

I am trying to write udev rules, so my usb will be recognized when plugged in, and i want to run bash script, but seems that I have some problem, I think I have opened the rules file twice e.g. With ...
0
votes
0answers
23 views

SELinux policy for ifplugd and udev in Raspbian

I've recently enabled SELinux on my RaspberryPi and recieved some AVCs denials. I'm reading SEL documentation and have resolved a few of them. But I'm not sure if I did it right. So please review my ...
0
votes
0answers
79 views

How udev works when we connect USB device

Whenever, I am connecting USB device like Pen drive, Bar-code scanner, mouse etc. udev creates dynamic files in /sys/bus/usb/devices/. like 1-1, 2-1. inside these files I am getting all information ...
0
votes
0answers
42 views

xTerm and wvdial issue [UDEV]

After mounting USB modem opens xterm which connects me to the internet after some time it shuts down. -- When I'm starting sudo wvdial on normal gnome-terminal - All works without any problems. But ...
2
votes
1answer
93 views

udev power_supply rules not triggering

I know this seems to be the most commonly asked question about udev on here, but I believe I've done everything correctly and yet my rules still never get triggered. The script is executable and works ...
3
votes
1answer
115 views

Determine devtype and subsystem for laptop power supplies

I'm writing a small C program on an Ubuntu machine using libudev to monitor for changes to the power supply. At this stage, I just want to successfully detect when the AC adapter is active vs. when ...
0
votes
0answers
12 views

Does MATE DE have user-configurable hooks for udev events?

Does MATE DE have user-configurable hooks for udev events? I would like to disable my embedded keyboard and touchpad when external ones get connected.
0
votes
0answers
92 views

Getting the block device from an udev scsi_disk subsystem (udev C API)

I am using the udev C API to monitor connection and disconnection of SATA drives. struct udev_monitor *mon; mon = udev_monitor_new_from_netlink(udev, "udev"); ...
1
vote
0answers
30 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 ...
1
vote
0answers
30 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 ...
4
votes
1answer
78 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
60 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
3k 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 ...
8
votes
3answers
290 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 ...
3
votes
0answers
197 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 ...
1
vote
1answer
274 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
77 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, ...
2
votes
1answer
376 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 ...
0
votes
1answer
297 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
64 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 ...
2
votes
2answers
463 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 ...
2
votes
1answer
123 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 ...
1
vote
0answers
94 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
160 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 ...
1
vote
1answer
199 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 ...
1
vote
0answers
179 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 ...
1
vote
0answers
67 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
45 views

udev usb stick device list

We have 2 different yocto distributions: ARM Kernel 3.10.53 X86 SMP Kernel 3.10.0 If we add a USB stick to the ARM system we get different udev messages. usb/usb_device usb/use_interface ...
1
vote
1answer
37 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 ...
2
votes
0answers
39 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
62 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
995 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 ...
0
votes
0answers
53 views

An help with udev,want to force usb stick to use my options

I want to force mount of usb stick with async and noatime option,so i put on udev this rule SUBSYSTEM=="usb",ATTR{idVendor}=="067b", ATTR{idProduct}=="2517", ACTION=="add", ...
1
vote
1answer
54 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 ...
1
vote
1answer
215 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 ...
2
votes
1answer
186 views

systemd : write a .service daemon for setting up swap and fs in zram

I recently acquired a laptop with a ssd and in order not to weigh too much on the ssd (which I was told had a limited number of write cycles), I decided to write a systemd unit file for setting up a ...
1
vote
1answer
366 views

How to prevent UDEV rules assigning a device to a specific set of names

I have some UDEV rules for a RAID array; 10 hard disks are assigned names from /dev/sda to /dev/sdj. The disks can be absent at any time. How do I write a UDEV rule to prevent a device such as an ...
0
votes
1answer
67 views

Disk ID in chroot / jail

When I print out all information about a disk /dev/sda on my host system, then I get this sort of information (I got this information with command udevadm info --query=all --name=/dev/sda): P: ...
4
votes
1answer
179 views

What is the purpose of a udev rule?

I'm being asked to add a udev rule for a new USB device I purchased. There doesn't seem to be a dirt simple explanation for why this is necessary or valuable to do. To always map a device to the ...
0
votes
1answer
76 views

Why do the rules in udev/…/rules.d have numbers in front of them

Is it just for convenience or is there some reason for it? Example: cat /etc/udev/conf.d/rules.d/98-kexec.rules
5
votes
1answer
359 views

Attributes from various parent devices in a udev rule

I have some trouble understanding how the udev device attributes from different parent devices are evaluated in a rule. I want to write a rule for a specific serial usb device (HUAWEI Modem), with a ...
2
votes
1answer
726 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
0answers
208 views

What can cause a usb port speed change?

I have an instrument connected via usb to a OpenSuse (11.1 32) computer. Following the vendor instructions, I've added one rule to udev: ATTR{idVendor}=="0e0d", ATTR{idProduct}=="0003", MODE="0666" ...
1
vote
1answer
95 views

udevadm does not show expected information

I'm building my own Embedded Linux distro using bitbake . I added udev in the list of dependencies (RDEPENDS). I noticed that the output of: udevadm info --query=property --path=/sys/block/sda is ...
2
votes
1answer
484 views

Change hidraw device from mouse to joystick

I have a wireless PS3 controller adapter that is plugged in to my Ubuntu 14.04 box. It has 2 modes: XInput and DInput, which as far as I can tell, it just passes two different vendor/product id's ...
7
votes
3answers
2k 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 ...
5
votes
1answer
277 views

How to detect if USB device is bootable in udev?

I'm trying to write a udev rule to not mount USB devices plugged into my system if they're bootable, but I don't know how to specify in udev if a device is bootable in a rule. Is that possible? If so, ...
1
vote
1answer
190 views

Script executes differently if run from udev

I'm having an issue with a script that seems really weird; it appears to stop executing prematurely when run from udev, but not when I run it manually from the command line. I've tried troubleshooting ...