I was playing an old Windows game via Wine on an installation of OpenSUSE Tumbleweed…
- User
I was playing an old Windows game via Wine on an installation of OpenSUSE Tumbleweed Linux. Apparently the game tried to switch to an unsupported monitor resolution as my monitor went black when the game started and displayed an "Out of range!" message. I couldn't switch to another terminal and things seemed locked up so I reset. Now when I try to log back in again I get the same "Out of range!" display and behavior, so I think the game tried to change the desktop to an invalid resolution and it's now saved in a KDE configuration file. Do you know what configuration file(s) I can change to fix the KDE start resolution and get into my desktop again?
Assistant
The issue you're facing is due to the game altering the display resolution, which was then saved by KDE, causing it to be used upon subsequent logins. To resolve this, you'll need to manually edit or delete the relevant KDE configuration files to reset the display settings.
KDE stores its configuration in various files under your user's home directory, typically within
~/.config/. The specific files related to display settings can vary depending on the KDE version, but they are often found in files related tokscreenorkwin.Here are the steps you can follow to reset your KDE display settings:
-
Switch to a Text Terminal: Before logging into the graphical environment, switch to a text terminal by pressing
Ctrl + Alt + F1(orF2,F3, etc., for other terminals). Log in with your user credentials. -
Navigate to the KDE Configuration Directory: Go to your
.configdirectory:cd ~/.config -
Look for Relevant Configuration Files: List the files and directories in
~/.config/to identify potential configuration files related to your display settings:ls -lYou're looking for files or directories related to
kscreen,kwin, orkdeglobals. -
Editing/Deleting Configuration Files:
-
Option 1: Delete
kscreensettings (if you have akscreendirectory or file):rm -rf kscreen -
Option 2: Look into
kwinrc(if present): Check if there's akwinrcfile and consider moving or editing it. To edit, use:nano ~/.config/kwinrcLook for sections related to screen resolution or display settings and adjust or delete those sections. Save and exit.
-
Option 3: Check
kdeglobalsor other relevant files: You can also checkkdeglobalsfor any display-related settings:nano ~/.config/kdeglobals
-
-
Resetting to Defaults: If you're not sure which specific file is causing the issue, you can try renaming or deleting the entire
.configdirectory (after backing up any important configurations you might need later):mv ~/.config ~/.config.backupThis will reset many of your KDE settings to their defaults, including the display resolution.
-
Return to the Graphical Login: After making the necessary changes, you can return to the graphical login screen by pressing
Ctrl + Alt + F7(the default for the graphical session; this might beF1in some setups). -
Log In: Try logging in again. Your KDE desktop should now start with a more reasonable display resolution.
If you're still having trouble, you might need to explore other configuration files or consider reinstalling any graphics drivers or resetting other components of your KDE setup.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.