Solved Sleep shortcut causes restart.


Graulges

Well-known member
Member
VIP
Local time
9:50 PM
Posts
1,837
Location
France
OS
Windows 11 24H2 26100.3915
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 24H2 26100.3915
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home built
    CPU
    Ryzen 5 7600
    Motherboard
    Gigabyte B650M Aorus Elite AX Ice
    Memory
    32 Gb DDR5 6000Hz Corsair Vengeance
    Graphics Card(s)
    Sapphire Pulse RX 7600
    Sound Card
    Internal Realtek
    Monitor(s) Displays
    Dell U2312HM + Dell U2412M
    Screen Resolution
    1920x1200 Dell U2412M 1920x1080 Dell U2312HM
    Hard Drives
    WD Black SN 770 1Tb; SanDisk SDSSDA240G ; Seagate 2Tb HDD
    PSU
    MSI MAG A750GL
    Case
    Enermax Marbleshell MS21
    Cooling
    Thermaltake Peerless Assassin 120 White ARGB, 3 x 120 intake, 1 x 120 exhaust
    Keyboard
    Aukey KM-G12
    Mouse
    Logitech M510 Wireless
    Internet Speed
    400 Mbs up & down
    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 24H2 26100.3915
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home built
    CPU
    Ryzen 5 7600
    Motherboard
    Gigabyte B650M Aorus Elite AX Ice
    Memory
    32 Gb DDR5 6000Hz Corsair Vengeance
    Graphics Card(s)
    Sapphire Pulse RX 7600
    Sound Card
    Internal Realtek
    Monitor(s) Displays
    Dell U2312HM + Dell U2412M
    Screen Resolution
    1920x1200 Dell U2412M 1920x1080 Dell U2312HM
    Hard Drives
    WD Black SN 770 1Tb; SanDisk SDSSDA240G ; Seagate 2Tb HDD
    PSU
    MSI MAG A750GL
    Case
    Enermax Marbleshell MS21
    Cooling
    Thermaltake Peerless Assassin 120 White ARGB, 3 x 120 intake, 1 x 120 exhaust
    Keyboard
    Aukey KM-G12
    Mouse
    Logitech M510 Wireless
    Internet Speed
    400 Mbs up & down
    Browser
    Brave / Edge
    Antivirus
    Windows / Malwarebytes
Back
Top Bottom