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. I go to see each day some blogs and websites to read articles, except this weblog gives quality based writing.

  2. 10 18-Wheeler Accident Lawyers-Related Meetups You Should Attend 18 Wheeler Accident Lawsuit

  3. A Glimpse Inside The Secrets Of Window Repair Near window
    repair near me, Jerilyn,

  4. Hey I am so delighted I found your blog, I really found you by mistake, while I was browsing on Aol for something else, Regardless I am here now and would
    just like to say cheers for a fantastic post and a all round
    exciting blog (I also love the theme/design), I don’t have time to look over it all at the moment but I have saved it and also
    added in your RSS feeds, so when I have time I will be
    back to read much more, Please do keep up the superb job.

    Here is my site: the billionaire brain wave reviews

  5. See What Slot Sugar Rush Demo Tricks The Celebs Are Making Use Of slot Sugar Rush Demo

  6. Hi there! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche.
    Your blog provided us beneficial information to work on. You have done a outstanding job!

  7. I know this if off topic but I’m looking into starting my own blog and was wondering what all
    is required to get setup? I’m assuming having
    a blog like yours would cost a pretty penny? I’m not very internet savvy so I’m not 100% positive.

    Any suggestions or advice would be greatly appreciated.

    Thank you

  8. You’ll Never Guess This Ferrari Key Programming Near Me’s Secrets ferrari key programming (rettura-festa.Net)

  9. Hi there everyone, it’s my first pay a quick visit
    at this web page, and paragraph is really fruitful
    in support of me, keep up posting these types of content.

  10. For Whom Is Double Glazed Replacement Glass Near Me And Why You Should Take A Look glazier

  11. Heya i am for the first time here. I came across this board and I find It truly useful & it helped me out a lot.
    I’m hoping to offer something back and aid others like
    you helped me.

  12. 15 Best Pinterest Boards Of All Time About Federal Employers Federal railroad

  13. 5 Double Glazed Window Repair Leçons From The Pros window repairs near me (Shona)

  14. I am no longer positive the place you’re getting your information, however good topic.
    I needs to spend a while learning more or figuring out more.
    Thank you for magnificent information I used to be
    looking for this info for my mission.

  15. 15 Tips Your Boss Wishes You Knew About Window Glass Replacement Window Replacements Near Me

  16. It’s very simple to find out any topic on web as compared to books, as I found
    this piece of writing at this site.

  17. You’ll Never Guess This Window Doctor Near Me’s Tricks Window doctor near me

  18. Very nice article, totally what I needed.

  19. I delight in, result in I found just what I used to be
    having a look for. You have ended my 4 day lengthy hunt!

    God Bless you man. Have a nice day. Bye

  20. See What Replacement Window Seals Tricks The Celebs Are Using replacement window seals, porcu.pineoxs.A@srv5.cineteck.net,

  21. Elevate Your Beauty Routine with Clean Glam: Natural,
    Sustainable, and Cruelty-Free | A Sobreezybabe company.

    Explore Clean Glam’s range of clean beauty cosmetics and natural skincare products.
    From organic skincare routines to vegan beauty products,
    we lead the clean beauty market with eco-friendly,
    non-toxic solutions. Learn how to create effortless Clean Glam Makeup looks with our step by
    step tutorials! Discover holistic beauty solutions
    for a radiant you!

  22. What The 10 Most Stupid Upvc Window Near Me Mistakes Of
    All Time Could Have Been Prevented upvc windows repair near me
    (beaconkorea.com)

  23. See What Double Glazing Repairs Near Me Tricks The Celebs
    Are Using double glazing repairs near me (http://www.diywiki.org/index.Php/user:kmyaustin67728)

  24. Just desire to say your article is as amazing. The clarity in your post
    is just spectacular and i can assume you’re knowledgeable on this subject.
    Fine with your permission let me to clutch your RSS feed to stay
    up to date with imminent post. Thanks 1,000,000 and please continue the gratifying work.

  25. 15 Documentaries That Are Best About Medical Malpractice
    Case san mateo Medical malpractice lawyer

  26. The Best Window Repairs Tips To Make A Difference In Your Life Upvc window repair

  27. Fine way of explaining, and pleasant article to obtain facts on the topic of my presentation topic, which i am going
    to convey in academy.

  28. The 10 Most Terrifying Things About Upvc Windows Repairs Upvc Windows Repairs [Https://Wiki.Mine-Hoster.De/]

  29. https://aftamp.host/
    What’s Going down i’m new to this, I stumbled upon this
    I have found It absolutely helpful and it has aided me out loads.

    I am hoping to contribute & assist different users like its helped me.
    Good job.

  30. 10 Best Mobile Apps For Hyundai Replacement Key hyundai Terracan key

  31. Five Killer Quora Answers On Double Glazed Window Repairs Near Me double glazed window repairs near me

  32. Great blog here! Also your website so much up fast! What web host
    are you the use of? Can I am getting your affiliate
    link on your host? I wish my site loaded up as quickly
    as yours lol

  33. 5 Killer Quora Answers To Railroad Injuries Attorneys railroad Injuries Attorneys [https://h6H2h5.Wiki]

  34. The History Of Veterans Disability Case lawyers

    my web page: lawyers

  35. A片

    Hello, i think that i saw you visited my web site thus i came to “return the favor”.I am attempting
    to find things to improve my site!I suppose its ok to use some of your ideas!!

  36. 7 Simple Secrets To Totally Refreshing Your Slot Princess Demo
    starlight princess Demo oyna

  37. Нellο! Тhіs is my 1st commеnt here so I
    јust wanteⅾ to gіve a qujick shout oᥙt and tell you I reeally enjoy reading
    үоur posts. Ꮯan yоu recommend any otheг blogs/websites/forums tһat
    deal wіth the same subjects? Mɑny thanks!

  38. The 10 Scariest Things About Double Glazed Window Repairs Near Me window Repairs near Me

  39. Hello mates, its enormous piece of writing on the topic of tutoringand fully explained, keep it up all the time.

  40. Hello! Would you mind if I share your blog with my myspace group?
    There’s a lot of folks that I think would really appreciate your content.
    Please let me know. Thank you

  41. It’s nearly impossible to find experienced people for this subject, however,
    you seem like you know what you’re talking about! Thanks

    Feel free to visit my page Buy Ozempic Online Mexico

  42. Guide To Upvc Repairs Near Me: The Intermediate Guide
    For Upvc Repairs Near Me Upvc Repairs Near me

  43. The 12 Most Unpleasant Types Of Double Memory Foam Mattresses People You Follow On Twitter Double mattress Sale

  44. It’s The Upvc Windows Repair Case Study You’ll Never Forget upvc window Repairs

  45. Indisputable Proof That You Need 10kg Laundry Appliance Offers 023456789.xyz

  46. Whats up this is somewhat of off topic but I was wondering if blogs use WYSIWYG editors or
    if you have to manually code with HTML. I’m starting a blog soon but have no coding expertise so I wanted
    to get guidance from someone with experience. Any help would be greatly appreciated!

  47. My partner and I stumbled ovеr hеre by a ɗifferent web
    page and tһought I mіght as ԝell check thіngs out.
    I ⅼike wnat Ι ssee so now i’m folloowing үou.
    Looҝ forward tο going over yoսr web pagе for
    a second time.


Lascia un commento

Devi autenticarti per inserire un commento.

Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button