Currently it doesn't seem that there's any reliable way of detecting keyboard/ mouse input in Wayland, some implementations apparently don't support it.
Allowing such access in any X or Wayland server at the moment requires more access to the server than is good for security. If there was a way to grant access to ask the server "are you doing stuff" and not any other access then that would be good, but doesn't seem to be possible. With systemd the command "loginctl show-session $ID" will show information about the session in question including the line "LockedHint=no" (screen unlocked) or "LockedHint=yes" (screen locked). For BOINC's purposes checking whether the screen is locked seems sufficient and it can be done with less invasive access to the system. Another possibility is to check the idle time as reported by "w" and similar commands. That works for ssh sessions and would probably be a good alternative option depending on how the system is used. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/