OpenSuSE 11.4 Lenovo s10-3t front face buttons, tablet mode, and rotation

July 19, 2011 Posted by admin

This post will show you how to activate the front face (touch and rotate) hardware buttons on the Lenovo s10-3t. In addition you will be able to detect the change to and from tablet mode.

Requirements

You will need to install the packages below.

Install using GUI

lsrot (base kernel module driver) 1-click install button ( The lsrot kernel module is the work of Javier S. Pedro – Thanks )

Choose the correct package for your kernel from below.  To find out what kernel you have open a terminal (konsole or gnome-terminal) and type “uname -r” without the quotes.

lsrot-kmp-pae 1-click install button

lsrot-kmp-default 1-click install button

lsrot-kmp-desktop 1-click install button

Next install:

evrouter 1-click install button

lenovo-s103t-confs 1-click install button

easystroke (optional, but highly recommended) 1-click install button

Install using CLI

sudo zypper ar http://download.opensuse.org/repositories/home:/rrounsav:/lenovo-s103t/openSUSE_11.4 lenovo-s103t
sudo zypper ref
sudo zypper in lsrot lsrot-kmp-<kernel type> evrouter lenovo-s103t-confs easystroke

You can determine <kernel type> with uname -r.  It should be desktop, default, or pae.

Now from a terminal run the following commands as root.

modprobe lsrot
depmod -a

If you are running KDE you will need to run the following command to load tablet_detect.sh at startup.

ln -s /usr/bin/tablet_detect.sh ~/.kde4/Autostart/

If you are running Gnome navigate to Control Center -> Startup Applications  and add /usr/bin/tablet_detect.sh.

To start using things right away.  Go ahead and launch /usr/bin/tablet_detect.sh.  If everything is working properly when you switch the netbook to tablet mode the screen should rotate to a landscape orientation.  This behaviour can be modified by editing the files at /etc/evrouter/evrouterrc and /usr/bin/tablet_toggle.sh.

Using front face buttons

In Kde 4:

Navigate to Personal Settings -> Shortcuts and Gestures and map the rotate button to /usr/bin/rotate.   Note:  The Rotate button only works when the netbook is in tablet mode.  So you will have to switch to tablet mode to capture the button press.

Then map the touch button to a script or action of your choice.

I use mine to toggle easystroke gestures on and off.  This can be done by creating an new action in easystroke as shown below.

Setup EasyStroke Toggle Enable Disable Command

EasyStroke Toggle

Then map the touch button to “easystroke send toggle_stroke”.

In Gnome:

I don’t have Gnome installed right now, so no screenshots.  However it should be fairly straight forward to map the buttons to the appropriate scripts.

Click on System -> Preferences -> Keyboard Shortcuts to launch the application and view the preconfigured shortcuts.

Summary

This quick summary table should give you an idea of what files need to be modified to change the default behavior of this configuration.

Button or Switch Script or Application Key or Daemon
Tablet Mode Switch /usr/bin/tablet_toggle.sh, /usr/bin/tablet_detect.sh, /etc/evrouter/evrouterrc evrouter
Rotate Button /usr/bin/rotate.sh F15
Touch Button easystroke send toggle_stroke F14

One Response to OpenSuSE 11.4 Lenovo s10-3t front face buttons, tablet mode, and rotation

  1. Clos says:

    Got any update on this ?
    I can rotate my screen by executing a script. But what I really want is to use the screen hardware button. Do you got any pointers on how to manage that button ?

    Many thanks for all your time and efforts

  2. floweg says:

    Hi,

    I’m using your drivers on my s10-3t – amazing!
    I asked myself, if you also have a similar solution for Ubuntu?

    Cheers

    Floweg

    • admin says:

      I will work on it, if time allows. It should not be to hard to port over. As a matter of fact I may start by attempting to convert the rpms to debs by using alien. Check back.

      • Clos says:

        Sorry, this message was ment to be a reply ( instead posted to the thread root)
        Got any update on the ubuntu drivers ?
        I can rotate my screen by executing a script. But what I really want is to use the screen hardware button. Do you got any pointers on how to manage that button ?

        Many thanks for all your time and efforts

  3. TheNewt says:

    Beautiful, sir, just beautiful!

Leave a Reply to Clos Cancel reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

css.php