*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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)
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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.