The patch attached with this bug reports facilitates the autoloading of acpi modules when acpid is started. Distros like debian autoload the acpi modules. I have adapted the module loading section of debian initscript into acpid initscript of gentoo to facilitate the module autoloading feature. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 69928 [details, diff] patch for gentoo acpid initscript
Created attachment 69930 [details] /etc/conf.d/acpid configuration file for acpid initscript
Module loading should not be done by each and every init script. Implementing a module loader in many init scripts is error prone and causes code duplication. Instead, correct module aliases should be made so that the kernel can autoload modules as needed, the drivers should be compiled statically into the kernel or the /etc/modules.autoload.d/kernel-2.{4,6} files should be used for autoloading the needed modules at boot time. Yes, I am aware that we have multiple init scripts which does load modules, mostly because of upstream policy.
*** Bug 173910 has been marked as a duplicate of this bug. ***
(In reply to comment #3) > Module loading should not be done by each and every init script. Implementing > a module loader in many init scripts is error prone and causes code > duplication. > > Instead, correct module aliases should be made so that the kernel can autoload > modules as needed, the drivers should be compiled statically into the kernel > or the /etc/modules.autoload.d/kernel-2.{4,6} files should be used for > autoloading the needed modules at boot time. > > Yes, I am aware that we have multiple init scripts which does load modules, > mostly because of upstream policy. 1) kernel/drivers/acpi/* modules can not be loaded aotomaticaly with any aliases 2) what you suggest to place in /etc/modules.autoload.d/kerenl* ? We do not know how many modules are in kernel/drivers/acpi/* 3) Why you restrict to compile all "kernel/drivers/acpi/*" staticaly in kernel? Where there is wiki about acpid policy? 4) Why /etc/init.d/autoconfig then go to load this modules? Why this feature not removed from there?
(In reply to comment #9) > *** Bug 173910 has been marked as a duplicate of this bug. *** > So, if you really want to make me angry, touch this bug one more time. Move to > the original bug and stop bugspamming innocent people! It is strange policy to cover bugs closed... We found your report is a duplicate. But duplicate is closed. Withount any good resone. Without any way to reaopen original bug. Making good data for a Gentoo Weekly News open bugs statistics. I have impression than this is not a correct way to make things better
(In reply to comment #10) > It is strange policy to cover bugs closed... We found your report is a > duplicate. If you have nothing useful to add to the topic here, then there's no need to comment. > But duplicate is closed. Withount any good resone. I really fail to see what's so horribly unclear about the statement that acpid init script in NOT a correct place to load kernel ACPI modules? How about all the people that don't have acpid installed at all (majority of users), how exactly will this initscript help them? You are 'fixing' things at a completely wrong place.