Using built-in accelerometer to play Tux Racer

From ThinkWiki:

The Active Protection System

With the new series of ThinkPads IBM introduced the Active Protection System (APS) in 2003. The APS is a protection system for the ThinkPad’s internal harddrive. A sensor inside the ThinkPad recognizes when the notebook is accelerated. A software applet then is triggered to park the harddisk. This way the risk of data loss in case of when the notebook is dropped is significantly reduced since the read/write head of the harddrive is parked and hence can’t crash onto the platter when the notebook drops onto the floor.

The hardware sensor is capable of not only recognizing acceleration of the notebook, but also (to a certain degree) of its whole orientation in space, relative to gravity’s axis. Furthermore, having the actual control put into software, its functionality is extendable and it gives chance to implement features like the “ignore minor shocks” feature which is present in the Windows based control applet. (This feature prevents the harddrive from parking in case of minor regular shocks such as occur when in a train or car.)

The measurements are physically performed by an Analog Devices ADXL320 accelerometer chip, managed by the embedded controller.

It would be a shame not to use it for other creative purposes 🙂

  1. Install Lenovo Active Protection System.
  2. Download and extract Tux Racer.
  3. Download SDL Patch by Mark A. Smith (IBM) – Author’s page (not available anymore) and extract SDL.dll and SDL_events.c.patch into Tux Racer’s folder (overwriting the previous SDL.dll).
  4. Play!

Install Video Card Driver + Fix Ubuntu Boot Animation (Ubuntu)

ubuntu_splash

Installing the Video Card Driver

  • Launch System Settings and click on Additional Drivers (under Hardware group).
  • Select the ATI/AMD proprietary FGLRX graphics driver and click install.
  • After the installer finished, Reboot.

Fixing Ubuntu Boot Animation

  • Open a Terminal
  • Execute the following command:

    gksu gedit /etc/initramfs-tools/conf.d/splash

  • Paste this line into the file:

    FRAMEBUFFER=y

  • Save the file, and then run

    sudo update-initramfs -u -k all

  • Reboot and enjoy the boot animation.

Source: askubuntu

Network File Sharing between Windows and Ubuntu

  1. Install Samba under Ubuntu.
    You can install it from Ubuntu Software Center.
  2. Run Samba and open Preferences > Server Setting. Enter your Windows workgroup. If you don’t know your workgroup, under Windows right click My Computer and choose Properties.
  3. (optional) Open Preferences > User Setting and click Add User to set up a new profile you can use to password-protect the shared folders.
  4. Click the green + icon to add a new share. Make sure that at least Visible is checked. You have to set the access type as well.
  5. You don’t even have to reboot. From now on, Network File Sharing should work nicely.

GRUB Customization

Download & Install Grub Customizer

Open a terminal and run the following commands:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update && sudo apt-get install grub-customizer

Configure GRUB

Launch Grub Customizer. This is a nice graphical interface to edit your GRUB preferences. The options are pretty straightforward.

%d bloggers like this: