Re: pnp mouse in svgalib - patch

Search this archive.

From: Krzysztof Nikiel (krzych00@priv7.onet.pl)
Date: Sat 25 Dec 1999 - 12:40:55 IST


Hello,

>i had to give r/w permisions for everyone to /dev/ttyS1 (where my mouse
>is connected, and /dev/mouse points to) to use mouse when running as
>oridinary user setuid binaries. (it's normal, isn't it ?)

Yes, it seems to be normal.
I recently sent to the list a patch to correct this but got no reply
so I don't know if it's accepted by the maintainer.

The attached diff (against 1.4.1.pre.19991209) should 
make released device permissoins unnecessary.

BTW. Try to configure svgalib mouse type as gpm.
There is no such type in example config but it is supported
by the library. Just set mouse type type to 'gpm' and mouse device
to '/dev/gpmdata'(I hope it's correct) and run gpm with -R option 
to put mouse data to /dev/gpmdata.
Thus you can use both gpm and svgalib mouse without stopping gpm.

>i added some plug'n'pray mouse support to svgalib 1.3.1. it's based on
>gpm code and is simply ms driver w/o some stuff (don't change speed,
>just leave it at 1200bps). it should work where `gpm -t ms` doesn't and
>`gpm -t pnp` does. at least it works with my mouse (A4 TECH somthing ...
>), set to use only 2 buttons.
If gpm handles such a mouse it's another reason to configure gpm mouse in
svgalib.

Krzysiek





This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST