For what it's worth, a "quick and dirty" command that would tell if there are any nvidia or ati module loaded: lsmod | egrep -cw "fglrx|nvidia" That would work on some configurations but I don't know if that would be the case on most or all systems. HTH