git: 9front

Download patch

ref: 6b715bef9c2c3f02665b8499480a13c6097fcea8
parent: c60430b30183b384826379ceb948d7dffdb71486
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
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)
--