Cemu icon indicating copy to clipboard operation
Cemu copied to clipboard

[Feature Request] preventing linux to go in to standby while playing

Open hannescam opened this issue 2 years ago • 4 comments

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

hannescam avatar Sep 15 '22 16:09 hannescam

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.

AMDBartek avatar Sep 17 '22 12:09 AMDBartek

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

ghost avatar Sep 17 '22 14:09 ghost

I think that should work like in Firefox and Steam, they prevent suspension while playing audio/video or a game: Screenshot_20220917_151015 Screenshot_20220917_151347

Dolphin (Emulator) also have this feature: Screenshot_20220917_152926 Shouldn't be necessary to install external apps when the same can be achieved by the application

kuunha avatar Sep 17 '22 18:09 kuunha

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

hannescam avatar Sep 19 '22 12:09 hannescam

Using gamemode as a built-in C library seems like it would be easily doable. See the very short docs section and this example.

lisa-wolfgang avatar Nov 03 '22 23:11 lisa-wolfgang

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:

lisa-wolfgang avatar Nov 12 '22 22:11 lisa-wolfgang