pm-utils

Peter Jones pjones at redhat.com
Tue Apr 25 15:37:24 PDT 2006


On Tue, 2006-04-25 at 23:28 +0100, Richard Hughes wrote:

> > > > > * move (remove?) the sysconfig stuff
> > > > 
> > > > Yea, move it to /etc/pm instead. /etc/sysconfig is a RH-ism.
> > > 
> > > Do we need any config? The module unload list can just be in the hook
> > > script directly, no?
> > 
> > I'd like a single place users can change this. They will, because users
> > compile any random junk under the sun to get their hardware going and we
> > need to easily support that. In fact, we should have a /etc/pm.d
> > directory where users can drop in files that say
> > 
> >  PM_MODULE_UNLOAD_ON_SLEEP += some_kernel_module
> > 
> > and then packagers can include this in an RPM. Bad idea?
> 
> No, but wouldn't a better way be have separate hooks for:
> 
> unload_module_button
> or
> unload_module_speedstep
> 
> as they are 2 line files, and then vendors/distros can just dump files
> in hooks rather than appending to random config files.

The modules unload list isn't *really* for vendors though -- it's for
"I'm doing something weird on my system" sort of uses.
-- 
  Peter



More information about the hal mailing list