Alan Coopersmith wrote:
> Matt Keenan wrote:
>>>> verbose "Checking for Intel Graphics Card Type : "
>>>> # List taken from SUNWdrmr/postinstall
>>>> # Confirmed list (29/01/09)
>>>> # pci8086,2562 - compiz fails, driver problem
>>>> # pci8086,27a2 - compiz fails, driver problem
>>>> # pci8086,2a42 - compiz runs
>>>> intel=`echo $prtconf_pv_output | $NAWK '{ \
>>> I still think it's a mistake for your script to hardcode a list of
>>> Intel & ATI chip ids, since you'll have to keep up with new ones as
>>> they're added.
>> This is what the driver team recommended to Erwann, and thus this is what I
>> have implemented. I've contacted the DDU team to determine how the
>> Device Driver
>> Utility picks up the video driver, and if this is easy and quick to
>> implement I
>> may go down that route.
>>
>> Agreed that the list would require maintaining for intel chips at least.
>
> Why? If it's just the list of chipsets the kernel DRM driver supports, then
> seeing if the kernel driver attached to them should be enough.
OK so what is the best means of determining if the Kernel DRM driver has
attached ? modinfo ? prtconf ?
what would I look for in the output from either of these specifically ?
prtconf lists all the PCI's and you are suggesting that I really should not
be looking for specific PCI numbers, if not then do you know what I should be
looking for ?
modinfo, I am looing for either "nvidia", "i915" or "radeon", is this sufficient
for determing both Card type on machine and if driver is installed ?
You've also suggested that I not use Xorg.o.log as the interface is not
stable. Given this is the modinfo check above enough ?
thanks for your help
Matt
>> Do packages install a copy of "postinstall" anywhere on one's system ?
>
> IPS packages don't have postinstall scripts at all. If you were just
> going with trusting their postinstall script, then you're duplicating
> the effort the kernel has already done to attach the driver to the
> given pci ids and can just check if the kernel attached the driver.
>