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

learn more… | top users | synonyms

63
votes
5answers
9k 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 ...
25
votes
9answers
40k 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 ...
17
votes
1answer
10k 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 ...
16
votes
6answers
29k 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 ...
15
votes
3answers
2k 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. ...
13
votes
4answers
11k 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 ...
10
votes
2answers
1k 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 ...
9
votes
2answers
6k 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 ...
9
votes
4answers
12k 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 ...
7
votes
1answer
14k 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 ...
7
votes
3answers
9k 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 ...
6
votes
6answers
3k 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 0 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 ...
6
votes
3answers
17k 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 ...
6
votes
3answers
9k 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 ...
6
votes
1answer
302 views

How to run a script when password is entered at the lock screen?

To toggle the enabling/disabling of my notebook's touchpad according to connected USB mouse, I used touchpad-indicator, which runs a daemon to monitor connected devices and take appropriate action. ...
6
votes
1answer
1k 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 ...
5
votes
1answer
5k 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 ...
5
votes
2answers
4k views

Ubuntu won't save my settings for thinkpad trackpoint

I'm using Ubuntu 12.04 on a Thinkpad X200. To configure the trackpoint, I use "configure TrackPoint". Unfortunately I can't make Ubuntu saving my settings (concerning the sensitivity etc.). Whenever I ...
5
votes
2answers
812 views

Can I prevent an IDENTIFY PACKET DEVICE command to a specific device at boot?

This is related to a previous question related to installation that is now resolved. I'm opening a new question, because I still need to get my DVD drive working. Problem: Failed boot when my ASUS ...
5
votes
1answer
1k views

Why is this udev rule blocking?

Here is a rule from my /lib/udev/rules.d directory: SUBSYSTEM=="input", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="008c", RUN+="/home/mikeknoop/scripts/udev-receiver.sh" Here is the simple contents ...
5
votes
1answer
1k 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 ...
5
votes
1answer
2k views

How do I let other users access my /media/[username]/HARDDRIVE with Ubuntu 12.10?

I am trying to let other users access my external 1TB NTFS hard drive mounted automatically at /media/[username]/STORAGE The problem is that by default, udisk2 (present with Ubuntu 12.10) ...
4
votes
1answer
2k 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 ...
4
votes
2answers
6k 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?
4
votes
1answer
4k views

How do I configure libfitbit?

To use Ubuntu to upload FitBit data you need libfitbit which is available as ppa now. However I couldn't find configuration instructions. I also wonder if cuttlefish could help to get the same ...
4
votes
3answers
2k views

Rebuild /dev accidentally deleted

How to rebuild /dev on an ubuntu lucid where all files in /dev were accidentally deleted ? MAKEDEV std and MAKEDEV pty aren't enough, which isn't surprising on a system under udev. I haven't reboot ...
4
votes
1answer
429 views

Where has /lib/udev/keymap gone? How do I adjust keymaps in 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 ...
4
votes
3answers
3k views

Start script when connecting phone through usb

Trying to run a script when my phone is plugged in via USB, a made a udev rule looks like this in /etc/udev/rules.d/85-lazydroid.rule ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="428c", ...
4
votes
1answer
3k views

Problem with executing udev rules for olimex's avr-usb-jtag

I'm using Ubuntu 12.04 for programming purposes and recently decided to bring my previous atmel's micro-controller projects from Win to Linux. Namely AVR. I installed the tool chain all right. It ...
4
votes
1answer
2k views

USB device changes using udev and D-Bus

I am trying to get a list of currently plugged in USB devices in Ubuntu 10.10 and monitor changes that happen, like devices being plugged in or out using udev and D-Bus. I'm fairly new to ...
4
votes
1answer
118 views

How can I temporarily suspend Nautilus filesystem automounting, without making permanent changes to the system and user configuration?

I have written a tool which automatically formats and copies files to USB flash drives when they are inserted. It needs the drive to be unmounted to format it. Normally Nautilus will automatically ...
4
votes
0answers
160 views

How can I link some device (given by its device ID) with an specific firmware? [closed]

Imagine I have a new device which it's not working on Linux. I get its device ID with lsusb: Bus 001 Device 003: ID1164:7efdYUAN High-Tech Development Co., Ltd Imagine I know that this device will ...
4
votes
0answers
940 views

Run script AFTER automounting usb hdd (udev, mount --bind) [duplicate]

Possible Duplicate: How to run a script when a distinct flash-drive is mounted? When plugging-in my USB HDD, it is mounted automatically, as expected. After that event, I'd like to ...
3
votes
1answer
4k views

How do I make udev rules work?

I would like to learn udev rules. Here is what I do: victor@X301A1:~$ ls /etc/udev/rules.d/ 70-persistent-cd.rules 70-persistent-net.rules README Then: victor@X301A1:~$ sudo gedit ...
3
votes
2answers
1k views

Third mouse-button emulation

Up until version 11.04 of ubuntu I could simply add an option to my X InputClass to emulate a third mouse button for my HP TrackPoint like this: Section "InputClass" Identifier "Trackpoint" ...
3
votes
3answers
10k 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 ...
3
votes
1answer
3k views

Assign fixed path to printer (/dev/usb/lp0)

I have two USB printers. They are assigned a path depending on the order of turning them on. The first one is /deb/usb/lp0 and the second one /deb/usb/lp1. However, I sometimes echo to these printers ...
3
votes
2answers
1k views

Problem with `notify-send`

I have been working in a script to change audio output when you (dis)connect am HDMI screen/TV. Basically it uses UDEV to check any change in the connection and acts accordingly. Everything works ...
3
votes
1answer
450 views

virutalbox always get back the same ip

I exported a virtual machine from my work station, and I am trying to renew the ip-address at home. I put one copy on my laptop and one copy on my PC. I've done this sudo rm ...
3
votes
1answer
907 views

automatically starting crashplan backup when a usb harddisc is connected

Using CrashPlan I've configured two backup sets: online backup in crashplan's cloud (this is running perfectly) a local backup on a usb harddisc directly connected to the local laptop. The USB ...
3
votes
2answers
132 views

Udev - How to change device group?

By default, all hard drive and usb drive devices belong to group "disk". I want to change usb drives to group "adm". I verified the ID_BUS $ udevadm info -q all -n /dev/sdb | grep ID_BUS E: ...
3
votes
1answer
434 views

dpkg with no shell

How to run dpkg without shell? Here is my problem: I made and autorun.sh script in my USB key. To run this script, I created rules in /etc/udev/rules/49-usb-rules: SUBSYSTEM=="block", ...
3
votes
1answer
522 views

Can I hide a partition in Nautilus for a specific user/group?

I'm trying to hide a partition form a specific group of users in Ubuntu 12.04. I have created a new rule in /etc/udev/rules.d/99-hide-disk.rules with KERNEL="sda3",ENV{UDISKS_PRESENTATION_HIDE}="1" ...
3
votes
0answers
317 views

Define a Policykit action for Upstart

I'm trying to get some user to start, stop and reload services by using the udev Upstart interface. I'm using Ubuntu 10.04. I created the file ...
3
votes
0answers
1k views

Do something when CD/DVD/Blu-Ray inserted [closed]

I have a headless 10.04 server with a BD drive. I'd like to be able to insert a blu-ray or dvd into the drive and have the server immediately begin ripping it with makeMKV/Handbrake. Basically, I need ...
3
votes
1answer
2k views

How do you change udev rules without restarting (e.g. to change eth1 to eth0)?

TLDR; How do you apply changes to /etc/udev/rules.d/70-persistent-net.rules without restarting? (See this documentation about ethernet interface logical names.) Long version: I have a bootable USB ...
2
votes
1answer
175 views

udev held back by apt-get while using ondrej systemd PPA

For probably about a month now, udev has been held back by apt-get when running apt-get updgrade. The following packages have unmet dependencies: udev : Depends: sysv-rc (>= 2.88dsf-24) but ...
2
votes
1answer
2k views

udev rule group ownership not working

I have added a udev rule for my Arduino, but the symlink gets the ownership "root root" instead of "root dialout". $ cat /etc/udev/rules.d/47-Arduino.rules SUBSYSTEM=="usb", ATTR{idVendor}=="2341", ...
2
votes
3answers
2k views

Can udev be used (udev rules) to whitelist certain usb devices?

Can udev be used (udev rules) to whitelist certain usb devices? What I mean is that only devices in a list I create (containing device IDs that I can obtain with lsusb) will be passed on / processed ...
2
votes
1answer
720 views

How can I use HAL in recent versions of Ubuntu?

I've found that HAL seems to be the only way to generate events when a CD/DVD/Blu-ray is inserted (if you know of a better way, please reply to this question), so I'm trying to get HAL running on my ...