https://foro.gambas-es.org/viewtopic.php?f=22&t=8091 ----------------------------------- Shell Martes, 09 Junio 2020, 10:03 Piper. Utilidad Para Configurar Ratones ‘gaming’ En Linux. ----------------------------------- Buenas por la mañana!. Estuve comentando en un post sobre los eventos del ratón en Gambas, que me di cuenta que no me funcionaba el botón de la rueda como interruptor. A modo de curiosidad, tenéis esta utilidad muy presentable donde se configuran cosas muy curiosas a cual más frikosa. Supongo que también se pueden ver detalles de como se encuentra configurado el ratón. Vuott, que no se enteren tus gatos!. [youtube]n26A2vYUbNo[/youtube] Se llama Piper...a mi esto me recuerda el nombre de una chica, una serie, ahora no se de donde. ¿ Fontanera ? Ah si, de las "Embrujadas"...pero de las antiguas, ojo!. [url=https://www.muylinux.com/2019/10/14/piper-utilidad-configurar-ratones-gaming-en-linux/]Piper, una interesante utilidad para configurar ratones ‘gaming’ en Linux La podeís encontrar en el gestor de software de Linux Mint. [youtube]DVJGb551uHQ[/youtube] Saludos ----------------------------------- Shell Martes, 09 Junio 2020, 10:18 Re: Piper. Utilidad Para Configurar Ratones ‘gaming’ En Linux. ----------------------------------- Ojo con instarlo desde el sistema que te añade un buen peso de archivo que puede ser un flat. Aquí tenéis el ppa oficial. [url=https://launchpad.net/~libratbag-piper/+archive/ubuntu/piper-libratbag-git]Piper-libratbag-git Parece que hay una lista de modelos soportados. Lo mismo para modelos de tres botones sencillos no va. [url=https://github.com/libratbag/libratbag/tree/master/data/devices]Modelos soportados Hay muchos logitechs. Saludos ----------------------------------- Shell Martes, 09 Junio 2020, 10:35 Re: Piper. Utilidad Para Configurar Ratones ‘gaming’ En Linux. ----------------------------------- Haciendo una búsqueda por el sistema y usando la palabra mouse. [code linenumbers=false syntax=bash] find -iname mouse 2>/dev/null [/code] Encontrar el kernel actual que uso: [url=https://esgeeks.com/ver-version-kernel-en-linux-comandos/]Ver versión de kernel que usas [code linenumbers=false syntax=bash] uname -r [/code] Que por cierto el que uso termina en generic, nada de amd64. Si es que uso un eliminador de kernel antiguos y parece que ademas de eliminar se baja uno. La aplicación se llama "byobu" [url=https://www.linuxadictos.com/como-eliminar-kernels-antiguos-en-debian.html]Como eliminar kernels antiguos en debian Así que sabiendo en que directorio aparece y hace referencia a las fuentes del kernel. Encontré estas. Ambos son directorios. [quote] ./usr/src/linux-headers-4.15.0-101-generic/include/config/mouse ./lib/modules/4.15.0-101-generic/kernel/drivers/input/mouse [/quote] [code linenumbers=false syntax=bash] ls -l ./usr/src/linux-headers-4.15.0-101-generic/include/config/mouse [/code] [quote] -rw-r--r-- 1 root root 0 may 11 11:08 appletouch.h -rw-r--r-- 1 root root 0 may 11 11:08 bcm5974.h -rw-r--r-- 1 root root 0 may 11 11:08 cyapa.h drwxr-xr-x 3 root root 4096 may 18 20:11 elan -rw-r--r-- 1 root root 0 may 11 11:08 gpio.h drwxr-xr-x 3 root root 4096 may 18 20:11 ps2 -rw-r--r-- 1 root root 0 may 11 11:08 ps2.h -rw-r--r-- 1 root root 0 may 11 11:08 serial.h drwxr-xr-x 2 root root 4096 may 18 20:11 synaptics -rw-r--r-- 1 root root 0 may 11 11:08 vsxxxaa.h [/quote] Y [code linenumbers=false syntax=bash] ls -l ./lib/modules/4.15.0-101-generic/kernel/drivers/input/mouse [/code] [quote] -rw-r--r-- 1 root root 24969 may 11 11:08 appletouch.ko -rw-r--r-- 1 root root 24529 may 11 11:08 bcm5974.ko -rw-r--r-- 1 root root 79057 may 11 11:08 cyapatp.ko -rw-r--r-- 1 root root 57121 may 11 11:08 elan_i2c.ko -rw-r--r-- 1 root root 10249 may 11 11:08 gpio_mouse.ko -rw-r--r-- 1 root root 237425 may 11 11:08 psmouse.ko -rw-r--r-- 1 root root 10601 may 11 11:08 sermouse.ko -rw-r--r-- 1 root root 16097 may 11 11:08 synaptics_i2c.ko -rw-r--r-- 1 root root 14849 may 11 11:08 synaptics_usb.ko -rw-r--r-- 1 root root 11057 may 11 11:08 vsxxxaa.ko [/quote] No aparenta ser una lista muy larga. :? Si instaláis la utilidad "hwinfo" y ejecutáis el modo breve. [code linenumbers=false syntax=bash] hwinfo --short [/code] Y buscamos en la lista, me aparece: [quote] mouse: /dev/input/mice Logitech Corded Tilt-Wheel Mouse [/quote] ...continuará...¿ seguro ?. :-P Ale, toca ver guayabos!. Que estaba de coña!. Ah, que no conociaís la expresión..jejeje. Saludos ----------------------------------- Shell Martes, 09 Junio 2020, 11:00 Re: Piper. Utilidad Para Configurar Ratones ‘gaming’ En Linux. ----------------------------------- De hecho a mi Piper me dijo esto.... [img]https://foro.gambas-es.org/files/images/768/noteencuentro.png[/img] Es que para un ratón sencillo de tres botones con pocas ganas de prosperar... :? Saludos ----------------------------------- Shell Martes, 09 Junio 2020, 12:46 Re: Piper. Utilidad Para Configurar Ratones ‘gaming’ En Linux. ----------------------------------- Esto debe ser algo antiguo... [url=https://www.howtoforge.com/tutorial/map-mouse-on-linux/]Map mouse on linux No muestra fecha. La rueda de este ratón Logitech Rx300 actúa como interruptor. Usando el comando Xev y solo tomando la parte que interesa, muestra salida al pulsarse la rueda. [code linenumbers=false syntax=bash] xev | grep button [/code] Salida: [quote] state 0x10, button 1, same_screen YES state 0x110, button 1, same_screen YES state 0x10, button 3, same_screen YES state 0x410, button 3, same_screen YES state 0x10, button 6, same_screen YES state 0x10, button 6, same_screen YES [/quote] El 1 en este es el izquierdo. El 3 es el derecho y el 6 es el botón de la rueda. Pero esto que dice el autor del articulo: [quote] Now that we know what button corresponds to what number we can proceed to the mapping by navigating to the etc/X11/xorg.conf and opening the configuration file for editing. Note that to edit and save your changes to the file, you will need to do it as root. If you can't find an xorg.conf file in the indicated location, [b]don't be alarmed as this is a common thing for Ubuntu-based distributions nowadays[/b]. You can generate an xorg.conf file by doing the following: [/quote] La creación de ese archivo de Xorg.conf no va..y probablemente es que no sea necesario a estas alturas. Probablemente se sustituyó por algo más moderno. Wayland quizás. El único xorg.conf que he encontrado que trae el sistema es de la tarjeta Intel. [quote] ./usr/share/doc/xserver-xorg-video-intel/xorg.conf [/quote] Al menos xev lo reconoce de alguna forma. Saludos ----------------------------------- Shell Martes, 09 Junio 2020, 12:56 Re: Piper. Utilidad Para Configurar Ratones ‘gaming’ En Linux. ----------------------------------- Estos pasos que el cuenta: [quote] Switch to console mode by pressing “Alt+Ctrl+F1” simultaneously Kill the x server that is still active by typing “sudo service lightdm stop” and pressing enter Generate the xorg.conf file by typing “sudo X -configure” and pressing enter Get back to the desktop environment by typing “sudo start lightdm” and pressing enter Locate the newly created file and rename it to “xorg.conf” Move the renamed configuration file to etc/X11 [/quote] La opción de... [quote] Get back to the desktop environment by typing “sudo start lightdm” and pressing enter [/quote] No es así en este Linux Mint 19.1. Se debe hacer: [code linenumbers=false syntax=bash] sudo service lightdm start [/code] He pasado de anotar en un papel a hacer una foto con el movil... :roll: Saludos