machstat is a simple command line utility that determines the current state of your Mach64 based graphics adapter:

[root@lamia machstat]# tpctl -sdc=disable -sdi=enable
..
[root@lamia machstat]# machstat
-DPANEL 
[root@lamia machstat]# tpctl -sdc=enable -sdi=enable
..
[root@lamia machstat]# machstat
-DPANEL -DCRT 
[root@lamia machstat]# tpctl -sdc=enable -sdi=disable
..
[root@lamia machstat]# machstat
-DCRT 
[root@lamia machstat]# 

I use it with cpp to pre-process by XF86Config file so that my laptop can do the right thing (tm) when the Xserver starts.

Take me to the files