Heroic-Games-Launcher / HeroicGamesLauncher

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
https://heroicgameslauncher.com
GNU General Public License v3.0
8.25k stars 433 forks source link

Heroic always blocks sleep #3910

Open Slater91 opened 3 months ago

Slater91 commented 3 months ago

Describe the bug

Heroic has started blocking sleep and screen lock/sleep; while this can be useful when a game is being played, Heroic starts blocking sleep as soon as it is launched. This is undesirable as it keeps the computer and the screen(s) awake as long as the program is running.

Add logs

(12:36:02) INFO:    [Legendary]:        Legendary location: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary
(12:36:02) INFO:    [Gog]:              GOGDL location: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
(12:36:02) INFO:    [Connection]:       Connectivity: check-online
(12:36:02) INFO:    [Connection]:       Pinging external endpoints
(12:36:02) INFO:    [Gog]:              Checking for existing gog manifests
(12:36:02) INFO:    [Backend]:          DRM module staus {
  "oimompecagnajdejgnnjijobebaeigek": {
    "status": "new",
    "title": "Widevine Content Decryption Module",
    "version": "4.10.2710.0"
  }
}
(12:36:03) WARNING: [Backend]:          Protocol already registered.
(12:36:03) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH=/home/riccardo/.config/heroic/legendaryConfig/legendary /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary --version
(12:36:03) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/riccardo/.config/heroic/gogdlConfig /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/riccardo/.config/heroic/gog_store/auth.json --version
(12:36:03) INFO:    [Nile]:             Running command: NILE_CONFIG_PATH=/home/riccardo/.config/heroic/nile_config /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/nile --version
(12:36:03) INFO:    [Connection]:       Connectivity: online
(12:36:03) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/riccardo/.config/heroic/gogdlConfig /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/riccardo/.config/heroic/gog_store/auth.json auth
(12:36:03) INFO:    [Gog]:              Checking if login is valid
(12:36:03) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/riccardo/.config/heroic/gogdlConfig /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/riccardo/.config/heroic/gog_store/auth.json auth
(12:36:03) INFO:    [Gog]:              Updating redist, reason - new buildId
(12:36:03) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/riccardo/.config/heroic/gogdlConfig /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/riccardo/.config/heroic/gog_store/auth.json auth
(12:36:03) INFO:    [Backend]:          AreWeAntiCheatYet data downloaded
(12:36:03) INFO:    [Gog]:              Getting game metadata: GOGDL_CONFIG_PATH=/home/riccardo/.config/heroic/gogdlConfig /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/riccardo/.config/heroic/gog_store/auth.json info gog-redist --os windows
(12:36:03) INFO:    [Backend]:          
System Information:
CPU: 16x AMD Ryzen 7 1700X Eight-Core Processor
Memory: 33.58 GB (used: 14.82 GB)
GPUs:
  GPU 0:
    Name: Advanced Micro Devices, Inc. [AMD/ATI] Radeon RX 5600 XT
    IDs: D=731f V=1002 SD=e411 SV=1da2
    Driver: amdgpu
  GPU 1:
    Name: Advanced Micro Devices, Inc. [AMD/ATI] Lexa XT [Radeon PRO WX 3100]
    IDs: D=6985 V=1002 SD=0b0c SV=1002
    Driver: amdgpu
OS: KDE neon 5.27 (linux)

The current system is not a Steam Deck
We are not running inside a Flatpak container

Software Versions:
  Heroic: 2.14.1 Flame Emperor Sabo
  Legendary: 0.20.34 Direct Intervention
  gogdl: 1.0.1
  Nile: 1.0.2 Jonathan Joestar

(12:36:04) INFO:    [Frontend]:         Refreshing undefined Library
(12:36:04) WARNING: [Backend]:          refresh not implemented on Sideload Library Manager
(12:36:04) INFO:    [Legendary]:        Refreshing library...
(12:36:04) INFO:    [Legendary]:        Refreshing Epic Games...
(12:36:04) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/riccardo/.config/heroic/gogdlConfig /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/riccardo/.config/heroic/gog_store/auth.json auth
(12:36:04) INFO:    [Backend]:          Frontend Ready
(12:36:04) INFO:    [Gog]:              Saved username to config file
(12:36:04) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH=/home/riccardo/.config/heroic/legendaryConfig/legendary /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(12:36:04) ERROR:   [Gog]:              stdout = false and res.abort = false in getInstallInfo
(12:36:04) INFO:    [DownloadManager]:  Galaxy Common Redistributables  was added to the download queue.
(12:36:04) INFO:    [Backend]:          Preventing machine to sleep
(12:36:04) INFO:    [Gog]:              Updating GOG redistributables
(12:36:04) INFO:    [Gog]:              GOG REDIST:: GOGDL_CONFIG_PATH=/home/riccardo/.config/heroic/gogdlConfig /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/riccardo/.config/heroic/gog_store/auth.json redist --ids ISI,DirectX,DOSBox074_2CS --path /home/riccardo/.config/heroic/tools/redist/gog
(12:36:04) DEBUG:   [Gog]:              Logging to file "/home/riccardo/.config/heroic/GamesConfig/gog-redist.log"
(12:36:04) INFO:    [Gog]:              Getting GOG library
(12:36:04) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/riccardo/.config/heroic/gogdlConfig /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/riccardo/.config/heroic/gog_store/auth.json auth
(12:36:04) INFO:    [Backend]:          Checking for new Heroic Updates
(12:36:04) INFO:    [Backend]:          Checking for current version changelog
(12:36:05) INFO:    [DownloadManager]:  gog-redist added to download manager finished.
(12:36:05) INFO:    [DownloadManager]:  gog-redist removed from download manager.
(12:36:05) INFO:    [Winetricks]:       Downloading Winetricks
(12:36:05) ERROR:   [ExtraGameInfo]:    Was not able to get GamesDB data for 1891038081 Release with per platform id: gog_1891038081 not found
(12:36:05) WARNING: [Backend]:          No clientId in goggame-1207659111.info file. Cannot resolve save path
(12:36:05) WARNING: [Backend]:          No clientId in goggame-1207659110.info file. Cannot resolve save path
(12:36:05) WARNING: [Backend]:          No clientId in goggame-1207659139.info file. Cannot resolve save path
(12:36:06) INFO:    [Gog]:              Saved games data
(12:36:06) INFO:    [Legendary]:        Game list updated, got 98 games & DLCs
(12:36:06) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(12:36:06) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/riccardo/.config/heroic/gogdlConfig /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/riccardo/.config/heroic/gog_store/auth.json auth
(12:36:07) INFO:    [Gog]:              Found 0 game(s) to update
(12:36:07) INFO:    [Legendary]:        Checking for game updates: LEGENDARY_CONFIG_PATH=/home/riccardo/.config/heroic/legendaryConfig/legendary /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(12:36:07) INFO:    [WineDownloader]:   Updating wine versions info
(12:36:07) INFO:    [WineDownloader]:   Fetching upstream information...
(12:36:08) DEBUG:   [Legendary]:        Update is available for 9d2d0eb64d5c44529cece33fe2a46482: 1.0.2944.0_v2 != 1.0.3274.0_v2
(12:36:08) INFO:    [Legendary]:        Found 1 game to update
(12:36:09) INFO:    [WineDownloader]:   wine versions updated
(12:36:09) INFO:    [Backend]:          Starting the Download Queue

Steps to reproduce

  1. Open Heroic

Expected behavior

Heroic does not block sleep while no game is running.

Screenshots

No response

Heroic Version

Latest Stable

System Information

Additional information

No response

ToxicFrog commented 4 days ago

Same thing happening for me on 2.15.2. Took a bit to track down because it just shows up as "electron app" in the power manager.