Comment 14 for bug 392039

Revision history for this message
Kano (master-kanotix) wrote : Re: initramfs scripts hard-coded to load i915; blocks loading fglrx

The used code is complete nonsense:

        if modprobe -q intel_agp && modprobe -q i915; then
                FB=kms
        fi
        ;;

The thing is: EVERY module can be modprobed and stays in memory and returns 0 exit status when the hardware is NOT present. It would get active if the hardware is hotplugged, which is very unlikely for a onboard vga card to happen. So the same would be:

modprobe -q intel_agp
modprobe -q i915
FB=kms

As the code should set the FB var to kms only when i915 is "correctly" loaded then you could wait for udev and then check if i915 is loaded. As soon as kms is active in the kernel config i915 has pci ids so udev will load it. intel-apg is always loaded by udev, no matter how the kernel is configured. Basically the same applies to radeon module, so maybe think of a better check, but the modprobe is definitely completely useless and wrong for other hardware.