Proposal for resolving powernowd/apmd vs. (k)powersave conflict

Michael Biebl biebl at teco.edu
Fri Mar 10 15:43:52 GMT 2006


Achim Bohnet wrote:
> On Friday 10 March 2006 02:01, Michael Biebl wrote:
> 
> Hi Michael,
> 
> Thx for the work on the packages!
> 
> It's (very) late, but I could not resist to
> try an installation. At the end I got:
> 
> ...
> Richte powersaved ein (0.12.2-1ubuntu1) ...
>  * Reloading system message bus config                                                                     [ ok ]
>  * Stopping ACPI services...                                                                               [ ok ]
>  * Loading ACPI modules...                                                                                 [ ok ]
>  * Starting ACPI services...     acpid.real: can't open /proc/acpi/event: Device or resource busy

Imo this is a bug in Xorg. As soon as a running acpid is stopped, Xorg
grabs /proc/acpi/event exclusively. This also happens on upgrades of
acpid btw.. I don't have a good solution for this atm.
For fresh installs or upgrades using the CD this problem does not occur.
It only happens when running X.
We could skip the restarting of acpid and instead show the user a
message, that he has to restart his machine. IIRC Ubuntu has a
notification framework for this, I just don't know how to use it and if
its GNOME only.

> As a test I tried immidiately
> 
> 	aptitude purge kpowersave
> 
> unfortunately aptitude was not able to restore system to previous
> state (purge kpowersave, powersaved, and reinstall apmd klaptopdaemon
> powernowd).

Should we really care for this case? I don't think so. If someone wants
to revert to apmd/powernowd/klaptopdaemon he can simply call "apt-get
install apmd powernowd klaptopdaemon". Almost as simple as "aptitude
purge kpowersave".

> So for this testing period, I would suggest as outlined in my prev mail
> to divert apmd and powersaved  to <name>.divered-until-kpowersave-deinstalled
                     ^^^^^^^^^^
I guess you meant powernowd here. Remember that we would also have to
divert klaptopdaemon.

> This way aptitude install kpowersave and aptitude purge kpowersave should
> restore original pkg state.

If you take a look at existing packages like all the MTAs, they also
don't provide the facility to restore the system after uninstalling it.
They take a similar as my current version. If you want to go back, you
explicitly have to specify the old mta via apt-get install foo, which
will uninstall bar.


Besides these packaging issues, did (k)powersave work for you? Any
problems so far?


Cheers,
Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/kubuntu-devel/attachments/20060310/ac24414e/signature.pgp


More information about the kubuntu-devel mailing list