Programming :: Event Device Nodes And Xorg?
Oct 14, 2010
When i create a new event device (/dev/input/event) it is automatically grabbed by Xorg:
Code:
(II) config/udev: Adding input device Keypad Emulation Driver (/dev/input/event7)
(**) Keypad Emulation Driver: Applying InputClass "evdev keyboard catchall"
[code]....
View 1 Replies
ADVERTISEMENT
Aug 17, 2010
I'm running 10.04 64-bit diskless on ESXi, installed as a minimal virtual machine. I want this server to access an iSCSI drive. The machine can view the iSCSI shares with iscsiadm, and can even log into the drive. When I do an iSCSI login, this appears in /var/log/messages:
Aug 17 11:08:21 ubuntutest kernel: [1123295.329972] scsi4 : iSCSI Initiator over TCP/IP
So, it appears that open-iSCSI is working correctly. But no new /dev/sd* nodes appear, and nothing new appears in /dev/disk/by-path. I'd expect to see /dev/disk/by-path/ip-XXXXXXXXX. fdisk -l shows nothing but the boot drive. My guess is that the "minimal kernel" doesn't include some necessary module or driver.
View 1 Replies
View Related
Sep 16, 2009
I'm putting a server together and have run into a boot up problem. (I thought about putting this in the server forum, but it might be a more generic problem that others have seen and know how to rectify.) The install seems to have gone just fine. I have the /boot partition on an internal IDE drive. The rest of that drive and another are mirrored in a Raid0 configuration (using the Linux software to do that) for data storage. The swap partition is a part of the Raid5 SCSI array that also has the / (root) partition on it.
After installation it would not finish the booting process. I suspected that GRUB didn't like all the Raid arrays and such, but it seems to be fine. I can say that because the machine will boot into rescue mode with the GUI splash screen and I have access to the whole directory tree. I have already searched on-line and following prudent advice, ran the yum update while in the chroot /mnt/sysimage mode. That only took overnight to download and most of this morning to complete. Still no dice. Used vim to delete the rhgb quiet commands in the grub.conf file so I could see where the kernel seems to be hanging.
So right after the "Creating initial device nodes" is a line about my generic PS2 wheel mouse. So I tried a USB mouse. Got more output so tried swapping out to a USB keyboard. Got a little further with more information about input devices, but still stops. Also, I tried a PCI video card just to make sure the onboard video wasn't the problem - no change. So, if someone in the Fedora community knows what loads up or is configured right after the mouse and keyboard, I might be able to figure out what's causing the computer to hang during the boot process.
View 2 Replies
View Related
Apr 15, 2010
I'm a starter here in linux, I have written a driver code and in that, I register my character devices by passing 0 for the major number.
To set up I used to use mknod command from terminal to create node,
Is there any method to create node dynamically from driver code during initialization and delete them at cleanup time?
View 1 Replies
View Related
Jul 31, 2015
Currently using a USB mouse, keyboard and the USB touch input from an Elo touchscreen connected to a Raspberry Pi (using the Raspbian flavor of Debian) through a USB hub and when I query the content of the directory /dev/input/ I get 4 "events" with each event designation associated with one of the input devices (the 4th one never seems to be active??).
pi@raspberrypi /dev/input $ ls -la
total 0
drwxr-xr-x 4 root root 240 Jul 29 02:20 .
drwxr-xr-x 12 root root 3300 Jul 29 02:23 ..
drwxr-xr-x 2 root root 160 Jul 29 02:20 by-id
drwxr-xr-x 2 root root 160 Jul 29 02:20 by-path
crw-rw---T 1 root input 13, 64 Jan 1 1970 event0
[Code] ....
If I examine an "event" characteristics using the linux utility "evtest" - example "event0" , I "might" get:
pi@raspberrypi /dev/input $ evtest event0
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x4e7 product 0x20 version 0x100
Input device name: "Elo TouchSystems, Inc. Elo TouchSystems 2700 IntelliTouch(r) USB Touchmonitor Interface"
[Code] ....
which is the Elo touchscreen.
But if I reboot the Raspberry Pi - I can also get for an evtest of "event0":
pi@raspberrypi /dev/input $ evtest event0
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x413c product 0x3010 version 0x100
Input device name: "HID 413c:3010"
[Code] ....
which is the USB mouse.....
It appears as if the assignment of the "eventX" identifiers (i.e. the "X") is arbitrary and it can vary with each reboot... which is problematic as I need to identify which "device" will provide the touch events for openframeworks. Is there a way to assign a specific device to a specific "eventX" designation ???
View 2 Replies
View Related
Sep 8, 2009
Trying to do a yum update to get everything to latest, towards the end it says this:
[Code]...
how to get around this? I tried yum clean all, then yum update, again but it did the same. I had other deps missing on other servers but yum clean all fixed them -- can't find anyone else who's had this specific issue either, nor an rpm called 'device-mapper-event' or the other things that are missing - am kinda stuck!
View 8 Replies
View Related
Jul 12, 2011
I have a xml file and I read it within a php file with XML dom. This is the node structure of my xml file :
<Root><name></name>
<surname></surname>
<ID></ID>
<department></department>
[code]....
In the comment line, I've got the parent node of the current node. Parent node is "User" node. I would like to obtain the children of this parent node, say "name","surname " etc. How can I do this? Is there any function such as : "$parent_nodes->bringChildren('name')".
View 1 Replies
View Related
Mar 16, 2010
I have a cluster script (CentOS 5.4) and I need a UPS for a shutdown. It should look like this ... The first node must wait until the second node has completed several actions and has been completely shut down. So I need a script with a shutdown wait until the other node is ... I was thinking of a test using ping. Alternatively, I would also have an IPMI interface. However, the "pause" may last a maximum of 10 minutes ... Then the wait must be ended.
View 10 Replies
View Related
Nov 30, 2010
I'm using mq_notify to be notified about events on a message queue. But my registered notifier function is not being called. I'm pasting my code snippet below:
[Code]....
View 4 Replies
View Related
Jul 13, 2010
I am trying to write an app that will perform some actions when a network interface is unplugged. Is there a way to get the OS to signal me when a network interface is unplugged. I have looked at DBus but can't figure it out.
View 1 Replies
View Related
Nov 17, 2010
I'm working on an application which generates random shapes when clicking on a window. I designed the window using Motif. I want to invoke the ButtonPress Event .
View 1 Replies
View Related
Oct 27, 2010
Is any way to detect a keypress event in a console session? Preferebly without needing the application to be running in the foreground
View 2 Replies
View Related
Jan 24, 2011
i need to have the time of occurence for mouse event in xinput,right now i run
Code:
xinput test <device_id> >log.txt
(for finding device_id using xinput list)
[code]...
View 4 Replies
View Related
Jan 4, 2010
I know how to deal with a mouse click event like so:
Code:
But was happens when I am dealing with mouse dragging? Will my implementation of mouseDragged() get called for every pixel moved? So I just getX() and getY() like with a mouse click?
Also, in order to know when mouse dragging stops and starts, do I also have to put code in mousePressed and mouseReleased?
View 1 Replies
View Related
Feb 18, 2010
How to do so? For starters, I'm not sure there is such an event. Maybe it has something to do with the OS moving through certain run-levels
View 6 Replies
View Related
Feb 6, 2011
I'd like to use a perl script to update a fields in mysql database when pianobar (command line pandora radio player) starts a new song. Pianobar has the ability to run a script based on events, I'd like to take advantage of and use perl toparse the artist,song,album and update the corresponding fields. Then later retrieve them and display them with php/html. I am by no means proficient with perl. I started to use bash, but it looks like perl will be much more efficient and and less time consuming.
Code:
#! /usr/bin/perl -wT
use strict;
[code]...
View 2 Replies
View Related
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
Apr 4, 2010
I'm using an Intel 965 GM graphics chip with the "intel" driver. I'm curious as to why it doesn't seem to be using any of the options that I'm placing under the Device section of xorg.conf. Here's an example:
Section "Device"
Identifier "Configured Video Device"
Driver "intel"
Option "AccelMethod" "XAA"
EndSection
In my Xorg.0.log file, I get the following message:
(WW) intel(0): Option "AccelMethod" is not used
Why would it not be allowing me to use options such as this? I know that my driver and video card are compatible with this option, as is indicated in this manual: [URL]
View 1 Replies
View Related
Jul 24, 2011
Is it possible to add more than one graphic device driver to xorg.conf and it will load automatically? It is important to autodetect because I am using the configuraiton read only. This is because it's a custom LIVE CD.This is what I currently have, and it works!
Problem is if I put my Live CD in my brothers machine, it fails to load because it uses a Radeon driver!I can preinstall the ati packages I need, so all i need to know is how do I make it work?
View 1 Replies
View Related
Jan 11, 2010
I am planning on setting up a 4x1TB RAID5 with mdadm under Ubuntu 9.10. I tried installing mdadm using "sudo apt-get install mdadm", all worked fine except for the following error: Code: Generating array device nodes... /var/lib/dpkg/info/mdadm.postinst: 170: /dev/MAKEDEV: not found failed. The end result is the /dev/md0 device has not been created, as can be seen here:
Code: windsok@beer:~$ mdadm --detail /dev/md0 mdadm: cannot open /dev/md0: No such file or directory After googling, I found the following bug which describes the issue: [URL] However it was reported way back in April 2009, and it does not look like it will be fixed any time soon, so I was wondering if anyone knows a workaround for this bug, to get me up and running?
View 4 Replies
View Related
Nov 8, 2010
When I getch() a key event (UP arrow key), the getch() function return a string of characters that I cannot compare with curses.KEY_UP constant. Here is the code I use :
while True:
w = gb.scrn.getch()
c = chr(w)
otp = 'touche:'+str(w)+' '+str(c)+"
[Code]...
It seems like getch() return three distincts bytes while I would retrieve it with a single ord() instruction in python like describes in curses/python documentation.
View 1 Replies
View Related
Nov 10, 2010
I have a Dell precision M50 which has the NVIDIA Quadro4 500 GoGL. When I upgraded from 10.04 to 10.10 the proprietary NVIDIA driver stopped working. At that time I found a simple solution which was to replace in the xorg.conf file the line in the Section "Device":
[Code]...
View 6 Replies
View Related
May 30, 2010
I did searched you tube but my results were not great.I have 2 books on KernelProgramming.I feel I need if some where I can get a video tutorial which can help me to understand how to develop a Linux Device driver that will be great.I had a look at Greg Kroah Hartmans video lecture of developing patches on ......I have been reading books and a lot of stuff.So I wish if I could get a video lecture that would be better
View 1 Replies
View Related
Jun 18, 2011
I found in my xorg.0.log the the xorg ATI driver is failing ALL options.
Code:
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 8.942] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 8.942] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 8.942] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[Code].....
View 9 Replies
View Related
Jun 17, 2010
I ise debian lenny on both server and nodes. Nodes are in sence of drbl drbl project.
So, my sendmail on server works well but on nodes in syslog i see:
Code:
Configuration of sendmail on server and nodes is same and it is:
Code:
View 2 Replies
View Related
Oct 22, 2010
How to set the anchor node in NS2? How to define the channel propagation model as Log Normal Shadowing instead of two ray ground reflection model in NS2?
View 2 Replies
View Related
Feb 5, 2010
i want to add keys to the sensor nodes. Hence i want to know whether there is any parameter for key storage in senor nodes
View 1 Replies
View Related
Feb 7, 2011
i need to discover all network nodes and their ips is their a way to do it, then if i need to discover certain nodes which runs certain program. I'm using Fedora14 and FreeBSD
View 2 Replies
View Related
Mar 3, 2010
I'm trying to work with a project manager and some hardware guys and all of us are trying to get a grasp on the UEC.
1. Can a VM span multiple nodes?
2. If a website scales beyond 100% CPU on a node, does it automatically spill over to another node and start using processing power there?
3. Do I have to rewrite the code of my web app (such as WordPress) so that it works in a private cloud?
4. Does KVM support virtual memory such that when I run out of RAM it uses paging?
5. How is UEC any different than me bringing up several servers with several VMs inside, and then moving VMs around as I need? Is it really a cloud where the VMs exist in a cloud, not necessarily a node?
6. If I power off a node while it's hot, how can I assure myself that the data will be okay?
7. Do I want to use SCSI attached RAID, or NAS, or NFS? We're simply trying to host thousands of blogs and LAMP sites in a way that we can handle spike loads.
8. Do I attach the disk volumes to the cluster controller and then run a command such that the nodes can mount those virtual volumes?
9. Do I need to run another command on the VMs to mount volumes that the nodes can see?
10. What is the role of the storage controller and how is it separate from the cluster controller?
11. How many systems, minimum, do we need to get this tested out?
12. For testing purposes, can I install UEC on an Intel P4 server and then a node on Intel P3 server -- even with some limitations?
13. Let's imagine I have 5 node servers, and one catches fire and is a total loss. Can I get those VMs back and get that data back? What would have to be the proper config to make that happen?
View 1 Replies
View Related
Mar 11, 2010
I want to connect two systems in clustering concept. am new for clustering configuration. I have installed ubuntu 9.10 server edition in two system. what do to the next step to configure clustering in ubuntu 9.10 server edition.
View 1 Replies
View Related