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

learn more… | top users | synonyms

3
votes
1answer
36 views

How does linux load firmeware for built-in driver modules

I've learned that the firmware-subsystem uses udevd to copy a firmware to the created sysfs 'data' entry. But how does this work in case of a built-in driver module where udevd hasn't started yet? ...
1
vote
1answer
18 views

How to change keyboard settings of the active user using udev and setxkbmap?

I have a usb keyboard that I plug in into my desktop at work. While using it tend to manually set the following setxkbmap option: setxkbmap -option compose:ralt setxkbmap -option ctrl:swap_rwin_rctl ...
2
votes
0answers
16 views

how do I add a udev property for my android phone?

I'm trying to get my android phone recognised by rhythmbox. Talking to upstream, rhythmbox gets the value of "id_model" for the udev device - if it is "Android" then it should work. How do I use a ...
1
vote
1answer
112 views

Dependency failed for mount after dist-upgrade

Last weekend, I ran an apt-get dist-upgrade on a home Debian 8.3 system, and was surprised to see that it entered emergency mode on the next boot. The server in question runs LVM on top of a mdadm ...
8
votes
1answer
181 views

Need help improving my Bash script

I need some help improving my Bash script so that it runs flawlessly without having issues. This script uses ds4drv in it and it has some issues that I'm unsure on how to correct. First issue is that ...
1
vote
1answer
35 views

How is /dev/null created on archlinux

Just wondering how is /dev/null created on my archlinux box. I investigated udev rules under /usr/lib/udev/rules.d, but there are no rules relating to to name null. > ag null ...
0
votes
0answers
37 views

What's the difference between udev and acpi(d)

They both seem to be receiving & processing kernel events, so why do they both exist? From what I gather, ACPI seems to be more high-level compared to udev, but apart from that can't really tell. ...
1
vote
2answers
21 views

What causes a PCI ID to change

When running lspci on my RHEL 7.2 box I noticed my Ethernet Adapters changed PCI bus IDs. In the example below it changed from "02:00.x" to "03:00.x". What might have caused this? Is there a way ...
1
vote
1answer
22 views

Using udev rules to let everyone set ip address to a network interface

I want to let everyone on the system to be able to change the ip address of a network interface. I have wrote a rule in /etc/udev/rules.d like this: SUBSYSTEM=="net", ...
6
votes
1answer
89 views

How to regenerate 70-persistent-net.rules without reboot?

The file /etc/udev/rules.d/70-persistent-net.rules is auto-generated on a Linux system with udev, if it does not exist during reboot. But I would like to know a command how to create this rules file ...
0
votes
0answers
27 views

Cannot install GPIO on CubieTruck : Error processing udev archive

I am running Cubieez 2.0 on a Cubietruck. After running apt-get update, I wanted to run pySUNXI GPIO. However, I encountered a problem: root@cubietruck: cd pySUNXI-VSRNDCT-0.0.1/ python setup.py ...
0
votes
1answer
37 views

udev disk mount permissions in linux

We would like to set up a customer account on our overo running embedded Angstrom along with ssh so they can log on to retrieve data. uname -a Linux pb014-01 2.6.32 #1 Wed Feb 29 15:17:02 GMT 2012 ...
1
vote
1answer
50 views

udev creates the right rules, but rights disappear as soon as I try to access files via C++

I'm facing a really strange problem using udev. As I already explained here I'm trying to access some folders/files as a no root user Here are my udev rules for the gpio folder: KERNEL=="gpio*", ...
1
vote
0answers
22 views

udev: Wrong symlink is made at boot time

I am trying to create a udev rule to give a static name to a ttyUSB (a FTDI USB serial cable). My rule is quite simple (the file is named 99-usb-serial.rules): KERNEL=="ttyUSB?", ...
0
votes
1answer
44 views

udev doesn't apply changes recursively

I'm working with a beaglebone black board (ubuntu release for ARM architecture), which has some general purpose input/output (GPIO) interface to read sensors/drive motors etc.. which are configurable ...
0
votes
0answers
17 views

My printer in /dev/usb/lp0 always disappear after few seconds, and can't print, how to fix it? (Ubuntu 14.04)

Please, help... I have a 'EPPOS Model EPT-58H' thermal printer. When I plugin via usb, it detected as /dev/usb/lp0 with ls -l /dev command. Then I run echo "sometext" > /dev/usb/lp0 in terminal to ...
1
vote
1answer
23 views

How do I automatically force a umount on a usb drive that has already been removed?

I have debian system that auto mounts an entry in my fstab file when a usb drive is connected. This is done so as a read only device The device is mounted to /media/usb1 If i'm in the console and ...
2
votes
1answer
32 views

How to disable asking for root password while ejecting USB drives?

When I mount usb drive it mounts successfully, but when I hit triangle button in Thunar (Eject) - I'm asked for root password! Executing $ udisks --eject /dev/sdd in console doesn't require root ...
3
votes
1answer
50 views

change size of devtmpfs /dev/

My new kernel has CONFIG_DEVTMPFS enabled, and thus my /dev is mounted as devtmpfs. My old kernel was not using CONFIG_DEVTMPFS, and /dev used to be mounted as plain tmpfs. Now I have noticed, the ...
1
vote
0answers
44 views

when running `udevadm test`: `no db file to read /run/udev/data/+gpio_sw:PA7: No such file or directory`

I am trying to write an udev rule that matches a GPIO Pin of my Orange Pi (the GPIOs use the gpio-sunxi kernel module). My ultimate goal is to let users who are member of a particular group access ...
0
votes
0answers
9 views

Devices for Analog I/O gone from /dev after reboot

I have a system using Centos 6.6 and another system using RHEL 6.6 on the same architecture that both need analog I/O drivers to communicate with sensors that will be attached to the device. Thus, I ...
1
vote
1answer
44 views

Why is my udev rule executed three times

I've made a little udev rule that launch a script that make an archive of my ~/Documents directory. That do the job, but when I read the log file, it seems that the archive script is executed 3 times ...
4
votes
1answer
36 views

Can udev trigger an action upon mount alone?

Can udev be used to trigger an action when an always-connected drive is mounted, or is it only useful for hotplugging (as the documentation suggests)? I want to trigger a script when my ...
0
votes
0answers
59 views

Setting standby timeout with hdparm during boot via udev rule not working

I set the APM level and standby timeout of my HDDs during boot with a udev rule: ACTION=="add|change", KERNEL=="sd[b-z]", ATTR{queue/rotational}=="1", RUN+="/usr/bin/hdparm -B 63 -S 36 /dev/%k" I ...
1
vote
1answer
29 views

Can udev monitor network storage mounting & unmounting?

I want to setup notification whenever any network drive is mounted or unmounted. (Basically I want to run a custom script, whenever any network storage is mounted or unmounted). I think udev can do ...
0
votes
0answers
28 views

Udev Rule: Auto-increment device number

I have 3 devices which get mounted as /dev/ttyACM[0-2]. Two of these devices are identical, called flow modules. The third is an Arduino Uno. I have the following udev rules which work to a certain ...
2
votes
2answers
54 views

Having trouble making sense of the df command

uname -a Linux CentOS01.localdomain 3.10.0-229.14.1.el7.x86_64 #1 SMP Tue Sep 15 15:05:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Here is the output of lsblk on the centos VM I'm playing with: ...
0
votes
0answers
15 views

Thinkpad T61: Udev-rule not working

I'd like to create a special udev-rule to improve the batterylife of my thinkpad T61 by set the brightness to a low value if the power supply is unplugged and my laptop using the battery. Therefore I ...
0
votes
0answers
47 views

systemd-networkd: Set VLAN device MAC based on host MAC

I am working on a platform with an ARM CPU running linux that has a single MAC in the CPU directly connected to a switch IC. I am trying to set up a VLAN mode using systemd-networkd which I have done ...
0
votes
1answer
53 views

USB key does not show up in /dev

We use a USB key system that are contain license files and are provided to unlock proprietary software that we used. The USB drives are small however and get lost easily, so I thought I'd clone them ...
2
votes
1answer
43 views

udev rule to turn on keyboard backlight

I have a very simple generic gaming keyboard with a backlight. The, typically, universal way to engage the backlight is with xset led 3. I can confirm that this does in-fact work. Because I have two ...
1
vote
0answers
24 views

Kernel module inconsistency

everyone. I have special USB device (chinese touchscreen), what I need to connect to my computer with Linux. By default, Linux assign connected device to usbhid (I found this info by execute ...
1
vote
0answers
27 views

How to automatically load a new VID&PID to module usb_serial

I have a 4G module that requires me to run echo '03f0 581d' > /sys/bus/usb-serial/drivers/generic/new_id after every startup/resume to make the modem visible. How should I make this automatic? ...
2
votes
0answers
42 views

How can I make udev accept mass storage and reject everything else?

I'm trying to write a udev rule to allow USB mass storage devices but reject anything else (keyboard, mouse, etc). I found this online: ACTION!="add", GOTO="deauthorize_end" SUBSYSTEM!="usb", ...
1
vote
1answer
51 views

In udev, what kind of device events match ACTION==“change”?

The udev rules I've created so far only deal with devices being added or removed, i.e.: ACTION=="add"... or ACTION=="remove"... I've come across an example of a rule that seems to deal with device ...
2
votes
1answer
50 views

Control pseudo-terminal (/dev/pts/*) assignments

Is there any way to control which pseudo-terminal (/dev/pts/*) a connection is given? For example, I have multiple thin clients each running individual terminal sessions to a RHEL server over SSH, I ...
1
vote
0answers
23 views

udev rules official docs

I am looking official UDEV rules, documents, I have noticed there are changes in udev rules in RHEL 7. But could not find any documents some thing like 'request for changes'. Please help Thanks,
0
votes
1answer
10 views

What does GROUP in an udev rule actually set?

I have a new Brother MFC and had permission issues and managed to solve them by changing GROUP="scanner" to GROUP="lp" in the relevant udev rule as my user is in the lp group but not in the scanner ...
4
votes
1answer
144 views

What happened to /dev/raw/?

I am reading an article on LWN and it has an important statement: Raw devices (/dev/raw/rawN) are a special case of O_DIRECT I/O. These devices can be opened without specifying O_DIRECT, but ...
1
vote
0answers
73 views

Redhat 7.1 Udev Rules changes SYMLINK+ And Name

I am tying to install Oracle ASM on RHEL 7.1, for that trying to configure Udev rules. I have noticed there are is new attribute in udev rules SYMLINK+ which seems to be replacement of NAME ...
3
votes
2answers
124 views

sysfs and devtmpfs

Ok, Ulrich Dangel explains very well the difference between devtmpfs and udev but what happen with sysfs I understand that the kernel use sysfs to export device nodes to user space to be used by udev, ...
1
vote
0answers
30 views

udev rules not working

I am trying to change the name of my network device wlan0 to eth1 in order to get Matlab to active, I have added the file: 70-use-eth1-for-matlab-licensing.rules with the following contents: ...
1
vote
1answer
40 views

What are these symlinks in /run/udev/watch?

I searched my computer for all the broken symlinks with the command find / -xtype l And it returned these among a few others: /run/udev/watch/9 /run/udev/watch/8 /run/udev/watch/5 ...
0
votes
2answers
349 views

Install fuse debian 8 jessie

I'm on debian 8 jessie with a 4.2.3 kernel. I can't seem to get fuse installed and working. When I install fuse with sudo apt-get install fuse I get MAKEDEV not installed, skipping device node ...
2
votes
1answer
109 views

udev rules driving me nuts

I have this usb-serial device: root@imx6_armboard:/etc/udev/rules.d# udevadm info -a -p $(udevadm info -q path -n /dev/ttyUSB0) Udevadm info starts with the device specified by the devpath and then ...
1
vote
0answers
120 views

CentOS 7 - Forcing a disk to be /dev/sda

I've been wrestling with this problem for awhile now, and I've hit a wall and need help. In my system, I have 1 drive connected to a SATA port, an SSD. CentOS 7 is installed to this disk. Also in ...
4
votes
1answer
90 views

Where is the default device name (e.g. /dev/ttyUSBx) specified?

I'm investigating dynamic device name mapping via udev. The goal: On a multi user system, each user can allocate and free devices like usb-serial converters or PCIe cards (FPGAs). If an user ...
0
votes
3answers
79 views

udev does not apply rules

I am having some problem assigning rules from udev. I have 2 FTDI232 chips mounted on my board (they are totally 3 but I am interested in 2 of them right now), the kernel manages them with the ...
1
vote
1answer
118 views

Run a udev rule for a USB flash drive when the computer is started with the device inserted

I want my Ubuntu 15.04 x64 server system to execute a script whenever a certain flash drive is inserted. So I created a custom rule file with the following content ...
0
votes
0answers
23 views

Automatically Disable the Touchpad when a USB Mouse is plugged in under Linux with udev [duplicate]

I've looked all over google and trying myself to create this functionallity but to no avail. I am really annoyed by the touchpad on my laptop and I mostly use a USB mouse. I've tried using udev to ...