Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194636 - stabilize sys-power/acpid-1.0.6-r1 WAS: init script should be started before hald
Summary: stabilize sys-power/acpid-1.0.6-r1 WAS: init script should be started before ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2007-10-03 18:07 UTC by Ben Gamari
Modified: 2008-03-10 15:41 UTC (History)
1 user (show)

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


Attachments
Patches the init script (acpid-before.patch,192 bytes, patch)
2007-10-03 18:08 UTC, Ben Gamari
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Gamari 2007-10-03 18:07:12 UTC
If one decides to run both acpid and hald, acpid must be started before hald, otherwise hald will steal the /proc/acpi/event before acpid has an opportunity to take it. Last I checked, if hald sees acpid running when it starts, it will instead connect to the acpid socket. Having working acpid is important to nvidia users as the nvidia binary driver relies on it to provide power management notifications.

Reproducible: Always
Comment 1 Ben Gamari 2007-10-03 18:08:56 UTC
Created attachment 132482 [details, diff]
Patches the init script 

Sorry, I patched the installed init script as opposed to the source in portage. Apply this change to portage/sys-power/acpid/files/acpid-*-init.d
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2007-10-14 12:06:40 UTC
Thank you very much, committed. This fix is also needed for stable.
Comment 3 Markus Meier gentoo-dev 2007-10-14 15:25:10 UTC
x86 stable
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2007-10-15 14:26:50 UTC
This fix is wrong. HAL already has had "use acpid" for ages. Which works with both baselayout-1 and baselayout-2 for ensuring acpid is started before HAL is started. 

As long as you stick them in the same runlevel. Since HAL and acpid both belong in the default runlevel is should be a non-issue.

As such, this fix is wrong.
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2007-11-03 15:45:33 UTC
ia64 stable
Comment 6 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-11-14 22:52:03 UTC
amd64 done.
Comment 7 Olliver Schinagl 2008-03-10 15:41:42 UTC
where can I find info on properly dealing with this anyway? I've had acpid installed for ages. It worked like a charm. Along came hald and all of a sudden acpid fails to get /proc/acpi/events, which I suppose makes sense, as hald is using it now.

Actually, the /proc/acpi, and /proc/acpi/events specifically, are since 2.6.23 depreciated. So I suppose that hald will use the /sys interface as such. However I have not found an acpid that utilizes hal to listen for such power events etc. Where is updated info to be found on this issue?