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 Time feature request #120

Open
Lancelight opened this issue Feb 2, 2021 · 7 comments
Open

Idle Time feature request #120

Lancelight opened this issue Feb 2, 2021 · 7 comments
Labels
feature New feature or request
Milestone

Comments

@Lancelight
Copy link

Lancelight commented Feb 2, 2021

One critical feature that is missing in the OCM for normal people (like myself) to really make it useful is the ability to have it turn on/off by itself based on an "Idle time". In windows task scheduler, the "idle time" event does NOT work (it never has and it's been a problem for years there are posts about it all over the place), neither in Win10 nor in Win7. So a custom idle time function would need to be created as relying upon the idle time functions in windows may not work as expected.

One thing to consider is that if a video is playing full screen, the user is probably not idle.

@gertjaap gertjaap added the feature New feature or request label Feb 2, 2021
@gertjaap
Copy link
Collaborator

gertjaap commented Feb 2, 2021

Is this a duplicate of #57 ?

@Lancelight
Copy link
Author

Lancelight commented Feb 3, 2021

It's not a duplicate but it's a similar request. Idle scheduling mining IMO is more efficient since hours at a computer may vary. But scheduled mining would be great also. Similar, but different features. Also, scheduled mining is already possible using Built in Windows scheduler. Idle scheduling is NOT possible with the built in scheduler since it's a bugged feature and has been for years. So IMO #57 would probably be less of a priority than idle scheduling since there is a workaround already.

Another mention, cron in the Linux version doesnt have idle capabilities either, but it does have scheduling capabilities. So idle scheduling would be a need for both platforms.

@gertjaap
Copy link
Collaborator

gertjaap commented Feb 5, 2021

So your suggestion means we have to think out and code up a protocol to determine if the user is idle all from scratch? That seems far out of reach for this project to be honest, with very limited upwards benefit.

@Lancelight
Copy link
Author

Lancelight commented Feb 5, 2021

Yes it very could be for the windows platform. The idle checking functions for Linux are likely to work just fine out of the box. But as far as Winblows goes..... It could be hit or miss. They might work, but then again, they might not. As for limited Benefit, consider this. I spend maybe 15-30 mins of my day on discord and probably half that time is spent looking at the "general" channel for VTC. Over the last 5 days, I have seen no less than 3 people ask for this very feature (self not included although I do want this feature also) and thats with the limited time I spend there and its not even in the mining specific channel. So I wouldnt say there is limited benefit if people are looking for something like this. Most other mining services that are aimed at "regular people" have this feature. Nicehash for example, has this exact feature built into their client. If the project's goal is to truly be "easy" for "normal people", then this should actually be one of the higher priority items since it's such a huge UX improvement.

If there is a "Poll" section anywhere (most projects have one for feature requests), then perhaps it should be added to the list and voted upon to see where it ranks in communities eyes rather than an opinion of just 1 person and listed among other enhancements. That would give you a priority list based on what the community wants to see rather than just the dev or feature requester's opinions.

@Lancelight
Copy link
Author

Lancelight commented Feb 5, 2021

Here are the two functions that would need to be used for both platforms:
https://linux.die.net/man/3/xscreensaverqueryinfo
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getlastinputinfo?redirectedfrom=MSDN

I did some reading on getlastinputinfo and it appears to be fairly stable, however I've never used it so I couldnt speak from experience.

@phearsom
Copy link

Large problem with letting a process to mine when a user is "idle" is whether or not you take into consideration whether or not the system is idle. Another thing suspicious about this type of work is letting a service start up all by itself. Literally a definition of a trojan. It's better intention to leave it as simple as 1 click mining. No other requirement for easy mode.

@Lancelight
Copy link
Author

Lancelight commented Feb 21, 2021 via email

@KforG KforG added this to the 3.0 milestone Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants