Laptops :: Battery watch



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.

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...

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?
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

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!
Next Page...
original here.