Menu

#2 Wrong power state in pwrctl lid-open

open
nobody
None
5
2002-05-07
2002-05-07
Anonymous
No

pwrctl lid-open is always called with argument "ac"
regardless of power state. Reason: inside the main
polling loop in main(), the variable 'ac' (argument
count passed by the shell) is used.
Changing this to 'powerstate' (global; last poll time's
power state)
is a quick fix. If we want to catch power state
changing across sleep, we'd need to run a poll after
lid open.

Cheers,

Michael

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.