The tag has no usage guidance.

learn more… | top users | synonyms

4
votes
1answer
378 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", ...
4
votes
1answer
298 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
842 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
40 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 ...
1
vote
1answer
108 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
96 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
71 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
496 views

Howto set udev rule to disable intel_pstate turbo on linux?

I m looking to make a udev rule that will basically do: echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo In order to disable the turbo, how can I do it ? I've never made udev rule and I am ...
1
vote
1answer
189 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
14 views

How do I use ENV{SYSTEMD_USER_WANTS}= in udev rule?

I want to set up a docked.target in my user level systemd. The idea is to run some services to configure my external displays. I currently have this as my rule: SUBSYSTEM=="usb", ACTION=="add", ...
0
votes
1answer
23 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
1k 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
85 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
557 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, ...
0
votes
1answer
124 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
173 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 ...
2
votes
0answers
40 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
258 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
154 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
70 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
194 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
308 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
119 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 ...
1
vote
0answers
53 views

Replace kernel extnesion 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, ...
1
vote
0answers
378 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
220 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
883 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
13 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
16 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
13 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", ...
0
votes
0answers
14 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", ...
0
votes
0answers
7 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
13 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
0answers
15 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
74 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 ...
0
votes
0answers
72 views

My printer in /dev/usb/lp0 always disappear after few seconds, and can't print, how to fix it? (Ubuntu 14.04)

Please, help... I have a 'EPPOS Model EPT-58H' thermal printer. When I plugin via usb, it detected as /dev/usb/lp0 with ls -l /dev command. Then I run echo "sometext" > /dev/usb/lp0 in terminal to ...
0
votes
0answers
5 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
185 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
9 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
15 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
22 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
86 views

Unable to initialize libusb: -99 und Microzed-Board running Linux

I have a microzed ARM-Board running a custom Image based on Debian Jessie with a 3.17 kernel. I need to use a wifi-stick with the board (I currently have an EDIMAX EW-7711UAn, but I guess i could use ...
0
votes
0answers
96 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
274 views

udev rule to rename usb network interface don't work on startup

I have an embedded system that has a smsc9512 (USB 2 port hub with Ethernet converter) running a distribution generated with poky and kernel 3.0.20. I need to have a fixed name for the interface and ...
0
votes
0answers
33 views

Fix Partition Table

I was recently installing manjaro on my hard drive. I set up the partition table how I wanted, wrote it, and proceeded to assigning partitions portion of the installer. To my surprise, I was presented ...
0
votes
0answers
108 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
625 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: ...
0
votes
0answers
337 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
586 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 ...