Colplugging modules for ACPI devices
Hi
Ive recently been working on using coldplug scripts to load ACPI modules into the kernel (button, battery, etc.). Ive written an agent and an *.rc script for the ACPI namespace. It uses _HID identifiers exported via sysfs (requires a patch in the kernel recently posted to linux-acpi mailing list) and uses a hand-build modules.acpimap to resolve modules. The script itself is somewhat dump (e.g. it doesnt check whether a module is already loaded) but does its work nicely at least on my 2 desktop machines. Haven`t tried it on a laptop though. What do you think about this idea ?
Signature · 3 lines
| ******* Maciek Grela RV409b ********* | JID: [email protected] | Linux user #319794 ++ There is no spoon ...
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 1 line · On Jul 09, [email protected] wrote:
What do you think about this idea ?
You wasted your time...
Hotplug is obsolete and you will not find it in modern distributions. Maps are obsolete too, nowadays drivers are loaded using udev and $MODALIAS.
The first step to correctly fix this is to design an aliases scheme and then add the aliases to the drivers.
I am not sure if it would be appropriate for the kernel to generate an uevent for every node of the ACPI namespace tree, if not you would need to walk it with a script, synthesize the $MODALIAS value and run modprobe for every node.
Both ways look a bit expensive to me since modprobe would be forked tens of times.
Signature · 13 lines
ciao, Marco ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel