Carel Fellinger <[EMAIL PROTECTED]> writes: > On Wed, Mar 06, 2002 at 10:53:31AM -0800, Harry Putnam wrote: >> Setup: Stock woody install from testing >> Kernel 2.2.20 >> >> Comments: X is installed but not running for these tests >> Mouse works in X but not in console >> >> >> If I say: >> >> # /etc/init.d/gpm force-reload >> Stopping mouse interface server: gpm. >> Starting mouse interface server: gpm. >> >> at the command line then `ps waux|grep gpm ' >> should show some thing with gpm in it ...right? > > Yes, if all's well. But as I stated in an earlier posting, we still > don't know for sure that your /etc/init.d/gpm is correct. Any reason > you're not willing to share it's contents with us just to eliminate > the off change that it *is* mangled?
Err no, but isn't that what is printing those messages above? I did look at it. Not an expert script writer but it looks pretty boiler plate. <script at the end> >> Should lsmod also show a module running that is mouse realated? > > That depends. Is your ps/2 driver compiled in or compiled as a > seperate module? Look through /boot/config-.... for the awnser. > > >> Neither of these happen here. Is it likely that upgrading to a newer >> kernel or reconfiguring the present one will help this situation? > > No, as you noted in previous postings, it works in X in a `X-only' setup, > so no need to question whether the ps/2 port works under Linux. > > Or, it might be that X doesn't let go of /dev/psaux. > To exclude that possibility: > > make sure X is killed > start gpm These tests and other reported earlier were run with no X. X was never started. Just a console login. > If this still doesn't work, it's gpm's error, so concentrate on it > and try to get it to run without that /etc/init.d layer as proposed > in several earlier posts. >> cat /etc/gpm.conf >> >> device=/dev/psaux >> responsiveness= >> repeat_type=ms3 > > Please don't use anything else here but "raw", it complicates matters > unwieldly if you do. > >> type=ps2 >> append="" >> sample_rate= As posted in previous posts ... It quit working in X with the `raw' setting. And also as posted, tests with no X and raw setting failed as well. Will that have a bearing on the fact that /etc/init.d/gpm force-reload doesnt start anything. Here is another test with Raw setting: /usr/sbin/gpm -V+9 -m /dev/psaux -t ps2 -Rraw /usr/sbin/gpm -m /dev/psaux -t ps2 -Rraw Nothing is output to syslog in either case and nothing shows up in ps output There is one way to get massive output: /usr/sbin/gpm -V+9 I don't understand a word of it but maybe someone will. Chopped off the date for readability Mar 6 14:53:16 /usr/sbin/gpm[2271]: 80 - 34 /usr/sbin/gpm[2271]: 80 - 34 /usr/sbin/gpm[2271]: x 10, y 14 /usr/sbin/gpm[2271]: x 10, y 14 /usr/sbin/gpm[2271]: selected 1 times /usr/sbin/gpm[2271]: selected 1 times /usr/sbin/gpm[2271]: Error in protocol /usr/sbin/gpm[2271]: Error in protocol /usr/sbin/gpm[2271]: Data 2a /usr/sbin/gpm[2271]: Data 2a /usr/sbin/gpm[2271]: selected 1 times /usr/sbin/gpm[2271]: selected 1 times /usr/sbin/gpm[2271]: Data 6e 2a 6e (00) /usr/sbin/gpm[2271]: Data 6e 2a 6e (00) /usr/sbin/gpm[2271]: 80 - 34 /usr/sbin/gpm[2271]: 80 - 34 /usr/sbin/gpm[2271]: x 10, y 14 /usr/sbin/gpm[2271]: x 10, y 14 /usr/sbin/gpm[2271]: M: 0 0 ( 40 17) - butt=4 vc=1 cl=0 /usr/sbin/gpm[2271]: M: 0 0 ( 40 17) - butt=4 vc=1 cl=0 /usr/sbin/gpm[2271]: ctl 1, mode 0 /usr/sbin/gpm[2271]: ctl 1, mode 0 /usr/sbin/gpm[2271]: selected 1 times /usr/sbin/gpm[2271]: selected 1 times /usr/sbin/gpm[2271]: Error in protocol /usr/sbin/gpm[2271]: Error in protocol /usr/sbin/gpm[2271]: Data 2a /usr/sbin/gpm[2271]: Data 2a /usr/sbin/gpm[2271]: selected 1 times /usr/sbin/gpm[2271]: selected 1 times /usr/sbin/gpm[2271]: Data 6e 2a 6e (00) /usr/sbin/gpm[2271]: Data 6e 2a 6e (00) /usr/sbin/gpm[2271]: M: -17 -2 ( 23 15) - butt=4 vc=1 cl=0 /usr/sbin/gpm[2271]: M: -17 -2 ( 23 15) - butt=4 vc=1 cl=0 /usr/sbin/gpm[2271]: ctl 0, mode 0 /usr/sbin/gpm[2271]: ctl 0, mode 0 ======================================== cat /etc/init.d/gpm #!/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 "$sample_rate" ]; then cmdln="$cmdln -s $sample_rate"; 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 throw manpages at anyone who disagrees. 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