On Sun, 27 May 2001, SI Reasoning wrote:
> I have gpm as my mouse service in X now. However, try
> as I might... I could not activate the special
> command. How do I do this? I read the man page and
> came up with the line
> -S ":reboot:/usr/bin/kbd_mode -a"'
> this should allow left click to kill init, middle
> click to reboot the system and right click to take
> over the keyboard. Unfortunately I don't know where to
> put this script where it will work. I tried inputing
> it into the gpm script like this:
>       if [ -n "$MOUSETYPE" ]; then
>               daemon gpm -t $MOUSETYPE -m $MOUSEDEVICE -S
> ":reboot:/usr/bin/kbd_mode -a"'
>       else
>               daemon gpm -m $MOUSEDEVICE
>       fi
> but I got error messages like this:
> /etc/init.d/gpm: line 49: unexpected EOF while looking
> for matching `''
> /etc/init.d/gpm: line 81: syntax error: unexpected end
> of file
> I don't know where else I would put that command. I
> tried removing the end ' but that just caused it to
> execute the command and fail to start gpm (no mouse).

You shouldn't have the end '.  Try looking in the system log to see if
there are any error messages when you start up gpm.  Also try running it
direct from a text console: kill it using "service gpm stop" then type
gpm -t xxx -m zzz -S ":reboot:/usr/bin/kbd_mode -a"
and see what happens.

Don't forget, you'll need to also use the -R option and modify XF86Config.

Michael


Reply via email to