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

Re: gpm and X and mouse



Good for you.

But some of your comment was strange to me.

My story is based on potato stable (Installed when it was late 
stage of unstable and continuously upgraded.)  There was no need 
for me to touch /etc/init.d/gpm.  I see same file in my woody box.

(My woody with 2.4 test kernel crash with gpm.  I disabled gpm
for 2.4 kernel to get safe SMP boot. But init.d script and /etc/gpm/conf 
are same in woody and needs raw specified.  I run it happy with 2.2
SMP kernel)

Just for the record let me give full /etc/gpm.conf listing of my potato box:

#  /etc/gpm.conf - configuration file for gpm(1)
#
#  If mouse response seems to be to slow, try using
#  responsiveness=15. append can contain any random arguments to be
#  appended to the commandline.  
#
#  If you edit this file by hand, please be aware it is sourced by
#  /etc/init.d/gpm and thus all shell meta characters must be
#  protected from evaluation (i.e. by quoting them).
#
#  This file is used by /etc/init.d/gpm and can be modified by
#  /usr/sbin/gpmconfig.
#
device=/dev/psaux
responsiveness=
repeat_type=raw
type=ps2
append="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\""


------------------------------------

Also full listing of /etc/init.d/gpm in which gpm.conf is sourced (. $CFG):

#!/bin/sh
#
# Start Mouse event server

PIDFILE=/var/run/gpm.pid
GPM=/usr/sbin/gpm
CFG=/etc/gpm.conf

test -x $GPM || exit 0

if [ "$(id -u)" != "0" ]
then
  echo "You must be root to start, stop or restart gpm."
  exit 1
fi
 

cmdln=
if [ -f $CFG ]; then
  . $CFG
  if [ -n "$device" ]; then cmdln="$cmdln -m $device"; fi
  if [ -n "$type" ]; then cmdln="$cmdln -t $type"; fi
  if [ -n "$responsiveness" ]; then cmdln="$cmdln -r $responsiveness"; fi
  if [ -n "$repeat_type" ]; then cmdln="$cmdln -R$repeat_type"; fi
  # Yes, this /IS/ correct! There is no space after -R!!!!!!
  # I reserve the right to whack the next person to submit a bug about it!
  if [ -n "$append" ]; then cmdln="$cmdln $append"; fi
fi

gpm_start () {
  echo -n "Starting mouse interface server: gpm"
  start-stop-daemon --start --quiet --exec $GPM -- $cmdln
  echo "."
  return 0
}

gpm_stop () {
  echo -n "Stopping mouse interface server: gpm"
  /usr/sbin/gpm -k
  echo "."
}


case "$1" in
  start)
     gpm_start
     ;;
  stop)
     gpm_stop
     ;;
  force-reload|restart)
     gpm_stop
     sleep 3
     gpm_start
     ;;
  *)
     echo "Usage: /etc/init.d/gpm {start|stop|restart|force-reload}"
     exit 1
esac

exit 0

------------------



On Mon, Sep 18, 2000 at 06:51:35PM -0700, Krzys Majewski wrote:
> Thank you! This works for me. Note that I also had to hack my 
> /etc/init.d/gpm to look at the repeat_data variable, though it
> may be an old /etc/init.d/gpm. My gpm version is the latest
> with respect to "stable", "unstable" was down when I tried. 
> I agree that this is the sort of thing that really should be
> fixed in the next version if it isn't already. Reasonable
> defaults is what life is all about.
> -chris
> 
> On Mon, 18 Sep 2000, Osamu Aoki wrote:
> 
> > Better solution:
> > Set in /etc/gpm.conf as:
> > 
> > repeat_data=raw
> > 
> > and set X to read /dev/gpmdata with ps2 protocol.
> > 
> 
> 
> 



Reply to: