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. What Is Semi Truck Compensation? And How To Utilize It Semi Truck Accident Attorney

  2. Asking questions are genuinely good thing if you are not understanding something fully, except this
    article provides nice understanding even.

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

  4. I love looking through an article that will make men and women think.
    Also, thanks for allowing me to comment!

  5. Are You Responsible For The Double.Glazing Near
    Me Budget? 10 Terrible Ways To Spend Your Money double glazing near me

  6. Everyone loves what you guys are usually up too. This sort of clever work and exposure!
    Keep up the wonderful works guys I’ve incorporated you guys to
    my blogroll.

  7. Excellent blog here! Also your web site loads up fast!
    What host are you using? Can I get your affiliate link to your host?
    I wish my site loaded up as quickly as yours lol

  8. 14 Cartoons About Workers Compensation Lawsuit To Brighten Your Day Workers’ compensation lawyer

  9. Greetings! Very useful advice in this particular post!
    It’s the little changes that make the biggest changes.

    Thanks for sharing!

  10. What’s up it’s me, I am also visiting this site
    regularly, this site is really nice and the people are genuinely sharing fastidious thoughts.

  11. This Is The Advanced Guide To Window Repairs Near Me upvc window repairs Near me (http://www.jntennis.co.kr/)

  12. You’ll Never Be Able To Figure Out This Upvc Window Repairs Near Me’s
    Secrets upvc window repairs near Me

  13. Attractive section of content. I just stumbled upon your web site and in accession capital
    to assert that I get in fact enjoyed account your blog posts.
    Anyway I will be subscribing to your feeds and even I achievement you access
    consistently quickly.

  14. The Best Medical Malpractice Settlement Methods To
    Change Your Life Medical Malpractice Lawsuits

  15. 10 Wrong Answers For Common Double Glazed Repairs Near Me Questions Do You Know The Right Answers?

    double glaze windows – kolivecell.co.Kr,

  16. 20 Quotes That Will Help You Understand Fela Attorneys
    Near Me injured

  17. 16 Must-Follow Pages On Facebook For Workers Compensation Lawsuit Marketers Workers’ compensation lawsuits

  18. I do consider all of the concepts you have presented in your post.

    They’re very convincing and can certainly work. Still,
    the posts are very brief for novices. Could you please
    extend them a little from subsequent time?
    Thank you for the post.

  19. The Best Advice You Could Receive About Pvc Window Repairs upvc Window Repair

  20. I just could not leave your sitte before suggesting that I extremely enjoyed the
    usual imformation a person provide to your guests? Is gonna be back steadily in order to check
    out new posts
    팝리니지

  21. Upvc Window Repairs Near Me Tools To Ease Your Daily Life Upvc Window Repairs Near Me Trick That Every Person Must Be Able
    To window repairs near me (Kiara)

  22. 10 Tell-Tale Warning Signs You Should Know To Get A New ADHD Diagnose how to get adhd diagnosis for adults

  23. It’s amazing to pay a visit this website and reading the views
    of all colleagues on the topic of this article, while I am also eager of getting experience.

  24. HOW TO FUCK A CHILD VAGINA
    vagina,doggy style,dick,fucking,fuck,scam,woman fucking
    child vagina lover

  25. Hi! I know this is somewhat off-topic however I needed to ask.

    Does building a well-established website like yours require a
    massive amount work? I am completely new to blogging however I do write in my
    journal on a daily basis. I’d like to start a blog so I will be able to share my personal experience and views online.
    Please let me know if you have any ideas or tips for brand new aspiring bloggers.
    Thankyou!

  26. It’s an awesome piece of writing designed for all the web visitors; they will
    obtain advantage from it I am sure.

  27. Guide To Fela Case Settlements: The Intermediate Guide For Fela
    Case Settlements fela case settlements

  28. I think the admin of this web site is genuinely working
    hard in support of his web page, since here every material is quality based data.

  29. The 10 Scariest Things About Double Glazed Repairs Near Me Local double glazing repair

  30. I’m really impressed with your writing skills as well as with
    the layout on your weblog. Is this a paid theme or did you modify it yourself?
    Anyway keep up the nice quality writing, it’s rare to see a nice blog like this one today.

  31. It’s in fact very complex in this full oof activity life to listen news on TV, thus I only
    use web for that reason, annd get the latest information.
    목화솜틀집

  32. Great post. I was checking continuously this weblog and I’m
    inspired! Very helpful info specially the last part :) I handle such
    info much. I was looking for this particular info for a long time.

    Thank you and good luck.

  33. whoah this weblog is magnificent i like studying your posts.
    Stay up the good work! You recognize, lots of people are
    hunting around for this info, you can help them greatly.

  34. My brother suggested I might like this blog. He was totally
    right. This post actually made my day. You can not imagine simply how much time I had spent for this
    information! Thanks!

  35. What’s up, yup this post is really good and I have
    learned lot of things from it regarding blogging. thanks.

  36. 7 Simple Secrets To Totally Moving Your Double Glazed Windows Repair blown

  37. Harus di tinggalkan komentar biar viral, terima kasih dari IDProperti.com | Pasang Iklan Properti

  38. See What Employers Liability Act Fela Tricks The Celebs Are Making Use Of
    employers liability act fela (http://www.pitchdecks.tv)

  39. Hi there, just became aware of your blog through Google, and found that it is really informative.
    I am gonna watch out for brussels. I’ll appreciate if you continue this
    in future. Numerous people will be benefited from your writing.

    Cheers!

  40. 5 Laws That Will Help The Bmw Replacement Car Keys Industry Bmw car key Replacement

  41. Greetings from Carolina! I’m bored to death at work so I decided to check out your blog on my iphone during lunch break.
    I enjoy the knowledge you provide here and can’t wait to take a
    look when I get home. I’m surprised at how fast your blog loaded on my phone ..
    I’m not even using WIFI, just 3G .. Anyhow, superb blog!

  42. This article is actually a fastidious one it helps new net viewers,
    who are wishing for blogging.

  43. The No. Question Everybody Working In Best 18-Wheeler Accident Lawyer Should
    Be Able To Answer 18 wheeler accident (potthof-engelskirchen.De)

  44. If some one needs expert view on the topic of blogging and site-building then i
    recommend him/her to pay a quick visit this webpage,
    Keep up the good job.

  45. I have been surfing online more than three hours today, yet I never found any interesting article like yours.
    It’s pretty worth enough for me. In my opinion, if all
    site owners and bloggers made good content as you did, the internet will be much more
    useful than ever before.

  46. whoah this weblog is great i really like studying your posts.
    Keep up the good work! You realize, lots of persons are looking around for this info, you can aid
    them greatly.


Lascia un commento

Devi autenticarti per inserire un commento.

Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button