Both sys-power/pm-utils and sys-power/powermgmt-base can both provide the on_ac_power script, but most users will want (or already have) the pm-utils version since it's pulled in by sys-apps/hal[laptop]. The 2 can't coexist and are causing a lot of users (who already installed hal[laptop]) to get a blockage following this guide. Bug 255249 is one example, a few users this week on IRC as well. Unless there's some good reason to use powermgmt-base, I think the guide should recommend pm-utils instead. Reproducible: Always Steps to Reproduce: 1. USE="laptop" emerge hal 2. emerge powermgmt-base (according to power mgmt guide)
Hrm. Thing is, HAL is going away. Everyone, including Gentoo, is moving away from it in favor of devicekit[disks] and upower and whatnot. Last thing I want is to rewrite a guide that recommends installation of an obsolete library, and then have to rewrite it again later for the correct way of doing it. Still, since things work right now with HAL, I guess I'll have to include it. Not happy about it, but as long as the ebuilds are setup to block each other, I can't think of any alternative.
CCing the appropriate package maintainers to make sure this is the way to go.
Yeah I understand it isn't a great situation, with hal going away soon. And I didn't look hard enough when I submitted this to see pm-utils directly depends on hal. IMHO it would be enough to just explain that pm-utils works in place of powermgmt-base for hal users.
HAL isn't going away soon, it's going away now ;-) pm-utils upstream just released version 1.3.0 which doesn't depend on HAL anymore, see: http://pm-utils.freedesktop.org/wiki/
I went with pm-utils. Fixed in CVS.