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

18ott/0812318

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 (12318) Trackback (0)
  1. It’s appropriate time to make a few plans for the long run and it’s time to be happy.
    I have learn this submit and if I could I want to
    recommend you some attention-grabbing issues or advice.

    Perhaps you can write next articles relating to this article.
    I wish to read more issues approximately it!

  2. Thanks for your personal marvelous posting! I certainly
    enjoyed reading it, you could be a great author.I will always
    bookmark your blog and will often come back at some point.
    I want to encourage you to continue your great work, have a nice holiday weekend!

  3. Do you have any video of that? I’d love to find out more details.

  4. If you want to improve your experience just keep visiting this web
    site and be updated with the latest news posted here.

  5. 10 Things That Your Family Teach You About Window Replacement Near
    Me window Replacement near Me

  6. My partner and I stumbled over here different page and thought I
    may as well check things out. I like what I see so now i’m following
    you. Look forward to looking over your web page yet
    again.

  7. That is really attention-grabbing, You’re a very professional blogger.
    I have joined your feed and look ahead to searching for more of your magnificent post.
    Additionally, I’ve shared your site in my social networks

  8. 10 Things That Your Family Teach You About Double Glazing Repair Near Me Double Glazing Repair Near Me

  9. Woah! I’m really enjoying the template/theme of this
    site. It’s simple, yet effective. A lot of times it’s hard to get that
    “perfect balance” between user friendliness and visual appearance.

    I must say you have done a amazing job with this.

    In addition, the blog loads super fast for me on Safari.
    Excellent Blog!

  10. What’s up, I desire to subscribe for this blog to get most up-to-date updates, so where can i do it please help.

  11. The 10 Most Terrifying Things About Truck Accident Law Firm truck accident law firm

  12. I’m not that much of a internet reader to be honest but your sites
    really nice, keep it up! I’ll go ahead and bookmark your website
    to come back in the future. Many thanks

  13. What Is Fela Lawyer And Why You Should Be Concerned attorneys

  14. Every weekend i used to pay a quick visit this site,
    for the reason that i wish for enjoyment, as this this web site
    conations genuinely nice funny stuff too.

  15. If some one wishes to be updated with newest technologies therefore he must be pay a quick visit this website and be up to date every day.

  16. Hi to all, how is everything, I think every one iss gstting more from this web page,
    and your views are nikce in support of new people.

    alcance en Instagram

  17. Thaqnk you for sharing your info. I really appreciate your efforts
    and I will be waiting for your further post thuanks
    once again.
    중고 화물차 가격

  18. See What Double Glazed Window Repairs Near Me Tricks The Celebs Are Utilizing window repairs Near
    Me (https://toripedia.info/)

  19. Great data. Regards.

  20. This text is priceless. When can I find out more?

    Visit my page :: growth matrix reviews

  21. What’s The Job Market For Truck Accident Lawyers Professionals Like?
    Truck Accident

  22. 10 Things Everybody Gets Wrong Concerning Medical Malpractice Lawyer medical malpractice law firms
    (Ambrose)

  23. I enjoy you because of your own work on this web site. My aunt takes pleasure in making time for investigations and it is simple to grasp why. My partner and i learn all relating to the dynamic method you offer vital tips through the website and therefore strongly encourage participation from visitors on that subject while our favorite simple princess is without question becoming educated so much. Enjoy the remaining portion of the year. You are carrying out a powerful job.

  24. This paragraph offers clear idea in support of the new people of blogging, that genuinely
    how to do blogging.

  25. Ten Startups That Will Revolutionize The Truck Attorneys Near Me
    Industry For The Better Truck Accident

  26. Thanks a lot for sharing this with all of us you
    actually recognize what you’re talking approximately!
    Bookmarked. Kindly also seek advice from my site =).

    We can have a link exchange contract among us

  27. 15 Things You’re Not Sure Of About 18 Wheeler Accident Lawyer Legal

  28. Awesome! Its really amazing paragraph, I have got much clear idea concerning from this post.

  29. I am now not positive the place you’re getting your info, however great
    topic. I must spend a while finding out more or working out more.
    Thank you for fantastic information I used to be in search of this information for my mission.

    Have a look at my site – the genius wave reviews

  30. Thanks for sharing your thoughts about memek enak. Regards

  31. Why We Are In Love With Repairing Double Glazed Windows (And You Should Also!) upvc windows repairs Near Me

  32. Thanks , I’ve just been looking for information about this subject for a while
    and yours is the best I have came upon till now.
    But, what about the bottom line? Are you positive about the supply?

    my blog :: A片

  33. Hello colleagues, how is the whole thing, and what you want
    to say regarding this piece of writing, in my
    view its really amazing designed for me.

  34. Here’s A Little Known Fact Concerning Semi Truck Accident Attorney truck accident law firms

  35. 5 Things Everyone Gets Wrong Regarding Replace Window Handle replacement glass in windows

  36. The 10 Most Scariest Things About Motorcycle Accident Legal Motorcycle Accident

  37. d-rev.org nha cai lua dao nhung nguoi ca do va dam me bong da

  38. It’s a shame you don’t have a donate button! I’d definitely
    donate to this fantastic blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google
    account. I look forward to fresh updates and
    will share this blog with my Facebook group. Chat soon!

  39. Excellent article! We are linking to this great article on our website.
    Keep up the great writing.

  40. Hello. Allow me to introduce the writer. His name is Lauren McKnight though he won’t really like being called similar to this.
    Maryland is the place I like most. One of factors I love most is caravaning nevertheless haven’t earned a dime
    destinations. Filing is how I make money.

  41. 5 Double Glazing Glass Replacement Near Me Lessons From Professionals Replace Double Glazing Glass

  42. This paragraph is truly a nice one it helps new
    web visitors, who are wishing in favor of blogging.


Lascia un commento

Devi autenticarti per inserire un commento.

Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button