Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 271625

Summary: kde battery indicator doesn't work with 2.6.28 kernels
Product: Gentoo Linux Reporter: ta2002 <throw_away_2002>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED WONTFIX    
Severity: normal CC: esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description ta2002 2009-05-29 07:53:02 UTC
On two different laptops, after upgrading to a 2.6.28 kernel, the battery indicator no longer appears in the panel.

The control center says:

"Your computer seems to have a partial ACPI installation. ACPI was probably enabled, but some of the sub-options were not - you need to enable at least 'AC Adaptor' and 'Control Method Battery' and then rebuild your kernel."

The relevant part of the 2.6.28-r5 kernel config:

# Power management and ACPI options
#
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
CONFIG_PM_SLEEP_SMP=y
CONFIG_PM_SLEEP=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
CONFIG_HIBERNATION=y
CONFIG_PM_STD_PARTITION="/dev/sda1"
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
# CONFIG_ACPI_PROCFS is not set
# CONFIG_ACPI_PROCFS_POWER is not set
CONFIG_ACPI_SYSFS_POWER=y
# CONFIG_ACPI_PROC_EVENT is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_WMI is not set
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
# CONFIG_ACPI_PCI_SLOT is not set
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=y
# CONFIG_ACPI_SBS is not set
# CONFIG_APM is not set

And from 2.6.27-r10 (working):

# Power management options
#
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
CONFIG_PM_SLEEP_SMP=y
CONFIG_PM_SLEEP=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
CONFIG_HIBERNATION=y
CONFIG_PM_STD_PARTITION="/dev/sda1"
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
# CONFIG_ACPI_PROCFS is not set
# CONFIG_ACPI_PROCFS_POWER is not set
CONFIG_ACPI_SYSFS_POWER=y
# CONFIG_ACPI_PROC_EVENT is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
# CONFIG_ACPI_BAY is not set
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_WMI is not set
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
# CONFIG_ACPI_PCI_SLOT is not set
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=y
# CONFIG_ACPI_SBS is not set
# CONFIG_APM is not set
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-10-23 10:04:19 UTC
"kde battery indicator" ?

KDE3? KDE4? From which package is this application from and which version?
Comment 2 ta2002 2009-10-23 16:19:43 UTC
(In reply to comment #1)
> "kde battery indicator" ?
> 
> KDE3? KDE4? From which package is this application from and which version?

KDE3 (3.5.9 to be exact). The klaptop daemon provides this information.

This actually looks like some kernel (possibly configuration) problem (existing all the way up to my current kernel - gentoo-sources-2.6.30-r6).

CONFIG_ACPI_BATTERY:
This driver adds support for battery information through /proc/acpi/battery.

From /var/log/messages:

Oct 23 15:42:47 system ACPI: AC Adapter [ACAD] (on-line)
Oct 23 15:42:47 system ACPI: Battery Slot [BAT0] (battery present)
Oct 23 15:42:47 system input: Power Button (FF) as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
Oct 23 15:42:47 system ACPI: Power Button (FF) [PWRF]
Oct 23 15:42:47 system input: Power Button (CM) as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input1
Oct 23 15:42:47 system ACPI: Power Button (CM) [PWRB]
Oct 23 15:42:47 system input: Sleep Button (CM) as /devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input2
Oct 23 15:42:47 system ACPI: Sleep Button (CM) [SLPB]
Oct 23 15:42:47 system input: Lid Switch as /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input3
Oct 23 15:42:47 system ACPI: Lid Switch [LID]
Oct 23 15:42:47 system ACPI: SSDT 7FE7E635, 01E5 (r1 HP     30BD         3000 INTL 20050624)
Oct 23 15:42:47 system ACPI: SSDT 7FE7E3D4, 01DC (r1 HP     30BD         3001 INTL 20050624)
Oct 23 15:42:47 system ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
Oct 23 15:42:47 system processor ACPI_CPU:00: registered as cooling_device0
Oct 23 15:42:47 system ACPI: Processor [CPU0] (supports 8 throttling states)
Oct 23 15:42:47 system ACPI: SSDT 7FE7E81A, 0094 (r1 HP     30BD         3000 INTL 20050624)
Oct 23 15:42:47 system ACPI: SSDT 7FE7E5B0, 0085 (r1 HP     30BD         3000 INTL 20050624)
Oct 23 15:42:47 system ACPI: CPU1 (power states: C1[C1] C2[C2] C3[C3])
Oct 23 15:42:47 system processor ACPI_CPU:01: registered as cooling_device1
Oct 23 15:42:47 system ACPI: Processor [CPU1] (supports 8 throttling states)
Oct 23 15:42:47 system thermal LNXTHERM:01: registered as thermal_zone0
Oct 23 15:42:47 system ACPI: Thermal Zone [THR1] (46 C)

However, there is no /proc/acpi/battery:

$ ls -al /proc/acpi/
total 0
dr-xr-xr-x   7 root root 0 2009-10-23 16:00:31 ./
dr-xr-xr-x 108 root root 0 2009-10-23 15:42:29 ../
dr-xr-xr-x   5 root root 0 2009-10-23 16:00:31 button/
dr-xr-xr-x   3 root root 0 2009-10-23 16:00:31 embedded_controller/
dr-xr-xr-x   2 root root 0 2009-10-23 16:00:31 power_resource/
dr-xr-xr-x   4 root root 0 2009-10-23 16:00:31 processor/
dr-xr-xr-x   3 root root 0 2009-10-23 16:00:31 thermal_zone/
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-10-31 11:32:33 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > "kde battery indicator" ?
> > 
> > KDE3? KDE4? From which package is this application from and which version?
> 
> KDE3 (3.5.9 to be exact). The klaptop daemon provides this information.

Thanks. 

KDE3 is about to be removed from Portage, so closing this then.