Unix Technical Forum

Serial mouse and X

This is a discussion on Serial mouse and X within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> There have been a few questions along the same lines as this one, but none of the previously suggested ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 05:09 AM
digger
 
Posts: n/a
Default Serial mouse and X

There have been a few questions along the same lines as this one, but
none of the previously suggested solutions work for me, unfortunately.

I have managed to get my mouse to work in the console with:

$ /usr/sbin/wsmoused -t microsoft -p /dev/cua00

but when I stop wsmoused and try to start X, I get the following
errors:

(==) Using config file: "/etc/X11/XF86Config"
(EE) xf86OpenSerial: Cannot open device /dev/cua00
Operation not permitted.
(EE) Mouse1: cannot open input device
(EE) PreInit failed for input device "Mouse1"
No core pointer

I have tried:
- changing /etc/fbtab to add /dev/cua00 to the /dev/ttyC0:
/dev/ttyC0 0600 /dev/console:/dev/wskbd:/dev/wsmouse:/dev/ttyCcfg:/dev/cua00

- changing the permissions/ownership of /dev/cua00 to all sorts,
including 0777.

- using different devices in XF86Config, all of them are dead (no
response, but no errors)

The relevant part of XF86Config:
Driver "mouse"
Option "Protocol" "microsoft"
Option "Device" "/dev/cua00"


Any help/tips appreciated!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 05:09 AM
jpd
 
Posts: n/a
Default Re: Serial mouse and X

In article <b1b527ad.0401030745.388d1d3c@posting.google.com >, digger wrote:
> There have been a few questions along the same lines as this one, but
> none of the previously suggested solutions work for me, unfortunately.
>
> I have managed to get my mouse to work in the console with:
>
> $ /usr/sbin/wsmoused -t microsoft -p /dev/cua00
>
> but when I stop wsmoused and try to start X, I get the following
> errors:


Did you try NOT stopping wsmoused and telling X to use wsmoused, too?
The XFree86 documentation doesn't say so for OpenBSD (I already filed
a PR about that with the XFree86 people months ago) but it should be
supported by any recent OpenBSD much like the NetBSD wsmoused.


--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 05:09 AM
steven mestdagh
 
Posts: n/a
Default Re: Serial mouse and X

i have had the same problem with my serial mouse when using /dev/ttyC0 or
/dev/cua00. the following XF86Config lines work for me (mouse is connected
to first serial port).

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Microsoft"
Option "Device" "/dev/tty00"

also note the last lines in the wsmoused manual page, saying wsmoused
must be stopped before starting X in the case of a serial mouse.

steven.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2008, 05:09 AM
digger
 
Posts: n/a
Default Re: Serial mouse and X

jpd <read_the_sig@do.not.spam.it> wrote in message news:<1073145398.985787@ente.ipberlin.com>...
> > I have managed to get my mouse to work in the console with:
> >
> > $ /usr/sbin/wsmoused -t microsoft -p /dev/cua00
> >
> > but when I stop wsmoused and try to start X, I get the following
> > errors:

>
> Did you try NOT stopping wsmoused and telling X to use wsmoused, too?
> The XFree86 documentation doesn't say so for OpenBSD (I already filed
> a PR about that with the XFree86 people months ago) but it should be
> supported by any recent OpenBSD much like the NetBSD wsmoused.


I have tried using the wsmouse protocol, and /dev/wsmouse, if that's
what you mean?
Basically, if the device is set to /dev/cua00 it fails with an
OpenSerial error, if the device is set to anything else, it is
unresponsive.

For that reason, I think there is something wrong in /dev/ or
/etc/fbtab rather than XF86Config. No idea what the problem is though!

Thanks for the idea - I thought it would work for a minute then =(
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-16-2008, 05:09 AM
Jim
 
Posts: n/a
Default Re: Serial mouse and X


"steven mestdagh" <smestdag@_NOSPAM_esat.kuleuven.ac.be> wrote in message
news:Pine.LNX.4.58.0401031719300.32135@batcher.esa t.kuleuven.ac.be...
> i have had the same problem with my serial mouse when using /dev/ttyC0 or
> /dev/cua00. the following XF86Config lines work for me (mouse is connected
> to first serial port).
>
> Identifier "Mouse1"
> Driver "mouse"
> Option "Protocol" "Microsoft"
> Option "Device" "/dev/tty00"


Thanks a lot - that fixed it!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:48 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com