Open mgutt opened 4 years ago
Thank you for your suggestion. Would you have any idea how one could detect activity through a Google Chrome Remote Desktop or if such a connection has been done? I have no clue. If you can express in Bash or in some other form a way to detect such a remote connection, I could implement it easily.
Sorry, I'm not a linux dev. I'm not sure if I can help you.
Something I found interesting is, that I'm not able to open the autopowerof GUI while I'm connected through Chrome Remote Desktop (CRD). I click on the entry in the start menu, but it does nothing. If I'm connected locally through NoVNC it asks for my login and then opens the GUI.
Maybe monitoring specific process names could be solution!? This is htop inside of a CRD session:
And this is htop directly logged into the machine (I opened a noVNC session through the browser while I was connected through CRD):
Next time I'm connected through Teamviewer I can post htop results, too.
Mmm... I searched the web but found not quick solution. Google Chrome Remote Desktop uses a proprietary protocol and thus nobody on the web knows the inner works. I will leave you bug report open, but I must admit it will not be resolved quickly, I am afraid.
As for your GUI not starting, try starting it from the terminal by calling /usr/sbin/autopoweroff-gui
. Probably some error message will show explaining the problem.
As for your GUI not starting, try starting it from the terminal by calling
/usr/sbin/autopoweroff-gui
. Probably some error message will show explaining the problem.
This was returned while using the Terminal through CRD session:
And this when I used root:
EDIT: Hmm if I do the same while connected locally through NoVNC it returns the same errors. So its nothing specific to the CRD session.
Regarding the autopoweroff-gui problem, you say that the GUI works in any session if started from a terminal. It only fails to start on CRD and when clicking on the Autopoweroff icon. The icon does work when using VNC. I have no clue. It is bizarre and should work all the time.
I know it's on the to do list, but now you have an official user request, too ;)
I'm using autopoweroff for energy saving. I start a VM every hour on my remote Unraid server and let autopoweroff stop the VM after several minutes. Sadly it does not detect my remote activity through Google Chrome Remote Desktop and stops the VM after several minutes.