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 constantly spent my half an hour to read this weblog’s posts every
    day along with a mug of coffee.

    Also visit my blog post jungle beast pro reviews

  2. Good post. I am experiencing a few of these issues as well..

  3. Spot on with this write-up, I truly believe this amazing site needs a lot more attention. I’ll probably be back again to read
    more, thanks for the info!

  4. I am extremely inspired together with your writing skills as well as with the structure for your blog.
    Is this a paid subject or did you customize it yourself?
    Anyway keep up the nice quality writing, it is rare to
    look a nice blog like this one nowadays..

  5. I believe this is among the so much important
    info for me. And i’m glad reading your article.
    However should remark on few general issues,
    The website style is great, the articles is truly excellent : D.
    Good job, cheers

  6. Selamat Datang di RAJA88WIN – Platform Terbaik untuk Slot Online dengan RTP Tinggi!

    Nikmati Kemenangan Lebih Besar dengan RTP Tinggi di RAJA88WIN
    Apakah Anda mencari platform judi online dengan peluang menang lebih besar?

    RAJA88WIN adalah tempat yang tepat untuk Anda! Kami menawarkan berbagai permainan slot online dengan RTP (Return to
    Player) tinggi, yang berarti Anda memiliki peluang lebih
    baik untuk memenangkan hadiah besar.

    RAJA88WIN: Pilihan Terbaik untuk Slot Online dengan RTP Tinggi

    Sweet Spin 1000

    Rtp Unggul Slot Thailand Bermain di RAJA88 WIN

    Nikmati persentase RAJA88 WIN pengembalian JP yang lebih tinggi pada permainan slot kami, memberikan Anda peluang menang yang lebih besar.

  7. I do accept as true with all of the ideas you’ve offered
    to your post. They’re very convincing and can definitely work.
    Still, the posts are too brief for novices. May just you please prolong them a little from subsequent
    time? Thank you for the post.

    Also visit my webpage: potentstream review

  8. Ten Upvc Windows And Doors That Will Improve Your Life Upvc
    Door Replacement Panels [Http://Www.Diywiki.Org]

  9. Hi to all, how is all, I think every one is getting more from this web site, and your views are
    fastidious in favor of new viewers.

  10. Hi there, i read your blog from time to time and i own a similar one and i was just curious if you get
    a lot of spam feedback? If so how do you stop it, any plugin or anything you can recommend?
    I get so much lately it’s driving me insane so any assistance is very much appreciated.

  11. You actually make it seem really easy together with your presentation however I to find this topic to be really one thing which I believe I might never understand.
    It seems too complicated and extremely vast for me.
    I’m taking a look ahead in your subsequent publish, I will try to get the dangle of it!

  12. great issues altogether, you just received a brand new reader.
    What could you suggest in regards to your submit that you made a few days in the past?
    Any sure?

  13. The Most Underrated Companies To Watch In Spare Car Key Maker Industry http://www.99811760.xyz

  14. Ten Things You Learned At Preschool That’ll Help You Understand
    Boat Accident Attorney Boat accident lawyer

  15. 3 Ways The Window And Door Company Near Me Can Affect Your Life Near By

  16. It’s going to be ending of mine day, however before finish I am reading
    this impressive paragraph to increase my experience.

  17. 10 Reasons Why People Hate Upvc Window Repairs Upvc Window Repairs
    upvc window Repairs near me

  18. Pretty portion of content. I simply stumbled upon your website and in accession capital to assert
    that I get actually loved account your weblog posts.
    Any way I’ll be subscribing for your augment and even I achievement you
    get admission to persistently rapidly.

  19. 20 Trailblazers Lead The Way In Double Glazing Showrooms Near Me local double glazing Companies

  20. Seriously loads of fantastic data.

    Have a look at my blog post; https://Grasscuttersexpress.com/

  21. What’s up everyone, it’s my first visit at this site, and post is really fruitful
    for me, keep up posting these articles. https://www.Valeriarp.Com.tr/index.php?action=profile;u=18720

  22. A Step-By-Step Guide To How Much Are Spare Car Keys
    http://www.99811760.xyz

  23. I take pleasure in, lead to I found exactly what
    I used to be having a look for. You’ve ended my 4 day long
    hunt! God Bless you man. Have a great day.
    Bye

  24. Remarkable! Its genuinely remarkable paragraph, I have got much clear idea
    concerning from this post.

  25. Waxing Unpleasant – Solutions To Frequently Asked Questions
    프라그마틱 환수율 – hws.org -

  26. Some Of The Most Common Mistakes People Make When Using
    Drip Coffee Pot http://www.3222914.xyz

  27. An interesting discussion is worth comment. I believe that you need
    to wrtite more on this subject, it might not be a taboo
    suibject but generally people do not discuss such topics.
    To the next! All the best!!
    뱅크카지노 주소

  28. Quality articles or reviews is the important to be a focus for tthe visitors too go to see the website, that’s what
    this website is providing.
    중고화물차

  29. Amazing blog! Is your theme custom made or did you download
    it frtom somewhere? A theme like yours with a few simple adjuatements
    wouuld really make myy blog stand out. Please let me know where you got your theme.
    Cheers

    My website – electronic component test lab

  30. Link exchange is nothing else but it is only placing the other person’s
    blog link on your page at suitable place and
    other person will also do similar in favor of you.

  31. An Double Glazed Windows Repair Success Story You’ll Never Believe double glazed window repairs near Me (24.staikudrik.com)

  32. cakhiaq.tv website nha cai lua dao nguoi choi. Day la mot trang bao phap luat ma lai gioi thieu ve cac keo bong da, dat cuoc khong uy tin cho nguoi choi.

  33. I do not even know how I ended up here, but I thought this
    post was good. I do not know who you are but definitely you are going to a famous blogger if you aren’t already ;)
    Cheers!

  34. I read this piece of writing fully on the topic of the resemblance of
    newest and previous technologies, it’s awesome article.

  35. A Step-By-Step Instruction For Medical Malpractice Legal Medical malpractice Lawsuits

  36. Sofa Bed Sectional Sofa It’s Not As Hard As You Think
    Sleeper Sectionals

  37. You’ll Never Guess This Upvc Window Repair Near Me’s Benefits upvc Window repair near me

  38. Asking questions are really pleasant thing if you
    are not understanding something fully, however this piece of writing provides nice
    understanding even.

  39. I all the time emailed this blog post page to all my contacts,
    since if like to read it after that my friends will too.
    synthetic data (Keisha)

  40. Fіrst off I would like to sɑy superb blog! I haad a quick question whіch I’d ⅼike to
    ask if youu do not mind. I was curious to know how you
    center yourseⅼf and clear your head befoгe writing.
    I have had tгokuble clearing mүy thoughts in getting my thoughts out.
    I truly ddo enjoy writing howeѵer it just seems like the first
    10 to 15 minutes are uѕually lost simply just trying to figure out how to begin. Αny suggestions or tips?
    Many thanks!

  41. Unexpected Business Strategies That Helped Double Glazing Doors Near Me To
    Succeed double glazing windows Handles

  42. Erotik Forum

    Asking questions are actually fastidious thing if
    you are not understanding anything completely, however this
    post presents pleasant understanding even.

  43. How To Find The Perfect Replacement Windows On The Internet Replacement Window Near Me

  44. I’m really loving the theme/design of your website.
    Do you ever run into any web browser compatibility problems?
    A number of my blog readers have complained about my website not operating correctly
    in Explorer but looks great in Opera. Do you have any recommendations to help fix
    this issue?

    Also visit my web blog: video wall panels

  45. For most up-to-date information you have to visit the web and
    on internet I found this web page as a finest web page for hottest
    updates.

  46. Why Do So Many People Are Attracted To Spare Car Keys Near Me?
    99811760.xyz


Lascia un commento

Devi autenticarti per inserire un commento.

Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button