View Single Post
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#617
Nice module, this QmSystem...

Power saving mode state:

Code:
#!/usr/bin/python

import QmSystem

psm = QmSystem.QmDeviceMode()
psmstate = psm.getPSMState()

if psmstate == psm.PSMStateOff:
        print 'PSM off'
if psmstate == psm.PSMStateOn:
        print 'PSM on'
@Soltee:

Install the QmSystem module (apt-get install python-qmsystem as root) and it should work.