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. We’re a group of volunteers and starting a new scheme in our community.
    Your web site provided us with valuable info to
    work on. You have done an impressive job and our entire community will be grateful to you.

  2. 10 Fundamentals To Know Birth Injury Compensation You Didn’t Learn In School Birth Injury Lawsuits

  3. My partner and I stumbled over here coming from a different web
    address and thought I should check things out.
    I like what I see so i am just following you.
    Look forward to looking into your web page for a second time.

  4. 9 Lessons Your Parents Teach You About Replacement
    Double Glazed Window replacement double Glazed window

  5. I have been surfing on-line more than three hours these days, but I never found
    any interesting article like yours. It is beautiful price enough for me.
    Personally, if all web owners and bloggers made
    just right content material as you did, the web
    will be a lot more useful than ever before.

  6. I am curious to find out what blog platform you happen to be using?
    I’m experiencing some minor security issues with my latest blog and I’d
    like to find something more safe. Do you have any recommendations?

  7. What’s The Job Market For Double Glazed Repairs Near Me Professionals Like?
    double glazed repairs Near me (Mixcat.net)

  8. Hi, i think that i saw you visited my site thus i
    came to go back the desire?.I’m trying to to find things to improve my web site!I suppose its
    adequate to make use of some of your ideas!!

  9. Coba pakmai link ini bang DAFTAR udah Ԁi setiung RTP buat Pragmatic smaa
    PGsoft, gua kerap kali dpt SCATTER Ԁаn perkalian MERAHNYA, apalagi
    akun anyar AUTO GACOR.SPIN QUICK 30Х SPIN TURBO 20X gua coba
    tempo hari bener-bener keluar perkalian Ⅹ100 X250 Χ500,mudah-mudahan keberuntungan nya nular NIH LINK NYA

  10. For example, top rated sites like Zip Recruiter and LinkedIn have millions of month-to-month visitors worldwide.

    My page :: https://new-oleg-pogudin.elegos.su/index.php?action=profile;u=42909

  11. 9 . What Your Parents Taught You About Truck Accident Lawyer Near Me truck accident (p3Terx.com)

  12. With havin so much content and articles do you ever run into any problems of plagorism or copyright infringement?
    My site has a lot of exclusive content I’ve either written myself or outsourced but it appears a lot of it is
    popping it up all over the web without my permission. Do you
    know any techniques to help stop content from being stolen? I’d genuinely
    appreciate it.

  13. I like the helpful info you provide in your articles.

    I’ll bookmark your weblog and check again here frequently.
    I’m quite certain I will learn plenty of new stuff right here!

    Good luck for the next!

  14. You’ll Never Guess This Double Glazed Replacement Glass
    Near Me’s Tricks Double glazed replacement glass

  15. Hello! Ok, i’ll start by saying my name – Luisa Laird.
    Minnesota is his birth place amazing parents live nearby.

    Invoicing is just how I funds from but soon my husband and
    I’m going to start each of our business. To solve puzzles is what
    love carrying it out.

  16. Good day! Do you know if they make any plugins to protect against hackers?
    I’m kinda paranoid about losing everything I’ve worked hard on. Any suggestions?

  17. Good post. I learn something totally new and
    challenging on sites I stumbleupon every day. It’s always exciting to read articles
    from other authors and use a little something from their websites.

  18. Guide To Glass Window Replacement: The Intermediate Guide To Glass Window Replacement Glass window replacement

  19. Nice post. I was checking constantly this blog and I am
    inspired! Very useful info particularly the last part :) I care for such information a lot.
    I was seeking this particular info for a long time.
    Thanks and best of luck.

  20. Acquire Baccarat Winners Technique For Success 프라그마틱 게임

  21. Greetings! Very helpful advice within this post! It’s the
    little changes that will make the greatest changes.
    Thanks a lot for sharing!

  22. Awesome! Its truly amazing article, I have got
    much clear idea concerning from this piece of writing.

  23. Spot on with this write-up, I really believe that this site needs a
    great deal more attention. I’ll probably be back again to
    read through more, thanks for the information!

  24. Nice replies in return of this question with real
    arguments and describing everything on the topic of that.

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

  26. 20 Trailblazers Lead The Way In Double Glazed Window Near Me
    company

  27. Situs yang menyediakan layanan porno ilegal dengan video porno
    anak kecil merupakan ancaman besar bagi keselamatan anak-anak di Indonesia.
    Konten semacam ini melanggar hukum dan merusak moral masyarakat.
    Pemerintah Indonesia secara tegas melarang dan menindak situs-situs tersebut demi melindungi anak-anak dari eksploitasi.

  28. 14 Savvy Ways To Spend Leftover Repairing Upvc Windows Budget upvc window repair

  29. I’ve been surfing online more than 2 hours today, yet I never found any interesting article like yours.
    It’s pretty worth enough for me. Personally, if all website owners and
    bloggers made good content as you did, the net will be a
    lot more useful than ever before.

    Also visit my website: fitspresso reviews

  30. 5 People You Should Be Getting To Know In The
    Workers Compensation Legal Industry Workers’ Compensation Lawsuit

  31. 20 Up-And-Comers To Watch In The Window Glass Replacement Industry window glass replacement near me

  32. 11 Creative Ways To Write About Pushchairs Car Seats Strollers

  33. You’ll Never Be Able To Figure Out This Window Replacement
    Near Me’s Benefits Window replacement near Me

  34. Your means of telling everything in this paragraph is actually nice, every one be
    able to without difficulty understand it, Thanks a lot.

    My blog :: the growth matrix porn

  35. Think You’re Cut Out For Doing Mazda 3 Key Fob? Take This Quiz mazda 626 Key

  36. 10 Mobile Apps That Are The Best For Personal Injury Attorneys Personal Injury Law
    Firm (Classinfoms.Com.Br)

  37. What’s up to every one, it’s truly a nice for me to pay a quick visit this website, it contains precious Information.

  38. What’s up to every body, it’s my first visit of this
    blog; this webpage contains amazing and actually fine
    data for visitors.

  39. Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically
    tweet my newest twitter updates. I’ve been looking for a plug-in like
    this for quite some time and was hoping maybe you would have some experience with something like this.
    Please let me know if you run into anything. I
    truly enjoy reading your blog and I look forward to your new updates.

  40. Hi! Would you mind if I share your blog with my facebook group?
    There’s a lot of folks that I think would really enjoy your content.
    Please let me know. Thanks

  41. water softenerhttps://xploredomains.com/2024-03-08?page=69

  42. What Is Replacement Sash Windows And Why Is Everyone Talking About It?
    Replacement glass in Windows

  43. The 10 Most Scariest Things About Upvc Repairs Near Me Upvc Repairs Near Me (Dhi.Org.Mx)

  44. I loved as much as you’ll obtain carried out right here. The sketch is attractive, your authored subject matter stylish. however, you command get bought an impatience over that you wish be handing over the following. sick undoubtedly come further previously again since precisely the same nearly a lot frequently inside case you protect this increase.


Lascia un commento

Devi autenticarti per inserire un commento.

Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button