hazard
India | Linux and Photography Blog Skip to main content

Linux and Photography Blog

  • Contact Form
  • Privacy Policy

Tag: India

Photos of “THE TAJ”

November 24, 2016November 27, 2016 Amit Agarwal Leave a comment

Much deserved vacation and visit to “THE TAJ”

 

TAJ from front
TAJ from front
TAJ and reflection
TAJ and reflection
TAJ Full View
TAJ Full View
TAJ Reflection
TAJ Reflection
Link to this post!

Socialize

Lal Bagh 2013 – Photos from Flower show on 15 Aug 2013

August 12, 2013August 11, 2013 Amit Agarwal Leave a comment

Its again that time of the year, when visiting Lal Bagh ( Bangalore , India) is so much fun. There is a lot of crowd and there are lot of opportunities for photography. So, here are some of the photos 😉

DSC_1427

For more, visit my Flickr profile.

Enhanced by Zemanta
Link to this post!

Socialize

Disable a few cores when you want to save power.

December 28, 2012December 28, 2012 Amit Agarwal Leave a comment

If you have a lot of CPU power and working on battery. If you do not need that much of power and would like to rather save some battery power by disabling some cpus then you can use the below script. This script disables cpus from 4 to 7. You can change the number in the for loop. You would need the sudo to be setup or remove sudo and run the script as root. The script will show you the currently active cpu’s before and after disabling the CPU’s.

If you want to disable to cpus from the grub itself then you can add the below parameter in grub.cfg or grub2.cfg in the vmlinuz line:

1
maxcpus=4

Here is the script:

#!/bin/bash -
#===============================================================================
#
#          FILE: disablecpu.sh
#
#         USAGE: ./disablecpu.sh
#
#   DESCRIPTION:
#
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: Amit Agarwal (aka)
#      REVISION:  ---
#===============================================================================

#set -o nounset                              # Treat unset variables as an error
cat /proc/cpuinfo|grep cores|wc -l
for i in {4..7}
do
    sudo sh -c "echo 0 > /sys/devices/system/cpu/cpu$i/online"
done
cat /proc/cpuinfo|grep cores|wc -l
Related articles
  • quick bash script for datewise backup of directory
  • Re: Consolidated Litecoin Mining Guide for 5xxx, 6xxx, and 7xxx GPUs
Enhanced by Zemanta
Link to this post!

Socialize

Posts navigation

1 2 … 4 Older posts

Search

Pages

  • Contact Form
  • Privacy Policy
  • Sitemap

Blog

  • Android App
  • Contact Me
  • G+ Profile
  • Homepage
  • Login
  • My Photo Gallery
  • My Photos
  • RSS Feed

Cal

December 2019
M T W T F S S
« Oct    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Email Subscribe

Myself

raj77in

raj77in

Linux and Photography is my passion. Blog: http://blog.amit-agarwal.co.in

Personal Links

  • Linux Blog
  • Linux and Photography Blog
  • Docker Hub
  • Github

Verified Services

View Full Profile →

sparkling Theme by Colorlib Powered by WordPress