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. Thanks for finally writing about > Touchpad: scorrimento a due dita come sul Mac, su qualsiasi portatile Linux « CoM – Il Blog di
    Carlo Becchi < Liked it!

  2. Seven Reasons To Explain Why Veterans Disability Case Is Important Veterans Disability attorneys

  3. Upvc Windows Near Me Tools To Help You Manage Your
    Daily Life Upvc Windows Near Me Technique Every Person Needs To Know upvc windows near me

  4. Guide To Double Glazed Units Near Me: The Intermediate Guide On Double Glazed Units Near Me double glazed Units near me

  5. The Top Reasons People Succeed On The Medical Malpractice
    Legal Industry medical malpractice lawyer (Maureen)

  6. The Underrated Companies To Follow In The Birth Defect Law Industry birth defect lawsuits [http://www.z69alf6to9om3nxd56zctqdh4a.com]

  7. 成人影片

    After I originally left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and now whenever a comment is
    added I recieve 4 emails with the same comment.
    There has to be a means you are able to remove me from that service?

    Cheers!

  8. No matter if some one searches for his vital thing, so he/she desires to be available that in detail,
    so that thing is maintained over here.

  9. I have read so many content regarding the blogger lovers however this article
    is really a fastidious post, keep it up.

  10. The 10 Scariest Things About Double Glazing Companies Near Me Double
    Glazing Companies Near Me (Eci.Ainb.Info)

  11. 10 Healthy Window Repairs Habits Near By

  12. 10 Tell-Tale Signs You Must See To Get A New Accident accident lawsuit

  13. 9 . What Your Parents Teach You About Fela Claims Fela

  14. Quality articles or reviews is the crucial to be a focus for the viewers to go to see the website, that’s what this web site is providing.

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

  16. Fantastic beat ! I wish to appprentice at the same time as you
    amend your web site, how could i subscribe for a blog website?
    The account helped me a applicable deal. I were a little bit familiar of this your broadcast offered shiny transparent concept
    아프리카 별풍선

  17. Does your blog have a contact page? I’m having problems locating it but,
    I’d like to send you an email. I’ve got some creative ideas for your blog you might
    be interested in hearing. Either way, great website and I look forward
    to seeing it develop over time.

  18. Guide To Dangerous Drugs Law Firm: The Intermediate Guide For Dangerous Drugs Law
    Firm dangerous drugs law firm

  19. I blog quite often and I truly thank you for your content.
    This great article has truly peaked my interest.
    I am going to take a note of your website and keep checking
    for new information about once a week. I subscribed to your Feed as well.

  20. 15 Funny People Who Are Secretly Working In Railroad Injuries Law attorney

  21. Hi there colleagues, pleasant article and pleasant urging commented at this
    place, I am really enjoying by these. http://Links.Musicnotch.com/kenpfaff445

  22. In Tonawanda, New York, proper insulation is essential due to the
    city’s varied climate and the need for energy efficiency.

    Insulation Depot USA provides top-notch insulation services, including
    attic insulation, wall insulation, and spray foam insulation, ensuring homes and businesses in neighborhoods like Green Acres North and Colvin Estates are well-insulated and comfortable
    year-round. The importance of reliable insulation cannot be overstated in Tonawanda, where temperatures can fluctuate significantly,
    making energy-efficient insulation critical for reducing
    energy costs and maintaining a comfortable indoor environment.

    Insulation Depot USA is located in Tonawanda, a city founded in 1836.
    Tonawanda is a historic city with a population of 14,991 as of 2022 and 6,947
    households. The city is conveniently connected by Interstate
    190, a major highway that facilitates easy travel to
    and from the area. An interesting fact about Tonawanda is its rich history, which includes being a hub for manufacturing and industry in the early 20th century.
    Today, Tonawanda offers a blend of residential, commercial, and recreational opportunities, making it an attractive place to live and work.

    The cost of insulation repairs and installations
    in Tonawanda can vary depending on the type of service required.

    Basic services like attic or wall insulation might range from $1,000 to $3,000, while more extensive work such as spray foam insulation or insulation removal can cost between $2,
    000 and $5,000. Tonawanda experiences a wide range of temperatures, with summer
    highs reaching around 80°F and winter lows dropping to approximately
    20°F. These temperature variations necessitate reliable and
    efficient insulation to ensure homes remain comfortable and
    energy-efficient throughout the year.

    Tonawanda boasts numerous points of interest that
    cater to a variety of tastes and preferences.
    Niawanda Park offers scenic views of the Niagara River and is perfect for picnics and outdoor activities.
    The Herschell Carrousel Factory Museum provides a unique glimpse into the history of carousel manufacturing and is a fun destination for families.
    Tonawanda Rails to Trails is a beautiful trail system ideal
    for biking and walking. Ellicott Creek Park offers extensive recreational facilities, including picnic
    areas, sports fields, and fishing spots.
    Lastly, the Historical Society of the Tonawandas showcases the
    rich history of the area with fascinating exhibits and artifacts.
    Each of these attractions offers unique experiences that highlight Tonawanda’s cultural and natural heritage.

    Choosing Insulation Depot USA for insulation services
    in Tonawanda is a wise decision for residents and businesses seeking reliable and
    efficient solutions. The company offers a comprehensive range of
    services, including insulation installation, soundproofing,
    and thermal insulation. Insulation Depot USA’s commitment to quality
    workmanship and exceptional customer service ensures that all insulation needs
    are met promptly and professionally. For those living in Tonawanda,
    Insulation Depot USA is the trusted partner for maintaining an energy-efficient and
    comfortable living environment, providing peace of mind and comfort throughout the
    year.

    In Tonawanda, New York, maintaining proper insulation is crucial due to the city’s changing
    seasons and the need for energy efficiency. Insulation Depot USA offers essential insulation services such as attic insulation,
    wall insulation, and blown-in insulation, ensuring homes and businesses in neighborhoods like Elmwood North and Irvington Creekside stay
    warm in the winter and cool in the summer. The significance
    of having a reliable insulation contractor in Tonawanda cannot be overstated, as proper insulation is vital
    for reducing energy costs and maintaining a comfortable
    indoor environment throughout the year.

    Insulation Depot USA operates in Tonawanda, a city founded in 1836.
    Tonawanda is a historic city with a population of 14,991 as of 2022 and 6,947 households.
    The city is well-connected by Interstate 190, a major highway that facilitates easy travel across the region. An interesting fact about Tonawanda is its role in the
    early development of the Erie Canal, which significantly contributed to the city’s growth and prosperity.
    Today, Tonawanda is known for its vibrant community and diverse recreational opportunities, making it a great place to live and work.

    The cost of insulation repairs and installations in Tonawanda can vary widely depending on the type of service required.
    Basic services like attic or wall insulation might
    range from $1,000 to $3,000, while more extensive work such as spray foam insulation or insulation removal can cost
    between $2,000 and $5,000. Tonawanda experiences a range
    of temperatures, with summer highs reaching around 80°F and winter lows dropping to approximately 20°F.
    These temperature variations necessitate reliable and efficient insulation to
    ensure homes remain comfortable and energy-efficient throughout the year.

    Tonawanda offers numerous points of interest that cater to a variety of tastes
    and preferences. Gateway Harbor is a picturesque waterfront area perfect for boating and outdoor events.
    The Herschell Carrousel Factory Museum provides a unique glimpse into the history of carousel manufacturing and is a fun destination for families.
    Tonawanda Rails to Trails is a beautiful trail
    system ideal for biking and walking. Ellicott Creek Park offers extensive
    recreational facilities, including picnic
    areas, sports fields, and fishing spots. Lastly,
    the Historical Society of the Tonawandas showcases the rich history of the area with fascinating exhibits and artifacts.
    Each of these attractions offers unique experiences that highlight Tonawanda’s cultural and natural heritage.

    Choosing Insulation Depot USA for insulation services in Tonawanda is a wise decision for residents and businesses seeking
    reliable and efficient solutions. The company offers a comprehensive range
    of services, including insulation installation, soundproofing, and thermal insulation. Insulation Depot USA’s commitment to quality workmanship and exceptional
    customer service ensures that all insulation needs are met promptly and
    professionally. For those living in Tonawanda, Insulation Depot USA is the trusted partner for maintaining an energy-efficient and comfortable living environment, providing peace of mind and comfort throughout the year.

    In Tonawanda, New York, proper insulation is essential due to the city’s varied climate and the
    need for energy efficiency. Insulation Depot USA
    provides top-notch insulation services, including attic insulation,
    wall insulation, and spray foam insulation, ensuring homes and businesses
    in neighborhoods like A. Hamilton / St. Amelia’s and Sheridan Parkside
    are well-insulated and comfortable year-round.
    The importance of reliable insulation cannot be overstated in Tonawanda,
    where temperatures can fluctuate significantly, making energy-efficient insulation critical for reducing
    energy costs and maintaining a comfortable indoor environment.

    Insulation Depot USA is located in Tonawanda, a city founded in 1836.
    Tonawanda is a historic city with a population of 14,991 as of 2022 and 6,947 households.

    The city is conveniently connected by Interstate 190, a major highway
    that facilitates easy travel to and from the area. An interesting fact
    about Tonawanda is its rich history, which includes
    being a hub for manufacturing and industry in the early 20th century.
    Today, Tonawanda offers a blend of residential, commercial, and recreational opportunities, making it an attractive place to live and work.

    The cost of insulation repairs and installations in Tonawanda can vary depending on the type of service required.
    Basic services like attic or wall insulation might range from
    $1,000 to $3,000, while more extensive work such as spray foam insulation or insulation removal can cost
    between $2,000 and $5,000. Tonawanda experiences a wide
    range of temperatures, with summer highs reaching around 80°F and winter lows dropping to approximately 20°F.
    These temperature variations necessitate reliable and efficient insulation to ensure homes remain comfortable and energy-efficient throughout
    the year.

    Tonawanda boasts numerous points of interest that cater to
    a variety of tastes and preferences. Niawanda Park offers scenic views of the Niagara River and is perfect for picnics and outdoor activities.
    The Herschell Carrousel Factory Museum provides
    a unique glimpse into the history of carousel manufacturing and is a
    fun destination for families. Tonawanda Rails to Trails is a beautiful trail system ideal for biking and walking.
    Ellicott Creek Park offers extensive recreational facilities, including picnic areas, sports fields, and fishing
    spots. Lastly, the Historical Society of the Tonawandas
    showcases the rich history of the area with fascinating exhibits and artifacts.
    Each of these attractions offers unique experiences that highlight Tonawanda’s cultural and natural heritage.

    Choosing Insulation Depot USA for insulation services in Tonawanda
    is a wise decision for residents and businesses seeking reliable and efficient solutions.
    The company offers a comprehensive range of services, including insulation installation, soundproofing, and thermal insulation. Insulation Depot USA’s commitment to quality workmanship and exceptional customer service ensures that all insulation needs are met promptly and professionally.

    For those living in Tonawanda, Insulation Depot USA is the trusted partner
    for maintaining an energy-efficient and comfortable living environment, providing peace
    of mind and comfort throughout the year.

    In Tonawanda, New York, maintaining proper insulation is crucial due to the
    city’s changing seasons and the need for energy efficiency.

    Insulation Depot USA offers essential insulation services such as attic insulation, wall insulation, and blown-in insulation, ensuring
    homes and businesses in neighborhoods like Raintree Island and Cardinal O’Hara stay
    warm in the winter and cool in the summer. The significance of having a reliable insulation contractor in Tonawanda
    cannot be overstated, as proper insulation is vital for reducing energy costs and maintaining a comfortable indoor environment
    throughout the year.

    Insulation Depot USA operates in Tonawanda,
    a city founded in 1836. Tonawanda is a historic city with a population of 14,991 as of 2022 and 6,947
    households. The city is well-connected by Interstate 190, a major highway that facilitates easy travel across the
    region. An interesting fact about Tonawanda is its role in the early
    development of the Erie Canal, which significantly contributed to
    the city’s growth and prosperity. Today, Tonawanda
    is known for its vibrant community and diverse recreational opportunities, making it a great place to live and
    work.

  23. Five Killer Quora Answers On Double Glazed Window Repairs Near Me double glazed window repairs near me

  24. Howdy! I know this is kinda off topic but I was wondering which blog platform are you using for this website?

    I’m getting tired of Wordpress because I’ve had problems with hackers and I’m looking at options for another platform.
    I would be fantastic if you could point me in the direction of a good platform.

  25. A Cheat Sheet For The Ultimate On Upvc Patio Doors upvc door
    panel replacements (Madeline)

  26. What’s The Job Market For Upvc Window Handle Replacement Professionals?
    Upvc Window Handle Replacement

  27. This is a topic that is near to my heart…
    Thank you! Exactly where are your contact details though?

  28. Appreciation to my father who shared with me about this blog, this blog is genuinely
    amazing.

  29. Five Killer Quora Answers On Double Glazed Near Me double glazed near me

  30. Thanks very interesting blog!

  31. I’d like to find out more? I’d love to find out some additional information.

  32. I think this is one of the most vital information for me.
    And i’m glad reading your article. But want to remark on some general things,
    The website style is perfect, the articles is really nice : D.
    Good job, cheers

  33. Veterans Disability Lawyers Tools To Streamline Your Daily Life Veterans Disability Lawyers Trick That Should Be Used By Everyone Know Veterans Disability

  34. 15 Top Pinterest Boards From All Time About Malpractice Lawsuit
    malpractice lawyers (Britney)

  35. The 10 Most Scariest Things About Blown Double Glazing Repairs Near Me double glazing repairs near me

  36. Thanks a bunch for sharing this with all people you actually understand
    what you are speaking approximately! Bookmarked. Kindly additionally visit my site =).

    We could have a hyperlink exchange contract among us

  37. I was wondering if you ever thought of changing the structure 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 1 or
    two pictures. Maybe you could space it out better?

  38. Why Do So Many People Are Attracted To Double Glazed Replacement Glass Near
    Me? double glazed window

  39. Hi, I do think this is a great website. I stumbledupon it ;) I may return once again since i have bookmarked it.

    Money and freedom is the best way to change, may you
    be rich and continue to guide other people.

  40. The 9 Things Your Parents Taught You About Replacement Double Glazed Window replacement double glazed window

  41. It’s going to be ending of mine day, however before finish I am reading this fantastic post to increase my knowledge.

    Also visit my blog get growth matrix

  42. Это позволяет читателям формировать свою собственную точку зрения на основе фактов.

  43. This is a topic which is close to my heart… Thank you!
    Exactly where are your contact details though?

  44. What’s The Current Job Market For Best 18-Wheeler Accident Lawyer Professionals?
    18 wheeler Accident Lawsuits

  45. Every weekend i used to go to see this site, for the reason that i wish for enjoyment, as this this
    website conations actually pleasant funny information too.


Lascia un commento

Devi autenticarti per inserire un commento.

Ancora nessun trackback.

Rss Feed Tweeter button Facebook button Youtube button