Re: GPM and USB Optical Mouses [SOLVED]

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

 



Em qui, 10 de jan de 2019 às 03:17, Jamenson Ferreira Espindula de
Almeida Melo <jafesp@xxxxxxxxx> escreveu:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hi.
>
> What about USB Optical Mouses support?
>
> I have a two button and a central wheel "U+P Mouse". Below is what
> kernel log says:
>
>
> usb 2-1.1: new low-speed USB device number 3 using ehci-pci
> usb 2-1.1: New USB device found, idVendor=1c4f, idProduct=0003
> usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
> usb 2-1.1: Product: U+P Mouse
> usb 2-1.1: Manufacturer: SIGMACH1P
>
>
> My "/etc/sysconfig/mouse" looks like this:
>
>
> # Begin /etc/sysconfig/mouse
>
> MDEVICE="/dev/hidraw0"
> PROTOCOL="ps2"
> GPMOPTS=""
>
> # End /etc/sysconfig/mouse
>
>
> My Operating System is GNU/Linux From Scratch 8.1 (System V)
>
> The problem: when I move mouse pointer, it goes vertically up to the
> top of the screen. Nothing else. No clicks at all.
>
> I do not have the X Server running. I would like to use the mouse
> without the X Server, i.e., in a Terminal on the Framebuffer top.
>
> Any ideas?
>
> Thank you.
>
> Jamenson Ferreira Espindula de Almeida Melo
> - From Jaboatão dos Guararapes, Pernambuco, Brazil
> GNU/Linux user # 166197
> https://linuxcounter.net/cert/166197.png
>
> Key fingerprint:
> 234D 1914 4224 7C53 BD13  6855 2AE0 25C0 08A8 6180
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.18 (GNU/Linux)
>
> iQEcBAEBCAAGBQJcNuCaAAoJECrgJcAIqGGAh2IIAIH5pTtga6CIhnYJyEAGPvRT
> sFM1tdLe9pjaMeIxfHclF8VUMkuuGrkIqhbdfO53U/DZfZ3aLJuimBusL/HhGwPV
> HdYuIeJJ337eHONMUa7isGAYkp/7lSadXaUPEKs3m1RjJpDpP5lb0drw9Qdvssgp
> bPpwTqvWGwkj1xe2KQ2N4zfx6gxxbCNcD4ryUptdZ5Mm529V34pua/3BkchbCWzZ
> UFrJCChDJhGhfJj/vIJ5gCD1EqEVkeTWBQYppKefGG4dyoW2PJMI6/ImxcNRUcIx
> G3stfvOFmR8gF4Ccg+sMl2LUi+EIt3DGdGtFW8BaVxNY/jOJdDh1ImyLzVUbeN4=
> =vur/
> -----END PGP SIGNATURE-----


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi.

After Dmitry Torokhov clue, I am feeding back.

I needed to reconfigure and recompile kernel for add mouse support to
all user space programs. Below is what kernel config help says about
that:


Symbol: INPUT_MOUSEDEV [=y]
Type  : tristate
Prompt: Mouse interface
Location:
     -> Device Drivers
       -> Input device support
(1)     -> Generic input layer (needed for keyboard, mouse, ...) /
(INPUT [=y])
   Defined at drivers/input/Kconfig:95
   Depends on: !UML && INPUT [=y]


CONFIG_INPUT_MOUSEDEV:

Say Y here if you want your mouse to be accessible as char devices
13:32+ - /dev/input/mouseX and 13:63 - /dev/input/mice as an
emulated IntelliMouse Explorer PS/2 mouse. That way, all user space
programs (including SVGAlib, GPM and X) will be able to use your
mouse.

If unsure, say Y.

To compile this driver as a module, choose M here: the
module will be called mousedev.


= = = = = = = = = =
= = = = = = = = = =

The kernel was recompiled and installed. After that:



Output of the command <ls -l /dev/input/>:


total 0
drwxr-xr-x 2 root root      60 jan 13 14:18 by-id
drwxr-xr-x 2 root root      60 jan 13 14:18 by-path
crw-rw---- 1 root input 13, 63 jan 13 14:18 mice
crw-rw---- 1 root input 13, 32 jan 13 14:18 mouse0


Output of the command <ls -l /dev/input/by-id/>:


total 0
lrwxrwxrwx 1 root root 9 jan 13 14:18 usb-SIGMACH1P_U+P_Mouse-mouse -> /
../mouse0


Output of the command <ls -l /dev/input/by-path/>:


total 0
lrwxrwxrwx 1 root root 9 jan 13 14:18 /
pci-0000:00:1d.0-usb-0:1.1:1.0-mouse -> ../mouse0


Output of the command <tail -n 4 /var/log/sys.log>:


/usr/sbin/gpm[3238]: *** info [daemon/startup.c(136)]:
/usr/sbin/gpm[3238]: Started gpm successfully. Entered daemon mode.
/usr/sbin/gpm[3238]: *** info [mice.c(1990)]:
/usr/sbin/gpm[3238]: imps2: Auto-detected intellimouse PS/2


Output of the command <cat /etc/sysconfig/mouse>:


# Begin /etc/sysconfig/mouse

MDEVICE="/dev/input/mouse0"
PROTOCOL="imps2"
GPMOPTS=""

# End /etc/sysconfig/mouse


= = = = = = = = = =
= = = = = = = = = =


I have tested executing Links Browser in graphic mode. It works!

Thank you Nico Schottelius and Dmitry Torokhov. God bless you!


Jamenson Ferreira Espindula de Almeida Melo
Jaboatão dos Guararapes, Pernambuco, Brazil
GNU/Linux user # 166197
https://linuxcounter.net/cert/166197.png

Key fingerprint:
234D 1914 4224 7C53 BD13  6855 2AE0 25C0 08A8 6180


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.18 (GNU/Linux)

iQEcBAEBCAAGBQJcO4JvAAoJECrgJcAIqGGA5qoIAI2v4SM22fDDWs6uc919bSbG
woYE4qhII59q1UKM0vypVdozYLquGSJW7nGFyqcD/THPzLzUZhwGNwjBcWgNz2xr
txHeJnAKbe0yNQDkKcipU6KvrciQn4S9edUpaLqwdY5ZIg0akS2FlEGDG+KT7X9x
sx1bXe2ib/6B6o6buSgp0CWqR4tijFHbxLJzlknhnnyYhKVSMyi8irh45NPdSJO4
aa7CGu7zoWCpXjzTBRv4OVFSiClKNegpIKuSYda8HidD8P2EcIIXg9t12/5gCEEA
nvwsDJirjHoHxNeQG4A+kY22loyg3spVerprn9aJOcf+Alywire13QzbcqTbf4A=
=d1nw
-----END PGP SIGNATURE-----
_______________________________________________
gpm mailing list
gpm@xxxxxxxxxxxxxx
https://lists.linux.it/listinfo/gpm




[Index of Archives]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Gimp]     [Yosemite News]