LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-18-2006, 11:51 AM   #1
silex_88
Member
 
Registered: May 2005
Posts: 49

Rep: Reputation: 15
XFree4 not finding my mouse and not starting!?


Hello,

I have two linux machines, one (A) is a desktop and the second (B) is embedded and doesn't have any peripherals (in its usual configuration). I want to run X applications located on B and tunnel X output to machine A using "ssh -XC [host]". This fails. Gnomemeeting and synaptic both give me X errors and refuse to start. xeyes however displays fine.

I then attach a non-usb mouse, keyboard, and monitor to machine B and try to run synaptic and gnomemeeting locally after a startx. The startx fails. I get [EE] errors that it can't find the devices (/dev/mouse and /dev/input/mice). I've tried with /dev/psaux also.

The X config has two mouse interfaces like this:

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Device" "/dev/mouse"
Option "Protocol" "PS/2"
Option "Emulate3Buttons" "off"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "Protocol" "IMPS/2"
Option "Emulate3Buttons" "off"
Option "ZAxisMapping" "4 5"
EndSection

Any ideas?

Cheers,
Nick

Last edited by silex_88; 07-18-2006 at 01:58 PM.
 
Old 07-18-2006, 01:41 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
I'm not sure I understand what you're trying to achieve.

You have a remote machine that has the capabilities to run X applications.
You have a local machine running X11? If X isn't running locally there
are no means to display the output of the remote machine.

However you can't get X to go locally because it doesn't detect your
rodent(s)?


Cheers,
Tink
 
Old 07-18-2006, 01:50 PM   #3
silex_88
Member
 
Registered: May 2005
Posts: 49

Original Poster
Rep: Reputation: 15
clarificatiosn

Sorry, I wrote the first post in a hurry. I've edited it for clarity. Give it another shot

Last edited by silex_88; 07-18-2006 at 01:57 PM.
 
Old 07-18-2006, 02:22 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Ok ... so, what distro are you using on the machine that has
the X problem? Are you running hotplug? PS/2 mice commonly
don't get picked up until a reboot, USB *should* work. What
does lsmod say in regards to either, any hints of them in
dmesg' output?


Cheers,
Tink
 
Old 07-18-2006, 03:19 PM   #5
silex_88
Member
 
Registered: May 2005
Posts: 49

Original Poster
Rep: Reputation: 15
With USB mouse:

startx works. X tunneling works. Great, except this is a robot and I can't have a mouse dangling from it as it moves around.

Without USB mouse:

I couldn't see anything in lsmod looking like a mouse driver. dmesg shows me a bunch of hotplug USB stuff, but nothing about a PS/2 mouse.

I'm sure this has to do with how /etc/X11/XF86Config-4 is set up! I shouldn't need to have a mouse plugged into the robot to tunnel X.

Last edited by silex_88; 07-18-2006 at 03:21 PM.
 
Old 07-18-2006, 03:38 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
It would appear that I still don't understand what you're doing.

The robot is the embedded system (B), and you're trying to output
stuff from the robot on the desktops (A) screen?
Or does the robot display stuff from the desktop as it scoots around?

In the first case there's no need at all to run X on the robot.

In the second case just add
Code:
Option "AllowMouseOpenFail"  "true"
to the server-section of xorg.conf



Cheers,
Tink
 
Old 07-18-2006, 03:49 PM   #7
silex_88
Member
 
Registered: May 2005
Posts: 49

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Tinkster
It would appear that I still don't understand what you're doing.

The robot is the embedded system (B), and you're trying to output
stuff from the robot on the desktops (A) screen?
No, you understand me right.

Quote:
Originally Posted by Tinkster
In the first case there's no need at all to run X on the robot.
I'm not intimately familiar with how X and/or X tunneling works, but since I'm tunneling X output through SSH, clearly X is "running" at some level.

To cut to the chase, AllowMouseOpenFail=true has X tunneling to machine A working without any peripherals connected to the embedded device B. So it seems it was the mouse errors that were preventing the tunneling from working.

Cheers for pointing that X option out

Last edited by silex_88; 07-18-2006 at 03:51 PM.
 
Old 07-19-2006, 04:01 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Well, I'm glad I could help (without understanding the problem). :}



Cheers,
Tink
 
Old 10-03-2006, 12:56 AM   #9
Winter Knight
Member
 
Registered: Nov 2005
Distribution: Debian Stable/Testing
Posts: 54

Rep: Reputation: 15
Talking

I would recommend not using that AllowMouseOpenFail option. You should tell your robot that he has to carry the mouse at all times. It will be like a safety. That way, if your robot ever goes on a murderous "kill all the humans"-type rampage, you can tell the military that all they have to is unplug the mouse, and X will crash.

See? The X.org authors knew what they were doing. You're just asking for trouble.
 
  


Reply

Tags
debian, mouse, tunneling, x11


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
debian not finding mouse, graphics are not showing carspidey Linux - Laptop and Netbook 1 03-12-2006 02:26 AM
fonts in xfree4.3 deb75 Slackware 7 05-05-2004 09:01 AM
vmware , xfree4.3 ,dga, ati szymon Linux - Software 0 03-31-2004 03:00 PM
Newbie trouble finding/starting x General Dude Debian 11 02-29-2004 08:53 PM
Finding mouse device celtic32 Linux - General 1 04-17-2003 06:47 AM


All times are GMT -5. The time now is 01:14 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