[PATCH][RFC] Backlight addon for dell laptops

Bill Nottingham notting at redhat.com
Thu Jan 11 09:43:23 PST 2007


Andrey Borzenkov (arvidjaar at mail.ru) said: 
> We still use this hack to load platform-specific ACPI modules:
> 
>     for f in /lib/modules/`uname -r`/kernel/drivers/acpi/*;do
>         basename="${f##*/}"
>         mod="${basename%%.*}"
>         case $mod in
>             *_acpi)
>                 dmidecode | grep -i Vendor | egrep -qi "${mod%%_acpi}" 
> 2>/dev/null || continue
>                 ;;
>         esac
>         message="Loading ACPI module $mod:"
>         modprobe $mod 2>/dev/null >/dev/null
> 
> something like this could probably be used in this case too.

Ick. Considering the kernel already has DMI code, you'd think it
could be exported somewhere.

Bill


More information about the hal mailing list