The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
12 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 ...
1
vote
3answers
78 views

What creates the default ifcfg-eth? file?

When I change out a NIC card in my RHEL 5 box, the applicable /etc/sysconfig/network-scripts/ifcfg-eth? file is renamed ifcfg-eth?.bak and a new one is created configured with: ONBOOT=yes BOOTPROTO=...
14
votes
7answers
10k views

udev rule to auto load keyboard layout when usb keyboard plugged in

im trying to load a new keyboard layout when I plug in a usb keyboard but my udev rule isnt working. SUBSYSTEM=="input", ATTR{idVendor}=="062a", ATTR{idProduct}=="0201", GOTO="usb_xmodmap_auto" ...
0
votes
1answer
37 views

Getting /dev/hidraw# via udev for script

So, I have a small python scriptlet that remaps my logitech g710 gkeys from the default of 1-6 to F13-18, which works fine when called manually, eg: ./script.py /dev/hidraw3 The issue I'm having is ...
1
vote
2answers
100 views

Reduce timeout value for “A start job is running for dev-disk-by” linux

My /etc/fstab intentionally has quite a few entries that point to (labelled) partitions and filesystems that may not be present at boot time (think: hotpluggable SATA backup disks). These entries ...
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, ...
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 ...
0
votes
1answer
184 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 ...
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 ...
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
2answers
60 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", ENV{...
0
votes
1answer
518 views

NVIDIA GTX650 Ti 1 GB, nvidia-drivers, boot udev fail on gentoo

I have an Asus H97 Plus motherboard with i7 4790 proc, 16gb ram, samsung ssd, western digital hdd and a Gigabyte nVidia GTX650 Ti 1GB videocard. I have just installed a Gentoo on it (kernel: gentoo-...
1
vote
2answers
938 views

Setting graphics driver without xorg.conf

It looks like X has this new approach of working without a xorg.conf and instead letting udev do all the configuration. Is there a nice description of this out there? More specifically I installed ...
0
votes
1answer
133 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
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/?
2
votes
1answer
546 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 ...
0
votes
1answer
170 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
2answers
472 views

udev on Ubuntu not working for USB plug in

I am trying to do a "simple" task, run a script /usr/local/bin/USBTesting.sh when I plug in a specific USB device. I created /lib/udev/rules.d/99-USBTesting.rules /etc/udev/rules.d/10-USBTesting....
0
votes
1answer
72 views

How to convert /etc/interfaces settings into udev rules?

I'm trying to set up a bridged networking interface for kvm/libvirt. I'm having trouble doing so because the tutorials are written for non-udev systems using configuration files like /etc/interfaces. ...
0
votes
0answers
106 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" ...
2
votes
0answers
152 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 ...
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",...
1
vote
2answers
3k views

How do I write a generic udev rule to assign my network's interface name?

I am trying to write a "generic" udev rule to assign an interface name to my NIC card. For a particular application i require the ability to boot a headless server where the NIC can be changed at any ...
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 ...
9
votes
2answers
9k views

systemd-udevd[381]: failed to execute '/lib/udev/socket:@/org/fre edesktop/hal/udev_event'

After upgrading to ubuntu 14.04 I see this in dmesg [ 1.538887] systemd-udevd[105]: starting version 204 [ 19.074098] systemd-udevd[310]: starting version 204 [ 19.271342] systemd-udevd[381]: ...
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
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
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 ...
1
vote
1answer
186 views

How to uniquely identify a USB device in Linux

I have two USB devices which present them selves with the exact same information. root@nordlys:/$ dmesg [27428.655362] usb 1-2: new full-speed USB device number 18 using xhci_hcd [27428.678006] usb ...
1
vote
1answer
40 views

Controlling USB device access per user on a Linux box

I want to write a udev rule that blocks access to USB storage. I want to add match options that can recognise the username and permit only some users to use USB storage. How can I find out which user(...
0
votes
1answer
122 views

udev - change event from udev_device_get_action

I am monitoring the events of all devices connected to the host. Linux has udev daemon , which listens to all the device specific events such as online, offline, add, remove and change. I use a ...
1
vote
0answers
37 views

What do usb device files mean [closed]

I am trying to understand the meaning of different usb device files. For example when you ls in /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/ you get the list below. Some of the device files like ...
1
vote
1answer
136 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 ...
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 ...
4
votes
2answers
4k views

How to check if a udev rule fired?

I am trying to acquaint myself with udev, under Ubuntu 13.10. Here is my first simple 95.usbbackup.rules rule: ACTION=="add", SUBSYSTEMS="usb", RUN+="/usr/local/bin/my_backup.sh" and here is the ...
0
votes
1answer
152 views

devices inside /dev - are their naming persistent by default?

Can i check if devices like sda , sdb naming in /dev/ are persistent by default or there are some udev rules in place to create persistent naming for them ? Does udev itself create device naming ...
4
votes
1answer
607 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/...
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 ...
1
vote
1answer
763 views

udev pci device rule is not working

I have a PCI device which have an own drivers (not integrated in Linux kernel). I've collected device information using udevadm. udevadm info -a -p /sys/devices/pci0000:00/0000:00:1e.0/0000:0d:02.0 ...
4
votes
2answers
4k views

udev rules ignore_device

I'm on Fedora 18. In /etc/udev/rules.d, I've added new rule (70-stm32.rules) with following content: SUBSYSTEM=="block", ENV{ID_MODEL}=="STM32_STLink", OPTIONS=="ignore_device" Then restarted udev: ...
2
votes
1answer
328 views

udev rule with bInterfaceNumber doesn't work

I'm trying to use udev to give relevant names a USB-serial device but I'm having now luck. # lsusb -d 04e2:1412 -v Bus 004 Device 028: ID 04e2:1412 Exar Corp. Device Descriptor: ...
2
votes
0answers
106 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 ...
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
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 ...