Re: click sx e dx con touchpad e menu contestuale

2020-04-18 Per discussione Giuseppe Sacco
Il giorno sab, 18/04/2020 alle 04.59 -0700, Nicola Cantalupo ha
scritto:
[...]
> nicola@nicola-pc:~$ xinput --list
> ⎡ Virtual core pointerid=2[master pointer  (3)]
> ⎜   ↳ Virtual core XTEST pointer  id=4[slave  pointer 
>  (2)]
> ⎜   ↳ xwayland-pointer:15 id=6[slave  pointer 
>  (2)]
> ⎜   ↳ xwayland-relative-pointer:15id=7[slave  pointer 
>  (2)]
> ⎣ Virtual core keyboard   id=3[master keyboard (2)]
> ↳ Virtual core XTEST keyboard id=5[slave  
> keyboard (3)]
> ↳ xwayland-keyboard:15id=8[slave  
> keyboard (3)]
> 
> non ho nessuna voce touchpad

In questo caso, installa il pacchetto «sway» e usa il comando «swaymsg
-t get_inputs» che dovrebbe essere analogo a xinput. Con lo stesso
comando puoi cambiare anche i parametri.

Ciao,
Giuseppe



Re: click sx e dx con touchpad e menu contestuale

2020-04-18 Per discussione Nicola Cantalupo
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 pointerid=2[master pointer  (3)]
> ⎜   ↳ Virtual core XTEST pointer  id=4[slave  pointer 
>  (2)]
> ⎜   ↳ AlpsPS/2 ALPS DualPoint TouchPadid=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 Buttonid=6[slave  
> keyboard (3)]
> ↳ Video Bus   id=7[slave  
> keyboard (3)]
> ↳ Power Buttonid=8[slave  
> keyboard (3)]
> ↳ Sleep Buttonid=9[slave  
> keyboard (3)]
> ↳ Laptop_Integrated_Webcam_E4HD:  id=10   [slave  
> keyboard (3)]
> ↳ Dell WMI hotkeysid=11   [slave  
> keyboard (3)]
> ↳ AT Translated Set 2 keyboardid=12   [slave  
> keyboard (3)]
> ↳ Dell KB216 Wired Keyboard   id=16   [slave  
> keyboard (3)]
> ↳ Dell KB216 Wired Keyboard System Controlid=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.00, 0.00, 0.00, 
> 0.00, 1.00, 0.00, 0.00, 0.00, 1.00
>   Device Accel Profile (279): 1
>   Device Accel Constant Deceleration (280):   2.50
>   Device Accel Adaptive Deceleration (281):   1.00
>   Device Accel Velocity Scaling (282):12.50
>   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.00, 1.75, 0.084602, 0.00
>   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.10
>   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.00, 50.00
>   Synaptics Pressure Motion (308):15, 80
>   Synaptics Pressure Motion Factor (309): 1.00, 1.00
>   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 inte

Re: click sx e dx con touchpad e menu contestuale

2020-04-17 Per discussione Giuseppe Sacco
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 pointerid=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 Controlid=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 Controlid=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.00, 0.00, 0.00, 
0.00, 1.00, 0.00, 0.00, 0.00, 1.00
Device Accel Profile (279): 1
Device Accel Constant Deceleration (280):   2.50
Device Accel Adaptive Deceleration (281):   1.00
Device Accel Velocity Scaling (282):12.50
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.00, 1.75, 0.084602, 0.00
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.10
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.00, 50.00
Synaptics Pressure Motion (308):15, 80
Synaptics Pressure Motion Factor (309): 1.00, 1.00
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 pr

Re: click sx e dx con touchpad e menu contestuale

2020-04-16 Per discussione Lucio Marinelli

Il 16/04/20 20:31, Nicola Cantalupo ha scritto:

nell'angolo inferiore destro attivo il click destro

invece su debian-10.3.0-amd64-gnome sia a sinistra che a destra si attiva 
sempre il click sinistro



Ciao Nicola, hai provato a fare tap con due dita al centro del touchpad?


--
Lucio Marinelli



click sx e dx con touchpad e menu contestuale

2020-04-16 Per discussione Nicola Cantalupo
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

invece su debian-10.3.0-amd64-gnome sia a sinistra che a destra si attiva 
sempre il click sinistro

oltre a questo volevo sapere come attivare il menu contestuale con la tastiera. 
ho provato SHIFT+F10 ma mi digita una P maiuscola.