(sorry if this is the wrong component) I have Toshiba M35X-S106 laptop, and I did a fresh install of Fedora Core 3. When I first saw my desktop, I was disappointed that there was no battery status applet included. It was only later that I discovered that it did exist; I just had to add it myself from a secret menu. From a usability perspective, it makes sense to automatically include the applet on the default desktop, if Fedora is being/has been installed on a portable, battery-powered device like a laptop. -B.
Yeah, the scriptlet in gnome-panel.spec to install the applet on the default panel only detects when APM is enabled and doesn't do anything when ACPI is enabled and APM is disabled.
So, the APM check looks like: apm=false if [ -f /proc/apm ]; then # Battery present if top bits are unset flag=$(cat /proc/apm | cut -d ' ' -f 6 | sed 's/0x\([0-9a-f]\)[0-9a-f]/\1/') if [ "$flag" == "0" ]; then apm=true fi fi Probably want to make it something like: pm_available=false if [ -f /proc/acpi/event ] ; then for battery in /proc/acpi/battery/*/state; do if grep 'present: *yes' $battery >/dev/null 2>&1; then pm_available=true fi done elif [ -f /proc/apm ]; then # Battery present if top bits are unset flag=$(cat /proc/apm | cut -d ' ' -f 6 | \ sed s/0x\([0-9a-f]\)[0-9a-f]/\1/') if [ "$flag" == "0" ]; then pm_available=true fi fi
Should be fixed in rawhide now: * Mon Apr 18 2005 Mark McLoughlin <markmc> 2.10.1-2 - Add the battery applet to the panel in %post if ACPI is available (bug #143828)
Confirmed that this is fixed as of Fedora 7. Yay!