NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to set up PS/2 mouse?



Havard Eidnes <he%netbsd.org@localhost> ezt írta (időpont: 2019. jan. 6., V, 13:52):
>
> > How can I set up this mouse here, on the NetBSD system?
>
> Your kernel has presumably / hopefully probed your ps/2 connected
> mouse already.  You can probably find an instance of "pms" in
> /var/run/dmesg.boot.

Indeed, there are these two lines in dmesg out there:
pms0 at pckbc1 (aux slot)
pckbc1: using irq 0 for aux slot
wsmouse0 at pms0 mux 0

> On NetBSD, we have an "overlay" which covers both PS/2 and USB mice
> (among others), namely wsmouse.  See e.g. the pms(4) and wsmouse(4)
> man pages.

I just read the pms and wsmouse man pges, but still do not know, what
should I do to set up this PS/2 mouse?

But hey! I suddenly realized that, that the mouse works on my consoles!?

It is probably because I added this line to the /etc/rc.conf file:
moused_enable=YES

or it is not the reason? It is not, because if I comment this line out
with the '#' character, and reboot, then still don't have the mouse
pointer on console.

I realize that, that I must to run this command, to have it:
wsmoused -d /dev/wsmouse

After this command I have the mouse pointer if I move the mouse around.

How can I set up this to get it started when booting the system?

> This means that e.g. the X server only needs to relate to wsmouse, and
> not know exactly what underlying driver is used to drive the mouse.

I do not have yet X Window system installed, because I want first to
set up consoles.


Home | Main Index | Thread Index | Old Index