deragon/autopoweroff

Systems with a KVM switch

rac8006 opened this issue · 5 comments

Autopoweroff has problem with loss of keyboard when switched to a different system. Once it detects the loss of the keyboard it finishes the ApoObserverDevice threads. Not what should be done with this condition. The problem is that when you return the keyboard to the system it will shutdown even while you are typing.
Maybe the autopoweroff should close the file and go into a sleep/wait looking for the keyboard.
When the keyboard is returned open the file again. Not sure if the system should be tun=rned off if the keyboard is missing for the idletime.

I started working on this problem. Hopefully it will be fixed in the next few weeks. No promises though.

Yes! I remember our exchanges now. Well, I modified the code to make use of pyinotify to dynamically change the list of devices to track as they are added and removed. The code is still local on my laptop, but I plan to upload it soon in the official repository.

Fixed with Autopoweroff 4.0.0.