Questions tagged [udev]

The kernel's device manager, responsible for the contents of /dev.

udev is the Linux kernel's generic device manager.

Primarily, it manages device nodes in /dev. It is the successor of devfs and hotplug, so it handles the /dev directory and all user space actions when adding and removing devices, including firmware load.

Source: Copied with modification from udev on Wikipedia.

Links:

688 questions
86
votes
4 answers

I can read from /dev/null; how to fix it?

I read the Wikipedia article on /dev/null and was playing around by moving files to /dev/null. For this I created a test_file and put some contents in it: $ touch test_file $ echo "This is written by Aditya" > test_file $ cat test_file This is…
Aditya
  • 13,616
57
votes
6 answers

Network interface name changes after update to 15.10 - udev changes

I updated a virtual machine running Ubuntu server 15.04 to the just released new stable 15.10. There were no apparent problems, but after reboot the machine lost its network connection. lspci showed the correct card and lsmod proved that the driver…
JeffRSon
  • 1,664
56
votes
10 answers

What is the correct way to restart udev?

I've changed the name of my eth1 interface to eth0. How to ask udev now to re-read the config? service udev restart and udevadm control --reload-rules don't help. So is there any valid way except of rebooting? (yes, reboot helps with this…
zerkms
  • 1,502
54
votes
11 answers

What is the best way to configure a Thinkpad's TrackPoint?

The previously useful ThinkWiki pages appear quite outdated. I am trying to permanently change my TrackPoint sensitivity and speed settings and enable middle mouse button scrolling. I have tried configure-trackpoint in the past, but the settings…
41
votes
7 answers

Android adb no permission

I'm trying to use adb from a Ubuntu(+Cinnamon) machine. The problem is that I get following message from adb devices: List of devices attached TA8830OIVO no permissions Where TA8830OIVO is my Motorola G device. I changed android rules in…
shadox
  • 523
40
votes
7 answers

How to distinguish between identical USB-to-serial adapters?

I use a number of identical USB-to-serial adapters with my laptop (Ubuntu 9.10). The adapters are manufactured by Sabrent and are built around a Prolific PL2303 IC, as shown by lsusb: Bus 001 Device 008: ID 067b:2303 Prolific Technology, Inc.…
31
votes
5 answers

AdbCommandRejectedException: insufficient permissions for device: user in plugdev group; are your udev rules wrong?

Five days ago I installed Android Studio on a fully updated Ubuntu 2018.04, used the wizard to create an example app, pressed the "Run" button and it ran perfectly on my Android device connected via USB. Today, on the same Ubuntu and with the same…
Nicolas Raoul
  • 11,921
29
votes
5 answers

Make the zoom slider of Microsoft Natural Ergonomic Keyboard 4000 and 7000 scroll up and down, in 14.04 (Trusty)

I tried to use this tutorial to make scroll switch work on my Microsoft Natural Ergonomic Keyboard 4000. But I face following error: sudo: /lib/udev/keymap: command not found I have udev version 204-5ubuntu20.2 (the version found in Trusty) I…
29
votes
6 answers

Configure udev to change permissions on USB HID device?

I have a USB scale, a USB HID. Currently, when it is plugged in, the permissions only allow the superuser to access it. How can I configure udev to let anybody access this device? I have the vendor and product IDs, but I would like to match it…
erjiang
  • 864
22
votes
6 answers

How can I tell linux kernel to completely ignore a disk as if it was not even connected?

Notice Please scroll down for the answer (it has few points but it is the correct one). The problem is solved by a patch that will be in kernel 3.12.7 and up; I hope it will back-ported to earlier ones, too. My laptop is a Samsung Chronos serie s 7.…
Rmano
  • 32,167
21
votes
2 answers

How do I change the keymap of a single device (Logitech presenter)?

My Logitech R400 presenter sends the following key codes: keycode 112 (keysym 0xff55, Prior) [page up] keycode 117 (keysym 0xff56, Next) [page down] keycode 60 (keysym 0x2e, period) keycode 71 (keysym 0xffc2, F5) keycode 9 (keysym…
htorque
  • 66,086
20
votes
1 answer

Automount in 16.04

I need automount for internal and external storages. On boot and on connect. For now I have to click in file manager to make it accessible which is weird for 2016! I know that only udev can be involved in it. But cant find a way for modern ubuntu,…
Maximus
  • 661
20
votes
2 answers

Prevent a specific USB device from auto-mounting

I want to stop a USB device from automounting in Ubuntu 13.04. For example, when I connect my iPhone 5 to my desktop I am consistently prompted for what I want to do (whether or not I want to erase the "iPod" connected to my machine, etc). Since I…
Mark D
  • 775
19
votes
3 answers

How are key codes mapped to the appropriate action?

After figuring out how to change the mapping of scan codes to key codes using udev, see this question, I was wondering how those key codes (or events if you will) are mapped to the appropriate action. So, for example, if you press volume up on your…
18
votes
4 answers

udev rules seem ignored; can not prevent modem manager from grabbing device

I am trying to prevent modem manager from running when I plug my cell phone into a USB port. I have tried to add a custom rule with udev, but my custom rules seem ignored. I created a file /etc/udev/rules.d/99-mm-usb-device-blacklist.rules which…
superdesk
  • 907
1
2 3
45 46