Battery performance improvement with powertop and using xidel.

For those of you, who have not heard about powertop, it is a tool to monitor the power consumption on your system. It has a tab which shows the tuneable parameters. Doing the changes suggested in those would improve the life to quite an extent. Here is the description of powertop:

PowerTOP is a tool that finds the software component(s) that makeyour computer use more power than necessary while it is idle.

So, here is something that you can do to quickly apply the changes suggested by tuneable parameters.
First, get the report in html format using

sudo powertop --html

With this you will get powertop.html and now quickly get the xidel binary from sourceforge site. Once you have got that exeute the command

xidel powertop.html   -e "css('html body div#tuning table tr td:nth-child(2)')"

This will show you all the tuneable parameters of your system 🙂

 

Enhanced by Zemanta

Ubuntu – Really force remove a package.

I was trying to remove a package on one of the Ubuntu installations the other day and was not able to do so. I tried google and tried all the options mentioned in various forums like “-f”, purge, reinstall and few others but nothing helped. I kept getting some errors about some files being already deleted. I also tried “set -e” in the prompt but the only result I got was terminal also getting killed.

Finally I found the only thing that could work for me was to go to directory “/var/lib/dkpg/info”and then delete all files that started with the name of the package. Hope this helps someone.

Ubuntu-Desktop
Ubuntu-Desktop (Photo credit: Kevin Byrom)
Enhanced by Zemanta

snmpd -verify if the mibs are loaded.

If you are setting up the snmpd server and have added your own mibs and do not really know if the mibs are loaded or not then simply go to the directory:

/var/lib/net-snmp/mib-indexes

This can save you a lot of time, if you are not getting results with snmpwalk. You can even use snmpwalk as :

snmpwalk -v  -c

Well, these little things can save you a lot of time 🙂

Enhanced by Zemanta