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

18ott/081119

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 (1119) Trackback (0)
  1. First of all I would like to say awesome blog! I had a quick question which I’d like to ask
    if you do not mind. I was curious to know how you center yourself and clear your mind before writing.
    I have had a tough time clearing my thoughts in getting my ideas out there.

    I truly do take pleasure in writing but it just seems like the first 10 to 15 minutes tend
    to be wasted just trying to figure out how to begin.
    Any recommendations or hints? Thanks!

  2. Hi there to all, it’s actually a pleasant for me to pay a visit this website, it consists of helpful Information.

  3. I have been exploring for a bit for any high quality articles or blog posts on this sort of area .
    Exploring in Yahoo I ultimately stumbled upon this web
    site. Studying this information So i am happy to show that I’ve an incredibly good uncanny
    feeling I discovered exactly what I needed. I such a lot
    unquestionably will make certain to don?t
    put out of your mind this site and provides it a glance regularly.

  4. What i don’t realize is if truth be told how
    you’re not actually much more smartly-preferred than you may be
    now. You’re very intelligent. You already know therefore considerably in terms of this matter, produced me in my view imagine it from so many various angles.
    Its like women and men don’t seem to be fascinated except it is one thing to accomplish with Lady gaga!
    Your personal stuffs nice. At all times deal
    with it up!

  5. I am really glad to glance at this weblog posts which contains tons of useful
    data, thanks for providing hese kinds of data.

    Feel frese to surdf to my homepage パネライ pam00104 中古

  6. Great post! We will be linking to this great article on our
    website. Keep up the good writingپرورش کودک دوزبانه
    .

  7. Nice weblog here! Additionally your web site rather a lot up fast!
    What web host are you the usage of? Can I am
    getting your associate link for your host? I wish my site loaded up as fast as yours lol

  8. Excellent article. Keep writing such kind of info on your blog.

    Im really impressed by your site.
    Hello there, You have done an excellent job.

    I will definitely digg it and in my opinion suggest to my friends.
    I am sure they’ll be benefited from this web site.

  9. Useful info. Lucky me I discovered your web site by chance, and I’m shocked
    why this accident did not came about earlier! I bookmarked it.

  10. Many thanks for being my personal mentor on this niche.
    I actually enjoyed the article greatly and most of all preferred how you really handled the
    areas I thought to be controversial. You are always very kind towards readers
    really like me and assist me in my existence.

    Thank you.

  11. Appreciation to my father who informed me about this web site, this weblog is actually
    awesome.

  12. Hi to all, since I am truly keen of reading this web site’s post to be updated regularly.

    It includes pleasant material.

  13. I savor, cause I found just what I used to be taking a look for.

    You’ve ended my four day long hunt! God Bless you man. Have a
    nice day. Bye

  14. It’s amazing for me to have a website, which is helpful designed for my experience.

    thanks admin

  15. I’ve learn a few good stuff here. Certainly worth bookmarking for revisiting.
    I wonder how so much attempt you place to create one of these wonderful
    informative website.

  16. Do you mind if I quote a few of your articles as long as I provide credit and sources back to your website?
    My blog is in the exact same area of interest as
    yours and my visitors would truly benefit from some of the information you provide here.
    Please let me know if this ok with you. Regards!

  17. When I initially commented I appear to have clicked the -Notify me when new comments are
    added- checkbox and from now on every time a comment is added I receive four emails with the same comment.

    There has to be a means you are able to remove me from that
    service? Many thanks!

  18. Thanks for another magnificent post. Where else may just anyone
    get that type of information in such an ideal approach of writing?
    I have a presentation next week, and I’m at the search for such info.

  19. This post will help the internet users for creating new weblog or even a weblog from start to end.

  20. I relish, cause I discovered just what I used to be looking for.
    You’ve ended my 4 day long hunt! God Bless you man. Have a great day.

    Bye

  21. Hi there, I desire to subscribe for this weblog to obtain latest updates, so where can i do
    it please help out.

  22. By obtaining the site as well as any pages and posts on this web site, you accept to
    be sure by our Regards to Use and Privacy Policy, as could possibly be amended every once in awhile without warning or responsibilit

  23. It’s remarkable in favor of me to have a website, which is valuable for
    my experience. thanks admin

  24. detectives privados alcalá de guadeira

  25. Hurrah! At last I got a web site from where I can actually get helpful
    facts concerning my study and knowledge.

  26. The site is actually a godsend.

  27. Very good information. Lucky me I came across your site by chance (stumbleupon).

    I’ve saved it for later!

  28. Good post. I learn something totally new and challenging
    on sites I stumbleupon everyday. It will always be interesting to read through articles
    from other authors and use something from other sites.

  29. Elle est aussi particulièrement recommandée pour lutter contre l’anémie et les carences liées à un état de maigreur.

  30. O legado deste excelente recurso continua na aparência dos Manuais Merck nos EUA
    e também Canadá e Manuais MSD no excesso do mundo.

  31. First off I want to say wonderful blog! I had
    a quick question in which I’d like to ask if you do
    not mind. I was curious to find out how you center yourself and
    clear your mind before writing. I’ve had a hard time clearing my thoughts
    in getting my thoughts out. I truly do take pleasure
    in writing however it just seems like the first 10 to 15 minutes are wasted simply just trying to figure out how to begin. Any ideas or
    tips? Thanks!

  32. Il est devenu très essential pour moi d’élever mes enfants
    dans cette optique et de pouvoir répondre à leurs besoin avec des produits naturels, respectueux
    de leur santé.

  33. I like the helpful info you supply in your
    articles. I’ll bookmark your blog and take a look at again right here frequently.
    I am moderately certain I will be informed many new stuff right right here!
    Best of luck for the following!

  34. wonderful issues altogether, you just received a new reader.
    What could you suggest in regards to your publish that you simply made some days ago?
    Any sure?

  35. These joint patterns enable traders pension funds and many others the reason for issuing shares.
    And since it is all boils down once extra however only one motive
    or one other. Conservative investments develop over time I am now very keen to
    pare down debt to £3.8m. Newbies taking their first time
    new HS2 rail hyperlink to take its order. We feel
    that if after time passes the land is worth ten times.
    • in depth analysis is working its approach by means of this
    arguably and it’s buying and selling. It’s additionally a reminder that these stock market analysts
    and do their own homework. As an alternative you should buy stock or commodity over a given stock market they’ve.
    He reckons that we have now let down others due to their potential for bettering strategic actions.
    Whenever it hikes Nifty goes down inside a sure worth but the stock markets.
    Whether or not you’re a seasoned professional deciding which
    belongings to avoid wasting the markets through a single mutual fund.
    Although corrections are commonplace bull markets typically
    endure hiccups with one or two years. Once in round 25 years
    at the statistical knowledge of a company’s belongings just isn’t the reply.
    At the moment is not any approach the general public can get his proposed 1.9 TRILLION plan.

  36. Đặc điểm của giống đàn hương Trắng Ấn Độ.

    Giống cây đàn hương là một trong những cây gỗ có chiều cao từ 10 đến 15
    m. Là một trong những giống cây bán ký sinh khi có dễ cháy bán trên một cây chủ.
    Cây đàn hương là một trong những loại cây xanh nhỏ
    có hệ thống cành rủ xuống.
    Thổ nhưỡng khí hậu và nhiệt độ trồng cây đàn hương
    Thổ nhưỡng và địa hình để trồng cây đàn hương.

    Địa hình: cây đàn hương là một trong những loại cây không thể chịu được úng nên những vùng đất có độ thoát nước thấp thì bà
    có lưu ý không nên trồng cây đàn hương.
    Trồng cây đàn hương đất phải thông thoáng và và
    có nắng để cây phát triển tốt nhất.

    Thổ nhưỡng: ngoài độ màu mỡ trong đất thì đất trồng cây đàn hương cần giàu Fe, P, K và độ pH dao
    động từ 5 đến 6. Quanh năm bà con nên bón phân hữu
    cơ cho đất để tăng độ tơi xốp cũng
    như hệ thống vi sinh vật phát triển sẽ giúp cho bộ rễ cây đàn hương tốt
    hơn.

    Nhiệt độ: Cây có thể phát triển tốt từ
    từ biên độ nhiệt 15 đến 38 độ C

    Thu hoạch cây đàn hương từ ừ 4 đến 6 năm để có thể cho thu hoạch hoa quả.

  37. เว็บทางเข้า AECBET ผู้ให้บริการพนันออนไลน์ครบวงจร ที่จะขึ้นเป็นอันดับ 1 ของทวีปเอเชีย เพราะอะไรเราถึงมั่นอกมั่นใจและวางเป้าสูงขนาดนั้น นั่นเป็นเพราะว่าพวกเราให้ความใส่ใจกับทุกความเชื่อมั่น สร้างความมั่นใจ ทุกบริการ ทุกภาพลักษณ์ ทุกการดูแลและรักษาฐานลูกค้า พร้อมทั้งเปิดรับลูกค้าใหม่ๆเสมอเพราะฉะนั้น พวกเราจะไม่หยุดปรับปรุงตราบจนกระทั่งกำลังจะถึงเป้าหมาย แม้แต่ถึงเป้าแล้วพวกเราก็จะ ขยายความสามารถตนเองขึ้นไปอีก

  38. Quality posts is the important to interest the people to
    go tto see the website, that’s what this web site is providing.

    web page

  39. I take pleasure in, lead to I found just what I used to be having a look for.
    You have ended my four day long hunt! God Bless you man.
    Have a great day. Bye

  40. En ese marco, las diferentes sedes del event mostrarán contenido para
    una audiencia mundial, que podrá seguir un evento en de manera virtual desde
    la web de la institución.

  41. I read this post fully regarding the comparison of most up-to-date and earlier technologies, it’s amazing article.

  42. You could definitely see your skills within the work you write.
    The arena hopes for more passionate writers such
    as you who are not afraid to say how they believe.

    All the time follow your heart.

  43. Remarkable! Its really amazing article, I have got
    much clear idea on the topic of from this article.

  44. For most up-to-date information you have to pay a quick visit web and on world-wide-web I found this site as a finest web page for hottest updates.

  45. excellent post, very informative. I’m wondering why the other experts of this sector don’t notice this.

    You should continue your writing. I am sure, you have a great readers’ base already!

  46. I used to be recommended this website through my cousin. I’m
    now not sure whether this post is written by means of him as no one
    else realize such specific approximately my difficulty. You’re incredible!
    Thanks!

  47. Hi everyone, it’s my first pay a quick visit at this website, and piece of writing is actually fruitful designed for me, keep up posting these types of articles or reviews.

  48. I was wondering if you ever considered changing the page layout
    of your blog? 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 one or 2 pictures. Maybe you could space it out better?

  49. Link exchange is nothing else but it is just placing the other person’s weblog link
    on your page at proper place and other person will also do same for you.

  50. My coder is trying to persuade me to move to
    .net from PHP. I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using
    Movable-type on a variety of websites for about a year and am worried about switching to
    another platform. I have heard excellent things about blogengine.net.
    Is there a way I can import all my wordpress
    posts into it? Any help would be really appreciated!


Lascia un commento


Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button