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

Implement pause-on-active for Linux #2222

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

In-line
Copy link

@In-line In-line commented Mar 31, 2021

No description provided.

@In-line In-line force-pushed the pause-on-active-unix-2 branch 2 times, most recently from 4ce73e1 to 363bc36 Compare March 31, 2021 14:03
@Spudz76
Copy link
Contributor

Spudz76 commented Apr 1, 2021

I considered using this function but did not enjoy requiring X (many of my miner rigs don't even have it installed).

So then started looking at some other method but there are painfully few other ways to probe a timestamp of last-input, although it seems like something that could easily be in /proc/ or /sys/ somewhere tied to input at a system level without X. Found it amazing there is no kernel level functionality for this.

@Spudz76
Copy link
Contributor

Spudz76 commented Apr 1, 2021

Noted there are wrappers making everything fail gracefully when there is no X

nice.

@In-line
Copy link
Author

In-line commented Apr 26, 2021

@xmrig ping

@EUA
Copy link

EUA commented May 2, 2022

Can't we use dbus for this without using Xorg libs ?

dbus-send --print-reply --dest=org.gnome.Mutter.IdleMonitor /org/gnome/Mutter/IdleMonitor/Core org.gnome.Mutter.IdleMonitor.GetIdletime

returns

method return time=1651487206.471009 sender=:1.16 -> destination=:1.286 serial=9324 reply_serial=2
   uint64 5

@Spudz76
Copy link
Contributor

Spudz76 commented May 2, 2022

Sure except Gnome requires X

EDIT: Also, requires Gnome (I run Cinnamon...)

Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Mutter.IdleMonitor was not provided by any .service files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants