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

learn more… | top users | synonyms

2
votes
1answer
47 views

How to prevent /sda /sdb changes between boots?

I am going to install Gentoo Linux onto an old hardware, which motherboard is having both IDE and SATA hard drives. I have two IDE and one SATA hard drives connected, and plan to do RAID on them. ...
9
votes
1answer
275 views

Cloned system + network interfaces

I'm currently in a little bit of a pickle. I've made an image of my system and I have given it to someone to run. They have successfully flushed their system with the image and are running it. The ...
2
votes
0answers
33 views

python script via udev rules for hotplugging display port monitor [closed]

I'm running i3-wm on a ubuntu install. i3 doesn't auto-detect and configure the monitor set up when I (dis)connect the miniDP cable. I've tried implementing a udev rule that runs a python script which ...
1
vote
0answers
12 views

Can I change device node with udev rules?

In the recent udev(7) manpage (Fedora 22, systemd version 219), it seems that renaming a device node by udev using NAME key has been prohibited: NAME The name to use for a network interface. See ...
0
votes
0answers
11 views

GSM modem and USB serial port issue with UDEV

I have 2 devices Dlink DWM-157 3g modem and Trendnet TU-S9 usb to serial. The Dlink modem came with a udev script which works fine when the usb-to-serial is not plugged in from boot. So if the ...
0
votes
0answers
12 views

Raspberry Pi bluetooth keyboard not responding

I am running Debian Jessie on a Raspberry Pi (specifically 2 B model) and I have bluetooth working and a generic bluetooth keyboard paired and connected. Even so, nothing that I type on the kb will ...
4
votes
4answers
829 views

What is this dd if=/dev/zero of=/dev/sda do

Could someone help me understand what I got? dd if=/dev/zero of=/dev/sda bs=4096 count=4096 Q: Why specifically 4096 for count? dd if=/dev/zero of=/dev/sda bs=512 count=4096 seek=$(expr blockdev ...
0
votes
0answers
102 views

Installing OpenSuse Leap 42.1 - Installation hangs at “Starting udev”

I am trying to install the new OpenSuse Leap 42.1 on my PC. I already tried 4 different installation mediums: DVD with full installation DVD with Net installation USB with full installation USB with ...
2
votes
1answer
99 views

Debian won't shut down (Failed to start poweroff.target: Transaction is destructive)

I stumbled upon a weird behaviour of my BunsenLabs Linux. Sometimes I cannot turn off the OS. I doesn't matter whether I use sudo poweroff or the GUI approach. This is what I get after running sudo ...
1
vote
2answers
56 views

Fn keyboard keys not working (when udev is disabled)

I am in the process of getting rid of udev daemon from my system. I have fixed all issues, only one small problem is remaining: It used to be (when I was using udev), that Fn+Down acted as ...
2
votes
1answer
46 views

setting up Xorg input devices without udev

I have udev support in kernel(CONFIG_DEVTMPFS), thus my system does not strictly require udev daemon. Indeed everything works fine without udev daemon with the exception of Xorg (LXDE). LXDE starts ...
1
vote
0answers
14 views

What is the difference in using xinput and synclient for deactivating a touchpad in X

I have troubles using xinput --disable or --set-prop "Device Enabled" or set-prop "Synaptics Off". It seems that --disable / --enable and "Device Enabled" are meant to deactivate the whole device, ...
2
votes
1answer
52 views

ALSA - Traktor Audio 2 - How to split front and rear stereo channels / How to debug dmix

I am struggling to persuade ALSA to separate the front and rear outputs of my Native Instruments Traktor Audio 2 external USB soundcard and would really appreciate help. USB Vendor ID: 17cc, USB ...
1
vote
1answer
10 views

Udev rules matching a command's output (or something similar)

I'm writing a common udev rule for deployment to computers with one or two Silicon Motion SM501 video cards installed. This is the current rule: TAG=="seat", ENV{ID_FOR_SEAT}=="usb-pci-*-usb-*_[34]", ...
0
votes
0answers
12 views

White Listing USB's via Udev

I am planning to whitelist USB Device in such a way that initially everything will be denial ALL followed by whitelisting of certain USB. I've written these rules in UDEV but it doesn't seem to work. ...
0
votes
0answers
18 views

Dynamic mdev ifup and ifdown of network interface

Is it possible to have an mdev.conf rule that would run ifup on device creation and ifdown on detach? i.e. eth[0-9] root:root 660 @ifup $MDEV | $ifdown $MDEV
0
votes
1answer
25 views

Is it possible to get the devtype of a USB wifi device?

I know udevadm info gives the devtype of disks as disk. However, how would I get the devtype of a usb wifi adapter? (ie wlan, wwan, etc)
1
vote
1answer
37 views

How do I connect a USB mass storage device that has a custom pid and vid?

I have a device, custom mp3 player, that the pid and vid show up as a011:a011. dmesg usb 1-1.1: new high-speed USB device number 4 using ehci-pci usb 1-1.1: New USB device found, idVendor=a011, ...
1
vote
0answers
22 views

udev working with SYMLINK but not with NAME

Problem: I'm writing persistent naming rules for a USB dongle following the tutorial here. The rule works as expected for : SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", ...
0
votes
1answer
18 views

Writing to /dev/kmsg with udev run

I have written a simple udev rule to name my usb device: SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", SYMLINK+="ttyUSB-ZStick-5G" udev offers ways to run custom scripts on ...
0
votes
2answers
40 views

How to skip boot time custom udev rule?

I have following udev rule in /etc/udev/rules.d/80-foo_usb.rules to detect pen drives, KERNEL=="[a-z][a-z][a-z][1-9]", SUBSYSTEM=="block", ACTION=="add", PROGRAM+="/test/foo.sh $kernel $parent" It ...
1
vote
0answers
17 views

Udev: cmd executed when attaching device, but does nothing

I created rules which should run a command when i attach my USB mouse to disable the touchpad and the point stick: machine ~ # cat /etc/udev/rules.d/61-touchpad.rules # 61-touchpad.rules # disable ...
1
vote
0answers
24 views

How to wait for detected LVM volumes?

I have the following problem: I have a machine running arch and which contains a encrypted LV in a LVM. Inside the (encrypted) LV is another PV located. So I have in fact two VGs: One which contains ...
0
votes
0answers
15 views

Cant interactive external program be executed using udev rules? [duplicate]

I am using following udev rule(s) to execute my program whenever block device (e.g. USB) will be attached. ACTION=="add", SUBSYSTEM=="block", PROGRAM+="/tmp/foo %k" or ACTION=="add", ...
0
votes
1answer
37 views

How can I permanently change the ownership of a mounted device under `/media/$USER`?

I'm using an encrypted (cryptsetup with LUKS with ext3) SD-Card as disk space extension. When entering the key in Nautilus, the device is decrypted (/dev/dm-3) and mounted in /media/$USER/. ...
1
vote
1answer
33 views

USB LABEL in different language

If the USB LABEL (name) is in different langauage (Hindi or Chinese) how do i get to know which language it is coded to pass to the iconv or is there any way we can know the language which has been ...
0
votes
2answers
25 views

Program run from udev cannot open a window [duplicate]

I have a script, written in python: #!/usr/bin/python3 from tkinter import messagebox variable = messagebox.showinfo('title', 'question') This python script does nothing else than showing a message ...
0
votes
0answers
29 views

Scripts timeout using USBMount

I'm using Usbmount (https://github.com/rbrito/usbmount) on a raspbian system to auto-detect the insertion and removal of a usb stick in to the unit and then run a script from the ...
1
vote
2answers
94 views

UDEV executes bash script only partially

I have this UDEV rule, which gets activated when I plug in my keyboard: ACTION=="add", DEVPATH=="/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/0003:046A:0011.00??/input/input??/event[0-9][0-9]*", ...
3
votes
1answer
69 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
28 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
20 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
228 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
191 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
52 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
1answer
69 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
40 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 ...
0
votes
1answer
41 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
1k 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
55 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
84 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
73 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
34 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
57 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
1answer
54 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
32 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
65 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
139 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
95 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
16 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 ...