protonscr

"Steam Controller Configs - Desktop" randomly wakes up 2nd HDD for no (obvious) reason

steamclosed General controller / Steam Input
ValveSoftware/steam-for-linux#7788 · opened 2021-05-07 by Saroumane · updated 2021-10-11 · 1 comments · github
SSaroumane 2021-05-07 github

Your system information

Steam client version (build number or date): Apr 12 2021
Distribution (e.g. Ubuntu): Ubuntu 21.04
Opted into Steam client beta?: No
Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

I have Steam games in 2 Libraries :
1 on SSD (/dev/sda) : Steam client + most used games
1 on HDD (/dev/sdb) : all other games

Games updates are allowed only 1 hour per day, when my PC is unattended.
So : when there is no updates and I don't play games from /dev/sdb, this HDD goes to sleep, for hours.

But sometimes, when I play games on /dev/sda, Steam suddenly decides to wake up /dev/sdb.
It triggers a 5 seconds freeze in my game currently playing. (Which can be very annoying in online multiplayer games)

Why I am sure it is Steam that wakes up /dev/sdb ?
1/ because all others programs are previously exited.
2/ because of the log :

mai 07 21:48:35 host steam.desktop[576385]: Could not connect to X session manager: None of the authentication protocols specified are supported
mai 07 21:48:35 host steam.desktop[576385]: Could not connect to X session manager: None of the authentication protocols specified are supported
mai 07 21:48:41 host steam.desktop[578247]: ERROR: ld.so: object '/home/user/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
mai 07 21:48:41 host steam.desktop[576385]: >>> Adding process 578247 for game ID 570
mai 07 21:48:43 host steam.desktop[576385]: OnFocusWindowChanged to game window type: AppID 570, 570
mai 07 21:48:43 host steam.desktop[576385]: Controller 0 mapping uses xinput : false
mai 07 21:48:43 host steam.desktop[576385]: Loaded Config for Local Override Path for App ID 570, Controller 0: /home/user/.steam/debian-installation//controller_base/empty.vdf
mai 07 21:48:43 host steam.desktop[576385]: Controller 0 mapping uses xinput : false
mai 07 22:15:27 host steam.desktop[576385]: Installing breakpad exception handler for appid(steam)/version(1618256785)
mai 07 22:43:12 host steam.desktop[576385]: Installing breakpad exception handler for appid(steam)/version(1618256785)
mai 07 22:45:37 host steam.desktop[576385]: OnFocusWindowChanged to window type: k_nGameIDControllerConfigs_Desktop, AppID 413080
mai 07 22:45:37 host steam.desktop[576385]: Controller 0 mapping uses xinput : false
mai 07 22:45:37 host steam.desktop[576385]: Loaded Config for Local Override Path for App ID 413080, Controller 0: /home/user/.steam/debian-installation//controller_base/empty.vdf
mai 07 22:45:37 host steam.desktop[576385]: Controller 0 mapping uses xinput : false

The HDD wakeup / game freeze happens precisely at 22:45:37

So what did happen ?
The culprit seems to be "AppID 413080" also known as "Steam Controller Configs - Desktop"

What I expect :
HDD wake-up is something very "deep" in Linux OS, so I expect most applications (Steam games, Ubuntu programs...) to briefly freeze during that event.
But I would like "AppID 413080" not to randomly wake up the 2nd HDD /dev/sdb

SSaroumane 2021-10-11 github

I did not reproduce this problem for a few months, so let's close this. But a bigger energy saving / sleep problem has arisen : https://github.com/ValveSoftware/steam-for-linux/issues/8140