Skip to content

Commit e81fe78

Browse files
authored
feat: Disabled sleep mode and improved download (#81)
1 parent 92b5d89 commit e81fe78

File tree

4 files changed

+146
-121
lines changed

4 files changed

+146
-121
lines changed

assets/win10arm64.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,12 @@
392392
<SynchronousCommand wcm:action="add">
393393
<Order>12</Order>
394394
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f</CommandLine>
395-
<Description>Disable Hibernation Mode</Description>
395+
<Description>Disable Hibernation</Description>
396+
</SynchronousCommand>
397+
<SynchronousCommand wcm:action="add">
398+
<Order>13</Order>
399+
<CommandLine>cmd /C POWERCFG -X -standby-timeout-ac 0</CommandLine>
400+
<Description>Disable Sleep</Description>
396401
</SynchronousCommand>
397402
</FirstLogonCommands>
398403
</component>

assets/win11arm64.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,15 +411,20 @@
411411
<SynchronousCommand wcm:action="add">
412412
<Order>12</Order>
413413
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f</CommandLine>
414-
<Description>Disable Hibernation Mode</Description>
414+
<Description>Disable Hibernation</Description>
415415
</SynchronousCommand>
416416
<SynchronousCommand wcm:action="add">
417417
<Order>13</Order>
418+
<CommandLine>cmd /C POWERCFG -X -standby-timeout-ac 0</CommandLine>
419+
<Description>Disable Sleep</Description>
420+
</SynchronousCommand>
421+
<SynchronousCommand wcm:action="add">
422+
<Order>14</Order>
418423
<CommandLine>reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV1 /d 0 /t REG_DWORD /f</CommandLine>
419424
<Description>Disable unsupported hardware notifications</Description>
420425
</SynchronousCommand>
421426
<SynchronousCommand wcm:action="add">
422-
<Order>14</Order>
427+
<Order>15</Order>
423428
<CommandLine>reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV2 /d 0 /t REG_DWORD /f</CommandLine>
424429
<Description>Disable unsupported hardware notifications</Description>
425430
</SynchronousCommand>

src/entry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ info "Booting ${APP}${BOOT_DESC} on a ${CPU} using QEMU v${VERS} with kernel $(u
2929

3030
terminal
3131
tail -fn +0 "$QEMU_LOG" 2>/dev/null &
32-
( sleep 6; [ ! -f "$QEMU_END" ] && info "Windows started succesfully, visit http://localhost:8006/ to view the screen..." ) &
32+
( sleep 10; [ ! -f "$QEMU_END" ] && info "Windows started succesfully, visit http://localhost:8006/ to view the screen..." ) &
3333
cat "$QEMU_TERM" 2> /dev/null | tee "$QEMU_PTY" &
3434
wait $! || :
3535

0 commit comments

Comments
 (0)