ref: 0ee5d61b71baa6d76aea3b1257a507ba496fae4a
parent: 845607a5dd0724b9b897745d025c8e5d19a34991
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Wed May 24 19:05:09 EDT 2023
reform/pm: considering the keyboard might be absent altogether, fall back to lpc shutdown in any case
--- a/sys/src/cmd/reform/pm.c
+++ b/sys/src/cmd/reform/pm.c
@@ -585,8 +585,8 @@
if(openhidctl(&hidkb, udidkb) == 0){
write(hidkb, "PWR0", 4);
sleep(2000); /* give it a chance */
- p = 1; /* fall back to lpc shutdown */
}
+ p = 1; /* fall back to lpc shutdown */
}
}
if(p < 0)