Warning: this is an htmlized version!
The original is across this link,
and the conversion rules are here.
#######
#
# E-scripts on the mouse.
#
# Note 1: use the eev command (defined in eev.el) and the
# ee alias (in my .zshrc) to execute parts of this file.
# Executing this file as a whole makes no sense.
#
# Note 2: be VERY careful and make sure you understand what
# you're doing.
#
# Note 3: If you use a shell other than zsh things like |&
# and the for loops may not work.
#
# Note 4: I always run as root.
#
# Note 5: some parts are too old and don't work anymore. Some
# never worked.
#
# Note 6: the definitions for the find-xxxfile commands are on my
# .emacs.
#
# Note 7: if you see a strange command check my .zshrc -- it may
# be defined there as a function or an alias.
#
# Note 8: the sections without dates are always older than the
# sections with dates.
#
# This file is at <http://angg.twu.net/e/mouse.e>
#           or at <http://angg.twu.net/e/mouse.e.html>.
#        See also <http://angg.twu.net/emacs.html>,
#                 <http://angg.twu.net/.emacs[.html]>,
#                 <http://angg.twu.net/.zshrc[.html]>,
#                 <http://angg.twu.net/escripts.html>,
#             and <http://angg.twu.net/>.
#
#######





# «.gpm»			(to "gpm")
# «.gpm_and_X»			(to "gpm_and_X")
# «.logitech-trackball-2.6»	(to "logitech-trackball-2.6")
# «.logitech-trackball-2.4»	(to "logitech-trackball-2.4")



#####
#
# gpm
# 2000jun02
#
#####

# «gpm»  (to ".gpm")
# (find-angg ".zshrc" "gpm")
# (find-status "gpm")
# (find-vldifile "gpm.list")
# (find-fline "/usr/doc/gpm/")
# (find-fline "/usr/doc/gpm/faq.gz")

# (find-vldifile "gpm.postinst")
# (eeman "8 gpmconfig")
# (find-fline "/usr/sbin/gpmconfig")
# (find-fline "/etc/init.d/gpm")
# (find-fline "/etc/gpm.conf")

# (eeman "8 gpm")

# (eeman "8 gpm-mouse-test")
# (find-fline "/usr/sbin/gpmconfig" "experimental mouse test program")

# (find-node "(gpm)Top")
# (eeman "1 mev")
# (eeman "1 gpm-root")
# (find-fline "/etc/gpm-root.conf")

# (find-angg ".zshrc" "gpm")

/etc/init.d/gpm stop



# (find-fline "/usr/doc/gpm/README.gz" "t-mouse.el")




#####
#
# gpm and X
# 2002sep06
#
#####

# «gpm_and_X»  (to ".gpm_and_X")
# (find-status "gpm")
# (find-vldifile "gpm.list")
# (find-fline "/usr/doc/gpm/")
# (find-node "(gpm)Top")
# (find-man "8 gpm" "act as a repeater")
# (find-fline "/etc/init.d/gpm" "$repeat_type")
# (find-fline "/etc/gpm.conf")
# Use repeat_type=raw

# (find-fline "/etc/X11/XF86Config" "\nSection \"Pointer\"")
/etc/init.d/gpm restart


# (find-htetfile "")





#####
#
# mouse configs (logitech trackball) for linux 2.6
# 2004dec14
#
#####

# «logitech-trackball-2.6»  (to ".logitech-trackball-2.6")
#*
/usr/sbin/gpmconfig
#*
dpkg-reconfigure xserver-xfree86
#*
# (find-fline "/etc/gpm.conf")
device=/dev/input/mice
responsiveness=
repeat_type=
type=imps2
append=""
sample_rate=

# (find-fline "/etc/X11/XF86Config-4" "Configured Mouse")
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"



#####
#
# mouse configs (logitech trackball) for linux 2.4
# 2004dec14
#
#####

# «logitech-trackball-2.4»  (to ".logitech-trackball-2.4")
#*
/usr/sbin/gpmconfig
#*
dpkg-reconfigure xserver-xfree86
#*
# (find-fline "/etc/gpm.conf")
#
device=/dev/psaux
responsiveness=
repeat_type=raw
type=ps2
append=""
sample_rate=

# (find-fline "/etc/X11/XF86Config-4" "Configured Mouse")
	Option		"Device"		"/dev/gpmdata"
	Option		"Protocol"		"PS/2"

#*
# imps2 was chosen by default in the 2.6 install (I don't remember how)
# ps2 seems to work in both cases, but with ps2 I need to move the
# trackball much more to move the pointer

# (find-man "8 gpm" "act as a repeater")

/etc/init.d/gpm stop
mkfifo /dev/gpmdata
killall -9 gpm
sleep 1

#*
# This is not the right command line, but this seems to be the right way to go
# (find-fline "/etc/init.d/gpm")
gpm -V 5 -m /dev/psaux -i imps2 -Rraw

#*
# gpm-mouse-test is not working
/etc/init.d/gpm stop
# (find-man "8 gpm-mouse-test" "all possible devices")
# gpm-mouse-test
gpm-mouse-test /dev/psaux

#*
# How do I invoke X with another config file?
# How do I restart gpm with my own parameters?








#  Local Variables:
#  coding:               no-conversion
#  ee-delimiter-hash:    "\n#*\n"
#  ee-delimiter-percent: "\n%*\n"
#  ee-anchor-format:     "«%s»"
#  ee-charset-indicator: "Ñ"
#  End: