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. Keep on working, great job!

  2. Online Shopping Uk Electronics Tools To Make Your Daily Lifethe One
    Online Shopping Uk Electronics Technique Every Person Needs
    To Be Able To Online Shopping Uk Electronics

  3. Why The Fha 203K Mortgage Loan Program One More Called The
    But Loan 무직자 대출 (fwme.eu)

  4. What Is Upvc Doors Repair’s History? History Of Upvc Doors
    Repair upvc door fittings (farmarm.net)

  5. Qué excelentemente estructurado está tu texto; es un placer repasar algo tan bien estructurado.

  6. Heya! I know this is somewhat off-topic but I had to ask. Does building a well-established website like yours take a large amount of work? I’m brand new to blogging but I do write in my diary on a daily basis. I’d like to start a blog so I can easily share my personal experience and thoughts online. Please let me know if you have any ideas or tips for new aspiring bloggers. Thankyou!

  7. 20 Double Glazed Windows Repairs Websites That Are Taking The Internet By
    Storm window repair [Mack]

  8. We absolutely love your blog and find most of your post’s to be exactly I’m looking for.

    Does one offer guest writers to write content in your case?

    I wouldn’t mind writing a post or elaborating on a number of the subjects you write regarding here.

    Again, awesome blog!

  9. Great weblog here! Also your site loads up fast!
    What host are you the usage of? Can I am getting your associate link
    to your host? I desire my site loaded up as quickly as yours lol

  10. Pretty section of content. I just stumbled upon your web site and in accession capital to
    assert that I acquire actually enjoyed account
    your blog posts. Any way I’ll be subscribing to your feeds and even I achievement you access
    consistently quickly.

  11. Just want to say your article is as astonishing. The clearness in your post is just
    cool and i can assume you are an expert on this subject.
    Well with your permission allow me to grab your feed to
    keep updated with forthcoming post. Thanks a million and please
    carry on the enjoyable work.

  12. What Is Semi Truck Attorney? History Of Semi Truck Attorney Semi Truck Accident Attorney (Avtotok24.Ru)

  13. Unquestionably believe that which you stated. Your favorite reason seemed
    to be on the web the easiest thing to be aware of. I say to you, I certainly get irked while people think
    about worries that they plainly don’t know about. You managed
    to hit the nail upon the top and defined out the whole thing without having side effect ,
    people can take a signal. Will probably be back to get more.
    Thanks

  14. This is a topic that’s close to my heart… Thank you! Exactly where are your contact details though? http://Hjinterior.kr/bbs/board.php?bo_table=free&wr_id=299870

  15. Fantastic beat ! I would like to apprentice whilst you amend your website, how can i subscribe for a blog site?
    The account aided me a applicable deal. I had been a little bit familiar of this your broadcast provided bright
    clear idea

  16. hi!,I like your writing so so much! share we communicate more approximately your article on AOL?
    I require an expert on this house to resolve my problem.
    Maybe that is you! Looking forward to see you.

  17. I am curious to find out what blog platform you happen to be utilizing?
    I’m experiencing some minor security problems
    with my latest site and I would like to find something more safeguarded.
    Do you have any recommendations?

  18. Its such as you read my mind! You seem to grasp a lot approximately
    this, such as you wrote the e book in it or something.
    I feel that you simply could do with some % to power
    the message home a bit, but other than that, this is excellent blog.
    A great read. I will certainly be back.

  19. Hey this is kind of of off topic but I was wanting to know if blogs use WYSIWYG editors or if you
    have to manually code with HTML. I’m starting a blog soon but have no coding expertise so
    I wanted to get guidance from someone with experience.
    Any help would be enormously appreciated!

  20. Wonderful beat ! I would like to apprentice while you amend your web site, how could i subscribe for a blog
    website? The account aided me a acceptable deal. I had been a little bit
    acquainted of this your broadcast provided bright clear idea

    Also visit my site – Lottery Defeater

  21. Hi there to all, the contents existing at this web site are in fact
    amazing for people knowledge, well, keep up the nice
    work fellows.

  22. Why You Should Focus On Improving Narrow American Fridge Freezer zackfoxworth.top

  23. Three Reasons Why 3 Reasons Why Your Bunk Beds Online Is Broken (And
    How To Fix It) Edda Fay

  24. 12 Companies Leading The Way In Repairs To Double Glazed Windows
    Window Repair

  25. 5 Clarifications On Treadmill That Folds Flat Zack Foxworth

  26. I like the helpful info you provide in your articles.
    I’ll bookmark your blog and check again here frequently. I am rather sure I’ll learn many
    new stuff proper right here! Good luck for the following!

  27. Ridiculous quest there. What occurred after? Thanks!

  28. 7 Easy Tips For Totally Moving Your Semi Truck Legal Semi truck accidents

  29. 15 Presents For The 18-Wheeler Wreck Lawyer Lover In Your Life accident

  30. I’m not sure why but this blog is loading extremely slow for me.
    Is anyone else having this problem or is it a issue on my
    end? I’ll check back later and see if the problem still exists.

  31. Howdy! Do you know if they make any plugins
    to assist with Search Engine Optimization? I’m trying to get my blog to
    rank for some targeted keywords but I’m not seeing very good gains.
    If you know of any please share. Many thanks!

  32. Excellent article. Keep writing such kind of information on your page.
    Im really impressed by it.
    Hey there, You have done a great job. I’ll certainly digg it and in my
    view recommend to my friends. I am sure they’ll be benefited
    from this web site.

  33. I was wondering if you ever thought of changing
    the layout of your website? Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people could connect
    with it better. Youve got an awful lot of text for
    only having 1 or 2 pictures. Maybe you could space it out better?

  34. 10 Best Mobile Apps For Personal Injury Attorney personal injury attorneys

  35. Thanks for your marvelous posting! I definitely enjoyed reading it, you may be a great author.I will make sure to bookmark your blog and may come back at some point.
    I want to encourage you to definitely continue your great posts, have a nice afternoon!

    my web blog … lottery defeater software review

  36. What Experts In The Field Of Asbestos Claims After Death Want
    You To Be Able To 9363280.xyz

  37. I visited many blogs but the audio quality for audio songs present
    at this web site is truly fabulous.

  38. Very great post. I just stumbled upon your blog and wanted to say that I have truly loved surfing
    around your blog posts. After all I’ll be subscribing to your feed and I’m hoping you
    write once more soon!

  39. The 9 Things Your Parents Teach You About Glass Replacement Windows Glass replacement window

  40. Excellent blog here! Also your site 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

  41. How To Explain Boot Scooter To Your Mom arlennizo

  42. What Personal Injury Case Experts Want You To Be Educated Personal injury lawyers

  43. Hi! Do you know if they make any plugins to help 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.
    Cheers!

  44. Its like you read my mind! You appear to know a lot about
    this, such as you wrote the e book in it or something.
    I think that you could do with some percent to force the message house a
    bit, however other than that, this is fantastic blog.
    A great read. I’ll certainly be back.

  45. Wonderful blog you have here but I was curious if you knew of any user
    discussion forums that cover the same topics talked about in this article?
    I’d really love to be a part of group where I can get opinions from other experienced people that share
    the same interest. If you have any recommendations, please let me know.
    Thank you!

  46. I’m gone to convey my little brother, that he should also pay a visit this website on regular basis to get updated from
    most recent gossip.

  47. สวัสดีครับ! ฉันได้อ่านบทความของคุณเกี่ยวกับคาสิโนทดลองด้วยความพึงพอใจมากมาย เป็นที่ท้าและน่าสนใจที่จะเห็นว่าการพนันออนไลน์นั้นมีมากมายประเด็นแล้วก็ประโยชน์เยอะมากที่ผู้คนสามารถได้รับต่อจากนั้น

    คาสิโนออนไลน์เว็บตรง168ไม่เฉพาะแต่เป็นการพรีเซนเทชั่นเกมที่น่าสนใจอย่างเช่น เว็บเกมสล็อต รูเล็ต ทดลอง
    และก็ไพ่ แต่ยังเป็นแหล่งที่สะดวกที่ผู้คนสามารถเข้าถึงได้ตลอดเวลา ไม่ว่าจะเป็นผ่านคอมพิวเตอร์หรือโทรศัพท์มือถือ ทำให้การเล่นเกมเป็นเรื่องที่ไม่ยากและสบายมากขึ้น

    ฉันเห็นจุดสำคัญสำหรับในการเล่นคาสิโนออนไลน์ ที่ดีที่สุดที่มีความปลอดภัยและก็น่าไว้วางใจ เพราะมีระบบระเบียบการคลังที่ปลอดภัยและมีการจัดแจงด้านความปลอดภัยอย่างเหมาะสม เพื่อให้ผู้เล่นได้รับความแน่ใจในการใช้บริการ

    ขอบคุณสำหรับเพื่อการแบ่งปันข้อมูลน่าดึงดูดเกี่ยวกับคาสิโนออนไลน์นี้ครับผม หวังว่าจะได้พบกันอีกในบทความต่อไป!

    ด้วยความนับถือ,

  48. I was suggested this web site by my cousin. I am
    not sure whether this post is written by him as no one else know such detailed about my
    trouble. You are wonderful! Thanks!


Lascia un commento

Devi autenticarti per inserire un commento.

Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button