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. This web site really has all the information I wanted concerning this subject and didn’t know who to ask.

  2. Thank you for being my personal lecturer on this issue.
    My partner and i enjoyed the article quite definitely and most of all
    preferred the way you handled the aspect I considered to be
    controversial. You’re always incredibly kind to readers like me
    and assist me in my life. Thank you.

  3. 15 Interesting Facts About Malpractice Claim The Words You’ve
    Never Learned Malpractice Lawyer

  4. You’re so cool! I do not think I’ve truly read through something like this before.
    So great to find somebody with some genuine thoughts on this topic.

    Seriously.. thanks for starting this up. This web site is one thing
    that’s needed on the internet, someone with a little originality!

  5. Useful information. Fortunate me I discovered your site unintentionally, and I’m shocked why this accident did
    not took place in advance! I bookmarked
    it.

    Also visit my website: Lottery Defeater Software

  6. It’s very effortless to find out any topic on web as compared to textbooks, as I found
    this piece of writing at this site.

  7. You can certainly see your enthusiasm in the work you write.
    The sector hopes for more passionate writers such as you who aren’t afraid to say
    how they believe. Always go after your heart.

  8. Sextreffen

    I’m truly enjoying the design and layout of your site.
    It’s a very easy on the eyes which makes it much more pleasant
    for me to come here and visit more often. Did you hire out a designer to create
    your theme? Great work!

  9. Guide To Upvc Windows Near Me: The Intermediate Guide In Upvc
    Windows Near Me upvc windows near me

  10. obviously like your web-site but you have to check the spelling on several of your posts.
    Many of them are rife with spelling problems and I in finding it very bothersome to inform the reality however I will certainly come again again.

    Also visit my page … เว็บวาไรตี้

  11. What To Focus On When The Improvement Of Fela Railroad Settlements Lawyer

  12. I always used to study piece of writing in news papers but now
    as I am a user of net thus from now I am using net for articles, thanks to
    web.

    Here is my site; เว็บความรู้

  13. If some one needs expert view regarding running a blog after that i suggest him/her to
    pay a quick visit this weblog, Keep up the good work.

  14. Your style is very unique in comparison to other folks I have read stuff from.
    I appreciate you for posting when you have the opportunity,
    Guess I will just book mark this web site.

  15. Excellent blog right here! Additionally your website
    so much up fast! What host are you the use of? Can I am getting your affiliate
    hyperlink in your host? I wish my web site loaded up as quickly as yours lol

  16. A Step-By-Step Guide To Accident legal

  17. Hi there, just became alert to your blog through Google, and found that
    it is really informative. I am going to watch out for brussels.

    I’ll be grateful if you continue this in future. Many people will be benefited from your writing.
    Cheers!

    Feel free to visit my blog; is fitspresso coffee a scam

  18. I’m not that much of a internet reader to be honest but your sites really nice,
    keep it up! I’ll go ahead and bookmark your website to come back later on. Cheers

  19. This post presents clear idea in avor of the new viewers of
    blogging, that genuinely how to do blogging and site-building.

    온라인 바카라 사이트 공식 주소

  20. Everything is very open with a precise description of the
    challenges. It was truly informative. Your site is very helpful.
    Thank you for sharing!

  21. Sash Window Replacement Tips To Relax Your Daily Life Sash Window Replacement Technique Every Person Needs To Be Able To sash window Replacement

  22. Machines Coffee’s History Of Machines Coffee In 10 Milestones Smart coffee machine

  23. What NOT To Do When It Comes To The Double Glazing Supplies Near Me Industry
    locks

  24. I am in fact grateful to the holder of this website who has shared this impressive article at at this time. http://Clean-ace8.com/bbs/board.php?bo_table=free&wr_id=346060

  25. How Much Can Car Accident Lawsuit Experts Earn? legal

  26. 5 Killer Quora Answers On Window Replacement Near Me window replacement Near me, lc56.39103211.cn,

  27. Hello to every , since I am in fact eager
    of reading this webpage’s post to be updated regularly.
    It contains pleasant information.

  28. The Reason Headphones Over Ear Is Fast Becoming
    The Hottest Trend Of 2023 http://www.3222914.xyz

  29. You’ll Never Guess This Ferrari Smart Key’s Benefits ferrari smart key

  30. How To Make A Successful Truck Accident Lawyers Near Me Tutorials From Home Truck Accident attorney

  31. Double Glazing Installers Near Me Tools To Help You Manage Your Daily Life Double
    Glazing Installers Near Me Trick That Should Be Used By Everyone Learn double Glazing installers near me

  32. Fastidious answers in return of this matter with firm arguments and telling the whole thing on the topic of that.

    my blog: the growth matrix

  33. 10 Things People Get Wrong Concerning Birth Defect Claim Birth defects

  34. I do believe all of the ideas you’ve introduced for your post.
    They’re very convincing and can certainly work. Nonetheless, the posts are too brief for novices.
    May you please lengthen them a little from subsequent time?
    Thanks for the post.

  35. You really make it seem so easy with your presentation but I find this topic to be actually something which I think I would never understand.
    It seems too complex and very broad for me. I
    am looking forward for your next post, I’ll try to get
    the hang of it!

  36. Hello mates, its wonderful piece of writing regarding tutoringand fully defined, keep it up all the
    time.

  37. 20 Quotes That Will Help You Understand Window Glass Replacement
    Near Me Installer

  38. Ahaa, its pleasant discussion concerning this article at this place at this webpage, I
    have read all that, so at this time me also commenting here.

  39. От личного менеджера, который сверх
    нормы на связи с вами до удобстseo продвижение в сшаа использования бухгалтерской и электронной документации.

  40. Nice post. I was checking constantly this weblog
    and I’m impressed! Extremely useful information specially the last phase :) I maintain such
    information a lot. I was seeking this certain information for a very
    long time. Thanks and best of luck.

  41. Guide To Double Glazed Window Near Me: The Intermediate
    Guide Towards Double Glazed Window Near Me double Glazed Window near me

  42. You could definitely see your enthusiasm in the work you write.
    The sector hopes for even more passionate writers like you who are not afraid to mention how they believe.
    Always follow your heart.

  43. Kraken – основной торговый маркетплейс огромного рынка торговли в России. Здесь Kraken зеркала предлагает широкий выбор товаров, полностью отвечающих вашим ожиданиям. Пройдите быструю регистрацию, и вам станет доступен полный функционал платформы. Стоит отметить, что Кракен onion работает без использования Tor. Просто перейдите по ссылке, чтобы войти в систему. Рекомендуется рассматривать различные варианты при выборе товаров или услуг. На площадке представлены многочисленные предложения от разных продавцов. Не останавливайтесь на первом же предложении. Проведите более тщательный поиск, и вы обязательно найдете выгодные предложения. Также у нас есть актуальные зеркала сайта Kraken https://www.snye.co.kr/bbs/board.php?bo_table=free&wr_id=376288, обеспечивающие мгновенный доступ к ресурсу. Kraken onion link также доступна.

  44. An asbestos lawsuit (http://Addsub.wiki/index.php/20_questions_you_must_Always_be_asking_about_asbestos_lawsuits_prior_to_purchasing_asbestos_lawsuits) attorney can help victims file a lawsuit against their employers for exposure to the harmful mineral.
    A lawsuit could allow victims to recover compensation for medical expenses as well
    as lost wages and pain and suffering.

  45. Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your website?

    My website is in the exact same area of interest as yours and my users would genuinely
    benefit from some of the information you provide
    here. Please let me know if this okay with you. Thanks a lot!

  46. You’ll Never Guess This 18 Wheeler Accident Law Firm’s Tricks 18 wheeler accident law Firm – forum.minatoriunti.it -

  47. Thanks for finally talking about > Touchpad: scorrimento a due dita come sul Mac, su qualsiasi portatile Linux « CoM –
    Il Blog di Carlo Becchi < Loved it!

  48. I have assiduously delighted in the reflections provided in this reflective blog commentary .

    The creator has fluently elucidated several
    key concepts that resound with me deeply .

    As an passionate proponent of revolutionary corporate
    undertakings , I would yearn to extend an recommendation to you to
    scrutinize the remarkable avenues available at Pragmatic Play
    .

    This versatile company is at the cutting edge
    of pioneering developments , delivering a
    dynamic and fulfilling atmosphere for professionals
    who display a ardor for eminence and a determination to elevate the thresholds of what is
    achievable .

    I adjure you to deliberate on this invitation and discover the plethora of options that present themselves .
    Respectfully be at liberty to query if you have any queries or would
    hope to mull over in more depth .

    Warmest felicitations ,

    Also visit my web page online casino promotions

  49. Hi there, the whole thing is going perfectly here and ofcourse every
    one is sharing data, that’s in fact good, keep up writing.

  50. 15 Reasons Not To Ignore Veterans Disability Law veterans disability lawyer


Lascia un commento

Devi autenticarti per inserire un commento.

Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button