Cemu
Cemu copied to clipboard
[Feature Request] preventing linux to go in to standby while playing
i have archlinux with x11 gnome and cemu built from source running mariokart 8 and i am using a dualshock ps4 controller over bluetooth but after the set ammount of inactivity time the screen turns off and cemu doesnt prevent that
I was experiencing the same issue, as a workaround I have used caffeine-ng.
I don't use Arch however I found the official AUR package for caffeine-ng: https://aur.archlinux.org/packages/caffeine-ng
Usage: caffeinate COMMAND
In this case: caffeinate ./Cemu_release
in the Cemu bin folder or wherever you have Cemu installed.
I hope this helps, I wrote this on my phone so sorry for the bad layout.
For this, using gamemode is the best solution (you use it by gamemoderun ./Cemu_release
).
On arch linux, you can install it with this command: sudo pacman -S gamemode lib32-gamemode
I think that should work like in Firefox and Steam, they prevent suspension while playing audio/video or a game:
Dolphin (Emulator) also have this feature:
Shouldn't be necessary to install external apps when the same can be achieved by the application
thankyou i did try to play a audio in the background and muting it but my cpu was struggling with the game alone and with the audio mario kart 8 was unplayable
Using gamemode
as a built-in C library seems like it would be easily doable. See the very short docs section and this example.
Upon further investigation, GameMode requires an external installation, which is not ideal for such a basic function as screen saver inhibition. The following are potential implementations that do not require additional installation:
- The org.freedesktop.ScreenSaver interface -- used by GameMode
- xdg-screensaver -- used by Dolphin