CarmaBlog

Agility, Java programming, New technologies and more…
  • rss
  • Home
  • Management
  • Agile Programming
  • Technology
  • Linux
  • Event
  • Contact
  • About the author
  • English
  • Francais

A mobile version of your WordPress Blog

Fabian Piau | Sunday October 28th, 2012 - 06:15 PM
738 views
  • Twitter
  • Facebook
  • Google +1
  • LinkedIn

Mobile devices

Since version 1.8, Jetpack WordPress plugin includes a new plugin called “Mobile theme”, in order to improve the user experience of your blog with mobile devices.

Almost nothing to configure, absolutely brilliant!

Classic desktop theme

Classic desktop theme

Mobile theme

Mobile theme

The plugin replaces automatically your theme. At the bottom of the page, the user can still choose to go back to the classic desktop theme.

To know which other plugins I am using on CarmaBlog, you can read my previous post.

You want to know how your site looks like in different smartphone browsers (iPhone IOS, Samsung Android or BlackBerry RIM)? This website is the one I used to do the screenshots and works pretty well.

Related posts

WordPressWordPress plugins of CarmaBlog GravatarYour global avatar with Gravatar FirefoxFirefox Nightly, Aurora, Beta, Desktop, Mobile, ESR & Co.
Comments
1 Comment »
Categories
Technology
Tags
blog, emulator, extension, mobile computing, plugin, wordpress
Comments rss Comments rss

Extend your laptop’s battery life

Fabian Piau | Sunday July 4th, 2010 - 11:25 AM
581 views
  • Twitter
  • Facebook
  • Google +1
  • LinkedIn

To continue on the topic of my previous post, I introduce you some tips under Linux (Ubuntu & Debian distributions) and general tips to increase your laptop’s battery life.

Laptop Battery

Turn off the screen

You have to make a phone call, go through a document or… a body need. During this time, you often leave your computer on. Rather than keeping your monitor on or suspending the system (note that when the system wakes up, it consumes a great amount of energy), why not turn the screen off temporary with a single click?

For this, you just have to create a launcher (shortcut) and configure it to execute this command:

xset dpms force off

Then, it can be added to your taskbar or desktop. For daily use, you can also assign it to your own keyboard shortcut.

The acronym DPMS stands for Display Power Management Signaling. It is a command line program that allows power saving behaviour of monitors when the computer is not in use. Other options are available. You can read this post for more information.

Launcher to turn off screen


CPU Scaling

CPU Scaling is a feature built into most modern mobile CPUs that allows them to scale up or down in how fast they run (the frequency). If you have a fairly modern mobile computer there is a very good chance that your CPU can handle frequency scaling. For example, my five-year-old computer is based on an Intel Centrino CPU which supports it !

It is a pity that your processor runs at full speed if you are using a word processing or surfing the internet. Unless you are editing a movie or playing video games, this enables you to extend the use time of your laptop.

The idea is to “underclock” the processor when it is not fully stressed by your applications. A processor can save energy by running slower. Unfortunately, this will result in a slight performance degradation. So you have to find the good compromise.

Processors handle scaling differently. Various frequencies and modes are available depending on your model. To know yours, you need to install and activate the “CPU Frequency Scaling Monitor” applet.

CPU Scaling applet

Here is a short explanation for each mode:

  • “Powersave” will keep the CPU constantly at the lowest frequency. This mode is very useful to preserve the battery;
  • “Ondemand” will set the CPU at the lowest frequency until use of the CPU increases, then it will automatically set it up to the highest frequency. This is generally the default mode;
  • “Performance” simply sets the CPU at the highest available frequency. It is better to have your laptop plugged-in while using this mode;
  • “Conservative” is quite similar to the « Ondemand » mode. Your CPU will go up as needed, starting at the lowest frequency, and then setting up to the next available frequency (not the highest). It is the best compromise when you do not pay too much attention to your battery;
  • Finally, you also have the possibility of setting manually the frequency. In my case, I have four choices (0.798 GHz, 1.06 GHz, 1.33 GHz and 1.73 GHz).


GPU Scaling

The graphics card is also very energy-consuming. Following the example of the CPU, it is possible to put its chip into a low voltage mode. In my example, I use an ATI graphics card. It does seem that Nvidia provides a similar software.

We will use the command line tool “ATI Powerstate” available when you install the official driver. In the same time, we will make it more user-friendly for daily usage by adding a GUI.

First, you need to write a bash script:

#!/bin/bash

## Mode selection
    ACT=$(aticonfig --lsp | grep :  | zenity --list --title "ATI PowerState" --width=230 --height=166 \
        --text="Select a mode :"\
        --column="Mode"\
);
        if [ "${PIPESTATUS[0]}" != "0" ]; then
            exit
        fi


## Available modes

    # Idle
        echo "$ACT" | grep "1:" >/dev/null
            if [ "$?" = 0 ] ; then
                aticonfig --set-powerstate=1 | echo message:Idle mode activated | zenity --notification --listen --window-icon="info"
            fi

    # Default
        echo "$ACT" | grep "2:" >/dev/null
            if [ "$?" = 0 ] ; then
                aticonfig --set-powerstate=2 | echo message:Normal mode activated | zenity --notification --listen --window-icon="info"
            fi

Then, we create a launcher to execute this script.

Tune up graphic chip

Ati PowerState

In my case, I have two power states available. You can have more choices depending on the model of your graphic chip. Thus, it can be necessary to modify the script. By default (whether the laptop is plugged-in or not), the graphic card will run at full speed.

After selection, a tooltip shows up to confirm you about the running mode.

Idle mode activated

Normal mode activated

Once again, you will be in a dilemma, choosing between energy saving and a decrease in performance. For example, the greatest 3D effects are a little bit jerky when I activate the idle mode.

Still and always the good practices…

Except these few tips which have required the installation and/or the use of specific software, there are no secrets to preserve the energy of your battery ! There are still the good practices, the ones that have always been known to work on any computer and under any operating system. Here is a non-exhaustive list:

  • Disconnect your external devices when you do not use them: hard drive, USB stick, mouse, webcam or any USB powered device;
  • Deactivate wireless technologies (WI-FI and Bluetooth) when you do not use it;
  • Close the applications you do not use. Multitasking stresses the CPU and storing lot of information in memory consumes energy;
  • Deactivate the extra and unnecessary 3D effects (Oh no ! My nice-looking visual effects ! I’m afraid that’s another compromise again… ;) );
  • Decrease the screen brightness if necessary;
  • Under Windows, defragment your hard drive regularly. Of course, do not launch the defrag process while your laptop is not plugged-in;
  • Finally (with no ulterior motive), keep in mind that some available operating systems manage defragmentation and battery lifetime better than others.

With all these advices, you will certainly succeed in double your battery lifetime, and thereby extend your battery lifespan.

Related posts

No posts found...

Comments
No Comments »
Categories
Linux
Tags
bash, battery, mobile computing, ubuntu
Comments rss Comments rss

A personal thought : mobility, energy & society

Fabian Piau | Wednesday June 2nd, 2010 - 05:29 PM
733 views
  • Twitter
  • Facebook
  • Google +1
  • LinkedIn

Mobile computing

Let’s go a step back in time, a decade ago. And remember, (perhaps!) you were walking in the IT department of a major computer retailer. The laptops section was rather cramped compared to that of desktop computers. There were maybe two or three models at the most that would cost you a fortune for low performance.

But times are changing. Now, the IT department is full of laptops, netbooks, media tablets and other latest fashion technology. From now on, the desktop computers section is limited to a few models which are mainly designed for hardcore gamers… At the same time, the difference between a cellphone and a computer is vanishing. To phone is the primary function and becomes also the only difference.

Workplace is not lagging behind. For instance, it is common for companies to provide laptops to their employees.

Is this only a fad? This is certainly the case for some people but, generally speaking, mobile computing has become essential in our society. Computer hardware is constantly evolving to become ever more efficient and miniaturized. The software and hardware frontiers are constantly pushed back. For example, majority of cellphones now have touch screens and 3D television is finally coming to our homes. All things considered, the movie “Minority Report” directed by Steven Spielberg is not so far from reality (apart from the precognition of course).

More recently, “iPad” release has been one of the most important events worldwide this month. Apple succeeds in making an incredible marketing ploy based on innovation, keystone to its success. Endless queues, shortages, camping out (some people did not hesitate to pitch their tents outside of the famous “Apple Stores”, in order to be one of the first to reach the “holy grail”). The world is really turning upside down.

But there is still the flipside of the coin! Thus, a permanent internet connection, a high resolution touch screen and so on are very energy-consuming. Unfortunately, this in one major area where technology is not ready yet. Indeed, lithium batteries which are used in electronic devices in a long time seem to be outdated.

The battery is one of the most important component in the device but is also its biggest weakness. Thus, it is necessary to plug in the mobile device to charge its battery. In the worst case, you need to charge the battery once a day because your device consumes too much power. When you think about it, you realize that it goes against the main device’s feature which is to bring it with you everywhere without restraint.

On the other hand, some major manufacturers make unexpected and drastic decisions. When the battery is deficient, they choose to replace the whole product, rather than by fixing or replacing the battery. That raises the environmental issue, that has been discussed over the past few years and concerns all of us. It should be noted that the technology has become disposable. This situation is quite alarming, and especially sad when we know that this how we stimulate our economy…

Related posts

No posts found...

Comments
No Comments »
Categories
Technology
Tags
environment, mobile computing, society
Comments rss Comments rss
Page 1 of 11

Language

  • Français
  • English

Most viewed posts

  • Changing the language in Firefox - 20,524 views
  • Java EE & CDI vs. Spring - 10,212 views
  • Customizing Gnome 3 (Shell) - 8,782 views
  • Firefox Nightly, Aurora, Beta, Desktop, Mobile, ESR & Co. - 6,817 views
  • WordPress plugins of CarmaBlog - 5,666 views
  • Open Street Map, better map than Google Maps? - 3,286 views
  • This file is currently used, you cannot do anything… Thanks you Windows ! - 2,966 views
  • Belbin – Team Role Theory - 2,503 views
  • Using Google Docs to create an online survey - 2,400 views
  • Changing the Eclipse splash screen in few seconds - 2,131 views

Twitter

My Tweets

Tags

configuration management plugin training test script google mongodb extreme programming wordpress sharing hard drive windows seven ebook extension fosdem unit test nantes tdd c# .net agility jquery social blog mobile computing bash continuous integration eject docjax documents search engine unmount agile tool watin firefox hibernate jug itil cloud ci chrome automation ubuntu java wave build eclipse nosql best practices windows 7

Recent Posts

  • Measuring your influence on the web with Klout Friday May 31st, 2013
  • Get the opportunity to start a course about Gamification Tuesday April 2nd, 2013
  • Comparing NoSQL: Couchbase & MongoDB Friday March 8th, 2013
  • IconFinder, find efficiently your icons Friday March 1st, 2013
  • Fosdem 2013 Impressions Wednesday February 20th, 2013
  • Fosdem, a truly open conference Monday January 28th, 2013
  • Free online MongoDB training Tuesday January 1st, 2013
  • Discover Maxthon Tuesday December 11th, 2012
  • Shutdown, standby or hibernate your computer? Sunday December 9th, 2012
  • A mobile version of your WordPress Blog Sunday October 28th, 2012
  • Using Google Docs to create an online survey Monday September 24th, 2012
  • Open Street Map, better map than Google Maps? Wednesday July 25th, 2012
  • First steps with Apache Camel Friday May 11th, 2012
  • This file is currently used, you cannot do anything… Thanks you Windows ! Sunday April 22nd, 2012
  • Customizing Gnome 3 (Shell) Thursday March 15th, 2012

RSS feeds

RSS Feed RSS - Posts

RSS Feed RSS - Comments

Email Subscription

Enter your email address to receive notifications of new posts.

Links

  • Agile Nantes
  • Blog Ippon Technologies
  • Blog Netapsys
  • Blog Xebia France
  • Blog Zenika
  • Coursera
  • Developpef
  • Le Touilleur Express
  • Les Cast Codeurs Podcast
  • new Blog( perso );
  • OCTO talks !
  • The Coder's Breakfast

Follow me!

Follow me on TwitterFollow me on LinkedInFollow me on Google+Follow me on About.meFollow me on SlideShare

Categories

  • Event (9)
  • Linux (3)
  • Management (4)
  • Agile programming (11)
  • Technology (27)

Archives

  • May 2013 (1)
  • April 2013 (1)
  • March 2013 (2)
  • February 2013 (1)
  • January 2013 (2)
  • December 2012 (2)
  • October 2012 (1)
  • September 2012 (1)
  • July 2012 (1)
  • May 2012 (1)
  • April 2012 (1)
  • March 2012 (1)
  • February 2012 (1)
  • January 2012 (2)
  • December 2011 (1)
  • November 2011 (2)
  • October 2011 (2)
  • September 2011 (1)
  • July 2011 (1)
  • June 2011 (2)
  • April 2011 (1)
  • March 2011 (1)
  • February 2011 (1)
  • January 2011 (2)
  • November 2010 (2)
  • September 2010 (1)
  • August 2010 (1)
  • July 2010 (1)
  • June 2010 (1)
  • May 2010 (1)
  • April 2010 (1)
  • March 2010 (1)
  • February 2010 (1)
  • December 2009 (1)
  • November 2009 (1)
  • October 2009 (2)
  • September 2009 (2)
  • August 2009 (3)
  • July 2009 (1)
  • June 2009 (2)
rss Comments rss get firefox
Fabian Piau | Copyright © 2009 - 2013
All Rights Reserved | Top ↑