Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228155 - hald/acpid error on boot with battery and button
Summary: hald/acpid error on boot with battery and button
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-18 21:11 UTC by BedOS_Gui
Modified: 2009-02-04 19:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BedOS_Gui 2008-06-18 21:11:28 UTC
I see this error message in my syslog on boot due to hald/acpi :

Jun 15 19:16:01 localhost hald[2292]: 19:16:01.720 [I] osspec.c:468: Check if the machine is may a laptop ...
Jun 15 19:16:01 localhost hald[2292]: 19:16:01.721 [E] acpi.c:758: Couldn't open /proc/acpi/battery: Error opening directory '/proc/acpi/battery': No such file or directory
Jun 15 19:16:01 localhost hald[2292]: 19:16:01.721 [E] acpi.c:758: Couldn't open /proc/acpi/button/lid: Error opening directory '/proc/acpi/button/lid': No such file or directory

my computer is a desktop, not a laptop and I don't activate "button" and "battery" in kernel (2.6.26-rc6 actually) config for acpi. Should I configure these options in my kernel ?

Reproducible: Always
Comment 1 BedOS_Gui 2008-06-22 10:58:43 UTC
According to new kernels acpi organisation :

CONFIG_ACPI_PROCFS:                                                                             
  │ For backwards compatibility, this option allows                                               │  
  │ deprecated /proc/acpi/ files to exist, even when                                              │  
  │ they have been replaced by functions in /sys.                                                 │  
  │ The deprecated files (and their replacements) include:                                        │  
  │  
  │ /proc/acpi/sleep (/sys/power/state)                                                           │  
  │ /proc/acpi/info (/sys/modules/acpi/parameters/acpica_version)                                 │  
  │ /proc/acpi/dsdt (/sys/firmware/acpi/tables/DSDT)                                              │  
  │ /proc/acpi/fadt (/sys/firmware/acpi/tables/FACP)                                              │  
  │ /proc/acpi/debug_layer (/sys/module/acpi/parameters/debug_layer)                              │  
  │ /proc/acpi/debug_level (/sys/module/acpi/parameters/debug_level)                              │  
  │                                                                                               │  
  │ This option has no effect on /proc/acpi/ files                                                │  
  │ and functions which do not yet exist in /sys.         

so in short term the /proc/acpi directory will be removed and hald should see both in /proc/acpi and /sys directories to find drivers to activate.         
Comment 2 BedOS_Gui 2008-07-13 10:38:58 UTC
I have new errors about /proc/acpi files :

Jul 12 09:07:02 localhost hald[2276]: 09:07:02.623 [E] acpi.c:758: Couldn't open /proc/acpi/battery: Error opening directory '/proc/acpi/battery': No such file or directory
Jul 12 09:07:02 localhost hald[2276]: 09:07:02.623 [I] acpi.c:729: Processing /proc/acpi/processor/P002
Jul 12 09:07:02 localhost hald[2276]: 09:07:02.623 [I] acpi.c:729: Processing /proc/acpi/processor/P001
Jul 12 09:07:02 localhost hald[2276]: 09:07:02.623 [E] acpi.c:758: Couldn't open /proc/acpi/fan: Error opening directory '/proc/acpi/fan': No such file or directory
Jul 12 09:07:02 localhost hald[2276]: 09:07:02.623 [E] acpi.c:758: Couldn't open /proc/acpi/ac_adapter: Error opening directory '/proc/acpi/ac_adapter': No such file or directory
Jul 12 09:07:02 localhost hald[2276]: 09:07:02.623 [E] acpi.c:758: Couldn't open /proc/acpi/button/lid: Error opening directory '/proc/acpi/button/lid': No such file or directory
Jul 12 09:07:02 localhost hald[2276]: 09:07:02.624 [I] acpi.c:729: Processing /proc/acpi/button/power/PWRB
Jul 12 09:07:02 localhost hald[2276]: 09:07:02.624 [I] acpi.c:729: Processing /proc/acpi/button/power/PWRF
Jul 12 09:07:02 localhost hald[2276]: 09:07:02.624 [E] acpi.c:758: Couldn't open /proc/acpi/button/sleep: Error opening directory '/proc/acpi/button/sleep': No such file or directory

Could it be related to kernel upgrading (2.6.26-rc9-gitX) ?
Comment 3 BedOS_Gui 2008-07-13 10:52:55 UTC
(In reply to comment #2)
> 
> Could it be related to kernel upgrading (2.6.26-rc9-gitX) ?
> 
Apparently no, I have same errors on gentoo-sources-2.6.25-r6 
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2009-02-04 19:41:27 UTC
0.5.11-r7 (and several revisions before it) will now automatically check whether required ACPI /proc options in the kernel have been enabled, which solves the issue that you reported.
Sorry that the report initially went unanswered.