LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 06-01-2005, 01:24 AM   #1
Wumpa Tenshi
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Rep: Reputation: 15
Question BSD Mouse not behaving


i'm pretty new to the BSD world, but I'm enjoying learning, so help me learn would you?

My attempt is to make an older 500MHz P2 become a simple BSD GUI with gnome. I'm running 5.4-RELEASE and I'm totally lost on the mouse thing. First I guess I told it to load a serial mouse, but i have PS/2 or something, now I think it's loading it okay from a command line POV (but not sure). I am however one-hundred percent sure that the mouse is completely useless in Gnome. The gnome install is the std pkg_add from the 5.4-RELEASE CD(s). in dmesg the only lines that seem relevent to my mouse are as follows:

psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model 4D+ Mouse, device ID 8

that's what makes me think it is working ok from command line. The deal is that the mouse skips around non-stop. I go from the top right to the bottom left corners of my screen randomly, and it's so bad, that should a window be in the middle of my screen i can't click on it in gnome. If i bump it in command line, it starts randomly highlighting things all over the place.

the mouse is a PS/2 generic "Labtec" optical mouse. it has two buttons and a scroll wheel. the mouse itself is in perfect working order.

i've read a similar problem here:
http://lists.freebsd.org/pipermail/f...er/058039.html

but the answer suggests altering this file:
/etc/X11/XF86Config

which i apparently don't have...
kinda lost, can someone help?


Thanks
Tenshi
 
Old 06-01-2005, 02:51 AM   #2
ingvildr
Member
 
Registered: Mar 2005
Location: England, South East
Distribution: Fedora
Posts: 358

Rep: Reputation: 30
FreeBSD 5.4 uses xorg, so the file you are looking for is /etc/X11/xorg.conf
 
Old 06-01-2005, 07:47 AM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Try using "SysMouse" for the Protocol and /dev/sysmouse for the Device in the relevant section in your xorg.conf file - for example:

Code:
# Identifier and driver

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "SysMouse"
    Option "Device"      "/dev/sysmouse"
    Option "ZAxisMapping" "4 5"

Last edited by Skyline; 06-01-2005 at 07:48 AM.
 
Old 06-01-2005, 05:02 PM   #4
Wumpa Tenshi
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by ingvildr
FreeBSD 5.4 uses xorg, so the file you are looking for is /etc/X11/xorg.conf
yet another file i seem not to have.:

# locate xorg.conf
/usr/X11R6/lib/X11/xorg.conf.eq
/usr/X11R6/man/man5/xorg.conf.5.gz
#

do i just want to create an xorg.conf file there? I think this is part of my confusion.

---------------------------------------------------------------------------
UPDATE
Quote:
5.4.2 Configuring X11

Configuration of X11 is a multi-step process. The first step is to build an initial configuration file. As the super user, simply run:

# Xorg -configure

In the case of XFree86 type:

# XFree86 -configure

This will generate an X11 configuration skeleton file in the /root directory called xorg.conf.new (whether you su(1) or do a direct login affects the inherited supervisor $HOME directory variable). For XFree86, this configuration file is called XF86Config.new. The X11 program will attempt to probe the graphics hardware on the system and write a configuration file to load the proper drivers for the detected hardware on the target system.

The next step is to test the existing configuration to verify that Xorg can work with the graphics hardware on the target system. To perform this task, type:

# Xorg -config xorg.conf.new

XFree86 users will type:

# XFree86 -xf86config XF86Config.new
Did this to create a file called /root/xorg.conf.new
still no luck on the mouse.
my mouse still doesn't work, and it points me back to /stand/sysinstall

the current lines in this config file read as follows:
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "SysMouse"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5"
EndSection


Which is what it should look like correct?
And I'm lost again...


Tenshi

Last edited by Wumpa Tenshi; 06-01-2005 at 05:28 PM.
 
Old 06-01-2005, 06:10 PM   #5
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
cp ~/xorg.conf.new /etc/x11/xorg.conf

All will (should) be well
 
Old 06-01-2005, 10:24 PM   #6
Wumpa Tenshi
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Original Poster
Rep: Reputation: 15
sadly no, that doesn't fix anything, i still have the same behavior as i started with at the top of the post.

Tenshi
 
Old 06-01-2005, 10:39 PM   #7
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Is moused running? If you do a ps ax | grep moused you should see something like moused -t auto -3 -p /dev/psm0 (I think ... I don't have a BSD running X right now)
 
Old 06-01-2005, 11:39 PM   #8
Wumpa Tenshi
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Original Poster
Rep: Reputation: 15
#ps -aux | grep moused
root 736 0.0 0.3 1240 752 ?? Is 11:04PM 0:00.15 moused -t auto -
root 917 0.0 0.7 2288 1744 p0 RV 12:19AM 0:00.00 grep moused (csh
#


yes...

Tenshi
 
Old 06-02-2005, 12:15 PM   #9
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
When you copied the file to /etc/X11/ did you then restart X to see if it works? (I know, stupid question, but you never know).

slight
 
Old 06-02-2005, 03:06 PM   #10
Wumpa Tenshi
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Original Poster
Rep: Reputation: 15
slight, yes, i've also tried the IMPS/2 idea you had, that gave me a fatal error saying that wasn't supported on this platform.

if it clarifies the issue at all, when i'm sysinstall and select the auto and PS/2 combo then enable the mouse, sysinstall prompts me with a yes or no box on "if my mouse is moving". i shake the mouse and the screen acts like i'm either trying to to up to a different submenu or pressing tab rapidly. whether i answer yes or no to that question doesn't seem to make a difference. could this problem be outside of X all together and be more of a command line mouse problem? or are they completely independent? if i'm using /dev/sysmouse and that device isn't configured right to begin with that could represent my problems in Gnome right? sorry, mice and x-windows are totally new to me in the *nix world.

Tenshi

 
Old 06-02-2005, 11:41 PM   #11
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Yes. The sysmouse in X is just an interface to the moused process. So, if moused (the console mouse) isn't working correctly, the X mouse won't either.
 
Old 06-03-2005, 01:18 AM   #12
Wumpa Tenshi
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Original Poster
Rep: Reputation: 15
ok, well that helps, but how then do i fix moused?

and i know the answer isn't in sysinstall (as i've tried every mouse combo there).
is there a mouse file sysinstall writes to that i can override maybe?

Tenshi
 
Old 06-03-2005, 11:56 AM   #13
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Did you check your /etc/rc.conf for moused entries? Should look like this:


moused_enable="YES"
moused_flags=""
moused_port="/dev/psm0"
moused_type="auto"

just checking in case the mouse type here is wrong. Also - from what I am reading, you may be able to use the PS/2 protocol in your xorg.conf file if you kill off moused before going into X.

killall -9 moused

Try that and see if you get anything.

slight

Last edited by slightcrazed; 06-03-2005 at 12:01 PM.
 
Old 06-06-2005, 11:54 PM   #14
Wumpa Tenshi
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Original Poster
Rep: Reputation: 15
i think i'm at least moving in the right direction...
i hadn't looked at the rc.conf file before to see what it was set to, however, i found a neat trick someone tried, and i think the error message i got here is the source of my problem...don't know how to fix it still, but better problem recognition is good right? anyway, after i tried Slight's killall deal, i went to turn the mouse daemon back on...

#moused -p /dev/sysmouse -t ps/2
moused: mouse type mismatch (mousesystems != ps/2), mousesystems is assumed
#

but then nothing happens when i shake the mouse...the cursor pops up on the screen, but it doesn't move, and i don't get any movements, spuratic or not
furthermore:

#moused -p /dev/sysmouse -t auto

does nothing, and i don't know why. it won't launch a process of any kind (and yes, i killed the other process.
----------------EDIT ADDING MORE INFO-----------------
#moused -p /dev/psm0 -t ps/2

mouse daemon launches, and i actually some normal-like behavior. i can move the mouse, but the wrong bump and it goes forever, picking up the mouse also yields it jumping around (all at command line). Launching X gives me nothing.

#moused -p /dev/psm0 -t sysmouse
daemon launched, but mouse is super messed up still.

the first one here after the edit is the closest thing i've gotten to success in a long time.



Tenshi

Last edited by Wumpa Tenshi; 06-07-2005 at 12:23 AM.
 
Old 06-07-2005, 06:54 AM   #15
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
As I said about 7 posts back: moused -t auto -3 -p /dev/psm0
 
  


Reply



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
my computer is not behaving right way Paxmaster Linux - General 4 06-20-2005 12:43 AM
BlackBox behaving badly henrikanttonen Linux - Software 1 05-03-2005 02:52 PM
KDE not behaving Andy@DP Linux - Newbie 1 04-21-2004 05:13 PM
Samba not behaving richcoosa19 Linux - Networking 9 07-28-2003 10:39 AM
Choose Free BSD or Open BSD? Which one? explorer1979 *BSD 5 12-15-2002 12:26 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 11:36 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration