Bug 442759 - conflict between hal and acpid
Summary: conflict between hal and acpid
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: hal
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: David Zeuthen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F9Blocker
TreeView+ depends on / blocked
 
Reported: 2008-04-16 17:09 UTC by Bill Nottingham
Modified: 2014-03-17 03:14 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-21 21:43:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bill Nottingham 2008-04-16 17:09:15 UTC
Description of problem:

We need to move haldaemon earlier in the startup process so that it is available
for NetworkManager, among other things.

However, once you do this, acpid will fail to start, as hald has grabbed the
socket first. (Yay for crappy kernel interfaces).

Comment 1 Zdenek Prikryl 2008-04-17 07:36:23 UTC
Yes, I know about it. One way is that we add a similar code as HAL has. I mean
something like this: acpid try to connect directly to the kernel interface. If
it isn't possible, then acpid will start listening on some HAL unix socket. HAL
has same behavior. But I don't know if HAL create an unix socket like acpid does.

Comment 2 David Zeuthen 2008-04-17 16:11:34 UTC
Not sure why we want to still ship acpid. 

Either way, hal will try to connect to acpid if the kernel interface can't be
opened. Maybe it requires an extra configure option to hald; you can test this
yourself with f9 builds by shutting down hald, starting acpid and then starting
hald. 

Then do a 'ps aux|grep hald' and the process line will tell if you if the hal
acpi addon listens to acpid. See

http://gitweb.freedesktop.org/?p=hal.git;a=blob;h=de49c80ecd0dfcb3b5b49ed00c857b1f8210c131;hb=72c7ebedcdd5ebcf4784ff406b4ffc98a97cb4d6;f=hald/linux/addons/addon-acpi.c

for details, in particular search for "listening". HTH.

Comment 3 Bill Nottingham 2008-04-17 19:22:48 UTC
Seems the simplest way for now is to move acpid earlier, to match HAL. Done in
1.0.6-7.fc9.

Comment 4 Bill Nottingham 2008-04-21 21:43:14 UTC
Closing.


Note You need to log in before you can comment on or make changes to this bug.