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. What’s The Current Job Market For Double Glazed Repairs Near Me Professionals?
    Double Glazed repairs near me; dongnampack.co.Kr,

  2. Unexpected Business Strategies That Helped Personal Injury Lawyers Succeed personal Injury lawsuit

  3. I was recommended this blog by my cousin. I’m not sure whether this post is written by him as nobody else know such
    detailed about my problem. You’re amazing! Thanks!

  4. Undeniably believe that which you said. Yourr favorite justification seemed to
    be on tthe web the easieest thing to be aware
    of. I say to you, I certainly get annoyed while people think about worries that they just doo not
    know about. You managed to hiit the nai 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
    인스타 팔로워 구매

  5. What i do not realize is in fact how you’re not really much more smartly-favored than you may be right now.

    You are very intelligent. You realize therefore considerably in the case of this topic, produced me for my part believe it from a lot of numerous angles.
    Its like men and women don’t seem to be fascinated except it’s something to
    accomplish with Girl gaga! Your own stuffs outstanding.
    All the time care for it up!

  6. Right noow it sounds lke Wodpress is the topp blogging platform available right now.
    (from what I’ve read) Is that what you are using on your blog?

    웅진코웨이얼음정수기

  7. Thanks for sharing your thoughts on bokep indonesia.
    Regards

  8. What i don’t understood is in reality how you’re
    no longer actually much more neatly-liked than you might be now.
    You are very intelligent. You understand thus considerably relating to
    this matter, produced me in my view imagine it from a lot of numerous angles.

    Its like women and men aren’t involved until it is one
    thing to accomplish with Lady gaga! Your own stuffs
    outstanding. Always handle it up!

  9. Hi! This is my 1st comment here so I just wanted to give a quick shout
    out and tell you I genuinely enjoy reading through your articles.
    Can you recommend any other blogs/websites/forums that cover
    the same topics? Appreciate it!

    Also visit my web-site endoboost pro

  10. Good post. I am dealing with some of these issues as well..

  11. Hey I know this is off topic but I was wondering
    if you knew of any widgets I could add to my blog that automatically
    tweet my newest twitter updates. I’ve been looking for a plug-in like this for
    quite some time and was hoping maybe you would have some experience with something like this.
    Please let me know if you run into anything. I truly enjoy reading your
    blog and I look forward to your new updates.

  12. Massage Forum

    Greetings! I’ve been following your web site for a while now and
    finally got the bravery to go ahead and give you a shout out from Porter Tx!
    Just wanted to tell you keep up the good job!

  13. If you would like to obtain much from this post then you have to apply such methods
    to your won web site.
    코웨이정수기렌탈

  14. 14 Businesses Doing A Great Job At Birth Defect Lawsuit birth Defect Lawyer

  15. Howdy would you mind letting me know which web host you’re utilizing?

    I’ve loaded your blog in 3 completely different browsers and I must say
    this blog loads a lot faster then most. Can you recommend
    a good internet hosting provider at a honest price?
    Cheers, I appreciate it!

  16. A Vibrant Rant About Window Pane Replacement replacement windows panes (Finlay)

  17. This website was… how do I say it? Relevant!!
    Finally I’ve found something which helped me. Cheers!

  18. Excellent report on vape laws!

  19. Hey! I’m at work surfing around your blog from my new iphone 3gs!
    Just wanted to say I love reading your blog and look forward to all your posts!
    Keep up the fantastic work!

  20. Should Acquire An Unsecured Consolidation Payday Advance?
    신생아 특례 대출

  21. 10 Unexpected Boat Accident Lawyer Tips lawsuits

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

  23. The Biggest Problem With Windows Repairs Near Me, And How You
    Can Fix It House

  24. I was suggested this blog by my cousin. I’m noot sure whedther this post is written by him
    as no one else know suc detailed about my trouble. You’re incredible!
    Thanks!
    의정부 비발치 교정

  25. The 3 Greatest Moments In Personal Injury Attorney History personal Injury law firm

  26. 成人視頻

    all the time i used to read smaller articles which as well clear their motive, and that is also happening with this paragraph which
    I am reading at this place.

  27. What a data of un-ambiguity and preserveness of valuable familiarity
    concerning unexpected feelings.

  28. The Basics Of Pay-Per-Click Links For Increased In Order To Your
    Site 검색엔진최적화 전문가

  29. سلام!
    ناصر رسولی هستم
    من ناصر رسولی هستم مدیر پلتفرم ارسال رپورتاژ
    سئو هکر با بیش از 5000 دامنه فعال ایرانی و خارجی ،
    با اجرای بیش از 3000 پروژه موفق سئو ، با اجرای بیش از 1200 مشاوره موفق سئو ، اولین معرف سیستم PBN و PDN در ایران ، آموزش دهنده سئو منفی ،
    سئو خاکستری ، سئو سیاه با جدیدترین متدهای
    روز دنیا…

    در این وب سایت سعی بر این دارم از تجربیاتم در دنیای وسیع سئو بگم و در حد توان کمکتون کنم که بتونید تجربه شیرینی از سئو داشته باشید.

    https://seohacker.academy/blog/
    سئو هکر آکادمی
    سئو هکر

  30. 10 Inspiring Images About Private Psychiatrist Liverpool Cost private psychiatric hospital

  31. Spot on with this write-up, I seriously feel this website needs far more attention. I’ll probably be returning to read through more, thanks for the information!

  32. Thank you for the auspicious writeup. It in fact was a amusement account it.
    Look advanced to far added agreeable from you! However, how can we communicate?

  33. One Of The Biggest Mistakes That People Make When Using Mazda
    5 Key Fob fobs

  34. Wake Up Every Day To A Lot Of Bucks In Your Money!

    신생아 특례 대출

  35. Guide To Personal Injury Litigation: The Intermediate Guide To Personal Injury
    Litigation Personal injury

  36. Piece of writing writing is also a fun, if you be familiar with then you can write if
    not it is difficult to write.

    My page – the genius wave reviews

  37. Hey there! I know this is kinda off topic but I’d figured I’d ask.
    Would you be interested in trading links or maybe guest authoring a
    blog article or vice-versa? My site addresses a lot of the same subjects
    as yours and I feel we could greatly benefit from each other.
    If you might be interested feel free to send me an e-mail.
    I look forward to hearing from you! Wonderful blog by the way!

  38. The Most Inspirational Sources Of Double Glazed Replacement Glass Near Me double glazing near Me

  39. I’m gone to inform my little brother, that he should also ppay a quick visit this weblog on regular basis too take updated from hottest news update.

    다산 초등학생 피아노 학원

  40. This text is worth everyone’s attention. How can I
    find out more?

  41. Everyone loves what you guys are usually up too.

    This kind of clever work and coverage! Keep up the excellent works
    guys I’ve you guys to my own blogroll.

  42. 12 Statistics About ADHD In Adults Test To Make You
    Think Twice About The Cooler. Cooler Adhd Test For Adults Uk

  43. Appreciate the recommendation. Will try it out.

  44. A Look Into The Future What’s The Act Fela Industry Look Like
    In 10 Years? Federal employers Liability

  45. سلام!
    ناصر رسولی هستم
    من ناصر رسولی هستم مدیر پلتفرم ارسال رپورتاژ سئو هکر با بیش از
    5000 دامنه فعال ایرانی و خارجی ، با
    اجرای بیش از 3000 پروژه موفق سئو ، با اجرای بیش از 1200 مشاوره
    موفق سئو ، اولین معرف سیستم PBN و PDN در ایران ، آموزش دهنده سئو منفی
    ، سئو خاکستری ، سئو سیاه با جدیدترین متدهای روز
    دنیا…

    در این وب سایت سعی بر این دارم
    از تجربیاتم در دنیای وسیع سئو بگم و در حد توان کمکتون
    کنم که بتونید تجربه شیرینی از سئو داشته
    باشید.

  46. How Semi Truck Lawyer Became The Hottest Trend In 2023 Semi Truck Accident Attorney

  47. 7 Secrets About Veterans Disability Case That No One Will Tell You Veterans Disability Attorneys

  48. The Three Greatest Moments In Cerebral Palsy Litigation History cerebral palsy lawsuit

  49. Why Semi Truck Compensation Is Still Relevant In 2023 Semi Truck accident attorney


Lascia un commento

Devi autenticarti per inserire un commento.

Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button