The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
13 views

Control USB devices with udev and custom program

I have a script at /tmp/udev_test.py which gets executed with every USB device attached or detached, using this rule: SUBSYSTEM=="usb", RUN+="/tmp/udev_test.py" The script runs, and saves its ...
0
votes
1answer
15 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
1answer
19 views

How to know where in /dev/ is a UBS 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
0answers
8 views

Udev rule not working on Debian.

I can detect and mount my USB drive on my Debian VM machine. And the first post here works on my Ubuntu machine. Should not it work on Debian too? It doesn't ofcourse. Why is that?
0
votes
0answers
18 views

Output of lsusb -v for GoPro / Sony AS-30

Someone here who has Linux knowledge and a GoPro / Sony Action camera (like AS-30) who can help me with the output of running (with the camera connected via USB to the computer) : lsusb -d ...
0
votes
1answer
78 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: ...
0
votes
1answer
42 views

Rename USB network interface based on location

I'm managing a group of laptops and I'd like each of them to assign the same name to their USB network interface for easy management. Most of them assign enp0s20u1 and I've written my management ...
0
votes
0answers
36 views

How to make ubuntu/udev start a nested raid array?

A nested RAID1+0 is not started up on boot (this array is not the root fs, which would add a layer of problems, I see). Udev/initrd assembles the lower raid0, but fails to insert it into the raid1 ...
0
votes
1answer
76 views

Udev node /dev/sda created on boot even when drive is disconnected

Edit: I'd like to simplify the question a bit: The main issue is this: /dev/sda is being created on boot whether my USB drive is inserted or not. If I manually rm /dev/sda, udev works correctly ...
3
votes
2answers
71 views

Use USB numeric keypad with phone-like typing?

I have USB numeric keypad like this: I need to write chars (A to Z) on this keyboard, and so my idea is to use it like on old cell phone: If I press 1x 2 it writes A, 2x 2 - B, 4x 9 - Z, etc. ...
0
votes
0answers
38 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
159 views

Ubuntu, KDE: How to mount iPod HFS+ partition read/write using a matching udev / udisks2 / libsolid rule?

I can sucessfully mount a journalled HFS+ partition in Ubuntu 14.04 from an iPod using the steps from following answer: http://superuser.com/a/365270 However, using these mount commands manually or ...
0
votes
1answer
41 views

better to mount storage using udev or fstab?

I could write rules to mount storage devices using fstab or udev. Obviously the syntax is different, and unless I'm mistaken, udev is more flexible and has access to far more information than fstab. ...
1
vote
1answer
54 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 ...
0
votes
0answers
94 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
73 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 ...
0
votes
1answer
54 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: ...
2
votes
1answer
2k 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]: ...
2
votes
0answers
119 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 ...
0
votes
1answer
274 views

How to configure network interface names booting from read only medium?

in a Ubuntu 12.04 system, we'd like to configure the names of the (physical) network interfaces (such as eth0, eth1, ...) using udev rules such as those generated in ...
0
votes
0answers
33 views

Running fsck with other program and UDEV in bash

After much trouble I got the UDEV rule to run after inserting an USB. It runs a program to convert the names of pictures and movies. I use {} & to run the program in the background: The only thing ...
1
vote
1answer
174 views

udev rules exclude device

is it possible to use udev rules to excluce a single device from the rule? for instance if I have 5 harddisk plugged in and I want to create custom names for all harddisk except for a single one? is ...
0
votes
0answers
125 views

simple udev rule does not work

I want a simple udev rule which gives my usb stick always the same symbolic link. first of all I executed udevadm info --name=/dev/sdb1 --attribute-walk and got this result looking at ...
1
vote
1answer
39 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 ...
2
votes
1answer
98 views

How udev sends input device change notification to Xorg?

I want to troubleshoot why the graphic tables is active only if it is connected when Xorg is started (and stops working with spamming of Xorg.0.log if I reconnect it). As far as I know, udev-based ...
1
vote
1answer
109 views

I don't have eth0 but eth1

How come I don't have eth0 but an eth1 instead? I restart service udev, like below, but my ether card is still eth1, not eth0 % service udev --full-restart * Stopping the hotplug events dispatcher ...
0
votes
1answer
118 views

How to increase the bcache sequential_cutoff on Fedora startup

The bcache has sequential_cutoff parameter that is usually reachable at /sys/block/bcache0/bcache/sequential_cutoff and one can increase the level with following command: echo 512M > ...
0
votes
0answers
104 views

Unreliable detection of external monitor

I am using a Lenovo T410S with a port replicator that has two external monitors attached using DVI. Some times when I boot into Linux, one monitor is detected. Other times it is two. Oddly enough, ...
0
votes
1answer
79 views

udev rule not working

I am trying to write a udev rule for USB drive plugin. I want to first mount it to /media and then run the script at /usr/local/bin/script.sh. When I insert the USB, it doesn't even mount the device ...
0
votes
1answer
192 views

How to treat an internal hard drive like an external one (to only mount on request)

I want to assemble a Linux machine with an SSD Drive for the root filesystem. Another, larger internal hard disk is also attached, but will only be used few times a week/month, for backups, storing ...
0
votes
1answer
260 views

udev 99-hide-disks.rules is no longer working

A while ago I created a /etc/udev/rules.d/99-hide-disks.rules file on Ubuntu which worked fine. At some point, the hidden disks started reappearing in Dolphin and other file managers. The file hasn't ...
0
votes
1answer
339 views

Disable device node using udev (/dev/sr0)

I am trying to disable udev from generating /dev/sr0 device (my cdrom) and Im trying to write udev rules. I added a file 10-cd-trial.rules in /etc/udev/rules.d and /lib/udev/rules.d, the contents ...
0
votes
1answer
154 views

Dmesg boot dumps, udev and boot time

The following is my dmesg dump. [ 1.452016] udevd[121]: starting version 175 [ 1.522976] thermal LNXTHERM:00: registered as thermal_zone0 [ 1.522989] ACPI: Thermal Zone [THM] (76 C) [ ...
23
votes
2answers
745 views

What problems does udev actually solve?

For that matter, what exactly was wrong with a bunch of static files in /dev? It's apparently unsatisfactory enough for developers to have reinvented this wheel by my count 3 times now (devfs -> udev ...
3
votes
1answer
349 views

White list for USB flash using udev

I want to create something like "white list" for USB flash drives. I mean "deny everything that is not allowed". I know that I should use udev rules: Add to /etc/udev/rules.d/ a rule to deny every ...
0
votes
1answer
71 views

What does these udev rules mean?

The following is taken from an embedded system which does not have hard drive in it. KERNEL=="sd?", SUBSYSTEMS=="usb", DRIVERS=="usb-storage", NAME="sda" KERNEL=="sd?2", SUBSYSTEMS=="usb", ...
0
votes
1answer
633 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 ...
1
vote
1answer
234 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: ...
1
vote
0answers
247 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
2answers
340 views

/dev partition missing, so mdadm broken. How to get Linux to see partition?

Upgraded a Linux box and changed out the root drives. There was a RAID-5 array of three SATA drives that I moved over (not root). Reinstalled the OS but was CentOS 6.4 before and after. # mdadm ...
0
votes
1answer
980 views

udisks mounting to /media/usb0 not /media/<volume_label> for usb3 drives

I have a fully up-to-date, freshly re-installed debian sid box. Before I re-installed running udisks --mount /dev/sdc1 would mount the disk to /media/<volume_label>, however, it is currently ...
0
votes
1answer
66 views

udev rules with a math expression

I have a udev rule that creates a symlink for serial devices (USB serial ports) using an expression like this: SYMLINK+="MyDevice_%n". The %n assigns the system device node number starting with 0. Is ...
3
votes
1answer
2k 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 ...
0
votes
1answer
1k views

How to ignore a USB device in udev

I want to pass a USB device (to be precise: a smart card reader) to a KVM virtual machine, and therefore have to prohibit that it is claimed by any driver on the host machine. I tried to write a udev ...
2
votes
2answers
204 views

On linux something is changing my backlight brightness. How to know what process it is?

I'm using Linux with a 3.9 kernel (BohdiLinux, but I'm looking for a distro (or at least desktop environment) agnostic answer). Something is periodically (or on some event, perhaps) reseting the ...
1
vote
1answer
124 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
466 views

Can UDEV somehow trigger zenity for a logged in user in a session?

I would like a zenity dialog popup to ask me if I would like to run a backup, when I attached a specific external drive. Unfortunately, I am having trouble with the UDEV rule syntax. I've got this ...
0
votes
1answer
523 views

Permanent Permission on /dev/ttyS0 CentOS 6.4

I seem to be unable to change the permissions on the /dev/ttyS0 device of a CentOS 6.4 machine. Every time I reboot, the system goes back to the defaults. I've googled that I need to edit the udev ...
2
votes
1answer
232 views

udev affects behavior of script, prevents dpkg from working

I have a udev rule configured to run a shell script whenever a USB flash drive is inserted; I've verified that udev matches against the rule, that the shell script runs as intended when run manually ...
0
votes
0answers
369 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: ...