Mouse under control

In the last few weeks I was tinkering on my new laptop to make it more comfortable. It's not easy at all. I mostly passed solved the problem of the sleeping (the lenovo thinkpad does not have display after waking up, and it is idle until I switch it off. The solution is to disable USB3.0, after that the machine will wake up, althoug the lights will signal something else). Anyway, the next task was to create a right mouse button on the upper side of the touchpad.

The problem basically is that on this ThinkPad there is no physical mouse buttons next to the rubber pointer, instead they are part of the touchpad. Thus when I disable that, I don't have mouse buttons. But the default settings was that both sides of the upper part of the taouchapd works as the left mouse button. After some digging, I found a nice question with good comments and answer on askubuntu, which describes exactly my problem. The only difference was that the user here wats more: to disable mouse movements induced by the touchpad (if I get it right, it was not working, so it is still an open question). Summary? copy the code on the site to a file names anyithing which begins with "99-" and ends with ".conf", e.g. "99-makerightmousebutton.conf", and place it in the /usr/share/X11/xorg.conf.d/ directory.

Code is under the section, and make sure to check the linked site above as this site will not show indentation.

Section "InputClass"
Identifier "t440 top buttons"
MatchDriver "synaptics"
Option "SoftButtonAreas" "60% 0 0 0 40% 60% 0 0" #Emulate right and midle buttons
Option "Synaptics Area" "0 0 0 1" #disable moving but not buttons

And if someone would like to get one step closer to disable touchpad movements, copy this exact file to /etc/X11/xorg.conf.d/.

Lubuntu in da House

Recently I had to use some basic commandline magic both in Windows and on Mac, as I wanted to build a simple application which starts when R start, and closes R when finishes. Well, I couldn't write it properly, but I learnt a lot. However, I decided to try Linux, as I had heard some legends about its small requirements - and if even Windows7 could run on my laptop from the early 2000s, a Linux should be as fast as a lightning. Why did it took a week?
After some googling, I decided to try Lubuntu: in most of the tests it was among the lightest OSs, but (as an Ubuntu-alike) it's user-frendly, which is good for my Windows-formed brain. Of course, things are never so simple like one imagines: my laptop can boot only from CDs and hard drives, and I could not find a writeable empty disc at home. Google was my friend again: downloaded Wubi, and started the procedure.
Problem #1: It could not install Lubuntu. I tried twice, it downloaded the install CD twive, then stopped. As it turned out, it downloads the newer version, checks if it's the one which it knews, and if not (and not, because Wubi is older than the newest Lubuntu), it reports an error.
Problem #2: We tried with Ubuntu, saying we could change the desktop environment later. Well, the Ubuntu 12.04 did not support the old SiS VGA card what my computer has, and nor me, nor my father is a real Linux guru. We spent 1 hour to reinstall Ubuntu, and get the command line. From there, 2 other hours to find the Xorg file we need and try to edit - around half past midnight we stopped trying, except that for one last time I tried something else: the Xubuntu. HEUREKA! It worked, I got enthusiastic, and updated, and upgraded, and installed, and then restarted everything - then the same problem occurred as with Ubuntu. That was the stop for me.
Next day I found a rewritable disc with an old program on it. I formatted the disc and created a Lubuntu 10.04 install disc, which got installed without problem, ran without problem, but it was way too old to cooperate perfectly with the other programs, so I decided to get the 12.04 Lubuntu.
Problem #5: Its CD is bigger than my 650MB RW disc, so I had to find something else. OF course, the hard drive option is still closed as I don't know how to mount a pic to a partition, which is already occupied by the 10.04, DVD! I wrote the DVD as CD, and put it in the reader - which is mine because I rarely use DVD, and it rarely reads a DVD - and this was not one of those rare occasions. This is why I got an old, but stable DVD reader and a few writeable CD-s. With the former, I could read the DVD as CD and started the installation - which happened to become corrupted, I could only see the grub rescue> promt. After it only knew the ls command, and nothing else, I put the Windows CD into the drive and deleted the Lubuntu partitions and get the Windows back to work.
After restarting, I installed the Lubuntu 12.04 from cd, without any problem. And finally, this post is written from the Chromium in Lubuntu 12.04.