CoM – Il Blog di Carlo Becchi Compreresti un Raggio della Morte usato, da quest'uomo?

18ott/081117

Touchpad: scorrimento a due dita come sul Mac, su qualsiasi portatile Linux

[This guide is available in English on Wiz and Chips]

ATTENZIONE!! LE NUOVE ISTRUZIONI AGGIORNATE PER UBUNTU E KUBUNTU 8.10 INTREPID IBEX SONO IN FONDO A QUESTO ARTICOLO!

Ci sono cose sul Mac che, persino io devo ammettere, sono davvero ragguardevoli.

Una di queste, è lo scrolling a due dita sul touchpad dei Macbook e Macbook Pro. Il touchpad è comodissimo, se non si ha lo spazio o il piano di appoggio per un mouse, ma potrebbe essere davvero più usabile. E' possibile abilitare una zona sulla destra (a volte serigrafata addirittura sul pad stesso) per scorrere le pagine web o le interfacce del sistema operativo, ma personalmente la trovo scomodissima, perché ci finisco sempre durante i normali movimenti del puntatore.

Insomma, secondo me la soluzione Apple è ideale, ma richiede hardware appositamente progettato, hardware Apple. Oppure no?

Assillato dal dubbio, ho fatto un po' di ricerca. E i risultati sono stati assolutamente sorprendenti. Così sorprendenti da farmi domandare come abbia fatto a non averne mai sentito parlare prima, ma soprattutto a chiedermi come sia possibile che laptop di altri produttori non beneficino di questa capacità (brevetti?).

Ciò che segue vale solo per Ubuntu 8.04. Per la versione 8.10 seguire le istruzioni in fondo al post.

Su lucumr apprendo la sconvolgente verità: lo scrolling a due dita è possibile con moltissimi touchpad di marca Synaptics, che a quanto mi risulta ha praticamente il monopolio del mercato. Inoltre il driver Synaptics per Linux supporta lo scorrimento a due dita verticale ed orizzontale, al modestissimo prezzo di aggiungere due righe di configurazione a xorg.conf:

Option "VertTwoFingerScroll" "true"
Option "HorizTwoFingerScroll" "true"

Ricaricato X (ctrl+alt+backspace) scopro che il trackpad dell'Acer Aspire sul quale ho provato la modifica supporta alla perfezione lo scorrimento a due dita.

Proseguo la ricerca, su Ispirazioni Informatiche trovo che questa opzione è disponibile in Linux addirittura dal 2006, e che aggiungendo un'ulteriore riga a xorg.conf è possibile installare anche un bel pannello di configurazione grafica per queste nuove opzioni.

Pannello di controllo per lo scorrimento a due dita

Ecco le istruzioni passo passo per abilitare questa funzione su Ubuntu (e sulle distribuzioni basate su GNOME, per le distribuzioni KDE basta, in genere, limitarsi a sostituire gedit con kwrite o kate).

1) fare un backup di xorg.conf:

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.synaptics

(ho l'abitudine di rinominare i file con qualcosa che mi ricordi l'operazione che mi apprestavo a fare prima della modifica, ma qualunque nome va bene)

2) aprire xorg.conf:

sudo gedit /etc/X11/xorg.conf

3) Aggiungere le tre righe

Option "SHMConfig" "on"
Option "VertTwoFingerScroll" "true"
Option "HorizTwoFingerScroll" "true"

alla sezione InputDevice di Synaptics, che apparirà quindi all'incirca così:

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
Option "SHMConfig" "on"
Option "VertTwoFingerScroll" "true"
Option "HorizTwoFingerScroll" "true"
EndSection

4) Installare gsynaptics dai repository. (Si posizionerà in Sistema->Preferenze)

5) Riavviare X, o l'intero PC.

Oltre allo scrolling a due dita, se si abilita il tapping, anche questo può avvenire in modalità multipla:

Tap a 1 dito: click con il tasto sinistro del mouse

Tap a 2 dita: click con la rotella del mouse, in firefox apre il link in un nuovo tab.

Tap a 3 dita: click con il tasto destro del mouse [Grazie Claudio]

Per evitare problemi, consiglio di effettuare l'operazione solo con un mouse USB di emergenza a portata di mano.

Per chi fosse scettico, o per chi non ha familiarità con lo scorrimento a due dita ho messo su YouTube un breve video dimostrativo.

 


 >>AGGIORNAMENTO 8.10<<<

Per Ubuntu 8.10 Intrepid Ibex, Kubuntu 8.10 e probabilmente la maggior parte delle distribuzioni basate sul nuovo Xorg 7.4 la procedura è radicalmente cambiata.

A quanto pare abilitare SHMConfig è sconsigliato in un ambiente multiuser "untrusted", ovvero nel quale non conoscete o non potete fidarvi a priori degli altri utenti.

Il modo più sicuro per abilitare lo scorrimento a due dita in questo caso è utilizzare un file XML per l'Hardware Abstraction Layer con le impostazioni per questa funzione.

Il file deve contenere questo testo:

<?xml version="1.0" encoding="ISO-8859-1"?><deviceinfo version="0.2">  <device>    <match key="input.x11_driver" contains="synaptics">    <merge key="input.x11_options.SHMConfig" type="string">On</merge>    <merge key="input.x11_options.TapButton2" type="string">3</merge>    <merge key="input.x11_options.TapButton3" type="string">2</merge>    <merge key="input.x11_options.VertTwoFingerScroll" type="string">1</merge>    <merge key="input.x11_options.HorizTwoFingerScroll" type="string">1</merge>  </match></device></deviceinfo>

ed deve essere salvato come:

/etc/hal/fdi/policy/11-synaptics-options.fdi

Se non avete familiarità con linux seguite queste semplici istruzioni:

- Scaricate il file già pronto che ho preparato per voi, nella vostra home (esempio /home/carlo)

- Aprite il terminale, verificate di essere nella vostra home, e digitate:

sudo cp 11-synaptics-options.fdi /etc/hal/fdi/policy/

Riavviate il pc (riavviare X non basta più).

Lo scorrimento a due dita dovrebbe funzionare.

Abilitare GSynaptics e SHMConfig.

Se siete gli unici utenti sul vostro PC, o volete comunque abilitare GSynaptics (o QSynaptics per KDE) dovete creare il file:

/etc/hal/fdi/policy/shmconfig.fdi

contenente:

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
 <device>
  <match key="input.x11_driver" string="synaptics">
   <merge key="input.x11_options.SHMConfig" type="string">True</merge>
  </match>
 </device>
</deviceinfo>

Ancora una volta ecco le istruzioni semplificate:

- Scaricate il file già pronto che ho preparato per voi, nella vostra home (esempio /home/carlo)

- Aprite il terminale, verificate di essere nella vostra home, e digitate:

sudo cp shmconfig.fdi /etc/hal/fdi/policy/

Riavviate il PC.

Cercate ed installate gsynaptics con il vostro gestore dei pacchetti.

E' tutto, verificato su Ubuntu 8.10 Intrepid Ibex

[ Fonti: help.ubuntu.com e jann.is ]

 

Commenti (1117) Trackback (0)
  1. I do accept as true with all of the concepts you’ve presented
    for your post. They’re very convincing and can certainly work.

    Nonetheless, the posts are very quick for novices.

    May just you please prolong them a little from subsequent time?

    Thank you for the post.

  2. What’s up, its nice post about media print, we all be familiar with media
    is a impressive source of data.

  3. So the worst casinos have been shut down or had licenses revoked.

  4. Respected blackjack casinos will spend out winnings with
    out any hassle.

  5. The casting of Cumberbatch was prematurely revealed by his Sherlock co-star
    Martin Freeman during the BAFTA Television Awards in May 2011.

    Speculations of his undisclosed role were further fuelled when Ian McKellen wrote on his
    blog that Philippa Boyens showed him Cumberbatch’s screen test, stating that it was “electrifying, vocally and facially”.

    In order to save the maximum amount space, you may have to
    eliminate the television stand altogether and mount your plasma TV
    in the wall. For rule to remember we have found you will want to end up being incredibly expert so that you can consider alpine
    off-road riding a bike since it is unsafe and you
    may get harm! Therefore it is certainly not astonishing of which cross
    country off-road bicycles will be so well received and they have become the number one mtb
    of choice for some. Most of these cross-country off-road bicycles have become the
    favourite mountain bike among numerous new drivers.

  6. Thanks for another informative web site. Where else may just
    I am getting that type of information written in such an ideal
    approach? I have a venture that I am just now working on, and I have been at the glance out
    for such information.

  7. My spouse and I stumbled over here different web page
    and thought I should check things out. I like what I see
    so i am just following you. Look forward to finding out about your web
    page yet again.

  8. Deze ring van 14 karaat geelgoud is versierd met vijf schitterende zirkonia steentjes in de kleuren saffier,
    licht roze, licht paars, geel en fuchsia.

  9. Link exchange is nothing else except it is only placing the other person’s blog link on your page at proper place and other
    person will also do similar for you.

  10. Fine content, Thanks a lot!

  11. Health supplements are actually items created to supply necessary nutrients that may be lacking in an individual’s diet. These supplements happen in numerous forms, consisting of pills, pills, particles, as well as fluids, and also they have vitamins, minerals, amino acids, weeds, chemicals, or various other materials meant to muscle building supplement the diet regimen and assistance general health and wellness, https://www.quora.com/What-are-the-main-uses-for-citicoline/answer/Wade-Glenn-4.

  12. Tow trucks play an important job in modern culture, working as vital properties in different situations. These specific cars are made to transport impaired or improperly positioned automobiles, making certain the smooth circulation of traffic and giving aid in unexpected emergencies. https://www.quora.com/How-do-I-hire-towing-service-online/answer/Wayne-Stokes-42.

  13. Casino Ambassador, umístěné v srdci Prahy na Václavském náměstí, nabízí intenzivní kasinový zážitek uprostřed pulzujícího hlavního města.

  14. SMS proof, or even quick answering service verification, works as an essential resource in the realm of digital safety and also identification verification. This process entails sending out a single code to a customer’s cellular phone with SMS, which the individual needs to get in to verify their identification, http://pets-trans.weebly.com/home/the-crucial-overview-to-sms-verification-service.

  15. If you are actually having problem putting your key right into the lock or even if the lock device really feels loose or even jammed, it is actually probably that your vehicle lock is destroyed. Attempting to compel the key or even manage the lock yourself may induce further damage as well as likely leave you stranded. Rather, call a car locksmith professional who can easily examine the condition and repair work or change the wrecked lock efficiently, https://digitalbusinessone.bravesites.com/entries/general/exactly-how-to-find-the-most-ideal-auto-locksmith-professional-in-sparks-.

  16. Lorsque vous accédez au casino via un navigateur mobile, le
    format s’ajuste automatiquement pour offrir la meilleure expérience utilisateur.

  17. Really a lot of amazing data.


Lascia un commento


Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button