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

learn more… | top users | synonyms

1
vote
1answer
83 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 /run/udev/watch/...
0
votes
2answers
1k 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
384 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
323 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
117 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
180 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
240 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 ACTION=="add",SUBSYSTEM=="usb",ATTR{...
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 ...
0
votes
1answer
189 views

No /dev/ttyusb* in Linux

I want to do some serial programming using Python Serial, and all examples I've seen online for USB set the port parameter to "/dev/ttyUSB*" . But on my system, there is no "/dev/ttyUSB*" inspite of ...
0
votes
1answer
95 views

Network interface name: “/var/log/dmesg” vs “/etc/udev/rules.d/70-persistent-net.rules”

Is it more reliable to look up the association between interface name and MAC address in /var/log/dmesg or in /etc/udev/rules.d/70-persistent-net.rules? On Debian 7 or CentOS 7, out of the box, I can ...
1
vote
0answers
177 views

udev: Passing parameters via $attr{key} does not work. How to solve it?

I want to enumerate my USB-UART bridges with my own script. The script shall be called with some attributes and return a new devfs node name. I tested the script on console: ./rc3e.py -d get-devfs-...
2
votes
2answers
181 views

udev fails to create persistenly named symlink using ID_PATH

I want to name a (USB) device persistently depending on the port it is connected to. Using udevadmin I found the following info # udevadm info --name=input/event3 | grep ID_PATH E: ID_PATH=platform-...
0
votes
1answer
52 views

UDEV: RUN+=“/usr/bin/setsid /usr/bin/nautilus” doesn't work - why AND how do you detect and run it as the X user?

From man udev This can only be used for very short-running foreground tasks. Running an event process for a long period of time may block all further events for this or a dependent device. I'...
0
votes
0answers
21 views

UDEV: Where do I store scripts that are used to process events using PROGRAM or RUN?

I want to RUN+='/usr/bin/nautilus' when a USB stick is plugged in. I do it on ACTION=="start", unfortunately I cannot do this directly from udev because it kills the process. This can only be used ...
2
votes
1answer
73 views

UDEV: How do i use the %s{file} substitution specifier?

I'm trying to create a udev rule to name my USB devices as: Sandisk_Cruzer_16GB". How do I use the %s{file} substitution specifier with SYMLINK ? KERNEL=="sd[a-z]", SUBSYSTEM=="block", ATTR{ro}=="0", ...
1
vote
3answers
144 views

Don't add new ethernet interfaces, use it as eth0

I have multiple ARM devices on which Debian runs. I have a single image saved from the SD Card and intent to use it on all devices. Now I have the problem, that each time the MAC address of the eth, ...
1
vote
0answers
86 views

My udev Rule do not trigger when USB driver is connected

I trying to run a script each time a USB drive is connected to the Raspberry PI by using udev rules, but cannot get it to work. I have created a file in: /etc/udev/rules.d/85-usbthumb.rules ...
2
votes
1answer
317 views

How to set Ethernet link speed & duplex

How can I configure my Ethernet (eth0) link speed and duplex on my systemd & connman based system? I've previously used a script in /etc/network/if-up.d, in which I could make a call like: ...
1
vote
0answers
68 views

UDEV-rule:Open new gnome-terminal window on usb-plugin AND activate it for stdin/stdout/stderr?

My attempt is this: If a certain USB-device is plugged in, I want to open a gnome-terminal window in my desktop-environment. This newly opened window must be able to be interactive, this means, the ...
3
votes
1answer
646 views

Udev rule to match any usb storage device

How can I implement udev rules for any USB mass-storage device plugged in, not just for specific one? What should be changed in idVendor, and idProduct? ACTION=="add", SUBSYSTEM=="usb", SYSFS{...
0
votes
0answers
41 views

Automatically running usb when plugged in

I want to automatically run script when usb is plugged in, and I found one solution,http://stackoverflow.com/questions/23097285/default-file-permissions-for-fat32-usb-stick-on-raspberry-pi, Default ...
0
votes
1answer
43 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
48 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 work:...
0
votes
1answer
66 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
31 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
88 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
49 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
112 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
140 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
109 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
31 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
90 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
63 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", ATTR{idProduct}=="0408"...
3
votes
1answer
4k 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
381 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 /media/...
3
votes
0answers
223 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
321 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
83 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
436 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
369 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", ATTRS{serial}=="<serial_number&...
0
votes
0answers
74 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
542 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
155 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
106 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
192 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
260 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
207 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
71 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 ...