Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 [2] 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Battery watch, howto install a battery watch for Laptop< Next Oldest | Next Newest >
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Jan. 29 2006,04:36 QUOTE

Edit your

/home/dsl/.xinitrc

file and add the command to the list

usually it is something like:

wmapm &

The "&" is needed at the end to launch the program as a background process so the next lines in the script will continue to be executed.

Don't put the command at the end of the file.

It must be located above the last command that is already included in the file.
Back to top
Profile PM 
freeze Offline





Group: Members
Posts: 26
Joined: Jan. 2006
Posted: Jan. 29 2006,11:23 QUOTE

YES! That did it. Thank you cbagger01.

altered /home/dsl/.xinitrc
Code Sample

# put X windows programs that you want started here.
# Be sure to add at the end of each command the &

KEYTABLE="$(getknoppixparam.lua KEYTABLE)"
DESKTOP=`cat $HOME/.desktop`

# For German Keyboards
if [ $KEYTABLE == "de" ]; then
 xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
fi

if egrep -qv noicons /proc/cmdline 2>/dev/null; then
 iconsnap.lua &>/dev/null &
 xtdesk &>/dev/null &
fi
#dillo /usr/share/doc/dsl/getting_started.html &>/dev/null &
case $DESKTOP in
 fluxbox )
   fluxter -w &>/dev/null &
   mount.app &>/dev/null &
   asmem -withdrawn -bg black -fg white -memory red &>/dev/null &
   wmcpuload &>/dev/null &
   wmnet -w &>/dev/null &
   wmix &>/dev/null &
   wmapm &                                     #<============================ thats the one
   exec fluxbox 2>/dev/null
 ;;
 jwm )
   ./.background
   sleep 1
   exec jwm
 ;;
 * )
   exec fluxbox 2>/dev/null
 ;;
esac


one mor thing I had to do was:
Code Sample

ln -s /usr/bin/wmapm /opt/wmapm/wmapm

cause it didn't have that link in my box as default.
Okay, thanks again...


--------------
"There is *always* one more bug." -Lubarsky's Law of Cybernetic Entomology
Back to top
Profile PM 
pj-nevada Offline





Group: Members
Posts: 6
Joined: May 2005
Posted: Feb. 13 2006,16:27 QUOTE

My luck with the battery watch wasn't so good.  Device is thinkpad X24.  Tried both wmacpi and wmapm.  Using dsl 2.2 .  For wmacpi the message was 'No batteries or ACPI not supported.'  Got nothing from wmapm so tried modprobe for apm and message was 'No such device'.  When I shutdown I get message 'apm: overridden by ACPI'.   Any ideas?
Back to top
Profile PM 
freeze Offline





Group: Members
Posts: 26
Joined: Jan. 2006
Posted: Feb. 15 2006,08:56 QUOTE

I would try to "disable" or "enable" the power magement in the bios.
Further check apm and acpi in your dmesg. Mine says i can force acpi. So you can do that at boot or even alter your lilo or grub conf.
Try "dmesg >> dmesg.dump" and read that with nano or so. There should be an entry at the beginning of the text.

Good luck :)

Oh, and please reply when you get it running... thx


--------------
"There is *always* one more bug." -Lubarsky's Law of Cybernetic Entomology
Back to top
Profile PM 
pj-nevada Offline





Group: Members
Posts: 6
Joined: May 2005
Posted: Feb. 18 2006,00:50 QUOTE

Freeze, much gratitude.  Did the dmesg dump as you suggested.  Found suggestion near top of file to boot with acpi=off.  Did that.  Now apm works like a charm!  Thanks!
Back to top
Profile PM 
11 replies since Jan. 23 2006,23:17 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: Battery watch

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code