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

learn more… | top users | synonyms

0
votes
0answers
7 views

What permissions should a udev rule have?

What permissions should a udev rule have for a USB device? 644? 755? For example on Ubuntu I'm looking at this file: /etc/udev/rules.d/99-lpcscrypt.rules
2
votes
1answer
16 views

How can I make a udev rule using a “sibling” device's serial number (for USB devices with no unique serials)?

I have testing equipment that is made-up of the following: a USB Hub connected to the master PC, the hub is embedded in the test jig and is used so that we have only 1 USB cable running from the jig ...
0
votes
0answers
12 views

Error calling EVIOCSKEYCODE

I used journalctl -p 3 -xb and got this error message -- Logs begin at Thu 2016-06-23 22:48:08 AST, end at Sat 2016-06-25 13:15:23 AST. -- Jun 25 09:31:35 Almoullim systemd-udevd[268]: Error calling ...
0
votes
0answers
32 views

device eth1 does not seem to be present

fedora-3 (I know, it is ancient, but this is my sandbox where I look under the hood), udev-039, kernel 2.6.27, configured and compiled by myself. I'm using pci wifi card with ath9k module. Kudzu ...
0
votes
0answers
14 views

systemd-networkd fails to start when network booting via pxelinux

I created a systemd link file to enforce persistent network interface naming for a stack of network-booted hosts. Because the MAC varies between machines, I have to use the PCI path for matching the ...
0
votes
0answers
25 views

Why is this udev remove rule not working? [duplicate]

Hate to ask this sort of question, but... Device info: udevadm monitor --env UDEV [3048.530438] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.3 (usb) ACTION=remove BUSNUM=002 ...
1
vote
0answers
61 views

Interrupted apt upgrade broke udev and systemd

During an update of my Raspbian installation (Pi rev. B+) over SSH I lost connection. After a hard reboot (which may have happened during or after finishing the update) the udev kernel device manager ...
3
votes
1answer
53 views
+100

Automatically switch display on lenovo docking and linux

I have a lenovo thinkpad with nvidia optimus and a mini docking station series 3. I want that while docked, it should automatically switch to an external monitor if possible and if I undock it, it ...
1
vote
0answers
12 views

udev keyboard remapping with hwdb NumLock 0

I have a Samsung np870z5e laptop with builtin Numpad with ubuntu 16.04 and udev 229. I have a 'Fn-lock' button, if I press it, the Numpad 0 button (KP_0) becomes 'Menu' button (xev reports it), or '...
2
votes
2answers
43 views

Mistakenly removed scsi-drive device files

I mistakenly removed my sd* device files via the following command: rm /dev/sd*. Is it possible to recreate the device files via mknod?
2
votes
1answer
42 views

How to run a script (when usb memory is plugged) automatically in Debian Jessie (Raspberry Pi)?

I'm working with Raspberry Pi. Previously, I used udev rule to run a script when a usb flash memory was plugged. The following was the content of /etc/udev/rules.d/10-usbstick.rules file: ACTION=="...
1
vote
1answer
28 views

FTDI Driver for Custom PID and VID

I have changed VID and PID of my ftdi board to 0001 and 0002. Now the com is not showing and the device is showing in unknown device. How can make a customize driver for it to get com port. Sorry ...
1
vote
0answers
139 views

Can Ubuntu 16.04 setup autofs to automount /media/autousb with read and write permissions if am user frank?

I spent 6 hours yesterday testing @Ingo Blackman's answer to the Unix and Linux Stack Exchange article, [Automounting USB sticks on Debian When I use a udev rule ACTION=="add" and RUN+="/bin/ln -...
1
vote
1answer
61 views

Udev rule setting up SocketCAN socket only works correctly only when run manually

I want to start slcand (the userspace daemon for the serial line CAN interface driver) when my Lawicel CanUSB dongle is plugged in. I followed Pascal Walter's step-by-step guide and all seems to work (...
0
votes
1answer
53 views

How do I set up a udev rule to mount the SanDisk Cruzer USB upon insertion in order to eliminate an fstab entry?

Suppose I run sudo mount -a after setting /etc/fstab to: /dev/usbhd1 /path/to/mount/point ntfs rw,auto,nofail 0 1 Yesterday, upon asking what steps our architect and I should do next after a ...
1
vote
3answers
107 views

Is it possible to make the device filesystem name , /dev/sd?1 , stay constant everytime we reconnect the SanDisk USB Cruzer drive?

Is it possible to make the device filesystem name , /dev/sdi1 , shown by lsblk -f stay constant everytime we disconnect and reconnect the SanDisk USB Cruzer drive? I am running Ubuntu Linux 16.04 on ...
1
vote
0answers
44 views

how to detect CD physically inserted into drive

How to detect that CD was physically inserted into CD mechanics ASAP? The CD is mounted automatically but it takes like 20 seconds sometimes - and it is just then that I know the CD is inserted.. ...
4
votes
1answer
115 views

Why is my udev mounted device not staying put?

I have a computer running CentOS 7. I'm trying to set up a udev rule to automatically mount a USB drive (named 'sdb1') to /mnt/flash whenever it is connected. The udev script was not working (see ...
0
votes
0answers
17 views

How to create symlink USB to COM port

I need help to create the udev rule. I need my my USB printer to be located as COM1. lsusb ouput: ‍Bus 001 Device 005: ID 0fe6:811e Kontron (Industrial Computer Source / ICS Advent) Parallel Adapter‍...
1
vote
0answers
121 views

Kernel driver for trackpoint on Lenovo Thinkpad 13

On other ThinkPads I've succesfully configured the trackpoint with udev using this method but on my new Lenovo Thinkpad 13 this isn't possible: This command: find /sys/devices/platform/i8042 -name ...
1
vote
1answer
65 views

udev monitor hotplug rule not running

I have setup a basic udev rule to detect when I connect or disconnect a mDP cable. The file is /etc/udev/rules.d/95-monitor-hotplug.rules KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{...
3
votes
1answer
109 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
290 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
55 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
24 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
28 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
13 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
1k 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
2answers
269 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 ...
3
votes
1answer
427 views

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

I stumbled upon a weird behaviour of my BunsenLabs GNU/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 ...
1
vote
2answers
81 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
109 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
29 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, ...
3
votes
1answer
94 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
12 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
1answer
16 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
30 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
50 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
72 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, ...
2
votes
0answers
28 views

udev working with SYMLINK but not with NAME [duplicate]

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
25 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
55 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
25 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
33 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", SUBSYSTEM=="...
0
votes
1answer
58 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
35 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
30 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
45 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 /etc/usbmount/mount.d/...
1
vote
2answers
111 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]*", ...