Skip to main content

Questions tagged [udev]

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

Filter by
Sorted by
Tagged with
84 votes
4 answers
41k views

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 ...
Aditya's user avatar
  • 13.4k
57 votes
6 answers
153k views

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 ...
JeffRSon's user avatar
  • 1,664
54 votes
10 answers
213k views

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 ...
zerkms's user avatar
  • 1,472
52 votes
11 answers
85k views

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 ...
Jonathan Blackhall's user avatar
41 votes
7 answers
57k views

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 ...
shadox's user avatar
  • 523
38 votes
7 answers
101k views

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 ...
Chris OBrien's user avatar
31 votes
5 answers
29k views

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 ...
Nicolas Raoul's user avatar
29 votes
5 answers
14k views

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-...
Dmitry Belaventsev's user avatar
29 votes
6 answers
114k views

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 ...
erjiang's user avatar
  • 864
22 votes
6 answers
47k views

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 ...
Rmano's user avatar
  • 32.1k
21 votes
2 answers
26k views

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 ...
htorque's user avatar
  • 65.1k
20 votes
1 answer
41k views

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 ...
Maximus's user avatar
  • 671
19 votes
2 answers
18k views

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 ...
Mark D's user avatar
  • 755
19 votes
3 answers
5k views

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. ...
Gerhard Burger's user avatar
18 votes
3 answers
64k views

How to get Bus and Device relationship for a /dev/ttyUSB

I need to write an script for restart USB dongles. I have all tools but I can't link my /dev/ttyUSBx to physical BUS and DEVICE. An issue is that I have three dongles with the same id vendor and id ...
Ernesto Campohermoso's user avatar
17 votes
5 answers
14k views

How do I hide / remove a partition from the Nautilus left panel?

I have a luks setup with encrypted partition. And I don't want everyone on my computer to see that I have such partition. Unfortunately it shows up in the nautilus "devices" panel as "Encrypted ...
yemu's user avatar
  • 389
17 votes
4 answers
11k views

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/...
superdesk's user avatar
  • 897
17 votes
6 answers
83k views

How to make keyboard backlight Fn buttons work in Samsung Series 9?

I've just installed Ubuntu 12.10 on my Samsung 900X4C. However, I can't get the keyboard backlights to work. I added the keymaps as per community docs - Samsung Series 9 (section Function Keys). But ...
mmalmeida's user avatar
  • 510
17 votes
1 answer
35k views

For pulseaudio what does tsched do (and what are the defaults)?

If I modify /etc/pulse/default.pa and change this line: load-module module-udev-detect to: load-module module-udev-detect tsched=0 I am clearly disabling tsched. Similarly if I change the line to, ...
Jake's user avatar
  • 171
16 votes
2 answers
69k views

Use of Predictable Network Interface Names with alternate kernels

Almost constantly, I use kernels from the Ubuntu kernel PPA, or kernels I have compiled myself, using the Ubuntu kernel configuration. The problem is when I am using the stock kernel it seems to ...
Doug Smythies's user avatar
15 votes
2 answers
15k views

Run script when monitor is connected

I am trying to run a script located in usr/local/bin/ when I connect an external monitor to my laptop. I have tried to add a new udev rule but that did not work. I created a new file in /etc/udev/...
Rumesh's user avatar
  • 1,439
14 votes
1 answer
6k views

Only use Mass Storage devices on a selected USB port - how?

On a given USB port, I only want to accept USB Mass Storage capabilities, and nothing else. No HID devices, no Bluetooth adapters, no RS232 converters, nothing. Is there a way to do this e.g. using ...
Piskvor left the building's user avatar
14 votes
2 answers
19k views

Use of Yubikey Neo for login 2FA and lock screen

I want to use my Yubikey Neo to login to Ubuntu 14.04. In addition, it would be convinient if the screen is locked automatically everytime I unplug the Yubikey.
smiddy84's user avatar
  • 493
14 votes
1 answer
30k views

How do I set executable permissions on a removable drive?

I'm using Ubuntu 10.10 and using a usb drive but I'm finding that I can't chmod any programs on the drive to +x. It is being auto-mounted by Gnome (using udev, I think?) so I imagine the problem is a ...
asterisk's user avatar
  • 143
13 votes
1 answer
29k views

Assign webcam to a specific /dev/video#

I have three webcams on my Ubuntu server 14.04. The output of lsusb: Bus 006 Device 002: ID 0bda:8153 Realtek Semiconductor Corp. Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus ...
Panos's user avatar
  • 299
13 votes
3 answers
2k views

What happens under the hood when an USB drive is inserted?

Some systems use udev / pmount to automatically mount thumbdrives. How is that solved in Ubuntu (specifically, Ubuntu 12.04)? Apparently, neither the pmount package nor the corresponding udev rules ...
January's user avatar
  • 36.3k
13 votes
2 answers
2k views

Alert the user when they unsafely unplug an USB thumb drive

Users repeatedly complain about lost data on USB thumb drives after they unplugged them without unmounting. We run Ubuntu 14.04 LTS on our machines. Auto-mounting is enabled. As I am tired of ...
RenWal's user avatar
  • 158
13 votes
4 answers
18k views

Auto-switch audio to HDMI when HDMI monitor/receiver plugged into laptop

I have a laptop with an HDMI port. While we're homeless and staying with friends I've been plugging it into their surround sound receiver with an HDMI cable. To get sound working I have to open up the ...
Oli's user avatar
  • 295k
13 votes
1 answer
2k views

USB sticks not accessible & system hangs at shut-down: related to older hardware?

Please notice the three updates at the end of the post. Original problem I installed Lubuntu 14.04.1 on an older Acer Travelmate 4500 using the forcepae option and adjusting upowerd.py according to ...
Rantanplan's user avatar
11 votes
3 answers
34k views

How to disable udev net rule generation?

In our cloud, we generate MACs with the prefix 2c:c2:60 for instances. When we re-use an instance, or duplicate it, the new copy gets another MAC address. When the new copy boots, the NIC gets the ...
borfig's user avatar
  • 533
11 votes
3 answers
20k views

Package udev is not configured yet

Today I decided to upgrade my Ubuntu Desktop 14.04 LTS to 16.04. Unfortunately, the upgrade process crashed on the way, no idea why. When I reboot I am left only with a black screen, if I choose the ...
Comforse's user avatar
  • 213
11 votes
4 answers
26k views

How can I create a new socket in /dev?

I want to create a new socket file in /dev. Does the way to get it is adding a new rule to udev?
Marc's user avatar
  • 491
10 votes
3 answers
21k views

How to detect touchscreen devices from a script?

I'm looking for a reliable way to detect if a laptop has a touchscreen device from a script. I know I can parse the output of: $ xinput --list ⎡ Virtual core pointer id=2 [...
Sylvain Pineau's user avatar
10 votes
1 answer
12k views

What is the difference between /dev/tty* and /dev/bus/usb/001/002?

When I plug in a device that uses the LUFA USB framework (or any USB<->serial peripheral), Ubuntu creates a /dev/ttyACM* device file. It also creates a /dev/bus/usb/001/002 file and a /sys/bus/usb/...
Aidan Steele's user avatar
10 votes
2 answers
12k views

How can I properly create /dev/dvd?

Certain programs look for /dev/dvd by default to find DVDs. When I first boot my computer without a DVD inserted, /dev/dvd exists and points to the correct place (/dev/sr0). However, when I insert a ...
chazomaticus's user avatar
  • 1,253
10 votes
1 answer
4k views

How do I make noatime mounts default?

I'm making an Ubuntu derivative, and I want to make noatime the default mount option for all filesystems (instead of relatime which is default in Ubuntu). There seems to be a boolean default_relatime ...
Shnatsel's user avatar
  • 1,188
10 votes
3 answers
22k views

Why do my udev rules run if I use udevadm trigger, but NOT at boot time?

I'm having trouble with udev rules not running. Here's an example: I have a rule /etc/udev/rules.d/99-test.rules which contains: ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x8086", RUN+="/sayhi"...
Daniel's user avatar
  • 460
9 votes
2 answers
14k views

Ubuntu 17.04: how to rename a USB network interface based on Path? (NOT based on MAC)

No, this ain't a duplicate of Why doesn't my Wi-Fi adapter show up as wlan0 in 16.04?, as this explains how to restore eth0 naming, but not how to individually name a specific interface. I don't ...
TheDiveO's user avatar
  • 351
9 votes
2 answers
6k views

How to execute C++ program whenever a USB flash drive is inserted

I have a C++ program that accesses USB pen drives/flash drives. It works for currently inserted flash drive. A normal C++ program doesn't execute until we run it. But I wanted the program to run ...
vinayawsm's user avatar
  • 437
9 votes
4 answers
10k views

beep not working since upgrade to 20.04.1 LTS

I've just finished upgrading to Ubuntu Server 20.04.1 LTS, and so far, only one issue has come up: When run as user, the beep command returns beep: Error: Could not open any device`. Running sudo ...
senthor's user avatar
  • 289
9 votes
2 answers
17k views

How to detect insertion of DVD disc?

In particular, how to catch it for the purposes of automounting the DVD filesystem? Update in response to Oli's answer: udev seems to be able to detect the insertion of DVD, as demonstrated by ...
silvernightstar's user avatar
9 votes
2 answers
8k views

multiple /dev/video devices for 1 camera causing issue with udev rules

Since upgrading from ubuntu 16.04 (kernel 4.15.0-60-generic) to 18.04 (kernel 5.0.0-27-generic) v4l now returns multiple /dev/video devices per physical device. This causes issues when trying to map ...
euler's user avatar
  • 91
8 votes
3 answers
11k views

Rebuild accidentally deleted /dev

How to rebuild /dev/ on an Ubuntu lucid where everything in /dev/ were accidentally deleted? MAKEDEV std and MAKEDEV pty aren't enough, which isn't surprising on a system using udev. I haven't ...
Philippe Blayo's user avatar
8 votes
1 answer
8k views

Udev webcam rule read, but not respected?

I have two usb-webcams on them machine, but at boot they sometimes switch /dev/video number. The solution to this problem seems to be creating a new udev rule. I have added this rule in/etc/udev/rules....
user89305's user avatar
8 votes
1 answer
10k views

How does automated hotplug mounting work?

I was reading a bit about gnome-mount, HAL, udev, etc. It left me with a couple of faint ideas how mounting a hotplug device might work in the latest Ubuntu release. Could someone give a detailed ...
koloman's user avatar
  • 347
8 votes
3 answers
48k views

How to allow software access to any USB devices?

I have a libusb-based program that can't open USB devices on a freshly installed Ubuntu because it lacks permissions. This solution will probably work for me, but it requires manually specifying ...
Violet Giraffe's user avatar
8 votes
3 answers
43k views

user in plugdev group; are your udev rules wrong or error: insufficient permissions for device: udev requires plugdev group membership?

I encountered error like "(user in plugdev group; are your udev rules wrong?", After googled, I found some key refers: Ref 1. Set up a device for development from Android Developer; Ref 2. Solved: ...
Shanksiscool's user avatar
8 votes
1 answer
3k views

Long running udev script on Ubuntu 16.04

On Ubuntu 14.04 I have a long running bash script with a simple udev rule that works perfectly like this: ACTION=="change", SUBSYSTEM=="block", RUN+="/opt/script.sh" On Ubuntu 16.04 things aren't ...
Benjamin Bryan's user avatar
8 votes
1 answer
7k views

How create a udev rules to disable one of Android devices?

I have an HTC Android phone. Every time I connect it to computer I get a message: Android Phone: Could not open MTP device "[usb:002,003]" The numbers may be different. But the phone connects ...
Pilot6's user avatar
  • 90.4k
8 votes
3 answers
8k views

My custom udev hwdb rule doesn't work

I'm using ubuntu 14.04 installed in EFI Mode, I tried to write simple udev rule which for all external USB keyboards will map capslock for escape. I use a lot of vim and plug and unplug keyboards ...
gregor's user avatar
  • 91

1
2 3 4 5
14