Solved Sleep shortcut causes restart.


Graulges

Well-known member
Member
VIP
Local time
10:27 PM
Posts
883
Location
France
OS
Windows 11 Pro 22H2 22635.3566
I have created a sleep shortcut with the command "rundll32.exe powrprof.dll,SetSuspendState 0,1,0" but when I double click on it causes a restart instead. Anybody have any ideas on how to fix this?
 
Windows Build/Version
Build 22635.2915

My Computer

System One

  • OS
    Windows 11 Pro 22H2 22635.3566
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home built
    CPU
    Ryzen 5 Pro 4650G
    Motherboard
    Gigabyte B550M DS3H
    Memory
    16 Gb DDR4 3200 Corsaire Vengeance
    Graphics Card(s)
    On CPU: Radeon Vega 7
    Sound Card
    Creative Sound Blaster X-Fi Surround 5.1 Pro USB
    Monitor(s) Displays
    Dell U2312HM + Dell U2412M
    Screen Resolution
    1920x1200 Dell U2412M 1920x1080 Dell U2312HM
    Hard Drives
    Crucial CT250P2SSD8 System; Sandisk SDSSDA240G Apps; Seagate 2Tb HDD Data
    PSU
    Corsair Bronze 550W
    Case
    No idea, got it from my son
    Cooling
    standard
    Keyboard
    Aukey KM-G12
    Mouse
    Micrsoft bluetooth
    Internet Speed
    3.7 Mbs
    Browser
    Brave / Edge
    Antivirus
    Windows / Malwarebytes
Try this link:
It has some tips on achieving your goal, the easiest being to use shutdown.exe /h in a .bat file.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    Ryzen 9 3900X
    Motherboard
    ASUS ROG Strix X570-E Gaming
    Memory
    G-Skill RipjawsV F4-3600C18 (16GB x 2)
    Graphics Card(s)
    Gigabyte RX 5700 XT Gaming OC
    Sound Card
    Realtek ALC1220P
    Monitor(s) Displays
    ASUS VE278 (x 2)
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 850 Pro 256GB
    Samsung 970 Pro NVMe 512GB (x 2)
    ST10000VN0004 10TB (x 2)
    ST10000VN0008 10TB (x 2)
    ST4000VN000 4TB (x 2)
    PSU
    Corsair HX1000
    Case
    Corsair Carbide 400R
    Cooling
    AMD Wraith Prism (Stock)
    Keyboard
    Logitech G213
    Mouse
    Logitech G502
    Internet Speed
    100Mbps down / 40Mbps up
    Browser
    Firefox - Chrome - Edge
    Antivirus
    Windows Defender - Clamwin
Try disabling hibernation. From an Admin command prompt...

powercfg -h off
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
Thanks @rick99 , that did it. I thought I had hibernate turned off so I hadn't checked that.
 

My Computer

System One

  • OS
    Windows 11 Pro 22H2 22635.3566
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home built
    CPU
    Ryzen 5 Pro 4650G
    Motherboard
    Gigabyte B550M DS3H
    Memory
    16 Gb DDR4 3200 Corsaire Vengeance
    Graphics Card(s)
    On CPU: Radeon Vega 7
    Sound Card
    Creative Sound Blaster X-Fi Surround 5.1 Pro USB
    Monitor(s) Displays
    Dell U2312HM + Dell U2412M
    Screen Resolution
    1920x1200 Dell U2412M 1920x1080 Dell U2312HM
    Hard Drives
    Crucial CT250P2SSD8 System; Sandisk SDSSDA240G Apps; Seagate 2Tb HDD Data
    PSU
    Corsair Bronze 550W
    Case
    No idea, got it from my son
    Cooling
    standard
    Keyboard
    Aukey KM-G12
    Mouse
    Micrsoft bluetooth
    Internet Speed
    3.7 Mbs
    Browser
    Brave / Edge
    Antivirus
    Windows / Malwarebytes
Back
Top Bottom