A graphics device in smB.7 is defined by the same text string as you would issue it in interactive mode. The sm command list devices will list all currently compiled device drivers. You need a file .sm in your home directory, or take what your system manager has provided for.