Page 1 of 1

SOLVED:nemesis: adding mouse control in tty or command line

Posted: 15 Dec 2016, 03:28
by francois
Adding mouse control in tty or command line in systemd is done in the following way:

gpm:
adding mouse control to tty (getty) or text terminal outside of xorg as an aid to use mc.
gpm is provided on nemesis in addition to mc (midnight commander) base module. You have to set your mouse though.

Code: Select all

guest ~ $ sudo pacman -S hwinfo
guest ~ $ hwinfo --mouse 
...
Driver Info #0:
    XFree86 Protocol: explorerps/2
    GPM Protocol: [b]exps2[/b]

guest ~ $ GPM_ARGS="-m /dev/input/mice -t exps2"
guest ~ $ sudo systemctl enable gpm
guest ~ $ sudo reboot
Which will set the mouse in tty mode.

How can I achieve that under openrc? Or what is the equivalent of systemctl enable gpm under openrc?

Re: nemesis: adding mouse control in tty or command line

Posted: 15 Dec 2016, 04:24
by Jack
francois now I can add a mouse that will be a great help.

Re: nemesis: adding mouse control in tty or command line

Posted: 15 Dec 2016, 10:23
by jssouza
Hi François,
Maybe
pman -S gpm-openrc
?

Re: nemesis: adding mouse control in tty or command line

Posted: 15 Dec 2016, 10:30
by francois
Hi jssouza. :)
It is already installed on the system.

Re: nemesis: adding mouse control in tty or command line

Posted: 15 Dec 2016, 10:47
by jssouza
Oh then have you already tried rc-update?

Code: Select all

/etc/init.d/gpm start
rc-update add gpm default

Re: nemesis: adding mouse control in tty or command line

Posted: 16 Dec 2016, 02:49
by francois
This is it. :D

Code: Select all

 # /etc/init.d/gpm start
 # GPM_ARGS="-m /dev/input/mice -t exps2"
 # rc-update add gpm default
Thanks so much.

Thus with mc (midnight commander) in console mode the mouse is available outside of X environment. :)