Home page of this blog

Sunday, June 21, 2009

Running laptop cool and long with Ubuntu, without it getting hot

I am reading interesting posts in Linux kernel mailing list about kernel timer frequency. It is generally like this

There are four kernel timer frequencies (other than this any frequency can be given by editing the code directly, these are the preset frequencies)

1. 100 Hz --> very good for servers as the timer frequency is low, server can run long enough and draw very less power, also all windows have 100 Hz as their kernel timer frequency, so it gives more power saving and reason it gives more battery time in laptops, since some companies use cheap capacitors which are tested only in 100 Hz config, any higher frequency can make them buzz with noise, running a OS with 100 Hz as a guest in virtualization makes the overall system run more stable

2. 250 Hz --> almost twice as fast as 100 Hz and also gives good power saving, Ubuntu, Linux Mint and Debian use this by default

3. 300 Hz --> faster than 250 Hz, gives good power saving, and very good media playback, it is very good for watching high quality videos, Arch Linux kernel uses this by default and watching movies in Arch Linux is a pleasure. Also since the timer frequency is more, Arch Linux feels faster than Ubuntu (and of course, Arch Linux is optimized for i686 and uses a low latency kernel (a hard preemptive kernel))

4. 1000 Hz --> faster than any preset frequency (in kernel configuration) and gives an interrupt of 1 ms timer approx, and very good for playing games, watching HD (High Definition) movies, editing multimedia, but very bad for power saving in your laptop, and can heat laptop considerably, but very good as a host for running virtualization. This is the default kernel timer frequency used by Fedora and considered as a good virtualization host

How to change default kernel frequency in Ubuntu?

We can install a different kernel and get a different kernel frequency. In general server kernels use lowest kernel timer frequency and desktop kernels go with higher kernel frequencies

To get very less heat, run longer and more stable, but a little slower than current Ubuntu, you can install

install from synaptic linux-server

or if you are in Ubuntu


To get very fast and snappy system (for watching movies, playing games, editing multimedia content and getting applications open/run very fast) and as a good host for virtualization, you can try running Fedora or in Ubuntu

install from synaptic linux-rt

or if you are in Ubuntu


To run Ubuntu as a guest in virtualized environment (inside VMWare, VirtualBox, qemu or inside any other virtualization program) there is a special optimized kernel.

install from synaptic linux-virtual (only install this kernel in the Ubuntu running inside your VirtualBox or VMWare or qemu)

or if you are in Ubuntu

Use this only for Ubuntu running as a guest linux-virtual

you can read more about kernel frequency by searching

After installing any new kernel reboot and boot with your newly installed kernel to see the change. And if there is a problem, continue with the default kernel

Sunday, June 14, 2009

Fedora 11 LiveCD nouveau driver problem with some nvidia cards

I downloaded Fedora 11 32 bit and 64 bit live CD. Tried both, after some time, the screen became corrupt and I could not read text or see images properly. There were lot of white colored patches all across screen and I tried booting again and again and ended up with same problem. It even hanged when i tried to restart X (init 3 and init 5 from command line)

Correction: The corruption happens with modesetting enabled or not, when doing a graphics intensive browser benchmark. I have raised a bug for the same which can be viewed from the below link (forgot to update it here immediately)


Then I checked Fedora 11 release notes, and added "nomodset" to the boot parameter. Now there is no screen corruption and I am running live CD for more than an hour. Posting this from live CD

Here is a screenshot of Fedora 11 (64 bit live CD)