tis-enable-sleep-mode

0.2-1
Enable sleep mode by allowing standby states (S1-S3) - GPOs are prioritary against this package
54 downloads
Download
tis-enable-sleep-mode icon

  Description 

  • package : tis-enable-sleep-mode
  • version : 0.2-1
  • architecture : all
  • categories : System and network
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
  • description : Enable sleep mode by allowing standby states (S1-S3) - GPOs are prioritary against this package
  • locale :
  • target_os : windows
  • min_wapt_version : 1.7
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2021-10-26T10:42:04.405381
  • Conflicts :

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *

""" 
Sources:
https://gpsearch.azurewebsites.net/


"""


def install():
    # Shows or hides sleep from the power options menu.
    registry_set(HKEY_LOCAL_MACHINE, r'Software\Policies\Microsoft\Windows\Explorer', 'ShowsleepOption', 1)
    # Allow or not standby states (S1-S3) when sleeping (plugged in)
    registry_set(HKEY_LOCAL_MACHINE, r'Software\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab', 'DCSettingIndex', 1)
    # Allow or not standby states (S1-S3) when sleeping (on battery)
    registry_set(HKEY_LOCAL_MACHINE, r'Software\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab', 'ACSettingIndex', 1)


def uninstall():
    registry_delete(HKEY_LOCAL_MACHINE, r'Software\Policies\Microsoft\Windows\Explorer', 'ShowsleepOption', 1)
    registry_delete(HKEY_LOCAL_MACHINE, r'Software\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab', 'DCSettingIndex')
    registry_delete(HKEY_LOCAL_MACHINE, r'Software\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab', 'ACSettingIndex')


def update_package():
    pass




										

  Changelog 



No changelog.txt.
									
  manifest.sha256