dpms: add macro to check dpms status