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. Asphalt contractorhttp://secretlondonlunchbreaks.blogspot.com/2012/04/wood-pavement.html

  2. 5 Loft Bunk Bed Projects For Every Budget adult loft bed

  3. Hello! I know this is kinda off topic however I’d figured I’d ask.
    Would you be interested in trading links or maybe
    guest authoring a blog post or vice-versa?
    My website addresses a lot of the same topics as yours
    and I believe we could greatly benefit from each other.

    If you are interested feel free to send me an e-mail.
    I look forward to hearing from you! Great blog by the way!

  4. I was curious if you ever considered changing the page layout
    of your blog? Its very well written; I love what youve got to say.

    But maybe you could a little more in the way of content so people could
    connect with it better. Youve got an awful lot of text
    for only having 1 or two images. Maybe you could space it out better?

  5. I just could not leave your website prior to suggesting that I actually loved the usual information a person provide for your guests?
    Is gonna be back ceaselessly to investigate
    cross-check new posts

  6. Have you ever thought about writing an e-book or guest authoring on other sites?
    I have a blog centered on the same subjects you discuss and
    would really like to have you share some stories/information.
    I know my viewers would value your work. If you are even remotely
    interested, feel free to shoot me an e mail.

  7. The 10 Most Scariest Things About Auto Accident Attorneys auto Accident Attorneys

  8. Wonderful site you have here but I was wondering if you
    knew of any community forums that cover the same topics talked about in this article?
    I’d really like to be a part of group where I can get suggestions from other knowledgeable
    people that share the same interest. If you have any recommendations, please let me know.
    Thanks!

  9. For the reason that the admin of this site is working,
    no uncertainty very rapidly it will be well-known, due to its quality contents.

  10. Signagehttps://www.topseos.com/best-pay-per-click-management-companies-in-la-villa-texas

  11. Paintershttps://www.worldfreeads.com/3/posts/1/10-Clothing-Fashion/2079957-Dreamcoat-Mansfield-Painters-https-paintersmansfieldohio-com-.html

  12. Это помогает читателям самостоятельно разобраться в сложной теме и сформировать собственное мнение.

  13. 5 Malpractice Settlement Tips You Must Know About For 2023 Powell Malpractice Lawsuit

  14. Hi, I do believe this is an excellent blog. I stumbledupon it ;
    ) I’m going to revisit yet again since I bookmarked it.

    Money and freedom is the greatest way to
    change, may you be rich and continue to help other people.

  15. Link exchange is nothing else except it is just placing the other person’s blog link on your page at suitable place and other
    person will also do same in favor of you.

  16. For latest news you have to go to see web and on web
    I found this website as a best web site for newest updates.

  17. Thanks for your personal marvelous posting! I genuinely
    enjoyed reading it, you happen to be a great author.
    I will be sure to bookmark your blog and will
    often come back very soon. I want to encourage you to continue your great posts, have a nice evening!

  18. What The 10 Most Worst Wall Electric Fireplace Failures Of All Time
    Could Have Been Prevented lynnbolvin.top

  19. Hey just wanted to give you a quick heads up and let you know
    a few of the pictures aren’t loading properly. I’m not sure why but I think its a linking issue.
    I’ve tried it in two different browsers and both show the same results.

  20. Guide To Personal Injury Attorney: The Intermediate Guide On Personal Injury Attorney Personal Injury Attorney

  21. I have read several just right stuff here. Definitely value bookmarking for revisiting.
    I wonder how so much attempt you place to make this type of fantastic informative
    web site.

  22. Nice post. I was checking continuously this blog and
    I am impressed! Extremely useful info specially the ultimate phase :
    ) I take care of such information a lot. I used to be
    looking for this certain info for a very long time.
    Thank you and best of luck.

  23. Payday Loan Payoff: Anywhere Will Help Relieve Interest Costs 개인회생 대출

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

  25. Three Reasons Why The Reasons For Your Window Repairs Near Me Is
    Broken (And How To Repair It) upvc window repairs near Me

  26. Five Killer Quora Answers On Personal Injury Law personal injury

  27. The History Of Truck Accidents Lawyers Near Me Truck accident law
    firms (elve.hatenadiary.jp)

  28. Is Technology Making Stove Log Burner Better Or Worse?
    913875.xyz

  29. Wow! Finally I got a weblog from where I be able to really get valuable information regarding
    my study and knowledge.

  30. After going over a few of the blog articles on your web site, I really appreciate your technique of blogging.

    I added it to my bookmark website list and will be checking
    back soon. Please check out my web site too and let me know how you feel.

  31. How To Explain Fireplace Surrounds To Your Grandparents lynnbolvin.top

  32. Great post. I was checking continuously this blog and I am
    impressed! Extremely useful information particularly the last part :) I care for such information a
    lot. I was looking for this certain info for a very long time.
    Thank you and best of luck.

  33. After I initially left a comment I appear to have clicked the -Notify me
    when new comments are added- checkbox and from now on each time a comment is added I recieve 4 emails with the same comment.
    Is there a means you can remove me from that service?
    Thanks!

  34. I’m gone to tell my little brother, that he should also pay a quick visit
    this weblog on regular basis to get updated from most up-to-date news.

  35. What’s The Job Market For Double Glazing Repairs Near Me Professionals?
    double glazing repairs near me (Peter)

  36. The Reason Why You’re Not Succeeding At Malpractice
    Attorneys malpractice law Firms

  37. 8 Tips To Enhance Your Sectional Sofa Set Game http://www.4452346.xyz

  38. Here’s A Few Facts About Double Glazed Units Near Me Repair Double Glazing

  39. A Window Repairs Near Me Success Story You’ll Never Believe
    Upvc Window Repairs Near Me

  40. Thanks for sharing your thoughts about Ug 234. Regards

  41. What’s The Current Job Market For Window Doctor Near Me
    Professionals? window doctor near me

  42. Massage Forum

    Great beat ! I wish to apprentice at the same time as you
    amend your web site, how could i subscribe for a weblog site?
    The account aided me a appropriate deal. I were a little bit acquainted of
    this your broadcast offered shiny transparent concept

  43. We are a bunch of volunteers and opening a brand new scheme in our community.
    Your website provided us with useful information to work
    on. You’ve done a formidable activity and our whole
    community will be grateful to you.

  44. Your Family Will Be Grateful For Getting This Slot Demo Zeus Demo Slot zeus

  45. The Most Worst Nightmare About Nissan Qashqai Key Replacement
    Price Be Realized Nissan note key replacement

  46. Your means of explaining everything in this paragraph is genuinely pleasant, every one
    be capable of effortlessly be aware of it, Thanks a lot.


Lascia un commento

Devi autenticarti per inserire un commento.

Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button