Skip to content

Commit

Permalink
Still Not properly working....
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottGibb committed Aug 26, 2024
1 parent 8fbbebb commit 3f8523a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ Another feature that might interrupt the sleep Link State Power Management. It c

![Link Power Management](./docs/wake%20on%20lan%20settings/Disabling-link-power-management.png)

### Disabling Power off Hard Drive

Another recommended thing I found was to disable the power off hard drive feature

![Power Off Hard Drive](./docs/wake%20on%20lan%20settings/power-off-hard-drive.png)

### ChatGPT Extract for Power Issues

Read the conversation [here](./ChatGptExtract.md)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
logger.info("Closing socket")
sock.close()
logger.info("Turning PC off")
os.system("rundll32.exe powrprof.dll,SetSuspendState 0,1,0")
os.system("Rundll32.exe Powrprof.dll,SetSuspendState Sleep") # Put PC to Sleep NOT Hibernate
# os.system("shutdown /s /t 0")
else:
logger.info("Closing socket")
Expand Down

0 comments on commit 3f8523a

Please sign in to comment.