← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 392039] 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.

** Attachment added: "initramfs-tools-0.92bubuntu43-framebuffer.patch"
   http://launchpadlibrarian.net/31454477/initramfs-tools-0.92bubuntu43-framebuffer.patch

-- 
initramfs scripts hard-coded to load i915; blocks loading fglrx
https://bugs.launchpad.net/bugs/392039
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to fglrx-installer in ubuntu.



References