Debian :: Hardcode Device Input Using Udev?

Jun 7, 2011

My touchscreen "LG Display LGD-MultiTouch" will be recognized sometimes as /dev/input/event0 and sometimes as /dev/input/event3. How to hardcode /dev/input/event0 using udev and xorg.conf?

Code:
# cat /proc/bus/input/devices
I: Bus=0003 Vendor=1fd2 Product=0064 Version=0100
N: Name="LG Display LGD-MultiTouch"
P: Phys=usb-0000:00:1d.7-4.1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.1/1-4.1:1.0/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: EV=1b
B: KEY=403 0 30000 0 0 0 0 0 0 0 0
B: ABS=700 3f
B: MSC=10

# udevadm info --query=all --path=/devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.1/1-4.1:1.0/input/input0
P: /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.1/1-4.1:1.0/input/input0
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.1/1-4.1:1.0/input/input0
E: PRODUCT=3/1fd2/64/100
E: NAME="LG Display LGD-MultiTouch"
E: PHYS="usb-0000:00:1d.7-4.1/input0"
E: UNIQ=""
E: EV==1b
E: KEY==403 0 30000 0 0 0 0 0 0 0 0
E: ABS==700 3f
E: MSC==10
E: MODALIAS=input:b0003v1FD2p0064e0100-e0,1,3,4,k110,111,140,141,14A,ra0,1,2,3,4,5,28,29,2A,m4,lsfw
E: SUBSYSTEM=input

View 3 Replies


ADVERTISEMENT

Debian Configuration :: How To Hardcode/fix A Udev Roule For /dev/input/event0

Jun 17, 2011

How to hardcode/fix a udev roule for /dev/input/event0?For example my touchscreen device jumped after restart, sometimes will be recognized as input3 and sometimes as input0.

I: Bus=0003 Vendor=1fd2 Product=0064 Version=0100
N: Name="LG Display LGD-MultiTouch"
P: Phys=usb-0000:00:1d.7-4.1/input0

[code]....

View 1 Replies View Related

Debian Configuration :: Udev Script To Run Service On Device Insertion

Jan 24, 2010

I have just bought a DVB-T usb dongle to watch some TV. The software I'm using is vdr, which has to be started through the /etc/init.d/vdr service. I have created a udev script that executes the service on device insertion. It works nicely, however now when I boot up the computer it takes ages to get to desktop. I believe it is because of the WAIT_FOR part. But without this part, the service starts too soon because the usb dongle has been inserted but the firmware has not finished loading. Can someone point out an alternative way to do it? The script is here [URL].

View 4 Replies View Related

Debian Configuration :: Udev Static Device Change From Wheezy To Jessie

Sep 9, 2015

I am using a 3rd party kernel driver that does not support udev properly. When I was using wheezy I placed the required device files in /lib/udev/devices.

The udev in jessie does not appear to support this. Is there any way to have udev create these device files or will I have to create then using a script at boot-up?

View 1 Replies View Related

Debian :: Use Udev Rules To Prevent HDDs To Change Device Instead Of Using UUID In /etc/fstab?

Dec 15, 2010

UUIDs make fstab hard to read, so.. Is it possible to use udev rules to prevent HDs to change device, instead of using UUID in /etc/fstab?

View 2 Replies View Related

Debian Configuration :: Permanently Disable The Input-device

Jul 31, 2011

my thinkpad Edge 11 has some problems with the touchpad and the trackpoint, so i want to permanently disable the touchpad, but not the TrackPoint. Both are PS2 devices.

/dev/input/mouse0 --> TouchPad
/dev/input/mouse1 --> TrackPoint

How can i disable the device? In X it does not work with gpointing-device-settings

View 2 Replies View Related

Debian Configuration :: WARNING: Could Not Find Hdaps Input Device

Jun 22, 2011

I am using Debian testing i386. Just upgraded to 2.6.39-2-686-pae. After reboot, and ever since, I am getting warning: WARNING: Could not find hdaps input device (No such file or directory). You may be using an incompatible version of the hdaps module. Falling back to reading the position from sysfs (uses more power). Use '-y' to silence this warning.

View 1 Replies View Related

Fedora Hardware :: Full Speed USB MSC Device Detected As Input Device?

Apr 7, 2011

I am working on an embedded system, which is an USB MSC device that supports some vendor specific scsi commands. I am using FC10 laptop as USB host for testing, and it runs some small apps based on sg3. All has been well for ~ a week. The FC10 laptop is able to communicate with the device and retrieve data. Suddenly, starting from today, the laptop is not able to properly detect the device. When plugged-in, the MSC device is detected as input device (I thought). This is observed from "dmesg" output and changes in "/dev/input/".The device under development is running at full speed. When I connect to winXP, no problem. A windows file explorer pops up, showing the content of the drive.Also, the FC10 has no problem with other USB flash drive (high speed).

View 1 Replies View Related

Red Hat :: Creating Raw Device Via Udev Rules

Apr 12, 2010

I have a Linux server that runs the Sybase DB. Sybase suggests using character devices to access raw devices rather than O_DIRECT to block devices, or cooked FS's. So, I went ahead and configured /etc/sysconfig/rawdevices as such:

/dev/raw/raw1 /dev/vg01/tempdb
/dev/raw/raw2 /dev/vg01/testdb
/dev/raw/raw3 /dev/vg01/fakedb ...

This works fine. I set 'chkconfig rawdevices on' and all is well. I read that this method is deprecated and went about trying to accomplish the same via Udev rules. I already use udev rules in /etc/udev/rules.d/60-raw.rules to set permissions on these devices, i.e.
ACTION=="add", KERNEL=="raw*", OWNER=="sybase", GROUP=="sybase", MODE=="0660"

That works fine. I even set symbolic links:
KERNEL=="raw1", SYMLINK+="vg01/rtempdb"
KERNEL=="raw2", SYMLINK+="vg01/rtestdb1"
KERNEL=="raw3", SYMLINK+="vg01/rfakedb2"

But I cannot seem to get the actual device creation piece to work within udev (it only works using rawdevices). I've tried:
ACTION=="add", KERNEL=="vg01/tempdb", RUN+="/bin/raw /dev/raw/raw1 %N"

No errors, but nothing happens. The device just doesn't create. I've also tried doing it by passing major and minor numbers. Is it possible to get all of this into udev rules or am I stuck with rawdevices? I'm also utterly confused as to the future of rawdevices... the raw man page said it was deprecated, and now at v5.5 it has that piece taken out. Also RHEL 5.3 dropped support for rawdevices in initscripts only to add itback in 5.4. I'm an admin, not a DBA, so I cannot say if this is a bad or good way, only that it is the way the vendor supports and recommends, so it is the way that I must go... just trying to make it work as "un-deprecated" and cleanly as possible.

View 1 Replies View Related

Fedora :: Udev Rules For Using USB Device Not As Root

Oct 15, 2010

Having finally made the switch from Windows (7 Professional) to Linux (Fedora 13) on my laptop, I'm now trying to get all my devices working, specifically an Olympus VN-4100PC Digital Voice Recorder. I've installed odvr and it works in root, but not as a normal user. The installation instructions say: odvr *requires* access to the user-space USB interface.

It is recommended to place "41-odvr.rules" into "/etc/udev/rules.d" or setup your own udev rules rather than running odvr as root. After changing udev rules, don't forget to run "udevcontrol reload_rules" and to replugin your DVR. Again, root privileges are required unless udev is properly setup. The file "41-odvr.rules" (designed for Ubuntu) has the following content:
SUBSYSTEM=="usb", SYSFS{idVendor}=="07b4", SYSFS{idProduct}=="020d", ACTION=="add", GROUP="audio", MODE="0664"

I tried just doing what it said and copying it to "/etc/udev/rules.d" but it didn't seem to work. Looking at other files, I then changed it to:
SUBSYSTEM=="usb", ATTR{idVendor}=="07b4", ATTR{idProduct}=="020d", ACTION=="add", GROUP="audio", MODE="0664"

And now if I do "ls -l /dev/bus/usb/002", I get:
crw-rw-r--. 1 root audio 189, 134 Oct 15 01:21 007

Which seems to suggest that it is running the "41-odvr.rules" file, since lsusb gives:
Bus 002 Device 007: ID 07b4:020d Olympus Optical Co., Ltd Digital Voice Recorder VN-240PC

But odvr still doesn't work as a normal user, giving:
Failed to open Olympus device: couldn't claim interface

View 2 Replies View Related

General :: Pipe Screen To Video Device (Udev)

Mar 20, 2010

Is there any way to pipe video from the screen to a video device that can be used as if it came from a webcam? I assume it uses udev somehow...

View 4 Replies View Related

General :: Preventing Udev From Creating Device Entries Under /dev

May 21, 2010

I need to prevent udev from creating the /dev/v4l/by-path/* and /dev/v4l/by-id/* files upon connecting my webcam. The problem is that Kopete doesn't want to display the video if these files are present. It works fine if I remove them, but I'd rather not have them created in the first place, since they seem to be completely useless anyway.

View 4 Replies View Related

Hardware :: Forcing Specific Driver For Device Through Udev

Oct 5, 2010

My co-workers and I are trying to develop a USB device, which uses an FTDI chip as a USB-serial controller. The thing is, we would ideally like to set a custom idVendor and idProduct on the FTDI chip. The problem occurs that when we set custom idVendor and idProduct values, udev(7) loads the "usb" driver. If we leave the idVendor and idProduct values to their originals, udev(7) loads the "ftdi_sio" driver. The whole reason for the custom idVendor and idProduct values is so that I can (hopefully) write a udev(7) rule to map that particular device to a specific entry in /dev. Is there a way to write a udev(7) rule so that you can forcefully load a particular driver for a device? Is there something else that could be done to get a similar result?

View 2 Replies View Related

General :: How Udev Rules Work To Create Device Files

Jun 2, 2010

how udev rules work to create device files. Following is what I did for that: Up on plugging in my phone (sony w800i), I am getting a device file 'devcdc-wdm0' created. I just tried to figure out the rule which is responsible for the creation of this particular file.

I searched in 'etcudev ules.d' and 'libudev ules.d' for the string 'cdc-wdm' to find that rule. But I am not getting any hits in that search. Could any one help me out in this one.

BTW: I am using Ubuntu 9

View 6 Replies View Related

Software :: Udev Creates External USB HD Device Node Too Late

May 22, 2010

On my debian lenny OS I have an external usb hard disk I would like to automount it at boot. So I edited the /etc/fstab file in order to automount /dev/sdb1. It worked without problem. Then I recompiled the kernel and, as consequence, /dev/sdb1 changed to /dev/sdc1. I started playing with udev in order to match the now called /dev/sdc1 and to change its name in /dev/maxtor (being maxtor the brand of the hard disk). Obviously I edited also /etc/fstab: /dev/sdb1 is now /dev/maxtor.

The boot automount doesn't work anymore. On the boot sequence I can read the message "Mounting local filesystem...mount: special device /dev/maxtor does not exist FAILED". But when I log into the system I can run the command "mount /dev/maxtor /mnt/maxtor" and it works! So, IMHO, my udev rule is correct otherwise also the manual mount wouldn't work, right? I have to tell to udev to create /dev/maxtor BEFORE the boot automount process.

I tried to delete my udev rule and to edit /etc/fstab changing /dev/maxtor in /dev/sdc1 (the name udev gave to my hard disk after kernel recompile, before was /dev/sdb1) and it didn't work: on boot process I always see the "Mounting local filesystem...mount: special device /dev/sdc1 does not exist Failed". Then I tried to change /dev/sdc1 in /dev/sdb1 in /etc/fstab and to reboot with the old original kernel and int this way it works. With my compiled kernel, the OS seems to have lost the capacity to detect my device node correctly.

View 2 Replies View Related

Slackware :: UDev Playing Hide And Seek With EthX Device

Feb 24, 2010

Some times I boot up, and udev has labelled what is usually eth0 as eth1. Of course, my rc.inet1.conf is configured for seeing internet at eth0, so no connection, quite obviously. Then I reboot and the device label is back to "eth0". Actually I'm still not able to get connected, even at eth0, despite my nameservers being OK, and the default route gateway being all OK. PS. I have a static ip address.

View 3 Replies View Related

Fedora :: Disable Input Device For X?

Feb 16, 2010

I have a Kore Controller from Native Instruments [URL] using it as a sound card on Fedora 12. Its input knobs are supported by Linux, too, but they are pretty useless for me.It came out that these input knobs send mouse movements from time to time, letting my mouse pointer jumping to the upper left corner of the screen.

So I want to disable the knobs, i.e. I want X to not interpret these "knob actions" as mouse movements. What is the best way to achive this? Can I disable it somewhere in HAL configuration or do I have to modify xorg.conf? And how do I do this?Simply plugging out the Kore Controller is not an option for me because I use it as sound card.

View 8 Replies View Related

General :: USB Midi Input Device?

Jul 18, 2010

I just bought an M-Audio Keystation 49e off of craigslist and I'm at a bit of a loss on where to start to use it as an input device for muse or rosegarden.

Distro: Debian Lenny
Kernel: 2.6.26-2-686
Laptop: Compaq V5305WM

Everything seems setup, but I'm at a loss on how to use it in the applications. It doesn't have any sound synthesis abilities on the keyboard, it's just an input device. Without the keyboard I usually go this route:

jackd -R -d alsa &
timidity -Oj -iA &
rosegarden

And midi events output sounds and all that jazz. I'm wanting to input notes / record from the keyboard. But still output all sounds in the aforementioned manner. If I could get those to happen while I record that would help a bunch. Maybe it's just too late in the day for me to wrap my brain around it at the moment.

[Code]...

View 7 Replies View Related

General :: How To Create Dummy Input Device

Mar 19, 2009

Long story short - on my laptop, touch pad is recognised as PS/2 mouse. Everything works (moving, clicking, dragging, vertical scroll). But I often accidental click the pad while typing.Synaptic driver recognises it as ALPS glide point it seems (synclient -m 1 gives me back only x,y difference for the gestures, but X,Y coordinates are always 0,0) - so then I get everything right including disabling mouse on keyboard input - but scrolling doesn't work So I came up with 2 possible ideas - which I don't know how to do/test:1. Perhaps there is a way to disable mouse input while typing without synaptics drivers?2. Create a dummy input device (mouse), and tie synaptics driver to it. Add another input device in xorg.conf to point to the real touch pad as PS/2. And make the synaptics disable "real mouse" by enabling GuestMouseOff option.

View 1 Replies View Related

Fedora :: Fto Remember Audio Input Device?

Apr 11, 2010

I need to set the default input device to be the microphone on my webcam for when I skype, but it seems to keep resetting itself, so I keep going in and changing it.

I am right clicking the volume icon and going into Sound Prefs -> Input, and selecting the camera.

How do I stop it from forgetting this and resetting it?

View 4 Replies View Related

Fedora :: Which Device To Use For Ffmpeg Sound Input?

Dec 27, 2010

I am trying to record a video clip, using my webcam, but sound synchronisation is always poor. I have used Cheese, UCView and VLC. One possible cause is explained in the reply to this question, but I am not an expert. In desperation, I now want to try ffmpeg. The ffmpeg documentation gives the following example

Code:
ffmpeg -f oss -i /dev/dsp -f video4linux2 -i /dev/video0 /tmp/out.mpg
My system has no /dev/dsp, but does have /dev/snd with these files
Code:
$ ls /dev/snd

[Code]...

View 11 Replies View Related

Ubuntu Multimedia :: How To Add Device For Sound Input

May 2, 2011

I delete input device. How to fox it? All the sound is working only microphone problem.

View 2 Replies View Related

Software :: Which Device To Use For Ffmpeg Sound Input?

Dec 27, 2010

I am trying to record a video clip, using my webcam, but sound synchronisation is always poor. I have used Cheese, UCView and VLC. One possible cause is explained in the reply to this question, but I am not an expert. In desperation, I now want to try ffmpeg. The ffmpeg documentation gives the following example

Code:
ffmpeg -f oss -i /dev/dsp -f video4linux2 -i /dev/video0 /tmp/out.mpg
I want to use alsa, not oss, but need to know the alsa input device name (/dev/dsp is created by loading the oss modules). By running alsamixer, I have nutted out that /dev/snd/controlC0 refers to the HDA Intel sound card, ~controlC1 is my USB webcam and ~controlC29 is the microphone built in to my notebook, but these are control devices, not inputs.

[Code]...

However, that does not explain which device is the mic built in to the laptop: by my calculation, it should be pcmC0D1c, but there is no such device. In /proc/asound/card0/pcm0c/ I have directories for sub0 and sub1, which I am guessing relate to the mic jack and inbuilt mic respectively. Do two physical mics share one logical device somehow? I am starting to really confuse myself, if you haven't guessed that already.

I think my question boils down to "How do I record a video clip on Fedora 14 using ffmpeg?", but I am specifically interested in knowing how to specify each of the alsa sound input devices for my system.

View 8 Replies View Related

General :: How To Tell Xorg To Reload Input Device Module

May 14, 2010

When X.org boots up, Synaptics touchpad works well. But when I remove the module it falls back to /dev/input/mice and don't use normal driver even when touchpad is available again.

Xorg.0.log:
...
(II) XINPUT: Adding extended input device "Synaptics Touchpad" (type: TOUCHPAD)
(--) Synaptics Touchpad: touchpad found
# { rmmod psmouse && echo mem > /sys/power/state && modprobe psmouse; }
(WW) : No Device specified, looking for one...
(II) : Setting Device option to "/dev/input/mice"
...

How to tell X.org to try it's InputDevice again (without restarting X server)? rmmod psmouse is needed to prevent crashing of Acer Extensa 5220 when resuming from suspend-to-ram. Found answer myself: Doing xinput set-int-prop "Synaptics Touchpad" "Device Enabled" 8 1 after reloading the kernel module reloads touchpad. Now suspend-to-ram works OK.

View 1 Replies View Related

Ubuntu :: Disable Input Device - AutoAddDecices=True

Jun 10, 2010

I have installed Lynx and want to use two X servers at the same time. Each server has its own ServerLayout section in xorg.cong. The first ServerLayout Section has AutoAddDevices enabled, so that new input devices are added automatically. The second ServerLayout has AutoAddDevices disabled, and one InputDecice pointing to /dev/input/mouse3. That way, this mouse is the only input decive affecting the second X instance.

Unfortunately, this mouse is also controlling the first server (due to AutoAddDecives). Can anyone tell me how to disable this? I want every input device to be added to the first server, except this mouse. In earlier versions of ubuntu, I used a hal rule to make hal ignore this mouse. So it was not added to the first server. Now that hal is not used by lynx anymore, I don't know how to do this. I have already read some things about udev and the xorg.conf.d folder.

View 1 Replies View Related

Ubuntu Multimedia :: Auto-select USB Mic As Input Device?

Jul 6, 2010

I use a USB webcam with a built in microphone. It works fine, but every time I plug it in I have to go to sound properties and select it as the input device. There are no other input devices present on my system. Since it's the only one there, is there any way to get it to automatically select when I plug it in? If not, I think that would be good functionality to add. Does anyone know who or what team to contact about that?

View 3 Replies View Related

Ubuntu Multimedia :: No Audio Input Device Can Be Found?

Feb 8, 2011

No audio input device can be found in sound preference>input but in sound preference>hardware>it shows the input webcam recorder device.

When I use

Code:
alsamixer

onto terminal it shows this

and also i checked cable device and everything. And it was working till I last hour. I rebooted computer then there's some problem, I haven't change anything before or after rebooting.

View 3 Replies View Related

Ubuntu Multimedia :: Input But No Output On Firewire Device?

Jun 11, 2011

I'm using FFADO on JACK in order to use my firewire device (M-Audio Profire 610) and I seem to have the opposite issue as others who have similar problems. Everything starts up fine, and I can record audio into Ardour using my inputs, but I can't get any output from any of my 8 line outs.

I've checked the connections using QjackCtl, and I tried to route audio from another program (Audacious) but I can't seem to pull audio out of the device (or the computer won't send my device audio?).

View 1 Replies View Related

Ubuntu Multimedia :: No Input Device Present - Maverik 10.10

Jul 11, 2011

I can't use my line-in/microphone jack. In system-management-sound input tab there is no input device listed, and the input controls are grayed-out. sudo lshw -C sound produced:

description: Audio device
product: N10/ICH 7 Family High Definition Audio Controller
vendor: Intel Corporation
physical id: 1b

[Code]....

View 1 Replies View Related

OpenSUSE Hardware :: Bluetooth Device Does Not Support Input Service

Jan 6, 2011

I have a bluetooth usb dongle which I cannot get to work. I start kbluetooth. The icon in system tray is blue (not grey).
Right click on it -> Device Manager -> New
The wizard starts. It sees my Palm, but then says: "Sorry your Bluetooth Device does not support input Service". I don't know what to do.
Opensuse 11.3 kde 4.5
kbluetooth 0.4.2-10.5

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved