Software :: Use Touchscreen Output In C Program?
Apr 29, 2011i use touch screen monitor .when some one touch on screen i want to wake up in my c program and i use this touch usb output for my prograam
View 1 Repliesi use touch screen monitor .when some one touch on screen i want to wake up in my c program and i use this touch usb output for my prograam
View 1 RepliesI have a touchscreen (DELL model)which is working with windows xp (with windows drivers for touchscreen installed). but i want to use mandriva 2008 on the touchscreen, which requires drivers of mandriva 2008 only. I have been trying very hard but in vain.
View 3 Replies View RelatedSee the first program below :
Code:
This code when compiled gives the following errors:
1. conflicting types for 'fun' at line no: 9
2. previous declaration of 'fun' was here at line no: 3
Why is this happening?
If i modify the above program as shown in the second program below:
Code:
This code when compiled gives no errors.
Why the difference occurs between the first and second program?
while doing socket/network programming, i am getting SSH-2.0-openssh4.7 error, instead of showing day time of server.general description i have Linux Box, with the help of putty i am connecting from windows system to Linux box,no problem in loging,after typing program, i am running the program with gcc. when typing ./a.out, it is showing SSH-2.0-openssh4.7, actually it should display daytime from linux box in both tcp and udp.
View 1 Replies View RelatedI'm looking for a program that will visualize anything that goes through my audio-output (in this case it's Spotify) and display it on the screen. Does this exist?
I'm running Ubuntu.
I've made a LED gadget, which can light up LED patterns. It connects to serial port with RS232 protocol and receives messages which contain desired patterns. My friend wrote a python program which generates patterns and writes them to terminal. Everything is fine this far. I've made a bash script to run this program:
#!/bin/bash
python gen.py
and set it to autostart with:
chmod 755 scr.sh
mv scr.sh /etc/init.d/scr.sh
sudo update-rc.d scr.sh defaults
What I don't understand is - how do I redirect it's output to ttyS0 so that my device could catch generated data?
I've heard that in Linux every data stream can be redirected anywhere with '>>' in bash script. How do I do that? Can I, dunno, write something like this: python gen.py >> ttyS0 in shell script?
Is there any way to select which output device a program uses? I notice many Ubuntu programs lack the choice to choose where the sound is outputted, for example Rhythmbox and Exaile.I have 3 sound outputs (Internal, PCI, HDMI) connected and I'd like to for example use the PCI card as default audio device but play music from Rhythmbox through the internal motherboard output.
View 2 Replies View Relatedso i wrote myself a very simple hellworld program in c++
...the usual stuff
int main()
{
[code]...
I have a multithreaded program running. The threads are created by using pthread_create(). The ps shows a pid value for each thread in the process. The name of the thread is all the same as the parent process. I want to match the PID values in the ps output to the threads in my program. But when I used getpid() in each thread, the value I get is different from what ps shows. How do I match the pid value in ps output to the threads in my program.
View 1 Replies View RelatedI am creating a 15 integer array which is input from the user and outputted for the.
Ex.
Enter the array values: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Your values are: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Code:
I am learning Linux daemon programming and write a simple daemon program. The issue is no data is written to the log file (/var/tmp/simpledeamon.log) though the file is successfully created (it's file size is zero from ls -l output). Could someone kindly point out the error in my program,The code is based on the Devin Watson's article at Here is the code:
// simplydaemon.cpp
// A simple Linux daemon.
#include <sys/types.h>
[code]...
I'm using Ubuntu and I'm programing with eclipse CDT. My goal is to execute a php file and read the output to my c++ program. To do so I thought I should use fork(), dup2() and execl. When in shell, the call "php myscript.php" worked just fine, but when in c++ I tried:
execl("usr/bin/php", "php", "home/geiger/workspace/SemiServer/server_content/myscript.php", NULL);
And it didn't work (the process wasn't terminated and I got no output). I tried different version of this call, like losing the "php" string and/or drop "home/geiger" from the path string, to no better result.
The below program is giving unpredictable and wrong output when I compile with g++ under Ubuntu OS , tried with the complier avilable with Ubuntu 8.04 and Ubuntu 10.04 LTS.
But it works fine when complied and ran Redhat g++ 3.4.6
I've got a C program that I've added some 'printf' statements to monitor a couple of variables. When I run this program manually or from a script, the output is displayed on screen. However, I need to change various variables in the 'test.c' file, run 'make clean' and 'make' a few hundred thousand times. I'm using a script to read the variables in and then using sed to do in-place edits of the file. Unfortunately, with this amount of iteration, it is getting rather tired!
Anyway, I've created a script that is working as long I respond to prompts. I've tried the following to no avail: Code: /path/to/script > /tmp/output /path/to/script > /tmp/output 2>&1 /path/to/script | tee (no output even after adding the -a option) In my C program, I have the following 'printf' statement: Code: printf ("variable1: $s variable2: $s",var1,var2); What am I missing? I've worked with redirection before and it's always worked out fine, but this one plain stumps!
I have a program that writes to stdout. Is there a way that I can redirect the output to the linux diff command or do I have to write the output to a file and then compare that. For example I have a bunch of test input files for a program and the corresponding expected output in another set of files. And I'd like to do something like ./program < t1.input | diff t1.expected.
View 3 Replies View RelatedCan someone recommend a good app to monitor the OUTPUT of my soundcard? I don't just want to look at the VU meter of my music player - i actually want to see what the soundcard is outputting. Windows drivers for my soundcard (Audiophile 192) had this ability, but I'm not sure what software to use in Linux.
View 6 Replies View RelatedI have nine barcode scanners, each of whose input I want to send to a separate instantiation of a program I wrote. Each device shows up as /dev/hidraw_ (I'm using Ubuntu 10.4). The problem is that they all act as simple keyboard input, and I can't seem to redirect the output from one to a specific instance of my program. I've tried something like cat /dev/hidraw5 > ./myapp, and that doesn't work. I've tried actually opening the device in my program using open("/dev/hidraw5"), and it returns success, but subsequent reads don't do anything, and the scanner output is just printed to the console.
View 1 Replies View RelatedIs there already a program that reads multiple pipes or file descriptors and writes to the standard output (not splitting lines).Like cat, but reading all files simultaneously and preserving lines.It is needed to avoid coding of select/epoll loops or using multithreading in simple programs. Like "select loop for bash".
View 1 Replies View RelatedCan anyone tell me what the pros and cons are between heirloom-mailx vs mailutils? This is for ubuntu 10.04 LTS. AT this point my only purpose is to use the mail command line program to occasionally send log output to email aliases.
View 2 Replies View RelatedI have an X11 GTK program, let's name it "foo".I would like to start it from command line, either from a text console, or from an ssh log-in. I want to run foo with Administrator privileges and in higher priority, and I need redirect standard output and standard error. Standard errors must go to syslog, except "libglade Warning" messages and empty line messages. Standard output is redirected to a file.I wrote a script, called "foo-start". The "foo" program must run continously, so the "foo-start" script should not wait for "foo"'s termination.The scrip actually looks likelike this:
cd "FOO'S DIR"
(sudo nice --10 ./foo --display=localhost:0 &) 3>&1 1>foo-output.log 2>&3 | grep . | grep -v lobglade-WARNING | loggerr -p local7.err -t foo &
[code]....
Had it working in Ubuntu and now Ive switched to openSUSE and loving it! Much better than Ubuntu. But I cant get the touchscreen working. Please help...Ive tried to get it working but assume I have done nothing please. Im semi-intelligent when it comes to linux but most of my experience has come from Ubuntu.Im kernel 2.6.34-12 and using openSUSE 11.3 (32 bit)
View 3 Replies View RelatedI have an eGalax touchscreen which I installed using the xserver-xorg-input-evtouch package. Now touching the screen makes the mouse pointer move in all sorts of random directions.
What I want, of course, is for the mouse pointer to move to the point where I touched the screen. Typically this is called 'calibration'. Maybe there's a program to run or something, but I can't find it. how do I calibrate my touch screen?
I'm running Jaunty 9.04 so there is no 'System -> Administration -> Calibrate Touchscreen' program.
You have probably seen the TV shows and films with the law enforcement agency, or the team at "Leverage" have a large screen with other side screens.
I don't have a holographic display, or even a 60" touchscreen, but I do have a TV, and a couple of computers running 10.10 and 11.04.
What I would like to do, using a mouse instead of a touchscreen, is "push" photos, videos, or dossiers on enemy agents to another screen or phone.
I would imagine it to be something along the lines of hot zones on the desktop, so that if I flick an item to, say, the right of the screen, it will leave my desktop and pop up on the desktop of the (networked, but separate and different) computer to my right, and if I drag / flick an item to the top centre it will Bluetooth it to my phone (which I'll set up to automatically accept any files from "my.desktop.homelan".
I had something a little similar with, I think, Compiz, in that if I flicked an item to the right it would dump it onto virtual desktop 2 (of four horizontal ones).
What search terms would I use in Google or Ubuntu Help to get me started? I can compile, but I'd rather not, as I'm not very good at it, and I can edit .cfg files as long as there are plain English descriptors ("Enable_Feature_Foo=1" "Fave_Place=/home/Me/fave/" etc).
The problem is the touchscreen is acting like a mouse. The cursor doesn't go to where I touch, it just moves around just like a normal mouse.
This Xorg.0.log shows this about the TouchScreen
Code:
(II) XINPUT: Adding extended input device "USB Touchscreen 595a:0001" (type: TOUCHPAD)
(**) USB Touchscreen 595a:0001: (accel) keeping acceleration scheme 1
(**) USB Touchscreen 595a:0001: (accel) filter chain progression: 2.00
(**) USB Touchscreen 595a:0001: (accel) filter stage 0: 20.00 ms
[Code]....
the lsmod output tells me that the usbtouchscreen isnt being used by anything.
How to get a older crt touchscreen working. I need it to work for a handicapped child. When I check the device it seems slackware detects it as a mac emulation mouse and I installed egalaxy drivers. It seems something is right, when I touch the screen the cursor goes to the right top corner and moves a bit when touching the screen.
View 5 Replies View Relatedhow can I disable the touchscreen tapping on F12?
View 2 Replies View RelatedDoes Fedora supports Touchscreen computers? I am planning buy a new desktop computer and there are several models that come with touchscreen, I don't really care about this feature , I just want to know if Fedora can operates under a touchscreen system. If Fedora doesn't support touchscreen systems, Is there any plan to integrate this option in a near future?
View 1 Replies View Relatedi did some investigation and came accross mouseemu. however it seems like mouseemu is no longer part of the suse repositories. also its just available for ppcis there any way to have a behaviour like ctrl+click + rightclick?
View 8 Replies View RelatedI am trying to get my 3M touchscreen to work in Ubuntu. Presently, I have the usbtouchscreen module loaded -- which results in touches being recognized, but the y-axis is backwards (ie: if I press at the top, it shows up at the bottom). Given that hal is depreciated, the only place I could note for configuration options the xorg.conf.d directory. But, I'm unsure what needs to be added there.
Additionally, I am confused over usbtouchscreen vs evdev vs evtouch -- which is supposed to be used at this point?
Ok, some system info:
I am running Ubuntu 10.04
[Code]....
since Ubuntu 9.04 I try to get my USB-Touchscreen from Faytch running. With some changes in the setup.sh of the drivers that can be downloaded from faytech.de I finally got it running under 9.04. Changes I made were blacklist path and since no xorg.conf exists anymore I started with a 8.04 Live-CD and copied the xorg.conf from there. not nice but worked. Now with 10.04 new drivers are available but (still only for 8.04). Did the same hack with the xorg.conf (blacklist path was already updated). So the driver and touch stuff works even without any driver whenever I hit the touch screen (anywhere / even in the middle) I always get a mouse click in the top left corner. and that keeps on even after installing the driver.
So without driver I get a click in the upper left corner and with driver installed and calibrated I get a click where I have my finger on the screen (that is what I want) AND a click in the upper left corner (THAT IS WHAT I NOT WANT). I think Ubuntu recognizes the touchscreen as a kind of "unspezified" input device and does a click whenever a touch-event occurs. How can I deactivate that behavior without disabling all the USB??