linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Colplugging modules for ACPI devices
@ 2006-07-08 22:31 thermal
  2006-07-09  0:11 ` Marco d'Itri
  0 siblings, 1 reply; 2+ messages in thread
From: thermal @ 2006-07-08 22:31 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 729 bytes --]

Hi

I`ve recently been working on using coldplug scripts to load ACPI 
modules into the kernel (button, battery, etc.). I`ve 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 doesn`t 
check whether a module is already loaded) but does it`s work nicely at 
least on my 2 desktop machines. Haven`t tried it on a laptop though. 
What do you think about this idea ?


-- 
|   ******* Maciek Grela RV409b *********
|        JID: thermal@jabber.wroc.pl
| Linux user #319794 ++ There is no spoon ...

[-- Attachment #2: acpi.tar.bz2 --]
[-- Type: application/x-tbz, Size: 2231 bytes --]

[-- Attachment #3: Type: text/plain, Size: 375 bytes --]


-------------------------------------------------------------------------
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

[-- Attachment #4: Type: text/plain, Size: 226 bytes --]

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Colplugging modules for ACPI devices
  2006-07-08 22:31 Colplugging modules for ACPI devices thermal
@ 2006-07-09  0:11 ` Marco d'Itri
  0 siblings, 0 replies; 2+ messages in thread
From: Marco d'Itri @ 2006-07-09  0:11 UTC (permalink / raw)
  To: linux-hotplug

On Jul 09, thermal@o2.pl 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.

-- 
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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-09  0:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-08 22:31 Colplugging modules for ACPI devices thermal
2006-07-09  0:11 ` Marco d'Itri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).