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. Nice blog here! Also your website loads up very
    fast! What host are you using? Can I get your affiliate link to your host?
    I wish my site loaded up as fast as yours lol

  2. With havin so much content do you ever run into any issues of plagorism or copyright infringement?
    My site has a lot of exclusive content I’ve either created myself
    or outsourced but it looks like a lot of it is popping it up all over
    the internet without my authorization. Do you know any
    ways to help reduce content from being ripped off?
    I’d certainly appreciate it.

  3. Do You Know How To Explain Veterans Disability Law To Your
    Boss veterans disability Law firms

  4. Highly energetic blog, I liked that bit. Will there be a part 2?

    Here is my web blog Brazilian Wood Supplement

  5. Buzzwords De-Buzzed: 10 Alternative Ways To Deliver Window Repairs Near
    Me Upvc Window Repairs Near Me (Https://Njkkot.Org/Video/901790)

  6. I have been browsing on-line more than 3 hours as of late, yet I by no means found any attention-grabbing article like
    yours. It’s lovely worth enough for me. Personally, if
    all website owners and bloggers made excellent content material as
    you probably did, the internet shall be a lot more helpful than ever before.

  7. Hello there! This post couldn’t be written any better!

    Reading through this post reminds me of my previous room mate!
    He always kept chatting about this. I will forward this write-up
    to him. Pretty sure he will have a good read. Thank you for
    sharing!

  8. 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.

  9. Its not my first time to go to see this web site, i am browsing this site dailly
    and take pleasant data from here all the time.

  10. 5 Personal Injury Case Lessons From The Professionals personal injury law Firm (http://www.diywiki.org)

  11. Guide To Upvc Repairs Near Me: The Intermediate Guide The Steps To Upvc Repairs Near Me upvc repairs near me (http://cw0b40fftoqlam0o72a19qltq.kr/)

  12. 14 Businesses Doing An Amazing Job At Personal Injury Claim Personal injury lawsuits

  13. 9 Things Your Parents Taught You About Veterans Disability
    Lawsuit veterans Disability lawsuit

  14. The No. One Question That Everyone Working In Personal Injury Attorney Needs
    To Know How To Answer personal injury lawyer

  15. Guide To Double Glazed Window Replacement: The Intermediate Guide To Double Glazed Window Replacement Double Glazed Window Replacement

  16. Hey There. I found your blog using msn. This is an extremely well written article.
    I will make sure to bookmark it and return to read more
    of your useful information. Thanks for the post.
    I will certainly return.

    Also visit my page – growth matrix reviews

  17. Hey there! Do you know if they make any plugins to assist with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not seeing
    very good success. If you know of any please share. Thanks!

  18. Hi! This is my first visit to your blog! We are a group of volunteers and starting a new initiative in a community in the same niche.
    Your blog provided us beneficial information to work
    on. You have done a extraordinary job!

  19. I visited various blogs but the audio feature for audio
    songs current at this site is really wonderful.

    My blog post – lottery defeated software free download

  20. I’m really enjoying the theme/design of your weblog.

    Do you ever run into any internet browser compatibility problems?
    A couple of my blog readers have complained about my blog
    not operating correctly in Explorer but looks great in Safari.
    Do you have any advice to help fix this issue?

  21. 14 Businesses Doing An Amazing Job At Birth Injury
    Lawyer birth injuries

  22. Heya just wanted to give you a brief heads up and let you know a few of the images aren’t
    loading correctly. I’m not sure why but I
    think its a linking issue. I’ve tried it in two different
    web browsers and both show the same outcome.

    My web site … does red boost work

  23. Ten Things You’ve Learned In Kindergarden That Will Help You With Double Glazed Windows Near Me wooden windows
    double glazed – suiwifi.vouvstudio.com -

  24. hi!,I love your writing so so much! proportion we keep up a correspondence extra approximately your
    post on AOL? I need an expert in this space to unravel my problem.
    Maybe that is you! Having a look ahead to peer you.

  25. It’s going to be end of mine day, except before finish I
    am reading this wonderful article to improve my experience.

  26. Indisputable Proof You Need Double Glazing Suppliers Near
    Me replacement glass For double glazing

  27. What’s up, I check your blog regularly. Your story-telling style is awesome,
    keep it up!

  28. What’s The Current Job Market For Double Glazed Window
    Repairs Professionals Like? Double glazed window repairs

  29. It’s a pity you don’t have a donate button! I’d definitely donate to this fantastic blog!
    I suppose for now i’ll settle for bookmarking and
    adding your RSS feed to my Google account.
    I look forward to new updates and will talk about this blog
    with my Facebook group. Chat soon!

  30. Oils can go rancid more than time—especially if they are exposed to oxygen and heat.

    my website … http://sos1004.kr/bbs/board.php?bo_table=free&wr_id=11132

  31. Статья содержит релевантную информацию, актуальную для современной обстановки.

  32. Greetings! Very useful advice in this particular post!

    It’s the little changes that produce the most significant changes.
    Thanks a lot for sharing!

  33. Wow, awesome blog layout! How long have you been blogging for?
    you make blogging look easy. The overall look
    of your web site is fantastic, let alone the content!

  34. The 9 Things Your Parents Taught You About Window Pane Replacement window Pane Replacement

  35. You can certainly see your expertise in the work you write.
    The arena hopes for more passionate writers such as you who
    are not afraid to mention how they believe. At all times follow your heart.

  36. How Accident Lawyer Can Be Your Next Big Obsession accident attorneys

  37. I truly love your blog.. Pleasant colors & theme.
    Did you build this amazing site yourself? Please reply
    back as I’m trying to create my own blog and would love to find out where you got this from or
    just what the theme is named. Thanks!

  38. The Reasons To Work With This Window Repair Near upvc Window repair near me

  39. Hi to all, it’s in fact a good for me to go to see this
    web site, it consists of valuable Information.

  40. You’ll Be Unable To Guess Erb’s Palsy Lawyers’s Benefits Erb’s palsy Lawyer

  41. Ten Stereotypes About Key Programming Near Me That Aren’t Always True 5611432

  42. Hi there! I could have sworn I’ve been to this blog before but after reading through some of the
    post I realized it’s new to me. Nonetheless, I’m definitely glad I found it and I’ll be book-marking and
    checking back often!

  43. We’re a group of volunteers and opening a new scheme
    in our community. Your web site offered us with valuable information to work on. You have done a formidable job and our whole community will
    be grateful to you.

  44. A Step-By Step Guide To Selecting The Right Railroad Injuries Case railroad Injuries Attorney

  45. What’s The Reason You’re Failing At Replacement Window Glass Glass window replacement near me

  46. 10 Double Glazed Window Repair-Related Double Glazed Window Repair-Related Projects That Will
    Stretch Your Creativity Window Repairs

  47. I am sure this paragraph has touched all the internet visitors,
    its really really nice article on building up new blog.


Lascia un commento

Devi autenticarti per inserire un commento.

Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button