service.py 413 B

123456789101112131415161718192021
  1. from comar.service import *
  2. import os
  3. serviceType = "local"
  4. serviceDefault = "on"
  5. serviceDesc = _({"en": "Store/Restore Mixer Levels",
  6. "tr": "Karıştırıcı Seviyeleri Yönetimi"})
  7. @synchronized
  8. def start():
  9. # Store mixer levels
  10. os.system("/sbin/alsactl restore")
  11. @synchronized
  12. def stop():
  13. # Store mixer levels
  14. os.system("/sbin/alsactl store")
  15. def status():
  16. return True