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

[root@isis /root]# neostat 
neomagic state: $Id: neostat.c,v 1.1 2000/01/06 02:26:44 root Exp $
(C) 2000 James McKenzie, No warranty express or implied. Use at your own risk
neomagic: CRT enabled
neomagic is unlocked
[root@isis /root]# echo $?
1
[root@isis /root]# neostat 
neomagic state: $Id: neostat.c,v 1.1 2000/01/06 02:26:44 root Exp $
(C) 2000 James McKenzie, No warranty express or implied. Use at your own risk
neomagic: LCD enabled
neomagic is unlocked
[root@isis /root]# echo $?
2
[root@isis /root]# neostat 
neomagic state: $Id: neostat.c,v 1.1 2000/01/06 02:26:44 root Exp $
(C) 2000 James McKenzie, No warranty express or implied. Use at your own risk
neomagic: LCD and CRT enabled
neomagic is unlocked
[root@isis /root]# echo $?
3
[root@isis /root]# 

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