Posts Tagged ‘ubuntu’

configure battery power settings in Gnome

January 25, 2013 Leave a comment

Gnome desktop does not allow users to set the values for battery critical state, Power settings will only allow users to set what action is to be taken when the battery is critical. By default it is considered critical when battery backup time is  5 minutes and it will initiate battery critical action when backup time remaining is 2 minutes. This default behavior is questionable because 2 minutes will not be sufficient for all users to find a power source and as most batteries used today are lithium-ion batteries, their life will get significantly reduced by this default behavior when drained so low so often.

Fortunately, this can be changed in configuration editor. systems using older Gnome versions such as Gnome2 desktops had a tool called Gconf-editor to change these configuration settings. Newer Gnome versions such as systems using Gnome3 desktop use a tool called dconf-editor to make changes to these configuration settings.Install this tool by using below command from terminal

sudo apt-get install dconf-editor

After installing open dconf-editor and look for following path in the left pane



In the right pane look for the fields,




and change the time values for the fields according to your preferences.Note that the time is defined in seconds.

Description for the fields and the type of value it accepts will be available at the bottom pane, when you select the fields.

Alternatively, if you want your system to consider the battery percentage instead of remaining time, uncheck the key


and modify the keys




to your preference.Now your system should take the values you defined after the next boot or restart your system for the settings to take effect immediately.


Ubuntu releases operating system for mobiles

January 3, 2013 Leave a comment

Ubuntu for mobile project  is announced by Canonical earlier today, delivering the last step in their intention to have one operating system for all range of devices.Canonical the parent company of ubuntu have their OS already available for desktops/laptops, servers, tablets and for TVs.This launch would bring ubuntu for mobile devices covering whole range of platforms.

Last year, Canonical announced ubuntu for android where Ubuntu would coexist with android on smartphones. We are yet to see any android phone manufactureres releasing smartphones with Ubuntu for android.Although I consider that project a not so successful one, I hope this would become a success story for ubuntu. This comes in as a direct competition to Firefox OS and Tizen and to some extent to android because it has the potential to be more powerful and efficient than android.Although android runs on linux kernel its java implementation will never equal the performance of native C code, as evident by the comparing the specs of top level android smartphones with the Apple’s latest iphone(iphone 5), which uses objective C with both having more are less equal performance inspite of its lower specs.Both Firefox OS and Tizen are touted as being the OS for web apps. Ubuntu mobile OS should able to run both web apps and mobile apps along with possibility of running native desktop applications as it is a full blown desktop operating system with mobile interface and will run in desktop mode when docked.Ubuntu did a great job of converging the all platforms and it is one operating system which could really bring what is called as a superphone.

Solve Eclipse showing empty dialog box in linux

May 24, 2011 2 comments

All of a sudden my eclipse IDE started showing empty dialog box after working fine for some days. Most of the solutions found talks about Xulrunner problem that doesn’t work for me. A simple solution would be to just move your workspace folder to a different location or delete it if don’t have any important projects inside it and start eclipse again.Now you are good to go.

Is Ubuntu damaging my laptop hard drive?

July 5, 2010 10 comments

I have been using ubuntu since 6.06 and loving it. I recently bought a new laptop and have discovered a problem it and ubuntu. It has a Western digital 320GB hard drive model: WB3200BEVT-22ZCT0 and ubuntu causes the drive temperature to increase to dangerously high levels while plugged in and while in battery the load_cycle_count seems to increase drastically. This is an old problem and have reported to been fixed but it’s not at least with this WD hard drives. I have used Ubuntu 9.04 , 9.10 and 10.04 in this laptop and all seems to have the problem.

While the laptop is plugged in the temperature of  drive seems to steadily rise to 54 °C  even while the system is at idle and the load_cycle_count increase is fairly normal and while working on battery the temperature of drive steadily returns to normal around 44 °C and there is a high increase of load_cycle_count values. According to the drive manufacturer’s website the maximum temperature of the drive while operating is 60 °C in ubuntu it comes pretty close to that.

I dual-boot ubuntu with windows vista that came with my laptop. While in vista my hard drive is perfectly fine both while on AC and on battery. While in idle or with minimum drive usage the drive average temperature is around 45-47 °C and load_cycle_count increase is normal. This is the case for both on AC and on battery.

I have reported a bug about this in launchpad bug #52195. Several others have reported about this problem like in bug #399978 and the bug itself has a number of duplicates, all relating to WD hard drives and also asked if anyone experience the same problem in ubuntu forums and it seems clearly I’m not the only one facing this issue. There hasn’t been any activity in bugs reported and hence this post to get some developer attention and sincerely hoping that this issue would probably sorted out in the next edition of ubuntu, the Maverick Meerkat.

Update: This has not been solved yet and have tried various other debian based distributions and it seems to be present in all those distributions i tried till now.
Update: Finally my hard drive’s life has come to an end after three years as the drive’s SMART has started reporting failure warning. But i have a backup of all the data in my drive in case it fails today or tomorrow or maybe later. Heck, who cares i still use GNU/Linux(Linux Mint) as my main operating system.

disable shutdown and restart confirmation dialogs in ubuntu lucid

June 7, 2010 7 comments

In ubuntu versions before lucid when the shutdown or restart button is pressed there will be a confirmation dialog asking to confirm your action and if no action is taken in 60 seconds the system will automatically confirm your action. But in lucid the auto confirmation is removed and you have to manually confirm your action no matter how long it is. However if you dont like your system asking you to confirm your action then there is a simple way to remove the confirmation dialog.

Open Gconf-editor by pressing Alt+F2 in desktop and type gconf-editor in the “Run application” dialog and press enter, the gconf-editor window will appear. In the left panel of the editor window navigate to:

/ -> apps -> indicator-session

In the right pane enable the key suppress_logout_restart_shutdown and close the editor. Now when the shutdown or restart or logout button is pressed there will be no confirmation dialog. If you change your mind and need the confirmation dialog back just uncheck the key value.To know more about the gconf-editor visit this link.

Alternatively you can disable it by typing the typing the following command in the terminal:

gconftool-2 –type bool –set /apps/indicator-session/suppress_logout_restart_shutdown true

To re-enable it just change the key value in the end of the command to false.

Note: double hyphen is used before type and set in the above command.

Recover files from your drive even if the drive file system is corrupt

April 8, 2010 1 comment

Most files can be recovered from storage drives even it is deleted , but in some rare cases where the file system of the drive itself  is corrupt then the data recovery becomes very difficult but not impossible .Consider a situation in which the memory card of your digital camera is corrupt and is unusable without being formatted , but if formatted all the precious pictures in it will be lost.In such extreme cases a little command line tool in Linux called magicrescue can be used. magicrescue can be used in cases where the drive’s filesystem or partition is completely corrupt or unusable and it can only be used to restore known file types such as images, mp3 etc .

If you are using ubuntu or any debian based Linux distribution ,install magicrescue by typing the following in terminal:

sudo apt-get install magicrescue

or else install it by using the distibution’s package manager.

After installing magicrescue connect your corrupted flash drive or memory card to the system , chances are that they do not get mounted due to corrupted filesystem . Find the hardware address of the drive ,for example if it is a flash drive the hardware address might be /dev/sdb or if it is a memory card you can find it in /dev/disk/by-id/ and will contain usb-card-reader or something like that, be careful not to select the wrong device.

magicrescue requires two mandatory options -d and -r. -d for specifying the output directory and -r to specify the recipe or the type of file to extract ,if multiple file types are to be extracted -r can be used successively.

For example if you want to extract jpeg files from the drive sdb ,the command to be used is:

sudo magicrescue -d ./Pictures/ -r jpeg-jfif -r jpeg-exif /dev/sdb

sudo is necessary because ordinary user cannot access the drive hardware directly and ./Pictures/ is the output directory and jpeg-jfif and jpeg-exif are jpeg filetypes and /dev/sdb is the drive from which the images are to be extracted.

Disable video and audio preview in Brasero disk burner

February 5, 2010 Leave a comment

Brasero disk burner has a new feature to show the preview of the video and audio files while choosing them for burning and it sometimes reduces the user’s ability to quickly select files for burning.For people who find the video and audio preview in the Brasero disk burner is annoying then this trick is for you.Brasero disk burner is the default disk burner in GNU/Linux distributions such as Ubuntu,Linux mint, Fedora, etc using the Gnome desktop environment. There’s no option to directly disable the preview viewer in the Brasero disk burner.Fortunately you can disable it using the gconf-editor.

For those who do not know about the gconf-editor , it is something similar to registry editor in windows .Various configurations of the Gnome desktop can be modified using the gconf-editor. To know what more can you do about the gconf-editor visit my earlier post about the gconf-editor here.

Now to disable the preview viewer in Brasero open gconf-editor by pressing Alt+F2 while and type in gconf-editor and press enter or open it by typing gconf-editor in terminal.After opening gconf-editor navigate to the following in the left pane:


Then in right pane there will be a key named viewer under the name column and a checkbox next to it in the value column ,just uncheck it to disable the preview viewer.If you want the previewer again just recheck it.

Alternatively,you can disable it using the command line tool named gconftool.To disable the previewer using gconftool open a terminal and type in the following:

gconftool-2 –type bool –set /apps/brasero/display/viewer false

To re-enable it using gconftool just change the key value in the end of the command to true.

Note: double hyphen is used before type and set in the above command.