You are not logged in.

#1 2006-08-15 08:23:20

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Using udev to get gfx card PCI ID

Is there a reliable way to use udevinfo to grab the PCI ID of your graphics card?  Here is some psuedo code a I threw togther:

result=`udevinfo -a -p `udevinfo -q path -n /dev/gfx` | grep SYSFS{device}`

Obviously /dev/gfx doesn't exist and I think that is the main issue with this method.  I think we can use a udev rule to symlink the card to the /dev/gfx though so that we always know where it is.

It's not a very good soultion I know but I think it could work.  Any suggestions?

Offline

Board footer

Powered by FluxBB