Skip to content

Commit 329d04f

Browse files
committed
Fixing power remote
1 parent 5fa7e52 commit 329d04f

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Main/Power/remote_linux.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ events.create = function ()
1717
end
1818
end
1919

20-
--@help Force system restart
20+
--@help System restart
2121
actions.restart = function ()
2222
-- Alternatives for other DEs should be added here...
2323
if (de == "KDE") then
@@ -27,7 +27,7 @@ actions.restart = function ()
2727
end
2828
end
2929

30-
--@help Force system shutdown
30+
--@help System shutdown
3131
actions.shutdown = function ()
3232
-- Alternatives for other DEs should be added here...
3333
if (de == "KDE") then

Main/Power/remote_osx.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

2-
--@help Force system restart
2+
--@help System restart
33
actions.restart = function ()
44
os.script("tell application \"System Events\" to restart");
55
end
66

7-
--@help Force system shutdown
7+
--@help System shutdown
88
actions.shutdown = function ()
99
os.script("tell application \"System Events\" to shut down");
1010
end

Main/Power/remote_win.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@ bool SetSuspendState(bool hibernate, bool forceCritical, bool disableWakeEvent);
88
]]
99
local PowrProf = ffi.load("PowrProf");
1010

11-
--@help Force system restart
11+
--@help System restart
1212
--@param sec:number Timeout in seconds (default 5)
1313
actions.restart = function (sec)
1414
if not sec then sec = 5; end
15-
os.execute("shutdown /r /f /t " .. sec);
15+
os.execute("shutdown /r /t " .. sec);
1616
end
1717

18-
--@help Force system shutdown
18+
--@help System shutdown
1919
--@param sec:number Timeout in seconds (default 5)
2020
actions.shutdown = function (sec)
2121
if not sec then sec = 5; end
22-
os.execute("shutdown /s /f /t " .. sec);
22+
-- Default Windows shutdown behavior is /hybdrid - This should hopefully make WOL work!
23+
os.execute("shutdown /s /hybrid /t " .. sec);
2324
end
2425

2526
--@help Logoff current user

0 commit comments

Comments
 (0)