Skip to content

Prevent sleep when scrcpy is fullscreen on Linux #1370

Closed

Description

@NusryNizam

Whenever I watch a video using scrcpy on Ubuntu (20.04), the screen dims and turns off. I would like to make it be on while scrcpy is fullscreen.
Is it possible to implement at software level?

Activity

  1. char101 commented on May 9, 2020

    @char101

    You can create a script that

    1. check if scrcpy is running
    2. run adb shell input keyevent mouse to prevent the screen from turning off
    3. sleep for 30 seconds or longer depending on your screen timeout setting
    4. go to 1.
  2. rom1v commented on May 9, 2020

    @rom1v
    Collaborator

    The feature --stay-awake is implemented on development branch: #631 (comment)

  3. NusryNizam commented on May 9, 2020

    @NusryNizam
    Author

    @rom1v I mean to prevent Linux from sleeping while using scrcpy in fullscreen.

  4. rom1v commented on May 9, 2020

    @rom1v
    Collaborator

    Oh ok, it's the reverse of #380 then :)

  5. reopened this on May 9, 2020
  6. added a commit that references this issue on Jun 18, 2020
    dc7b60e
  7. rom1v commented on Jun 18, 2020

    @rom1v
    Collaborator

    Fixed by #1502.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions