After upgrading to 10.04 on my laptop I found that the battery monitor bar was returning an empty bar with no data. Inspection of errors returned by running it in the terminal showed that conky was trying to identify the battery by the wrong portion of the script, specifically:
${battery_bar 7,65 BAT0}Where it should have been attempting to lookup 'BAT0', it was actually looking up '7,65'. After double checking that the script had been written correctly, I attempted a reinstall from the repositories, to no avail! The solution ended up being just to download the source, compile and install.
Conky source can be found here, download the tarball of the latest version.
To install:
Ensure dependencies have been met:
sudo apt-get install lua5.1 liblua5.1-0-dev libxml2-dev build-essential libcurl4-gnutls-dev libx11-dev libxt-dev libxext6-dbg libxext-dev libxdamage-dev libxft-dev libimlib2-dev libglib2.0-devFind the Conky tarball you have downloaded and extract the contents to a convenient location, then navigate to this folder in the terminal.
Then, while in this directory, in the terminal:
./configureAnd you're done! For convenience you could use a program called checkinstall to autobuild a deb, so that it is easier to remove or upgrade conky at a later date.
make
sudo make install
To do this simply replace 'sudo make install' with 'sudo checkinstall'. Follow the steps and enjoy Conky!
Thank you so much, is work it again.
ReplyDeleteWithout compilation, I just switched the arguments in .conkyrc and have it working again:
ReplyDelete${battery_bar BAT0 10,300}
HTH :)
the new systax for the $battery_bar variable is:
ReplyDelete${battery_bar num height,width}
num is your battery's id
But the problem is that height and width arguments won't work. plz help :(
Thanks, now everything works as it should! :D
ReplyDeleteit works as the 2nd anonymous said.
ReplyDelete${battery_bar BAT0 25,130}
For now you just have to add the conky repository
ReplyDeletesudo apt-add-repository ppa:norsetto/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install conky-all
hi.ihave installed libs that u say with sudo apt-get installed. Then i can not run any program.After that i restarted my computer and my ubuntu doesnt start.It wait ubuntu loading screen.Can u help me i can not use my ubuntu because of this libs
ReplyDeleteNothing here will have that effect. So this timing of the problem is almost certainly incidental.
ReplyDeleteMore information please. What version and architecture of Ubuntu are you using? Are there any error messages visible? (try pressing escape). Have you recently made any other changes or run any updates?
Im using ubuntu 10.04 .Loading hangs when "checking battery state".
ReplyDeleteDoes your laptop have an intel graphics chip? If so, then this would sseem to be related - https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/554904
ReplyDelete