{"id":21698636,"url":"https://github.com/theohbrothers/disableadaptivesleepservice","last_synced_at":"2025-03-20T15:22:22.344Z","repository":{"id":120016208,"uuid":"87709262","full_name":"theohbrothers/DisableAdaptiveSleepService","owner":"theohbrothers","description":"Keeps AdaptiveSleepService in Manual Startup state and Stopped, across Windows Updates or driver updates, so that PCs will not Hibernate from Sleep.","archived":false,"fork":false,"pushed_at":"2019-03-25T18:29:10.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-25T14:28:51.850Z","etag":null,"topics":["adaptivesleepservice","amd","bat","hibernate","sleep","taskscheduler","windows","windows10","windowsupdate","xml"],"latest_commit_sha":null,"homepage":"https://theohbrothers.com/solve-windows-10-waking-for-brief-moment-and-going-back-to-sleephibernation/","language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theohbrothers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-09T13:10:05.000Z","updated_at":"2020-03-04T02:27:17.000Z","dependencies_parsed_at":"2023-06-14T17:45:36.616Z","dependency_job_id":null,"html_url":"https://github.com/theohbrothers/DisableAdaptiveSleepService","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theohbrothers%2FDisableAdaptiveSleepService","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theohbrothers%2FDisableAdaptiveSleepService/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theohbrothers%2FDisableAdaptiveSleepService/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theohbrothers%2FDisableAdaptiveSleepService/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theohbrothers","download_url":"https://codeload.github.com/theohbrothers/DisableAdaptiveSleepService/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244637380,"owners_count":20485506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adaptivesleepservice","amd","bat","hibernate","sleep","taskscheduler","windows","windows10","windowsupdate","xml"],"created_at":"2024-11-25T19:35:41.930Z","updated_at":"2025-03-20T15:22:22.319Z","avatar_url":"https://github.com/theohbrothers.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DisableAdaptiveSleepService\nKeeps AdaptiveSleepService in Manual Startup state and Stopped, across Windows Updates or driver updates.\n\nRead more about AMD's AdaptiveSleepService's Hibernate-from-Sleep issues \u003ca href=\"https://theohbrothers.com/solve-windows-10-waking-for-brief-moment-and-going-back-to-sleephibernation/\" target=\"_blank\"\u003ehere\u003c/a\u003e.\n\n## Platforms\n- WinNT (Windows Vista and Up)\n\n## How to use\nWe are going to create a Task in Task Scheduler, that runs the `.bat` script on 1) WorkStation Lock, 2) When a system enters Sleep (EventID 42 of Kernel-Power Log). Because a workstation lock occurs before a system enters Sleep, it will trigger the Task.\n- Download the \u003ccode\u003eDisableAdaptiveSleepService.bat\u003c/code\u003e to \u003ccode\u003eC:\\scripts\\DisableAdaptiveSleepService.bat\u003c/code\u003e\n- Download the \u003ccode\u003eDisableAdaptiveSleepService.xml\u003c/code\u003e Task Export to \u003ccode\u003eC:\\scripts\\DisableAdaptiveSleepService.xml\u003c/code\u003e.\n- Import the \u003ccode\u003eDisableAdaptiveSleepService.xml\u003c/code\u003e Task Export file as a Task in \u003ci\u003eTask Scheduler\u003c/i\u003e. Click \u003ci\u003eOK\u003c/i\u003e when the Create Task Wizard Pops up.\n  - Full instructions: Open \u003ci\u003eTask Scheduler\u003c/i\u003e, create a new folder in Task Scheduler Library called \u003ci\u003escripts\u003c/i\u003e, then in that folder click on \u003ci\u003eImport Task\u003c/i\u003e, browse to `C:\\scripts\\DisableAdaptiveSleepService.xml` to import the Task. Click \u003ci\u003eOK\u003c/i\u003e when the Create Task Wizard pops up.\n\n## Verify the Task works\nOpen \u003ci\u003eServices\u003c/i\u003e, and change \u003ci\u003eAdaptiveSleepService\u003c/i\u003e Startup Type to \u003ccode\u003eAutomatic\u003c/code\u003e, and \u003ccode\u003eStart\u003c/code\u003e the service. Now Sleep your system. Now wake your system, and see now \u003ci\u003eAdaptiveSleepService\u003c/i\u003e Startup Type should be changed to \u003ccode\u003eManual\u003c/code\u003e and Status should be \u003ccode\u003eStopped\u003c/code\u003e. :)\n\n## Note\n- Task export has hardcoded the path of the script to be to be run in `C:\\scripts\\DisableAdaptiveSleepService.bat`. Change this to your liking.\n- Task export runs the script under SYSTEM user, but with least privileges. Change this to your user with administrative rights. However, note that EventID Task triggers do not work for non-SYSTEM users (or at least it appears to be from my experience).\n\n\n## Background\nProblem: Since Windows 10 build 10586, an AMD graphics driver update installed either manually (AMD's website) or through Windows Updates includes a service called AdaptiveSleepService. This Service however causes PCs in Sleep states to engage in Hibernate-from-Sleep, often appearing like a brief waking from Sleep and going back to Sleep. \n\nA solution would be to disable AdaptiveSleepService. However, because Windows Updates also includes AMD graphics drivers, the problem soon recurs. \n\n\u003cb\u003eThe full-fledged solution would be to automate the disabling of AdaptiveSleepService.\u003c/b\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheohbrothers%2Fdisableadaptivesleepservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheohbrothers%2Fdisableadaptivesleepservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheohbrothers%2Fdisableadaptivesleepservice/lists"}