Re: click sx e dx con touchpad e menu contestuale
Il giorno venerdì 17 aprile 2020 15:00:03 UTC+2, Giuseppe Sacco ha scritto:
> Ciao Nicola,
>
> Il giorno gio, 16/04/2020 alle 11.31 -0700, Nicola Cantalupo ha
> scritto:
> > Buonasera, ho un laptop con touchpad senza pulsanti fisici sx e dx.
> >
> > sull'altro sistema operativo Windows..
> > nell'angolo inferiore sinistro attivo il click sinistro
> > nell'angolo inferiore destro attivo il click destro
>
> dipende dal driver di X11 che viene utilizzato. Installa il pacchetto
> xinput e dai il comando «xinput --list» per ottene l'elenco dei device
> (tastiere, mouse, eccetera). Trova la riga del tuo touchpad e leggine
> l'id. Poi dai il comando «xinput --list-props id» (con l'id corretto) e
> vedi tutte le proprietà. Se l'elenco -- dopo le prime righe generiche
> -- prosegue con libinput allora hai il driver generico, altrimenti
> potresti averne uno specifico, come quello synaptics.
>
> In base al driver, leggi il manuale e prova a impostare le proprietà
> direttamente con xinput.
>
> Ad esempio, io ho un touchpad gestito da synaptics:
>
> $ xinput --list
> ⎡ Virtual core pointer id=2 [master pointer (3)]
> ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
> ⎜ ↳ AlpsPS/2 ALPS DualPoint TouchPad id=13 [slave pointer (2)]
> ⎜ ↳ AlpsPS/2 ALPS DualPoint Stick id=14 [slave pointer (2)]
> ⎜ ↳ PixArt Dell MS116 USB Optical Mouse id=15 [slave pointer (2)]
> ⎜ ↳ Dell KB216 Wired Keyboard Consumer Control id=18 [slave pointer (2)]
> ⎣ Virtual core keyboard id=3 [master keyboard (2)]
> ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
> ↳ Power Button id=6 [slave keyboard (3)]
> ↳ Video Bus id=7 [slave keyboard (3)]
> ↳ Power Button id=8 [slave keyboard (3)]
> ↳ Sleep Button id=9 [slave keyboard (3)]
> ↳ Laptop_Integrated_Webcam_E4HD: id=10 [slave keyboard (3)]
> ↳ Dell WMI hotkeys id=11 [slave keyboard (3)]
> ↳ AT Translated Set 2 keyboard id=12 [slave keyboard (3)]
> ↳ Dell KB216 Wired Keyboard id=16 [slave keyboard (3)]
> ↳ Dell KB216 Wired Keyboard System Control id=17 [slave keyboard (3)]
> ↳ Dell KB216 Wired Keyboard Consumer Control id=19 [slave keyboard (3)]
>
> il touchpach ha queste proprietà:
>
> $ xinput --list-props 13
> Device 'AlpsPS/2 ALPS DualPoint TouchPad':
> Device Enabled (150): 1
> Coordinate Transformation Matrix (152): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
> Device Accel Profile (279): 1
> Device Accel Constant Deceleration (280): 2.500000
> Device Accel Adaptive Deceleration (281): 1.000000
> Device Accel Velocity Scaling (282): 12.500000
> Synaptics Edges (283): 294, 1666, 311, 1238
> Synaptics Finger (284): 12, 15, 0
> Synaptics Tap Time (285): 180
> Synaptics Tap Move (286): 104
> Synaptics Tap Durations (287): 180, 180, 100
> Synaptics ClickPad (288): 0
> Synaptics Middle Button Timeout (289): 75
> Synaptics Two-Finger Pressure (290): 141
> Synaptics Two-Finger Width (291): 7
> Synaptics Scrolling Distance (292): -47, 47
> Synaptics Edge Scrolling (293): 0, 0, 0
> Synaptics Two-Finger Scrolling (294): 1, 1
> Synaptics Move Speed (295): 1.000000, 1.750000, 0.084602, 0.000000
> Synaptics Off (296): 0
> Synaptics Locked Drags (297): 0
> Synaptics Locked Drags Timeout (298): 5000
> Synaptics Tap Action (299): 0, 0, 0, 0, 1, 3, 2
> Synaptics Click Action (300): 1, 3, 2
> Synaptics Circular Scrolling (301): 0
> Synaptics Circular Scrolling Distance (302): 0.100000
> Synaptics Circular Scrolling Trigger (303): 0
> Synaptics Circular Pad (304): 0
> Synaptics Palm Detection (305): 1
> Synaptics Palm Dimensions (306): 10, 100
> Synaptics Coasting Speed (307): 20.000000, 50.000000
> Synaptics Pressure Motion (308): 15, 80
> Synaptics Pressure Motion Factor (309): 1.000000, 1.000000
> Synaptics Grab Event Device (310): 0
> Synaptics Gestures (311): 1
> Synaptics Capabilities (312): 1, 1, 1, 1, 1, 1, 0
> Synaptics Pad Resolution (313): 30, 24
> Synaptics Area (314): 0, 0, 0, 0
> Synaptics Noise Cancellation (315): 11, 11
> Device Product ID (276): 2, 8
> Device Node (275): "/dev/input/event7"
>
> le proprietà che mi interessano sono «Tap Action» e «Click Action». La
> seconda riguarda i tasti del touchpad, la prima riguarda la loro
> emulazione. Nella pagina di manuale di synaptics viene riportato come
> impostare quei valori direttamente nel file xorg.conf, ma li puoi anche
> cambiare a mano con xinput per fare delle prove. I numeri del parametro
> «Tap Action» sono il click sui 4 angoli (destro superiore, destro
> inferiore, sinistro superiore, sinistro inferiore) e poi l'emulazione
> con 1 dito, 2 dita, 3 dita. "0 0 0 0 1 3 2" indica: nessuna emulazione
> per i 4 angoli, tap con un dito = click sinistro, tap con due dita =
> click destro, tap con tre dita = click centrale.
>
> Per maggiori informazioni su xinput e su come impostare i valori di
> prova:
> https://linuxhint.com/change_mouse_touchpad_settings_xinput_linux/
> per informazioni sulle proprietà del driver libinput:
> https://www.mankier.com/4/libinput#Supported_Properties
>
> Ciao,
> Giuseppe
nicola@nicola-pc:~$ xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ xwayland-pointer:15 id=6 [slave pointer (2)]
⎜ ↳ xwayland-relative-pointer:15 id=7 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ xwayland-keyboard:15 id=8 [slave keyboard (3)]
non ho nessuna voce touchpad
Reply to: