Retomando las antiguas barras de desplazamiento en Ubuntu

Hoy no me pude aguantar más y tuve que hacerlo …

Como propietario de un Thinkpad Lenovo X61s en el que no uso, ni hecho de menos un ratón, gracias al fantástico TrackPoint que incorpora, las nuevas barras de desplazamiento de Ubuntu son, simplemente, inusables.

Así que, yendo rápidamente al «turrón«, para deshabilitarlas sólo hay que abrir una consola y escribir 🙂 :

$ sudo echo "export LIBOVERLAY_SCROLLBAR=0" > /etc/X11/Xsession.d/80overlayscrollbars

y reiniciar.

No digo que las nuevas barras no sean una mejora. Permiten una utilización mejor del espacio en pantalla pero, desde el punto de vista funcional, sólo valen como indicadores de tu posición. El progreso en el desplazamiento de la ventana. Forzosamente necesitas una rueda en tu ratón o una manera de emular este comportamiento. Si tienes que desplazar la barra manualmente, desde el punto de vista funcional, son un fracaso.

Francamente, en Ubuntu se echa de menos una manera de seleccionar des/habilitar su utilización sin tener que acudir a este tipo de «hacks«.

Por supuesto, otra alternativa habría sido «emular» la rueda del ratón mediante el uso del botón central, pero la última vez que lo usé decidí que prefería tener una mejor experiencia de «seleccionar y pegar» con este botón, antes que usarlo como modificador para el desplazamiento vertical/horizontal.

En todo caso, si lo que se quiere es usar este botón de esa manera, antes había que añadir una seríe de modificaciones al archivo de configuración del servidor «XOrg«. Ahora, sólo tenemos que instalar el paquete «gpointing-device-settings«:

$ sudo aptitude install gpointing-device-settings

y seleccionar las debidas opciones tras lanzarlo desde «Sistema -> Preferencias -> Pointing devices«.

Esta y muchas otras recetas se pueden encontrar en ThinkWiki.

Quién sabe, quizá, en un tiempo, cambie de opinión y retome esta funcionalidad (y las nuevas barras de desplazamiento de Ubuntu) …

12 comentarios en “Retomando las antiguas barras de desplazamiento en Ubuntu

  1. First of all, in the new Ubuntu, middle-mouse scrollwhell emulation is on by default. Second, having emulation does not prevent you from using middle-mouse button to paste the PRIMARY clipboard. It serves a dual function when the emulation is enabled.

    Third, it would be muc more useful to explain how to enable proper acceleration for the TrackPoint. This is how I went from slow and unusable to snappy acceleration:

    /etc/X11/xorg.conf.d/03-dualpoint.conf
    Section «InputClass»
    Identifier «Clit Mouse options»
    MatchIsPointer «on»
    MatchProduct «DualPoint Stick»
    Driver «evdev»
    Option «EmulateWheel» «1»
    Option «EmulateWheelButton» «2»
    Option «EmulateWheelInertia» «5»
    Option «EmulateWheelTimeout» «200»
    Option «XAxisMapping» «6 7»
    Option «YAxisMapping» «4 5»
    Option «Emulate3Buttons» «0»
    # Option «AccelerationProfile» «integer»
    # Select the profile. In layman’s terms, the profile constitutes
    # the «feeling» of the acceleration. More formally, it defines how
    # the transfer function (actual acceleration as a function of
    # current device velocity and acceleration controls) is
    # constructed. This is mainly a matter of personal preference.
    #
    # 0 classic (mostly compatible)
    # -1 none (only constant deceleration is applied)
    # 1 device-dependent
    # 2 polynomial (polynomial function)
    # 3 smooth linear (soft knee, then linear)
    # 4 simple (normal when slow, otherwise accelerated)
    # 5 power (power function)
    # 6 linear (more speed, more acceleration)
    # 7 limited (like linear, but maxes out at threshold)
    Option «AccelerationProfile» «7»
    Option «AccelerationNumerator» «14»
    Option «AccelerationDenominator» «4»
    Option «AccelerationThreshold» «0»
    EndSection

  2. Germán: quizá sea incluso una mejor opción. Al menos liberaré unos cuantos Kbs 😉

    Tobias:

    1. I’m talking about Ubuntu Natty. As many of my surrounding mates, we tend to wait some time to upgrade Ubuntu since we have had quite a bunch of bad experiences.

    2. I didn’t say that emulation and copy&pasting were incompatible. I said that the experience is worse. And this is because, then, every time you use the emulation you paste something to the place you are in with the mouse 🙁

    3. Explaining the hacks of the wheel emulation was not the point of the post, and I already included a link to ThinkWiki for the people interested.

  3. Being the person that both added the code to the evdev driver to have timeouts emulating the wheel so I could use the trackpoint and added the code to the xserver to handle InputClass, I can completely concur with Tobias. The three things you need in an InputClass are:

    Option «EmulateWheel» «yes»
    Option «EmulateWheelButton» «2»
    Option «XAxisMapping» «6 7»

    The emulate timeout has been default for about 3 years. It makes it so that a simple click acts like button 2, but holding the button and moving the pointer will act like the wheel.

  4. Pingback: Links 2/11/2011: Linux Everywhere, Doom 3 Source Code, OpenBSD 5.0 Released | Techrights

  5. Quizas sean una mejora como dices, pero con una tablet son un infierno! es muy dificil controlarlas con dispositivos de toque

  6. Pingback: What’s up with the scrollbar? « frozen mumblings

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *