Lion like scrolling on Ubuntu – Inverse scrolling on Linux

Mac OSX Lion Logo
Lion, the latest operating sytem for mac from Apple.

Any one who has upgraded to Mac OS 10.7 Lion will will have had the new inverted scrolling (natural, as Apple call it) which I described in my last post.

However, while many may have found it irritating at first but chose to power through and get used to it, have got too used to it.  Now, other computers seem just wrong.

I hate it when it turns out Apple were right but it would seem that moving the page up and down rather than the scroll bar really is just, natural.

So here’s how you Linux folk can get Lion like scrolling working on your computer.  I’ve been using Ubuntu but I’m sure we’ll see it working on other distributions.

Right then, open up your terminal, let’s get going. You can click on any of these screen shots to see larger versions.

Your first command is:

xinput list

This will show you a list of devices, work out which one is your trackpad or mouse. From my screenshot, you can see that my Trackpad’s ID is 13.

Now that you know this, it’s time for your second command, incorporating the ID you have found out.

xinput test 13

Replace the 13 with whatever your device ID was.

Now scroll up a little and then scroll down a little, finally press Ctrl+C to end the test. From this you can see the mapping of your scroll function. In my screen shot you can see that my scrolling up as button 4 and scrolling down as button 5, obviously they’re not really buttons but you’re not supposed to think of that ;]

Work out what your scroll button numbers are, you’re going to need them.

Now for the actual change, the button mapping of your device will be set up as something like 1 2 3 4 5. In my case; 1, 2 and 3 are likely left, right and middle button; 4 and 5 we know for my case are the scroll, obviously they may be different for you, take note of these along with the device number you already know.

So of course all we’re needing to do is swap these round, here we go:

xinput set-button-map 13 1 2 3 5 4

Now pay attention to how that’s made up; we’ve got your device number in there (I’m 13 remember) and we’ve flipped round the numbers that we know are mapped to our scrolling, (5 and 4)… also, while I’m patronising you like this, don’t forget those spaces. Now go try it out, look, it’s working! Aren’t you clever.

You’re not done yet!

All you’ve done is make it work for now, the moment you restart your computer, it’s going to go away so let’s just make this thing permanent shall we?

Now you can set up an xorg option (Option zAxisMapping “5 4”) but I’m still in my patronising mood and thinking I should just give you the easy option so all we’re going to do is take that last command we typed in (xinput set-button-map 13 1 2 3 5 4) and make it run on startup.

So open up your System Settings and choose Startup Applications.

Now just click Add and type in the command along with a Name and description. You’re all done, you’re natural Lion like scrolling is all done. Congratulations, you may roar, raaaaaaaaaaaaaa.

Microsoft buys Skype – Will Mac and Linux support Suffer?

Microsoft has agreed to buy Skype for $8.5 billion. That’s an awful lot of money for a company that was recently valued at a lot less and has been struggling to make a profit but what does this mean for Mac and Linux users?

I’m not concerned about the cost and I’m sure that Microsoft will help an already great business go far. What I’m concerned about is the user, specifically, the non Microsoft user.

Microsoft insist that they will keep Skype multi-platform, a feature that has helped keep Skype on top of the Internet Phone market. Skype has feature rich applications for not just Windows, but Macs, Linux and several mobile platforms. I have no doubt that Microsoft will continue development for these platforms but my concern is about the extent to which they will do this.

My primary computers are a Windows 7 desktop and an Apple MacBook running Snow Leopard. I have no bias between Mac and Windows and believe both platforms have their benefits. However, any Mac user can tell you of their frustration with Microsoft Messenger.

On Windows, Microsoft’s Messenger is feature rich. You have winks, web cams, facebook integration, Games, Photo sharing, Video Sharing, Video Messages, Slideshows, the list goes on. However, Microsoft Messenger for mac has very few of these features, in fact, up until a few months ago, it didn’t have Webcam support, something the windows version has had for as long as I’ve known it.

The reason for this is simple, Microsoft doesn’t give enough support to its mac developments team, I remember seeing a support forum on the Messenger for Mac site when people were complaining about the lack of webcam support in which a member of the development team cited lack of funding as an issue. I won’t go into details of the Linux development team… there isn’t one.

So yes, I believe Skype will continue to be available for Mac and Linux but my concern is that with closer integration with the Windows Live Network, will great new features, developed by Microsoft also appear on other platforms and if so, will they keep all platforms in sync with each other.

I don’t want a great new feature appearing on Skype for Windows and having to wait months, if not years, for it to appear on Mac and Linux because Microsoft wants to concentrate on making Skype for Windows.