Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idle detection not functionning on Linux #4084

Closed
CubeTheThird opened this issue Nov 7, 2020 · 2 comments
Closed

Idle detection not functionning on Linux #4084

CubeTheThird opened this issue Nov 7, 2020 · 2 comments

Comments

@CubeTheThird
Copy link

Describe the bug
Recently, the boinc client is resulting in errors when attempting to perform idle detection

Steps To Reproduce

  1. Enable the suspend when in-use settings
  2. Wait

Expected behavior
After a few minutes, idle detection will kick in, resuming e.g. GPU computing

System Information

  • OS: Arch Linux
  • BOINC Version: 7.16.11
  • wxWidgets Version: 3.0.5
  • DE: Gnome 3 X11

Additional context
Checking the logs with the idle_detection_debug flag on, this is found in the output:

[idle_detection] Error (2) opening /tmp/.X11-unix/.
[idle_detection] Could not connect to any DISPLAYs. XSS idle determination impossible.

If there are any other relevant logs I can provide, please let me know.

@CubeTheThird CubeTheThird changed the title Idle detection not functionning Idle detection not functionning on Linux Feb 9, 2021
@cminnoy
Copy link

cminnoy commented Feb 13, 2021

I use the following Python script on one of my Ubuntu 20 machines that starts when the machine boots.
It works very well.

#!/usr/bin/python3

import subprocess
import time
import os

while True:
    result = subprocess.check_output(["dbus-send", "--print-reply", "--dest=org.gnome.Mutter.IdleMonitor", "/org/gnome/Mutter/IdleMonitor/Core", "org.gnome.Mutter.IdleMonitor.GetIdletime"])
    result = str(result)
    idle_milli = int(result.split()[-1].strip()[:-3])
    if idle_milli > 3 * 60 * 1000:
#        print("activate\n")
        os.system("boinccmd --set_gpu_mode always 10")
        os.system("boinccmd --set_network_mode always 10")
        os.system("boinccmd --set_run_mode always 10")
    time.sleep(5)

@AenBleidd
Copy link
Member

Closed as a duplicate of #1187

@AenBleidd AenBleidd closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2022
Client and Manager automation moved this from Backlog to Done Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

3 participants