Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Battery not detected
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jetboo
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2007
Posts: 94

PostPosted: Fri Feb 24, 2017 1:13 pm    Post subject: [SOLVED] Battery not detected Reply with quote

Hi,

I am using an old macbook (late 2008 model) and my battery is not detected by the acpi. I am using the kernel 4.9.6 but this problem is there since a long time although i can't say exactly when it started.
Code:
 uname -ar:
Linux djanboox 4.9.6-gentoo-r1-nouveau-kernel #5 SMP Wed Feb 22 16:08:25 CET 2017 x86_64 Intel(R) Core(TM)2 Duo CPU P7350 @ 2.00GHz GenuineIntel GNU/Linux


Here are the devices that are detected by the kernel (ACPI) during boot.

Code:
[    0.598959] pnp 00:03: Plug and Play ACPI device, IDs PNP0b00 (active)
[    0.599875] pnp: PnP ACPI: found 4 devices
[    0.605911] ACPI: PCI Interrupt Link [LUS0] enabled at IRQ 20
[    0.657523] ACPI: PCI Interrupt Link [LUS2] enabled at IRQ 17
[    0.658067] ACPI: PCI Interrupt Link [Z000] enabled at IRQ 22
[    0.710512] ACPI: PCI Interrupt Link [Z001] enabled at IRQ 22
[    0.768412] ACPI: PCI Interrupt Link [Z00F] enabled at IRQ 20
[    0.781520] ACPI: AC Adapter [ADP1] (on-line)
[    0.781683] ACPI: Lid Switch [LID0]
[    0.781768] ACPI: Power Button [PWRB]
[    0.781848] ACPI: Sleep Button [SLPB]
[    0.781953] ACPI: Power Button [PWRF]
[    0.789700] ACPI: PCI Interrupt Link [LSI0] enabled at IRQ 18
[    0.793042] ACPI: PCI Interrupt Link [LMAC] enabled at IRQ 17
[    2.010512] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (unknown) filtered out
[    2.014002] ata2.00: ACPI cmd ef/10:03:00:00:00:a0 (unknown) filtered out
[    2.018791] ata2.00: ACPI cmd ef/10:03:00:00:00:a0 (unknown) filtered out
[    2.020484] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (unknown) filtered out
[    2.617125] ACPI: PCI Interrupt Link [LAZA] enabled at IRQ 18
[    4.319920] ACPI: PCI Interrupt Link [LGPU] enabled at IRQ 20
[44880.867162] ACPI : EC: event blocked
[44882.952373] ACPI : EC: interrupt blocked

As you can see there is no BAT* devices being detected during the boot, while in the kernel setup the battery is enabled.

Code:
# Power management and ACPI options
CONFIG_ACPI=y
CONFIG_ACPI_LEGACY_TABLES_LOOKUP=y
CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=y
CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y
# CONFIG_ACPI_DEBUGGER is not set
CONFIG_ACPI_SLEEP=y
# CONFIG_ACPI_PROCFS_POWER is not set
CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y
# CONFIG_ACPI_EC_DEBUGFS is not set
CONFIG_ACPI_AC=y
[b]CONFIG_ACPI_BATTERY=y[/b]
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_FAN=y
# CONFIG_ACPI_DOCK is not set
CONFIG_ACPI_CPU_FREQ_PSS=y
CONFIG_ACPI_PROCESSOR_CSTATE=y
CONFIG_ACPI_PROCESSOR_IDLE=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
# CONFIG_ACPI_PROCESSOR_AGGREGATOR is not set
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=y
CONFIG_ACPI_TABLE_UPGRADE=y
# CONFIG_ACPI_DEBUG is not set
# CONFIG_ACPI_PCI_SLOT is not set
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_HOTPLUG_IOAPIC=y
# CONFIG_ACPI_SBS is not set
# CONFIG_ACPI_HED is not set
# CONFIG_ACPI_CUSTOM_METHOD is not set
# CONFIG_ACPI_BGRT is not set
# CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not set
# CONFIG_ACPI_NFIT is not set
CONFIG_HAVE_ACPI_APEI=y
CONFIG_HAVE_ACPI_APEI_NMI=y
# CONFIG_ACPI_APEI is not set
# CONFIG_ACPI_EXTLOG is not set
# CONFIG_ACPI_CONFIGFS is not set
CONFIG_X86_ACPI_CPUFREQ=y
# CONFIG_X86_ACPI_CPUFREQ_CPB is not set
CONFIG_PNPACPI=y
CONFIG_ATA_ACPI=y
CONFIG_ACPI_I2C_OPREGION=y
# ACPI drivers
# ACPI drivers
# CONFIG_SENSORS_ACPI_POWER is not set
# ACPI INT340X thermal drivers
# CONFIG_MFD_INTEL_LPSS_ACPI is not set
CONFIG_DMA_ACPI=y
# CONFIG_THINKPAD_ACPI is not set
CONFIG_ACPI_WMI=y
# CONFIG_ACPI_CMPC is not set


Acpitool doesn't return anything useful either
Code:
acpitool
  Battery status : <not available>
  AC adapter     : online
  Thermal info   : <not available>

Any idea of whats wrong here ?
Best,
Can
Back to top
View user's profile Send private message
jetboo
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2007
Posts: 94

PostPosted: Sat Feb 25, 2017 2:00 am    Post subject: Reply with quote

Solved by upgrading the kernel to
Code:
Linux djanboox 4.10.0-gentoo-nouveau-kernel #2 SMP Fri Feb 24 22:44:11 CET 2017 x86_64 Intel(R) Core(TM)2 Duo CPU P7350 @ 2.00GHz GenuineIntel GNU/Linux


and enabling Smart battery system ;
Code:
grep SBS /usr/src/linux/.config
CONFIG_ACPI_SBS=m


Cheers
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum