LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 03-16-2005, 09:35 PM   #1
lyang1981
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Rep: Reputation: 0
cat /dev/ts


Hi there,

I am having great trouble trying to get a trace of my touch screen on Sharp Zaurus SL5600. It is running a Linux 2.4.18 with Qtopia. I know this might not be the perfect place to ask but I really need some help.

All I want to do is to record the touch screen events (by catting /dev/ts to a file) and meanwhile, send the events normally to the screen. After this, I want to play back the events I recorded. It is this simple, but when I tried with this:

# cat /dev/ts
or
# cat /dev/ts > fred

the system doesn't seem to be receiving any pen events, no matter what I click on the touch screen. Although I could see that there are unreadable outputs in the console (or in the fred file).

What shall I do to record the /dev/ts activity without stop the touch screen from sending events?? And how do I play back??

Any thoughts will be hugely appreciated!!

Lei
 
Old 03-17-2005, 12:00 AM   #2
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Well, then you cat a device, you'll get gibberish outputted.
But, if you want the gibberish outputted both to the console and a file, you want the tee command.
Code:
cat /dev/ts | tee fred
 
Old 03-17-2005, 12:43 PM   #3
lyang1981
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you! But I don't want it to be output to the console. I want the events sent to the system and meanwhile, written to the file so that I can record them.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What would happen if I where to cat /dev/mem > /dev/null Joey.Dale Linux - General 11 07-26-2009 12:46 PM
cat /dev/ts lyang1981 Linux - Software 2 03-17-2005 01:13 AM
cat /dev/ts on Zaurus lyang1981 Linux - Laptop and Netbook 3 03-17-2005 01:12 AM
why did cat /dev/urandom send my printer insane ? qwijibow Linux - Newbie 1 12-01-2003 03:41 AM
mandrake cat > /dev/dsp no response jahm Linux - General 6 06-19-2003 11:55 AM


All times are GMT -5. The time now is 05:35 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration