View previous topic :: View next topic |
Author |
Message |
RoguePacket n00b
Joined: 06 Jan 2003 Posts: 6
|
Posted: Sat Jan 11, 2003 6:19 am Post subject: Laptop: Getting aKpi to monitor your battery state |
|
|
I just got gentoo 1.4rc2 running with kernel 2.4.20 with the newest acpi patch. After a day of emergeing kde, I found out that kde doesn't monitor your battery with the new patch. So I used aKpi to do it, and ran into some problem that might confuse a newbie. So I hope to this helps.
First you need to download the aKpi source from http://akpi.scmd.at/. Now you need to extract with
Code: |
$ bunzip2 akpi-x.x.x.tar.bz2
$ tar -xvf akpi-x.x.x.tar
|
replace x with your version. Now cd into akpi-x.x.x/source and open up the Makefile and add the kde paths /usr/kde/3/include and /usr/kde/3/lib like so
Code: |
$ cd akpi-x.x.x/source
$ nano -w Makefile
|
and modify the INCPATH and LIBS with the paths mentioned above
Code: |
INCPATH = -I$(QTDIR)/include -I$(QTDIR)/mkspecs/linux-g++ -I/usr/include/kde -I/usr/kde/3/include
LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -L/usr/kde/3/lib -lqt-mt -lXext -lX11 -lm -lkdeui
|
and save it. and simply type make
Hopefully you'll get no errors and you'll have a file called akpi. Now you'll want to copy this file to a place that will be executed, I put it in /usr/kde/3/bin so su to root and put your root password in
Code: |
$ su root
Password:
# cp akpi /usr/kde/3/bin/akpi
|
Now you need to copy over the pics for the application from pics and put it in the directory /usr/share/apps/akpi/pics/ (you should still be in the source folder of akpi.x.x.x)
Code: |
# mkdir /usr/share/apps
# mkdir /usr/share/apps/akpi/
# cp -r pics /usr/share/apps/akpi/pics
# chmod -R a+rX /usr/share/apps/akpi
|
okay, now you need to enable glx in your XF86Config file and exit root
Code: |
# nano -w /etc/X11/XF86Config
Section "Module"
# This loads the GLX module
Load "glx"
EndSection
# exit
$ akpi &
|
Now you should have a battery in your tray showing you your battery life. If you want to make sure it loads up at start up of KDE do this
Code: |
$ cd ~/.kde/Autostart/
$ ln -s /usr/kde/3/bin/akpi akpi
|
Now just reset KDE, and it should be running.
Hope this help.
RoguePacket |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|