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. These are in fact wonderful ideas in concerning blogging.
    You have touched some fastidious factors here. Any way keep up wrinting.

  2. Guide To Double Glazing Near Me: The Intermediate Guide The Steps To Double Glazing Near
    Me double glazing near Me

  3. obviously like your web-site but you have to take a look at the spelling on several of your
    posts. Many of them are rife with spelling
    problems and I find it very bothersome to inform the reality then again I will surely
    come again again.

  4. The Most Underrated Companies To In The Double Glazing Near Me Industry double Glazing replacement glass

  5. I appreciate, cause I discovered exactly what I was looking for.
    You’ve ended my four day long hunt! God Bless you man. Have a great day.
    Bye

  6. Keep this going please, great job!

  7. 15 Reasons To Not Ignore Railroad Injuries Law Railroad Injuries Lawyers

  8. The History Of Window Repair Near Me pvc

  9. Good article. I will be experiencing many of these issues as well..

  10. The 9 Things Your Parents Taught You About Double Glazed Windows Near Me
    double Glazed Windows near me

  11. you are in reality a just right webmaster. The website
    loading speed is incredible. It kind of feels that you are doing any distinctive trick.
    Also, The contents are masterwork. you have done a wonderful activity in this
    topic!

  12. I was suggested this web site by my cousin. I am
    not sure whether this post is written by him as no one else know such
    detailed about my difficulty. You are amazing!
    Thanks!

  13. 10 Wrong Answers To Common Veterans Disability Compensation Questions Do You
    Know The Correct Answers? Veterans Disability Lawyer

  14. Three Reasons Why 3 Reasons Why Your Railroad Injuries Attorneys Is Broken (And How To Repair It)
    lawyer

  15. 9 . What Your Parents Teach You About Semi Truck Lawsuits Semi truck accident Law firms

  16. Helpful info. Lucky me I found your web site by chance, and I am surprised why this twist of fate didn’t came about earlier!
    I bookmarked it.

  17. I just like the valuable info you supply in your articles.
    I will bookmark your blog and check again right here frequently.
    I’m relatively sure I will be told plenty of new stuff proper
    here! Best of luck for the next!

  18. 7 Things You Never Knew About Upvc External Doors Replace upvc door Handle

  19. This website was… how do I say it? Relevant!!
    Finally I’ve found something which helped me. Kudos!

  20. Upvc Door Handles: What’s No One Is Discussing replacing upvc Door lock

  21. Hello colleagues, its enormous paragraph about teachingand entirely
    defined, keep it up all the time.

  22. 7 Tips About Erb’s Palsy Case That No One Will Tell You erb’s palsy lawyer

  23. Hi! I simply would like to give you a huge thumbs up for the great info you have got here on this
    post. I’ll be coming back to your blog for more
    soon.

  24. How To Choose The Right Semi Truck Settlement Online semi truck Accident law firms

  25. Woah! I’m really enjoying the template/theme of this
    site. It’s simple, yet effective. A lot of times it’s tough to get that “perfect balance”
    between usability and appearance. I must say that you’ve done
    a superb job with this. Also, the blog loads super quick
    for me on Safari. Outstanding Blog!

  26. 9 Things Your Parents Teach You About Double Glazed Window Suppliers Near Me double glazed Window Suppliers near me

  27. After I originally commented I seem to have clicked
    on the -Notify me when new comments are added- checkbox
    and now whenever a comment is added I receive 4 emails with
    the exact same comment. There has to be a way you can remove me from that service?
    Thank you!

  28. 20 Things You Must Know About ADHD Adult Test adhd adult online test
    - http://Choongsoo.kr -

  29. It is the best time to make some plans for the future and it’s time to be happy.
    I’ve read this post and if I could I wish to suggest you some interesting things or tips.
    Perhaps you could write next articles referring
    to this article. I want to read more things about it!

  30. The 10 Most Terrifying Things About Replacement Glass For Windows replacement glass for window

  31. If you woulⅾ like to imlrove y᧐ur familiarity only keep visiting this web page and be սpdated with
    the m᧐st up-tօ-date news posted here.

  32. Hi there to all, hhow iis all, I think every one is
    getting more from this website, annd yyour viuews are fastidious in favor off new people.

    instagram follower bekommen

  33. Window Handle Replacement: The Good, The Bad, And The Ugly
    Window Panel Replacement

  34. I visited various web sites but the audio quality for audio songs existing at
    this website is in fact wonderful.

  35. What’s up too all, for thee reason that I am truly keen of reading
    this web site’s post to be updated regularly. It contains pleasant
    material.
    중고 트럭 매매

  36. Are You In Search Of Inspiration? Check Out Double Glazed
    Units Near Me replacement Double glazed units near me

  37. Guide To Double Glazing Near Me: The Intermediate Guide
    The Steps To Double Glazing Near Me double glazing near me

  38. The Railroad Injuries Compensation Awards: The Most, Worst,
    And Weirdest Things We’ve Ever Seen railroad Injuries attorney

  39. Dangerous Drugs Attorneys Tools To Ease Your Everyday Lifethe Only
    Dangerous Drugs Attorneys Trick Every Individual Should Know dangerous drugs attorneys

  40. I’m not sure where you’re getting your info, but great topic.
    I needs to spend some time learning more or understanding more.
    Thanks for fantastic info I was looking for this information for my mission.

  41. Wow that was strange. I just wrote an extremely long comment but after I clicked submit my comment didn’t show up.
    Grrrr… well I’m not writing all that over again. Regardless, just wanted to say superb blog!

  42. Introduction http://lamerpension.co.kr/www/bbs/board.php?bo_table=bod703&wr_id=510237 is a new dietary supplement that combines the benefits of the ketogenic diet with the power of apple cider vinegar (ACV).

  43. Thanks for finally writing about > Touchpad: scorrimento a
    due dita come sul Mac, su qualsiasi portatile Linux « CoM – Il Blog di Carlo Becchi
    < Liked it!

  44. Unexpected Business Strategies For Business That Aided Erb’s Palsy Settlement
    Succeed erb’s palsy lawsuit

  45. What’s The Job Market For Upvc Windows Repair Professionals?
    Upvc windows Repair

  46. With havin so much content do you ever run into any problems
    of plagorism or copyright violation? My blog has a lot of exclusive content
    I’ve either created myself or outsourced but it looks like a lot of it is popping it up all over the
    internet without my authorization. Do you know any
    techniques to help stop content from being ripped off?
    I’d certainly appreciate it.

  47. I quite like looking through an article that will make men and women think.
    Also, thank you for allowing me to comment!

  48. Fire protection servicehttps://friensta.com/read-blog/12179_fmc-fire-systems-leading-the-way-in-fire-protection-solutions.html

  49. Unexpected Business Strategies For Business That Aided Ford Key Fob Achieve Success spare ford key (Finlay)


Lascia un commento

Devi autenticarti per inserire un commento.

Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button