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 really like your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to do it for you?
    Plz respond as I’m looking to design my own blog and would like to know where u got this from.
    thanks a lot

  2. Hi there would you mind stating which blog platform you’re working with?
    I’m going to start my own blog soon but I’m having a hard time deciding between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design seems different then most
    blogs and I’m looking for something unique.
    P.S Apologies for getting off-topic but I had to
    ask!

  3. The 10 Scariest Things About Railroad Injuries Attorneys railroad injuries attorney

  4. I constantly emailed this blog post page to all my associates, since
    if like to read it next my friends will too.

  5. Amazing! Its really awesome paragraph, I have got much clear idea
    about from this post.

  6. Car Accident Attorneys The Process Isn’t As
    Hard As You Think Car accidents

  7. 9 Lessons Your Parents Taught You About Citroen Ds3
    Key Fob Replacement Key fob Replacement

  8. You’ll Never Be Able To Figure Out This Replacement Upvc Door Panels’s Tricks Replacement Upvc Door Panels

  9. Ten Upvc Window Repairs That Really Make Your Life
    Better Window repairs

  10. Hello Dear, are you genuinely visiting this web page regularly, if so
    afterward you will absolutely take fastidious knowledge.

  11. Keep on working, great job!

  12. Sash Window Replacement Tools To Ease Your Daily Life Sash Window Replacement Trick That Every
    Person Should Learn sash window replacement

  13. Write more, thats all I have to say. Literally, it seems as though
    you relied on the video to make your point. You clearly know what youre talking about,
    why throw away your intelligence on just posting
    videos to your site when you could be giving us something informative to read?

  14. I all the time used to read paragraph in news papers but now as I am a user
    of web so from now I am using net for articles or reviews, thanks to
    web.

    Feel free to visit my webpage … red boost reviews

  15. Hi! I’ve been following your web site for a while
    now and finally got the bravery to go ahead and give you a shout
    out from Dallas Tx! Just wanted to tell you keep up the excellent work!

  16. Hurrah, that’s what I was searching for, what a material!
    present here at this web site, thanks admin of this web page.

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

  18. How Much Do Railroad Injuries Claim Experts Earn? attorneys

  19. 20 Trailblazers Leading The Way In Car Accident Claim Car Accident Lawsuit

  20. The 10 Most Scariest Things About Replacement Glass For
    Windows Replacement glass for windows

  21. This is a topic which is close to my heart…

    Best wishes! Exactly where are your contact details though?

  22. Nine Things That Your Parent Teach You About ADHD Diagnosis UK Adults adhd diagnosis Uk

  23. My brother suggested I might like this blog.
    He was entirely right. This post truly made my day.
    You can not imagine simply how much time I had spent for this info!
    Thanks!

  24. Hi, this weekend is good in support of me, for the reason that this point in time i am reading this fantastic
    informative piece of writing here at my house.

  25. Amazing things here. I am very satisfied to peer your post.
    Thank you a lot and I’m looking ahead to touch you.
    Will you please drop me a mail?

  26. Hello there! Do you know if they make any plugins to safeguard against
    hackers? I’m kinda paranoid about losing everything I’ve worked hard on.
    Any tips?

  27. Sugar Defender is a popular dietary supplement that claims to help regulate blood https://sugardefenderblood.com levels and support overall health.

  28. Thank you for the good writeup. It in fact was a amusement account it.

    Look advanced to more added agreeable from
    you! By the way, how could we communicate?

    Also visit my web blog brazilian wood erection pills

  29. If you are going for finest contents like me, only pay a
    quick visit this site all the time for the reason that it
    provides quality contents, thanks

  30. 15 Fun And Wacky Hobbies That’ll Make You More Successful At Cerebral Palsy Law firms

  31. My spouse and I stumbled over here from a different page and thought I might check things out.
    I like what I see so now i’m following you. Look forward to looking over your web
    page for a second time.

  32. The Unknown Benefits Of Motor Vehicle Settlement motor Vehicle accident

  33. Here is a brief look at some significant sports leagues and when to appear for the most effective betting promotions and bonuses.

    My page … https://locademy.co/blog/index.php?entryid=160175

  34. Guide To Fela Case Settlements: The Intermediate
    Guide On Fela Case Settlements Fela Case Settlements

  35. A Look At The Good And Bad About Double Glazed Window Repair
    window repairs near me (Roger)

  36. 5 Killer Quora Answers On Auto Accident Attorneys auto accident attorneys; Elouise,

  37. The No. One Question That Everyone Working In Dangerous Drugs Should Be Able To Answer Dangerous Drugs Law Firm

  38. I’m not that much of a internet reader to be honest but your sites really nice, keep it up!
    I’ll go ahead and bookmark your site to
    come back later. All the best

  39. 5 Killer Quora Answers To Replacement Double Glazing Units Near Me replacement double glazing units (Jodie)

  40. I got this web page from my buddy who informed me about this website and now this time I
    am browsing this web page and reading very informative posts at this place.

  41. 5 Killer Quora Answers On Double Glazed Window Repairs Near Me Double glazed window Repairs near me

  42. Everything You Need To Be Aware Of Truck Accident Compensation truck Accident attorney

  43. 10 Apps To Help You Manage Your Boat Accident Litigation Boat accident lawsuit

  44. Watch Out: How Double Glazing Windows Repairs Is Taking Over And What You Can Do About It double glazed window repairs near me

  45. See What Mesothelioma Law Firm Tricks The Celebs Are Using mesothelioma law – Emilio -


Lascia un commento

Devi autenticarti per inserire un commento.

Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button