Monday, August 31, 2009

Linux Format Wallpaper

You can find several nice Linux Format Wallpaper at TuxRadar. You will find resolution choice of 1920x1200 or 1600x1200

Happy changing wallpaper!

Sunday, August 30, 2009

Using XrandR to control video projector

This is the 2nd part of my entry of xrandr. I have written a previous entry Using xrandr to change screen resolution and orientation

This blog entry essentially is to how how we can control monitor and projector.


Note 1: Firstly do a query on the connected port (ie projector)
# xrandr --query (You should be able to get your graphics output status whether it is VGA, HDMI etc)


Note 2: Setting the best resolution for the connected port (ie projector)
# xrandr --output VGA --auto


Note 3: Cloning mode for both internal monitor (DVI) and external projector (VGA)
# xrandr --output VGA --mode 1024x768 --same-as DVI --output DVI --mode 1024x768


Note 4: Switching Off the Video Projector and turn off the Internal Monitor
# xrandr --output VGA --off
# xrandr --output DVI --auto


Further Readings:

Friday, August 28, 2009

Using Powertop to save Battery Power (Part 2)

Continuing from the entry Using Powertop to save Battery Power (Part 1)

How do we reinstate the optimised settings for ac-power? I suggest we put the settings that take advantage of AC-Power back into the /etc/acpi/ac.d

# cd /etc/acpi/ac.d # touch 16.optimsation.sh
# chmod 755 16.optimsation.sh
# vim 16-optimisation.sh

#------------------------------------------------------
echo 500 > /proc/sys/vm/dirty_writeback_centisecs
echo 0 > /proc/sys/vm/laptop_mode
hal-disable-polling --device /dev/scd0 --enable-polling
ifconfig eth0 up
iwpriv eth1 set_power 1
#-------------------------------------------------------


For more tips on the settings, do visit the Tip and Tricks session under LessWatts.org

Thursday, August 27, 2009

iotop - Identifying the process with the I/O

iotop is a cool tool to help identify process with the corrsponding I/O in a top-like UI.

This python program needs a Linux Kernel of > 2.6.20 with TASK_DELAY_ACCT and TASK_IO_ACCOUNTING options enabled. In addition, it requires python >= 2.5

To install on Linux Mint
# apt-get iotop

How to use iotop

Note 1: Show process that are causing I/O now
# iotop -o

Note 2: iotop in batch mode
# iotop -o -b -d20 -n30 > check-io.txt
  • -o (show process that are causing I/O only)
  • -b (Turn on interactive mode. Useful for logging I/O usage over time)
  • -d (delay or interval of 20 sec)
  • -n (number of iteration before quiting)

More information:

Wednesday, August 26, 2009

Mounting an ISO Image under Linux

To mount an ISO Image under Linux, you can do the following:

Step 1: Create the mount point
# mount -p /mnt/ISO

Step 2: Mount the iso file
# mount -o loop linux.iso /mnt/ISO

Step 3: List the file stored inside an ISO Disk
# cd /mnt/ISO
# ls -l