Page 1 of 1

Posted: Tue 22 Mar 2011, 16:56
by mickee

Just curious, where does this message pop up? I tried clicking on the battery icon (lucid 5.2) and it just gives me a tooltip bubble.

Battery Info

Posted: Tue 22 Mar 2011, 17:25
by Karl Godt
Should be located @ /root/Startup/powerapplet_tray

It seems to look for info @ /proc/acpi/battery/BAT0/alarm info state

might be problematic if you boot with acpi=no
or your BIOS dates before 2001 which would mean that acpi is disabled by default ( changeable in the Kernel Configuration at compile time )
which would mean to boot with acpi=force to enable it,
which would disable apm automatically
and might lead to different shutdown behaviour .

There is also the acpi battery driver module

Code: Select all

modprobe battery
I tried clicking on the battery icon
Try left clicking the icon :?:

Re: Battery Info

Posted: Tue 22 Mar 2011, 17:43
by mickee
Karl Godt wrote:Should be located @ /root/Startup/powerapplet_tray

It seems to look for info @ /proc/acpi/battery/BAT0/alarm info state

might be problematic if you boot with acpi=no
or your BIOS dates before 2001 which would mean that acpi is disabled by default ( changeable in the Kernel Configuration at compile time )
which would mean to boot with acpi=force to enable it,
which would disable apm automatically
and might lead to different shutdown behaviour .

There is also the acpi battery driver module

Code: Select all

modprobe battery
I tried clicking on the battery icon
Try left clicking the icon :?:
Yeah, BIOS is 1999. And acpi not available (I think I saw that somewher the pup told me?. Thanks for the info.

Posted: Wed 23 Mar 2011, 11:42
by Karl Godt
Just checked again

Code: Select all

grep 'CONFIG_ACPI_BLACKLIST_YEAR' /etc/modules/DOTconfig-K2.6.30.5-01SEPT09-TICKLESS-SMP 
CONFIG_ACPI_BLACKLIST_YEAR=2002
and
acpi= [HW,ACPI,X86]
Advanced Configuration and Power Interface
Format: { force | off | strict | noirq | rsdt }
force -- enable ACPI if default was off
off -- disable ACPI if default was on
noirq -- do not use ACPI for IRQ routing
strict -- Be less tolerant of platforms that are not
strictly ACPI specification compliant.
rsdt -- prefer RSDT over (default) XSDT
copy_dsdt -- copy DSDT to memory

See also Documentation/power/pm.txt, pci=noacpi
I am still testing kernel params to enable the it87 temperature module against acpi with support for real poweroff[ not standby ].
So excuse for '2001' and 'acpi=no'

It would be interesting to hear , if your're able to load the "apm" module
* Various options can be changed at boot time as follows:
* (We allow underscores for compatibility with the modules code)
* apm=on/off enable/disable APM
* [no-]allow[-_]ints allow interrupts during BIOS calls
* [no-]broken[-_]psr BIOS has a broken GetPowerStatus call
* [no-]realmode[-_]power[-_]off switch to real mode before
* powering off
* [no-]debug log some debugging messages
* [no-]power[-_]off power off on shutdown
* [no-]smp Use apm even on an SMP box
* bounce[-_]interval=<n> number of ticks to ignore suspend
* bounces
* idle[-_]threshold=<n> System idle percentage above which to
* make APM BIOS idle calls. Set it to
* 100 to disable.
* idle[-_]period=<n> Period (in 1/100s of a second) over
* which the idle percentage is
* calculated.
*/

/* KNOWN PROBLEM MACHINES:
*
* U: TI 4000M TravelMate: BIOS is *NOT* APM compliant
* [Confirmed by TI representative]
* ?: ACER 486DX4/75: uses dseg 0040, in violation of APM specification
* [Confirmed by BIOS disassembly]
* [This may work now ...]
* P: Toshiba 1950S: battery life information only gets updated after resume
* P: Midwest Micro Soundbook Elite DX2/66 monochrome: screen blanking
* broken in BIOS [Reported by Garst R. Reese <reese@isn.net>]
* ?: AcerNote-950: oops on reading /proc/apm - workaround is a WIP
* Neale Banks <neale@lowendale.com.au> December 2000
*
* Legend: U = unusable with APM patches
* P = partially usable with APM patches
*/