Giter Club home page Giter Club logo

keep-presence's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

keep-presence's Issues

Inactivity detected while playing FPS games with Wine/Proton

If you are to play FPS games, or any game that locks mouse movement through Wine or Proton, script does not check for activity outside of checking if cursor coordinates have been changed. In this case, with the cursor locked, it thinks that there is inactivity, forcing mouse to be moved. This causes the mouse to no longer be focused onto the game window.

Proposed fix: use mouse and keyboard listeners to check if there was activity in between the sleep calls apart from just checking pointer location

Unable to mount tmp folder after reinstalling with snap

After removing this package with:

sudo snap remove keep-presence

And then reinstalling with:

sudo snap install keep-presence

I constantly get the following error:

cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_HdE3tB//dev: No such file or directory

I've tried creating the folders in /tmp/ myself, but then when I try to re-launch the application, the path changes in this error and the error will simply reappear.

Run-time failure: TypeError: 'NoneType' object is not subscriptable

keep-presence failed on Windows after some number of iterations:

16:22:22 User activity detected
--------                                                                                                                
16:24:02 Idle detection                                                                                                 
Traceback (most recent call last):                                                                                        
  File "C:\Users\<user>\keep-presence.py", line 160, in <module>                                                            
    execute_keep_awake_action()                                                                                           
  File "C:\Users\<user>\keep-presence.py", line 145, in execute_keep_awake_action                                           
    move_mouse()                                                                                                          
  File "C:\Users\<user>\keep-presence.py", line 114, in move_mouse
    new_x = currentPosition[0] + delta_x                                                                                            
            ~~~~~~~~~~~~~~~^^^                                                                                          
TypeError: 'NoneType' object is not subscriptable            

It never failed like this on FreeBSD for me.

TypeError: 'NoneType' object is not subscriptable

Hi,

First of all let me tell you - I love your work, this tool is brilliant!

I am having an error when running following command: python.exe .\keep-presence.py -s 30 -p 5 -m both -c on Windows 11, using Python 3.10 and running 'main' branch code which is identical with v1.0.7 tag.

10:20:49 User activity detected
--------
10:21:19 Idle detection
Traceback (most recent call last):
  File "C:\Users\XXXX\OneDrive - XXXX\Documents\repositories\keep-presence\src\keep-presence.py", line 175, in <module>
    execute_keep_awake_action()
  File "C:\Users\XXX\OneDrive - XXXX\Documents\repositories\keep-presence\src\keep-presence.py", line 157, in execute_keep_awake_action
    move_mouse()
  File "C:\Users\XXXX\OneDrive - XXXX\Documents\repositories\keep-presence\src\keep-presence.py", line 121, in move_mouse
    new_x = currentPosition[0] + delta_x
TypeError: 'NoneType' object is not subscriptable

It happens only when I lock my computer with CTRL+ALT+DEL. Otherwise it switches between active and idle just fine:

image

I am experimenting with currentPosition indices at line 121, as per error, at this time, but perhaps you can offer a better insight into the problem and/or a fix.

Thanks!

Jonas

Snap install not actually moving mouse

I installed on a fresh Ubuntu 23.10 install using the snap package. Running the app says it's moving the mouse but it doesn't in fact move the mouse. Therefore my screen turns off eventually.

How do i debug to found out what's going on?

Not working on Ubuntu 21.04

Hi!

First of all, thank you and great job with this simple and effective tool.

However, since I moved from Ubuntu 20.10 to 21.04, the tool stopped working. I mean, it should be working, according to the logs, as it correctly detects when I'm idle, but the presence action doesn't work. The mouse mode never worked for me in reality, so I used the keyboard mode. But since the update, it doesn't seem to be effective either.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.