How to clear user display profiles for Plasma6?

So after doing updates today, my XiaoMi Redmi Book has a new display “unknown-1”. Without thinking, I had clicked on the popup for “switch to external display”. So now, if I boot up off the dock, my built in display turns off as the fake output is activated. Everything is still running, but of course, can’t access the systemsettings to turn the built in display back on. If I dock, it changes the profile so I can’t modify the undocked profile. So I need to delete ALL my display profiles. I seem to recall on Plasma 5 is was .local/share/kscreen and you could just delete that and restart, but that file doesn’t exist anymore. I also don’t see anything (obvious) in .config. So does anyone know where the display profiles are stored now in Plasma 6 so I can reset them?

Pretty sure its $HOME/.config/kwinoutputconfig.json. However it is a bit tricky now, in order to solve a bug regarding shutdown. I believe kde started storing this file in memory or caching it somehow, so if you try to manually remove it or edit it. It won’t work. It will still remember the previous contents.

When I want to remove the file now. I create a new empty file in its place and then use sudo chatrr +i on the file. Then reboot. Then do sudo chattr -i on the file. What this command does is make the file immutable so it can’t be changed. This prevents it from being overwritten with the previous contents.

https://www.reddit.com/r/kde/s/OwwZqN3faX

Very odd that they’ve made it so unintuitive, but that did indeed work!!! Thanks much!!

No problem.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.