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

learn more… | top users | synonyms

2
votes
1answer
63 views

Cant change name of internal webcam via udev rules Ubuntu 14.04

I need to change device name of internal camera Rule: ACTION=="add", SUBSYSTEM=="video4linux", ATTR{name}=="UVC Camera (046d:0825)", NAME="video2", SYMLINK="usb/video", RUN+="/usr/bin/forudev" I ...
0
votes
0answers
9 views

error in setting up android usb debugging in Ubuntu 14.10

I have a android phone from LG, and I want to use it for USB debugging. I followed the following steps: Enabled usb debugging in developers option on phone. After connecting to PC, phone shows as ...
0
votes
0answers
16 views

Mount USB device to portname instead of devicename

I am using an USB Device as a replacement for a floppy disk. I need to set up a fixed path to my USB device in order for it to work. So one option could be to always use the same USB device, I'll find ...
0
votes
0answers
5 views

mouse function is disabled

I have been aded this rule on /etc/udev/rules.d/70-plantronics.rules ACTION!="add|change", GOTO="xorg_plantronics_end" KERNEL!="event*", GOTO="xorg_plantronics_end" ENV{ID_VENDOR_ID}=="047f", ...
1
vote
1answer
38 views

Mounting USB Device in same location

I am using an USB Device as a replacement for a floppy disk. I am only using one USB device at a time. How can I make Ubuntu to mount ANY USB device into a fixed folder, eg. /media/USERNAME/USB? ...
2
votes
1answer
76 views

Udev not running scripts

I'm trying to make udev disable/enable my touchpad when I connect/disconnect my external mouse. I don't know what is wrong. When I call udevadm --test it seems to be calling my script, but when I ...
6
votes
4answers
19k 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 ...
0
votes
0answers
31 views

Why has 14.04 LTS no static libraries in some packages?

These are the udev development packages for the last three Ubuntu LTS releases. File list of package libudev-dev in lucid File list of package libudev-dev in precise File list of package libudev-dev ...
2
votes
0answers
47 views

Why can't my udev rules rename kernel device nodes after upgrading from 12.04 to 14.04

In Ubuntu 12.04 I wrote the following udev rules to fix the /dev name of a USB RF remote control. These were: KERNEL=="event[0-9]*", ATTRS{name}=="BTC USB Multimedia Cordless Keyboard", ...
0
votes
0answers
12 views

Circumventing MacBook Pro's motion sensor using /dev/input/js0 as a joystick

I'm on a MacBook Pro 8,1 running 14.04 and I've never plugged in any device with a joystick to my laptop. When I was trying to fix an input problem I was having, I checked /dev/input/js0 thinking that ...
3
votes
1answer
642 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 ...
3
votes
3answers
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 ...
0
votes
1answer
4k views

Huawei e173s 3G USB dongle won't switch into modem mode

Output of lsusb | grep Huawei is Bus 003 Device 003: ID 12d1:1c0b Huawei Technologies Co., Ltd. E173s 3G broadband stick (modem off) I've checked if usb_modeswitch is set up properly as per ...
3
votes
2answers
58 views

udev script does not start when event happen

I was annoyed that every time I connect my hdmi cable I need to manually change the sound setting. I started looking into udev rules, what I came out with are these two files: ...
3
votes
1answer
1k 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", ...
1
vote
2answers
68 views

Execute script on insertion of sdcard

Since I want some union mounts to be created, once a sd card is found in my system, I wrote the following udev my.rules: ACTION=="add", KERNEL=="mmcblk0", SUBSYSTEM=="block", \ RUN+="touch ...
3
votes
2answers
5k 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 ...
2
votes
1answer
133 views

why my rule in udev/rules.d does not set the mode and group

jardag@precise-GiB:~$ lsusb Bus 001 Device 006: ID 15ba:002a Olimex Ltd. ARM-USB-TINY-H JTAG interface jardag@precise-GiB:~$ cd /dev/bus/usb crw-rw-r-- 1 root root 189, 0 Apr 4 21:13 001 crw-rw-r-- 1 ...
6
votes
0answers
208 views

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

Please notice the two 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 ...
1
vote
1answer
57 views

Commands not executing in shell script run by udev

I'm having trouble using udev to run a shell script that backs up my hard drives to an external drive whenever the external drive is connected via USB. Everything works except the actual call to ...
1
vote
1answer
247 views

Disable all USB Storage devices and enable some devices based on Vendorid

I tried by adding below udev rule ACTION=="add", SUBSYSTEMS=="usb", RUN+="/bin/sh -c 'for host in /sys/bus/usb/devices/usb*; do echo 0 > $host/authorized_default; done'" ACTION=="add", ...
1
vote
1answer
78 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 ...
0
votes
1answer
53 views

UDEV: how to match SYMLINK during remove event?

I am using libusb to contact with a printer. And I am writing a rule for udev to remove the printer when it is disconnected. I use symlink to indicate the device. But when removing, the rule is not ...
13
votes
1answer
229 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 ...
1
vote
1answer
290 views

Gamepad detected by lsusb but not by PCSX or jstest-gtk in Ubuntu 14.04

I had been using a PS3 gamepad on PCSX for a while on Ubuntu 14.04, but realized it stopped working today. The controller is detected by lsusb on Terminal, but it does not appear in PCSX or ...
0
votes
0answers
102 views

kernel make zImage error - No rule to make target vmlinux

I've been searching for a couple of days and I can't find anything on google about an interesting error I get when compiling a linux kernel. I initially thought this problem had something to do with ...
0
votes
1answer
17 views

How to know where in /dev/ is a USB keyboard loaded?

To be precise, when you plug in a USB storage device, it is loaded in sd something, but where is a usb keyboard loaded in /dev/?
1
vote
0answers
140 views

Ubuntu 14.04 HDMI UDev Rule

I have tried multiple variations to this script but I cannot get it to work. The UDEV Rule fires the script and the script exectutes but simply does not change the audio profile. If I run the script ...
6
votes
1answer
893 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 ...
27
votes
10answers
46k 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 ...
0
votes
0answers
278 views

Preventing pop-up dialogs when connecting an MTP device

I'm using Lubuntu 14.04 with a Samsung Galaxy S3 running Android 4.3. Each time I connect my phone via USB, I get the following dialog: Unable to open MTP device '[usb:002,023]' A few moments later, ...
0
votes
0answers
212 views

libusb couldn't open USB device /dev/bus/usb/002/006: Permission denied. libusb requires write access to USB device nodes

I am connecting my FTDI Device with Laptop USB. I was following all the steps given in the link How to build libftdi git under Linux But after installing.. When I was running ./eeprom it is throwing: ...
0
votes
1answer
29 views

Swapping Caps Lock and Ctrl via udev

I want to swap Caps Lock and Ctrl. My solution so far is to edit /etc/default/keyboard and setting XKBOPTIONS="ctrl:nocaps" There are problems with this solution. First it doesn't work with virtual ...
6
votes
3answers
2k 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 ...
1
vote
0answers
351 views

mounting galaxy s4 ubuntu 14.04

I know this has topic has been touched on a lot, and I have tried just about anything I have read and still have no solution. Be aware, still relatively a noob with linux. The problem is as simple as ...
1
vote
0answers
21 views

Unknown Floppy Drive detected

After a reboot, Ubuntu (and Windows) detect an external floppy drive that isn't even there!It's not a big problem to find a new floppy drive that I can't access, but it really looks strange in the ...
1
vote
1answer
604 views

chroot: Ubuntu 14.04 - udev upgrade Problems!

im running Ubuntu 14.04 (x86) on a OpenELEC (x64) host system. Everything worked great until a few days ago when it tried to upgrade the "udev" package after running apt-get upgrade. apt-get upgrade ...
0
votes
0answers
22 views

After upgrading to Trusty my keymap file isn't working for my tivo_slide remote

I tried creating this file: ‍/etc/udev/hwdb.d/61-keyboard-local.hwdb It looks like this: lee@tv:/etc/udev/hwdb.d$ cat /etc/udev/hwdb.d/61-keyboard-local.hwdb keyboard:usb:v150ap1201* ...
1
vote
0answers
113 views

How to mount USB drive as user writable

I want to mount my USB hard drive as myself, or in my group, whatever it takes to be able to move stuff onto the disk without sudo. I have tried setting up a rule in ...
1
vote
1answer
104 views

How do disable the CD-ROM for all users?

I want to disable CDROM/CDRW/DVDROM/DVDRW for everyone in Ubuntu 14.04.1 desktop 64-bit edition. I have tried following but not worked: Removed user from /etc/group, as following: cdrom:x:24: as ...
0
votes
1answer
147 views

How can I run code whenever a USB device is (un)plugged, without requiring root permissions?

I have a script that I wish to run whenever I plug/unplug a mouse or keyboard to my USB port. There is already plenty of documentation on how to configure udev rules to run arbitrary scripts when a ...
1
vote
1answer
872 views

Udev error while upgrading

I update and upgrade my ubuntu 14.04 server. Update is successfull but i get this error while upgrading : apt-get upgrade Reading package lists... Done Building dependency tree Reading state ...
0
votes
1answer
176 views

How to make my udev rule work

My USB device keeps changing its number in its name /dev/ttyUSB?. I have seen this and this, and tried to do the same with no luck. gauthier@sobel:/etc/udev/rules.d $ udevadm info -a -p $(udevadm ...
14
votes
4answers
12k 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 ...
1
vote
0answers
109 views

How can I remap the keys/keycodes of a usb foot switch on SystemD?

I was using the old udev rules to remap my usb foot switch key(the default is the keycode 36 -b :S) to Alt_L. Previosly I created a udev rule and a xmodmap file. But i'm trying the systemd now, and ...
2
votes
1answer
38 views

Linux - keyboard with phone-like typing

I have a USB keyboard extension with just number-keys: I need to write chars (A to Z) on this keyboard. My idea is write the way you can on some phone keypads, where each number is mapped to ...
16
votes
6answers
33k 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 ...
1
vote
0answers
99 views

Problem with cryptdisks-udev service

I am getting an error when I run 'puppet resource services' that complains about the cryptdisks-udev service. The exact error message is as follows: status: Unknown parameter: DEVNAME The error ...
1
vote
2answers
454 views

Explanation of 70-persistent-net.rules script

I am a newbie in scripting language.I will like to understand a script that was written by someone else.Kindly explain to me what this line of script does: IF=`cat ...
1
vote
0answers
117 views

What is the Purpose of /etc/init/udev-fallback-graphics.conf in Ubuntu 14.04?

What is the purpose of the upstart configuration /etc/init/udev-fallback-graphics.conf (shown below) in Ubuntu 14.04 LTS? # fallback-graphics - take actions to initiate fallback graphics # # if we ...