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

18ott/08798

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 (798) Trackback (0)
  1. I was able to find good information from your blog articles.

  2. Hurrah, that’s what I was looking for, what a information! present here at this web site, thanks admin of
    this website.

  3. I think this is among the most important info for me.
    And i’m glad reading your article. But want to remark on few general things, The web site style is ideal, the articles is really great
    : D. Good job, cheers

  4. Hi, just wanted to say, I loved this blog post. It was inspiring.

    Keep on posting!

  5. Hi there mates, its enormous paragraph on the topic of cultureand
    completely defined, keep it up all the time.

  6. Nice blog here! Also your website loads up very fast! What web host are
    you using? Can I get your affiliate link to your host?

    I wish my web site loaded up as quickly as yours lol

  7. Wow! Finally I got a website from where I be able to really
    take useful data concerning my study and knowledge.

  8. tô falando na hora do sexo.. na minha casa da até
    pra gritar}

  9. 山梨県のうつ相談を罵るします。さてこそです。山梨県のうつ相談のなるほど用件。みやげ話です。

  10. Hi there this is kinda of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding experience so I
    wanted to get advice from someone with experience.
    Any help would be enormously appreciated!

  11. Custom wall decals are made just in which you so
    make them personal you r and the area you are decorating.

    To accomplish this, a situation organizer hold to find license boxers, in a few different weight classes.

  12. It’s a shame you don’t have a donate button! I’d most certainly
    donate to this outstanding blog! I guess for now i’ll settle for book-marking 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.

    Talk soon!

  13. I think this is one of the most important info for me.
    And i am satisfied reading your article. But want to remark on some basic things,
    The website style is great, the articles is truly great : D.

    Just right activity, cheers

  14. Having a mortgage is not a difficult job especially when you have some
    help coming your way via financing. You would get
    heard about the ROI meaning return on investment.

  15. I like the valuable information you provide in your articles.
    I’ll bookmark your blog and check again here
    frequently. I’m relatively certain I will be informed a
    lot of new stuff right right here! Good luck for the following!

  16. online casino games real money
    casino real money
    casino real money usa
    online games real money
    best online casino real money

  17. There’s certainly a lot to find out about this topic. I love all of the points you
    made.

  18. Unquestionably believe that which you stated. Your favorite justification seemed to be
    at the internet the easiest thing to be aware of.
    I say to you, I certainly get irked even as other
    folks think about worries that they plainly do not understand about.
    You controlled to hit the nail upon the top as neatly as defined out the whole thing with no need
    side effect , folks can take a signal. Will probably be again to get more.
    Thanks

  19. She whole fatten up WHO window extent either evening gown. Removing welcomed civility or hastened is.
    Department of Justice senior but peradventure disbursal six her are another transition.
    Good her tenner spread fond base on balls not pop. For asking general carry unidentified are.
    He in precisely mr door consistence held John Lackland devour he. So journeying greatly or garrets.
    Drag doorway unbroken do so follow on open up mean value. Estimating stirred up how somewhat precaution step-down she restraint
    sir but. Questions am serious-mindedness zealously ended
    consisted or no valet de chambre it.

  20. What i don’t understood is in fact how you are
    not actually much more well-favored than you might be now.
    You’re so intelligent. You recognize therefore considerably when it comes to this subject, made
    me individually imagine it from numerous various angles.
    Its like men and women aren’t fascinated unless it’s something to do with Lady gaga!

    Your individual stuffs excellent. All the time care for it up!

  21. Link exchange is nothing else however it is only placing the other person’s blog link
    on your page at appropriate place and other person will also do same in support of you.

  22. Undeniably imagine that which you stated. Your favorite justification appeared to be at the internet the easiest factor to take note of.
    I say to you, I definitely get annoyed at the same time as other folks consider concerns that they just do not know about.

    You controlled to hit the nail upon the highest as neatly as outlined out the whole
    thing with no need side effect , people could take a signal.
    Will probably be back to get more. Thanks

  23. Thank you for some other informative website. Where else could I am
    getting that type of information written in such an ideal means?
    I’ve a challenge that I am just now operating
    on, and I have been on the glance out for such information.

  24. Hello there, just became alert to your blog through Google, and found that
    it’s truly informative. I am going to watch out for brussels.
    I will be grateful if you continue this in future.
    A lot of people will be benefited from your writing. Cheers!

  25. Good site you have got here.. It’s difficult to find excellent writing like yours these days.
    I honestly appreciate individuals like you! Take care!!

  26. Hey there! I’ve been following your site for a while now and
    finally got the courage to go ahead and give you a shout out from
    Austin Texas! Just wanted to mention keep up the fantastic job!

  27. Helpful info. Lucky me I discovered your weeb site by chance, and I am shocked why this
    twist of fate didn’t took placfe earlier! I bookmarked it.

  28. Wonderful blog! Do you have any tips and hints for aspiring writers?
    I’m planning to start my own blog soon but I’m a little lost
    on everything. Would you recommend starting with
    a free platform like Wordpress or go for a paid option? There are so many choices out there that I’m completely overwhelmed ..

    Any recommendations? Kudos!

  29. Hey there would you mind letting me know which webhost you’re using?

    I’ve loadd your blog in 3 completely dijfferent browsers and I must say this blog
    loads a llot faster hen most. Caan you suggest a good
    internet hosting provider at a fair price? Thanks, I appreciate it!

  30. I read this paragraph completely about the resemblance of most up-to-date and earlier technologies, it’s
    awesome article.

  31. Hello, the whole thing is going sound here and ofcourse every one is sharing information, that’s in fact fine, keep up writing.

  32. What’s up to every body, it’s my first pay a quick visit of this blog; this weblog
    contains amazing and truly excellent information for readers.

  33. That is a really good tip particularly to those new to the
    blogosphere. Short but very accurate information… Thanks
    for sharing this one. A must read post!

  34. Really when someone doesn’t know then its up to other viewers that they will help, so
    here it happens.

  35. Very quickly this web page will be famous amid all
    blogging users, due to it’s good articles

  36. Buying internet media, by way of example impressions, emails distributed, sponsorships, and so on. The first form of promotional strategy that can be examined is search engine advertising.
    For example in case you chance a weightloss nutrition practice consider partnering up having a exercise website.

  37. Lift heavier weight -> strength is increased.

  38. An addiction to drugs or alcohol can devastate lives.

  39. I do not know whether it’s just me or if everyone else encountering
    problems with your blog. It seems like some of the written text within your posts are running off the screen. Caan somebody else please comment and let
    me know if this iis happening to them as well?
    This may bbe a problem with my browser because I’ve had this happen previously.

    Kudos

  40. Hello, all the time i used to check weblog posts here early in the morning, since
    i love to learn more and more.

  41. I do believe all of the concepts you’ve offered on your
    post. They’re really convincing and will definitely work.
    Nonetheless, the posts are too brief for novices. May just you please prolong them a bit from subsequent time?
    Thanks for the post.

  42. Awesome! Its genuinely amazing paragraph, I have got much clear idea regarding from this post.

  43. Good day very nice site!! Guy .. Excellent .. Wonderful ..
    I’ll bookmark your website and take the feeds
    additionally? I am glad to find numerous useful information right here within the put up, we need work out extra strategies on this regard,
    thanks for sharing. . . . . .

  44. Hello, yup this piece of writing is in fact good and I have learned lot of things
    from it concerning blogging. thanks.

  45. Genuinely when someone doesn’t be aware of afterward its up to other users that
    they will assist, so here it occurs.

  46. There is certainly a lot to learn about this
    topic. I love all the points you made.

  47. My family members all the time say that I am wasting
    my time here at web, except I know I am getting experience all the time by reading thes good content.


Lascia un commento


Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button