Software :: Use Touchscreen Output In C Program?

Apr 29, 2011

i 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 Replies


ADVERTISEMENT

Software :: Touchscreen Drivers For Mandriva 2008 - Touchscreen Working With Windows

Feb 18, 2010

I 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 Related

Programming :: Output Of The C Program?

Jun 8, 2009

See 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?

View 8 Replies View Related

General :: Unexpected Output From Program?

Sep 8, 2010

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 Related

General :: Program To Visualize Anything That Goes Through My Audio-output?

Jun 1, 2011

I'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.

View 1 Replies View Related

Ubuntu :: Make A Program Output To Serial?

Nov 29, 2010

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?

View 1 Replies View Related

Ubuntu :: Way To Select Which Output Device Program Uses?

Jan 8, 2011

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 Related

General :: Assign A Variable To The Output Value Of A Program?

Feb 6, 2011

so i wrote myself a very simple hellworld program in c++

...the usual stuff
int main()
{

[code]...

View 3 Replies View Related

Software :: Match Pid Value In Ps Output To Threads In Program?

Jul 20, 2010

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 Related

Programming :: C Program To Get Input Of Array And Output It

Aug 14, 2010

I 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:

View 4 Replies View Related

Programming :: No Output To Log File From Daemon Program?

Mar 18, 2011

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]...

View 2 Replies View Related

General :: Executing PHP File And Read Output To Program

Jun 29, 2011

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.

View 1 Replies View Related

Programming :: Uncertain Output Of C++ String Concatenation Program

Sep 15, 2010

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

View 5 Replies View Related

Ubuntu :: Redirecting Output From Printf Statement In C Program

May 22, 2010

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!

View 2 Replies View Related

General :: Redirection - Redirect The Output Of A Program To The Diff Command?

Jan 13, 2011

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 Related

Ubuntu Multimedia :: What Program To Use For Monitoring Sound Output Level / Vu Meter

Nov 27, 2010

Can 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 Related

Hardware :: Multiple Barcode Scanners - Can't Seem To Redirect Output From One To A Specific Instance Of My Program

Sep 30, 2010

I 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 Related

General :: Program That Reads Multiple Pipes / File Descriptors And Writes To Standard Output

Feb 23, 2011

Is 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 Related

Ubuntu Servers :: Use The Mail Command Line Program To Occasionally Send Log Output To Email Aliases?

Jan 27, 2011

Can 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 Related

Software :: Right Order And Grouping Of Sudo, Nice, Output Redirection And "&" To Start A Program?

Mar 1, 2010

I 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]....

View 1 Replies View Related

OpenSUSE :: Cant Get Touchscreen Working

Oct 13, 2010

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 Related

Ubuntu :: How To Calibrate My Touchscreen

Feb 14, 2010

I 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.

View 2 Replies View Related

Ubuntu :: Using A Mouse Instead Of A Touchscreen?

Jun 30, 2011

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).

View 3 Replies View Related

Hardware :: Touchscreen As A Mouse?

Feb 3, 2010

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.

View 4 Replies View Related

Slackware :: Trying To Get Old CRT Touchscreen Working

Dec 10, 2010

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 Related

Fedora :: Disable The Touchscreen Tapping On F12?

Dec 11, 2009

how can I disable the touchscreen tapping on F12?

View 2 Replies View Related

Fedora :: Supports Touchscreen Computers ?

Jun 10, 2011

Does 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 Related

OpenSUSE :: Right Click Emulator For Touchscreen?

Nov 13, 2010

i 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 Related

Ubuntu Installation :: Get 3M Touchscreen To Work

Jun 13, 2010

I 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]....

View 1 Replies View Related

Ubuntu :: Get USB-Touchscreen From Faytch Running?

Aug 13, 2010

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??

View 4 Replies View Related







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