I wasn't really sure if this was the right site to put this question on, but I put it here since this is sort of a programming question and I figured the SO crowd was the most Linux-oriented of the three sites.
Anyways, I'm trying to find out a way to simulate disconnecting a device from a software aspect, just as if a user physically ...
I have two LCD's using Xorg's xinerama feature. Each LCD screen has a touchscreen which are connected to their respective USB lines.
Looking into the '/var/log/messages' file, I see the following:
kernel: input: Analog Resistive as /class/input/input0
kernel: input: USB HID v1.01 Mouse [Analog Resistive] on usb-0000:00:1d.3-1
kernel: ...
I'm writing on an udev-rule to automatically rename and number NICs with specific MAC addresses.
The resulting rule should do nearly the same 75-persistent-net-generator.rules does (match first 3 bytes of the MAC address of card, name it 'mycard*' depending on how much cards of this vendor are installed, write the renaming-rule into 70-...
This is a dupe from SuperUser.com . Folks over there weren't smart enough or willing to help me out; maybe it's more a programmer question than an administrator one:
I have an app that reads input from 4 (four) mice that are plugged in via USB in addition to the built-in touchpad. This is no problem for Ubuntu 9.10: hald notices the n...
I'm running Ubuntu 9.10 (Karmic Koala) on a laptop and would like NumLock to automatically toggle depending on whether my USB keyboard is plugged in (numlock on) or unplugged (numlock off).
To accomplish this, I first installed the "numlockx" package. numlockx on and numlockx off works fine.
To hook into the device system, I thought I'...
I'm trying to create a custom file/check in check out script for external hardrives, however part of the script is from a Linux machine, which I have tested works fine, but uses udevinfo, OS X doesn't have udev, so is there anything that offers the same functionality?
#!/bin/bash
declare -a EXTERNAL_DISKS
declare -a INTERNAL_DISKS
for ...
We are using the following routine (on Linux, with libudev) to read data from a PIC microcontroller configured as a USB HID device. The data is sent only when a button connected to the PIC microcontroller is pressed or released.
The routine is missing messages from the PIC controller, and I suspect that this is because the call to po...
I'd like to know if there are dangers with spawning multiple threads that each create their own udev context and start monitoring hardware changes. It would think that if each thread has its own udev context everything is fine. However, if calls like udev_new or udev_monitor_new_from_netlink would access global/static variables then issu...
I'm porting a linux kernel module. It used to create a device file for itself (using dirty hacks with syscalls from kernelspace), but now I want to do this in udev. Where can I find documentation on supporting udev in in kernel module?
Note that module itself is not a device driver. It serves as a multiplexor for a set of drivers. There...
I'm trying to port an application from using HAL to using pure udev. It is written in python and will use the gudev library, though I would love to see examples in any language. I'm able to get all attached video devices (such as cameras) via:
import gudev
client = gudev.Client(["video4linux"])
for device in client.get_devices():
p...
I am writing an application that reports attributes of network devices on the local machine. I need the mac address, mtu, link speed and a few others. I'm using udev for this. I've already figured out how to get the mac address and mtu, but not how to get the link speed. I can get it with ethtool from the terminal, but I need a way to ge...
I need to run some code on storage device mounting and unmounting.
How can i listen for these events on linux?
I was thinking on adding some udev rules to run some script (any know-how in this matter is appreciated).
But I would much rather listen for events from the kernel in some netlink socket with my daemon (just like udev does...
Using udev I have been able to get this information for a certain USB device:
idVendor: 13b1
idProduct: 0018
manufacturer:
product: USB 2.0 Network Adapter ver.2
serial: 00FFFF
Now I want to get the full strings that are associated with the vendor and product ids. I found that the file /usr/share/misc/usb.ids contains the informati...
I have a ASUS laptop with Fedora 13. My problem is that any USB storage I connect does not automount. I have other computer with Fedora 13 which does not have the problem.
I have not be able to find any difference in configuration between my laptop and other computers that work.
So to try to trace down the problem I started to looomk f...
I'm running Sidux, Linux 2.6.25-2.slh.1-sidux-686 i686 [ sidux 2008-01 Νυξ - kde-lite - (200804112323)].
My net connection is through Digi Net Mobil, modem ZTE MF110.
I couldn't make it run through it's own application Join Air (I tried all kind of settings, but at its best it answers with: "Fail to connect! Link ppp0 wasn't built !")...
I wanted to know how to run a script after a usb pen drive is inserted and auto-mounted
Till know i am able to run a script as soon as the device is inserted, however the mounting of the device takes place after the shell script action has ended
...
I would like to assign /dev/fbX device like below.
/dev/fb0 for USB-LCD device.
/dev/fb1 for Main Display device.
I try that.
ver.1:created /etc/udev/rules.d/91-udev-fb.rules
KERNEL=="fb0", ATTR{name}=="VESA VGA", ACTION=="add", NAME="fd1"
KERNEL=="fb1", ATTR{name}=="I-O DATA USB-RG", ACTION=="add", NAME="fd0"
result.
ls /dev shown a ...