Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-24-2008, 06:45 AM   #1
Registered: Jan 2008
Posts: 189

Rep: Reputation: 16
there is any file contain location of mouse

there is any file contain location of mouse
like xy or symbol that show that mouse is moved?

i`m using RED HAT

Last edited by DoME69; 01-24-2008 at 06:48 AM.
Old 01-24-2008, 07:06 AM   #2
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
How can you store that info in a file. The mouse move constantly and if you write that info into a file, your HDD will die.
Old 01-24-2008, 08:09 AM   #3
LQ Newbie
Registered: Jan 2008
Distribution: OpenSuse 10.3, SLED 10 SP2, Ubuntu 8.04 and 9.04
Posts: 23

Rep: Reputation: 15
You can try /dev/input/mouse0 and/or /dev/input/event6. You need to be root to access these. You can test the output by typing 'cat /dev/input/mouse0 > test_mouse0.txt' as root, moving mouse around and pressing Ctrl-C. View the file with hex viewing tool of your choice.
Old 01-24-2008, 08:12 AM   #4
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 70
Or, start the xev program from a terminal in X and move your pointer inside its window.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect Mouse Location? 1veedo Linux - General 1 12-17-2007 04:42 AM
set new location for mouse point omid1979 Programming 1 12-16-2007 01:28 PM
Mouse Pointer Location (elographics) mddolloff Linux - Hardware 0 08-04-2005 04:18 PM
PATH file location corbis_demon Linux - Newbie 1 10-08-2004 05:34 AM
cursor jumps to mouse location without my consent Myron Linux - Hardware 1 02-08-2004 09:34 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:27 AM.

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