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

18ott/0889

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 (89) Trackback (0)
  1. This is very interesting, You are a very skilled blogger.
    I’ve joined your feed and look forward to seeking more of your fantastic post. Also, I’ve shared your website in my social
    networks!

  2. Good day! I simply want to give you a huge thumbs up for the excellent information you have right here
    on this post. I am coming back to your site for more soon.

  3. I am genuinely grateful to the holder of this web page
    who has shared this wonderful paragraph at at this time.

  4. What’s up to all, how is all, I think every one is getting more from this web page, and your views are nice in support of new visitors.

  5. Excellent post. I used to be checking continuously this blog and I am impressed!
    Extremely helpful info particularly the final
    part :) I deal with such information a lot. I was looking for this particular info for a long time.
    Thank you and best of luck.

  6. My cousin advisable I might in this way web site. They was solely suitable. This particular blog post really built my working day. You cannot believe exactly how much time frame I had put together wasted in this information! Thank you so much!

  7. Great post. I was checking constantly this blog and
    I am inspired! Extremely helpful information specifically the closing section :)
    I maintain such info a lot. I used to be looking for this particular info for
    a very long time. Thank you and best of luck.

  8. I’m now not positive where you’re getting your information,
    but good topic. I must spend some time learning much more or understanding more.
    Thank you for great information I was in search of this information
    for my mission.

  9. It’s actually a great and helpful piece of information. I am glad that you shared this helpful info with us. Please stay us up to date like this. Thanks for sharing.

  10. Towing ServiceWinch Out Of Mud Based in dallas Towing is usually comitted to becoming your chosen towing company inside Plano, Tx texas well as the surrounding areas. With the use of highly trained specialists, revolutionary equipment, and logistical technology; our task is to make your inconvenient circumstance better by simply consistently fulfilling our brand promise to be able to restructure the dragging encounter.

  11. I read this post completely about the resemblance of latest and preceding
    technologies, it’s amazing article.

  12. Das Sterbegeld wird seit 2004 nicht mehr von den Krankenkassen gezahlt. Bestattungsgeld wird zwar nicht mehr von der Krankenversicherung gezahlt, aber im Bereich der staatlichen Unfallversicherung ist es noch zu finden. Auch Beamte erhalten keinen Zuschuss mehr von Ihrer Krankenkasse, aber nach dem Todesfall wird den Hinterbliebenen ein Bestattungsgeld nach dem Beamtenversorgungsgesetz gezahlt. Für diese Angehörigen ist eine finanzielle Unterstützung beim Todesfall also gegeben, so dass die Begleichung der Kosten für die Beerdigung gesichert ist. Abgesichert werden kann ein Todesfall noch durch eine Unfallversicherung oder eine Risikolebensversicherung.

  13. s Haiti Relief Bounty Tournament will match all bounty money won and donate the
    total relief efforts to Haiti up to $50,000 and also contribute all tournament
    fees collected. Then he added a ton of third-and-mediums and
    third-and-longs. A team with 2 losses might have lost both games right before the upcoming game, and be
    on a losing streak.

  14. Clash of Clan’s developers additionally lately made an upgrade that would certainly quit individuals from Prize Dumping,” the Inquisitr reported.

  15. The last sneak peek revealed by the Clash of Clans designers comes as the Haste spell.

  16. Quality posts is the important to be a focus for the users to pay a quick visit the site, that’s what this web page
    is providing.

  17. I think that what you said made a bunch of sense.
    But, what about this? suppose you composed a catchier post title?
    I am not saying your information is not solid, however what if you added a headline that grabbed folk’s attention? I mean Touchpad: scorrimento a
    due dita come sul Mac, su qualsiasi portatile Linux
    « CoM – Il Blog di Carlo Becchi
    is kinda plain. You should glance at Yahoo’s home page and
    note how they create news titles to grab people
    interested. You might add a video or a related pic or two
    to grab people excited about everything’ve written. In my opinion, it
    might bring your posts a little livelier.

  18. The Clove cigarette holdser does hold up too its
    claim of reducing tar and nicotine and giving exceptioonal smoking pleasure.

  19. It’s going to be ending of mine day, except before finish I am reading this fantastic post to increase my knowledge.

  20. Thanks to my father who told me concerning this webpage, this webpage is in fact remarkable.

  21. Similarly, some institutes offer discounts to sponsored candidates who come for coaching.

    Junior Study Fellowship is offered to these candidates who are willing to explore
    their profession in academics.

  22. Magnificent beat ! I would like to apprentice while you aend your site, how
    could i subscribe for a blog website? The account helped me a acceptable deal.
    I had been tiny bit acquainted of this your broadcast offered bright clear idea

  23. Patients with phase IV melanoma and elevated LDH have the worst
    prognosis of any phase of the disease.

  24. Il faut compter au minimum 250 à 300€ pour acquérir un robotic performant et qui
    durera dans le temps.

  25. If you are going for most excellent contents like me, only visit this web page all the time since it gives quality contents,
    thanks

  26. Hello there, You have done an excellent job. I’ll definitely
    digg it and personally recommend to my friends. I am confident they’ll be benefited from this web site.

  27. I recently did it and Word didn’t get the photos – and again, Conserve As in to
    the same folder revived it. And so I’m continuing to go with my hypothesis that
    Term forgets the trail towards the photographs folder, which Save As resets it.

    This may be associated with the photographs directory being in the exact same directory
    because the Phrase record, but I havenot attempted any versions on that.

  28. If you want to obtain a good deal from this paragraph
    then you have to apply these strategies to your won webpage.

  29. The Fitbit Cost HR is offered now in Black, Plum, Blue,
    and Tangerine for $a hundred and fifty.

  30. I used to be anticipating that whenever it reached actually
    zero which thread will primarily self implode still I assume this is definitely completely wishful theory.

    May be in the future.

  31. An outstanding share! I’ve just forwarded this onto a co-worker who was doing a little
    research on this. And he in fact ordered me lunch simply because I stumbled upon it for him…
    lol. So let me reword this…. Thank YOU for the meal!!
    But yeah, thanks for spending time to discuss this matter here
    on your site.

  32. Hi it’s me, I am also visiting this web site regularly,
    this website is genuinely nice and the users are in fact sharing
    fastidious thoughts.

  33. It enables media firms to spot unauthorized clips of their material on the internet site, and then either eliminate the clips or leave
    them up and sell advertisements on them.

  34. Dr. Palmer and his spouse Alexis have two lovely children. Though he finds himself far from New York attributable to his wife’s roots in Kimberly, he now embraces the good State
    of Idaho as his dwelling. In his free time he enjoys teaching and enjoying ice hockey, snow and water skiing, boating, and entertaining together with
    his household.

  35. Ⲏi, i think that i saw you visited my website thus i came to “return the favor”.I’m tгying
    to find things to enhance my web site!I suppose its ok to use some of your ideas!!

  36. Furthermore around 20% to 35% of your calorie intake per day should come from dairy merchandise.

  37. We provide the accounting needs of a enterprise
    by giving out the most effective companies we can.

  38. During this component maneuver: enter boots,
    break better proper footwear assaulted chase; Yi, deterioration past case blend room; 48 areas,
    kobe Bryant setup creating; ones SUPER – recent Nike staff brake shoe beauty;
    Golden state change AJ employees…

  39. Link up inside rejoice typically the MLB big apple yankees guru Derek
    Jeter, Jordan business to its important season started a different befit.
    This includes some of air flow Jordan 1 retro and arranged of Jordan airline flight contract.
    Pair of frames of shoes and boots tend to be created our yankees
    our language unit on the basic discolor and white in color, to the enhance using brown firmas
    zīmju, the method of selling price of $one hundred
    forty also $100 severally, in the world inscribed on 20 th of
    the week.


Lascia un commento


Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button