Can't use gamemode to change power_dpm_force_performance_level

Hello,

For a few months now, gamemoded could not change power_dpm_force_performance_level for some reason. I had to change it manually.

But today I couldn’t save anything in power_dpm_force_performance_level, the filesystem seems to be read-only.

What can I do if I can’t put the GPU in performance mode manually ?

The file is also not readable on my other PC so I think this si related to a Kinoite change rather than something on my PC.

I need to change this because of this other bug : Games lagging a lot when playing a video - #12 by maledict

1 Like

You appear to be using kinoite which is one of the atomic versions of fedora.

If the change has to write within one of the read-only file systems the change cannot be made. I have not needed to use that option so have no direct experience.

Yes, I’m using Fedora Kinoite, but what I don’t understand is that before I could write to this file, but now it’s read only.

It’s strange to have this folder read-only since it’s for changing settings for the GPU.

1 Like

/etc is not write protected. Also on Atomic desktops.

Must be something else like SELinux who not gives access to read it.

Troubleshooting :: Fedora Docs > Selinux Porblems

3 Likes

We need to know where that file is, to help you. An ls -Z in that directory could help if it is SELinux related.

I’m sorry I’ve forgot to say which file it is.
It’s /sys/class/drm/card1/device/power_dpm_force_performance_level

I don’t have an access to my main computer rn but since I have the same problem on my AMD laptop, here’s the output of ls -Z on this laptop :

system_u:object_r:sysfs_t:s0 power_dpm_force_performance_level

Output on a F41 install.

 ls -lZ /sys/class/drm/card1/device/power_dpm_force_performance_level 
-rw-r--r--. 1 root root system_u:object_r:sysfs_t:s0 4096 Oct 15 21:08 /sys/class/drm/card1/device/power_dpm_force_performance_leve

How are you putting it into performance mode?

echo "high" | sudo tee /sys/class/drm/card1/device/power_dpm_force_performance_level

Ok so it works using echo "high" | sudo tee /sys/class/drm/card1/device/power_dpm_force_performance_level.

However, if I use the file manager (dolphin) and kwrite to edit the file, it’s telling me to enter my password, but then tells me (translated) :

The document could not be saved because it was not possible to write to /sys/class/drm/card1/device/power_dpm_force_performance_level.
Please verify that you have write permissions for this file or that there is enough disk space available.
The original file may be lost or damaged. Do not exit the application until the file is successfully saved.

It’s not really big a problem since I can just do this command instead of using the GUI.

But because of this bug, I was using gamemode to change power_dpm_force_performance_level, which is not possible anymore because of this other bug.

How can I use kwrite to change this manually or is there anyway to use gamemode again to do it automatically ?

Thank you for your help.