The tag has no usage guidance.

learn more… | top users | synonyms

4
votes
1answer
605 views

Passing udev environment variables to systemd service execution

I am migrating an existing udev rule that bound to the change action of a block device and runs a given script. SUBSYSTEM=="block", ENV{DEVNAME}=="/dev/sr0", ACTION=="change", RUN+="/usr/local/bin/...
4
votes
1answer
305 views

How to blacklist a USB device by UUID in GNOME (udev)?

I'm using GNOME 3, with udev. How can I blacklist a specific USB drive by its UUID or label so that it doesn't mount automatically?
2
votes
1answer
884 views

Udev rules on Ubuntu/OMAP (Beaglebone)

I have an IROX Pro-X weather station and am running wview weather software on Ubuntu 12.04. I have been running it on my old laptop for a few months with no problems but am trying to run it on a ...
1
vote
1answer
53 views

Persistent mapping of hci names

I want a stable mapping between bluetooth hardware and hciX under /sys/class/bluetooth, similar to how wlanX maps to wifi chips. I wrote a udev rule. The rule is matching correctly by vender/product....
1
vote
1answer
135 views

Failing to load a module on udev event

I have a pretty simple udev rule which is executed when a USB is plugged into my Debian machine: SUBSYSTEMS=="usb", KERNEL=="sd?", ACTION=="add", RUN+="/usr/local/bin/USB/t.sh \ %k" My t.sh is also ...
1
vote
1answer
102 views

Lock Computer after X minutes, non user editable

Case: I have younger siblings who have a linux computer. They are not allowed to access this computer without parental approval and entry of a password. Their solution is to disable my locking ...
1
vote
1answer
76 views

udev rule to make certain ports always correspond to certain devices

Basically my problem is that I am on a server which constantly switches around hdd's. What I want to achieve is have having devices tied to the physical ports on the hardware. like /dev/sda is port 0 ...
1
vote
1answer
205 views

Set an external HDD to shut down mode

I use udisks --detach /dev/sdb for safely remove my hard disk. This command works like safely remove menu in nautilus when you right click on an external HDD. The problem is, after 2 sec hard drive ...
0
votes
1answer
11 views

Rescue data using udev

I have a device (Smartphone: BQ Aquaris E4.5 Ubuntu) which contains data, but I cannot reach it directly, i.e. mounting or opening a shell or alike. All I managed to do was to see it (in fastboot ...
0
votes
1answer
132 views

Why, after a udev update, the new policy does not work

I have updated udev in my system (ubuntu server 14.04 on VM) to version 204-5ubuntu20.18. After reboot system, NIC's no renames by predictable names. Names are eth*. In directory /lib/udev/rules.d/ is ...
0
votes
1answer
169 views

Why eth0 is renamed to enx78e7d1ea46da after upgrade?

I think this is related to Predictable Network Interface Names. The device is a Raspberry Pi B model running kali (kali-next) 1. Names incorporating Firmware/BIOS provided index numbers for on-board ...
0
votes
1answer
44 views

Can I pass the current x display user as a parameter in a udev rule?

I've got a udev rule set up which restarts a systemd service, passing in a user parameter for the service to run as. The trouble is udev runs as root so it always passes in root as the paramter. I ...
0
votes
1answer
2k views

/dev/xvda1 full , though there is no temporary files

I have AWS ec2 micro instance, suddenly it shows memory full. I have checked the folder using df -hcommand. The result is displayed below. Filesystem Size Used Avail Use% Mounted on /dev/xvda1 ...
0
votes
1answer
185 views

How can I get the ID of an online disk in a ZFS pool?

I rotate physical disks in and out of my mirrored ZFS zpool (using ZoL) to use for offsite backups; to help streamline the process I've been using udev rules to respond to the drives being swapped. ...
0
votes
1answer
887 views

Mac OS X equivalent of “udevadm info -a -n /dev/ttyACM0”

What is the Mac OS X equivalent of the Linux command udevadm info /dev/ttyACM0? I am attempting get the USB information about a TTY device (/dev/tty.whatever) in a script. UPDATE: I'm looking for ...
0
votes
1answer
2k views

Can't automount USB stick with Fedora 21+systemd-udev, could with Gentoo on same machine

In Gentoo I had created a small script that was called by udev and allowed me to mount an USB device, identified by its serial number, to any mount point I chose. Basically, /etc/udev/rules.d/00-...
0
votes
1answer
142 views

Can I tell what udev rule a device is using?

I'd like to edit the way a device is created on my Ubuntu 14.10 box. Device: USB UART File: /dev/ttyUSB0 Is there any way to find out what udev rule created this? Or do I just write a new one ...
0
votes
1answer
217 views

udev rule not working for action “add”

I have the following udev rule (/etc/udev/rules.d/97-automounter.rules), which works for the action "remove" but does not work for the action "add". The script for the action "add" does work if run ...
0
votes
1answer
55 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/?
0
votes
1answer
189 views

How can I change names of network interfaces shown in “ip addr show”

Below is my partial output of ip addr show 10: ge4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN link/ether 02:00:00:00:00:06 brd ff:ff:ff:ff:ff:ff 11: ge44: <...
3
votes
0answers
223 views

3g modem is not recognized as an ethernet device without rebooting

I have two CentOS5 servers with kernel versions 3.4.52 and Huawei e353 usb 3g modem. When I plug the modem to my server usb_modeswitch runs and I can see the modem as an ethernet device with ifconfig -...
2
votes
0answers
151 views

Ubuntu - change block device location from /dev/sda to /dev/sdb

Host: Ubuntu 15.04 I have a M.2 SSD and one hard-disk. The hard-disk device location is normally at /dev/sda and the SSD is at /dev/sdb. I looked into some posts and found out some possible ...
2
votes
0answers
464 views

System doesn't detect hot-plugged display port(through thunderbolt connector)

My external display(connected to my laptop through thunderbolt) works fine if connected before boot-up. However, once it's unplugged or disconnected by any means, xrandr won't detect the reconnected ...
2
votes
0answers
217 views

udev rule script “xinput --list” differs in terminal versus log

I'm trying to automate a Huion tablet calibration without much success. I have this output from xinput --list in a normal terminal: ⎡ Virtual core pointer id=2 [master ...
2
votes
0answers
105 views

udev rule to auto-execute script

I want to create a udev rule to execute when my headset gets plugged in. Therefore I followed this Tutorial, but my rule doesn't seem to work. The output of udevadm monitor --environment | fgrep ...
2
votes
0answers
68 views

Replace kernel extension module (driver) in max osx using udev rule

I'm doing development on an embedded device using an FTDI Single RS232 chip for usb communications. I can communicate with the device just fine using the pylibftdi and libftdi libraries over libusb, ...
2
votes
0answers
346 views

X11 evdev mouse generates duplicate events

Lately my x11 server started registering several duplicate mouse click events per single click. I've tried upgrading xorg server and drivers, but it didn't help. Using different mouse doesn't help as ...
1
vote
0answers
42 views

LXC: run command when USB device is connected

How can I execute a command in an LXC system container whenever a specific USB device is connected? Ordinarily, I'd use udev (cf. 1, 2, 3, 4, 5), but as far as I can tell, udev cannot be used inside a ...
1
vote
0answers
142 views

NTFS-3G unmounts USB drive as soon as it is mounted

I have created an udev rule to automount a USB hard-disk when I plug it in, but the drive doesn't appear as mounted. In /var/log/messages, I can see Dec 27 09:11:02 smug ntfs-3g[6043]: Version 2014.2....
1
vote
0answers
439 views

udev rules to add joystick for arm linux?

I am trying to add an ID_INPUT_JOYSTICK=1 environment to udev when a joystick is added to my system. This is not need for desktop Ubuntu because the property is already there but on a linux version I ...
1
vote
0answers
226 views

Prevent udev / uevents looking up DVD at boot time

Problem: Boot time delay caused by udev. Early after initscripts starts there is message saying waiting for uevents to be processed and causing delay on boot, it seems that udev is looking if there ...
1
vote
0answers
912 views

Strange message during the Linux boot caused by udev

When Debian Wheezy, testing version, is booting a strange message appears: udevd[336] timeout usb_id--export /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-2.2/1-1.2:1.0 video4linux/ [502] After this ...
0
votes
0answers
12 views

simple udev rule not recognizing my drive by uuid

I am having difficulties having udev recognize a drive by uuid. I'll outline the problem with a simpler version of my problem. If I try this simple rule (in /etc/udev/rules.d/50-backupdrive.rules): ...
0
votes
0answers
105 views

how to write udev rule to supend laptop on low battery, but not when on ac?

I would like to suspend my linux laptop when battery is low. This is done by an udevrule: SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="[0-6]", RUN+="/bin/systemctl suspend" ...
0
votes
0answers
51 views

UDev running script to open a terminal

Hi Guys I'm trying to run a script when my phone is plugged in The Udev part works, I know from other tests that this script is being run. For some reason it won't start the terminal running the ...
0
votes
0answers
17 views

Running fsck.ext3 removes symlink to device

I have an external usb drive for which I have udev create the symlink /dev/externalbackup when it is plugged in via the following rule: KERNEL=="sd?1", ATTRS{idVendor}=="0c0b", ATTRS{idProduct}=="...
0
votes
0answers
22 views

Runing fsck triggers udev rule

On a Debian stable system with udev and systemd (215-17+deb8u2) I have the following udev rule that I use to start a systemd service that runs a backup script: KERNEL=="sd?1", ATTRS{idVendor}=="0c0b",...
0
votes
0answers
8 views

/dev/disk/by-uuid only gets entry when I run gparted, not on insert

I have a USB stick, formatted to vfat, which does not get put into /dev/disk/by-uuid upon insert, even though all the right USB events happen, and a /dev/sdX1 gets created. However, oddly, when I run ...
0
votes
0answers
32 views

linux mint 17: udevd and borked desktop?

A recent installation/upgrade of development libraries seems to have badly affected the Cinnamon desktop. This message has strarted to appear in the logs: ~ $ dmesg | grep socket: [ 4.709220] ...
0
votes
0answers
177 views

Problems with attaching device to kernel module

everyone. I have special USB device (chinese touchscreen), what I need to connect to my computer with Linux. By default, Linux assign connected device to usbhid (I found this info by execute usb-...
0
votes
0answers
9 views

Attach and dettach mose on Xephyr programly

Then mouse or unpluged from port Xephyr it lost all input. I want to keep it working then replug mouse. I think about to create virtual mouse device, that points to physical one. Is there any method ...
0
votes
0answers
296 views

How can I automount drives so that they are accessible by all users?

I'm running Fedora 22 server which runs headless most of the time. I would like to be able to automount removable drives, optical media etc... automatically regardless of whether the desktop ...
0
votes
0answers
12 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
16 views

MATE DE / Gnome DE — run a script when a device gets connected

I know udev scripts can handle this. Does an interface exist at the X session level that doesn't require superuser priviliges? I'd like to run a script when an external keyboard or an external mouse ...
0
votes
0answers
40 views

How to disable creating device nodes of ldm disks in ubuntu?

Yesterday I've installed ubuntu 14.04 to my mother's home computer. That's really good deal, but she uses windows too to work with documents. This documents is placed on the Windows dynamic disks in ...
0
votes
0answers
118 views

Trigger lock/unlock XFCE session on udev event

I'm trying to write simple script that will unlock my XFCE session (xubuntu) when I will connect my phone via usb and vice-versa -> lock when phone will be disconnected. So far I managed to write new ...
0
votes
0answers
123 views

Login from the command line

OS: Linux, Mint. I want to have a system where I can insert a flashdrive into a computer, and using the Udev rules, have the system log in a user account. I can do the Udev part, but what command ...
0
votes
0answers
737 views

Udev rule for changing owner of Linux LVM device nodes

I'm having some trouble changing the owner of a Linux LVM logical volume on my Debian wheezy system. I added the following udev rule to both the initramfs and the real root file system: SUBSYSTEM=="...
0
votes
0answers
365 views

Linux doesn't boot with hyperthreading enabled

I've had this problem since 2.6.39: my computer won't boot without disabling hyperthreading in the bios. I'm using 3.6.6 now and still have the same problem. The only thing I can add to the ...
0
votes
0answers
620 views

Getting a USB remote controller to work

I'm at a lost at setting up a USB remote controller on Ubuntu Natty with Kernel 2.6.38-12-generic. It's a "USB pen" used to control the routine of Slideshows (Powerpoint, ... , etc) It recognizes the ...