Adjusting screen resolution and virtual desktop settings broke config
Adjusting screen resolution and virtual desktop settings broke config
On Ubuntu 18.04 I run WINE 3.0 (the latest version in the Ubuntu repo's for that version). I'll upgrade to 7.0 one of these days. But for now I need to resolve issues with the version I have.
Everything ran well until I decided that in some applications the text was small and hard to read. I used WineCfg to adjust the screen resolution, which didn't help. Then I tried checking the virtual desktop checkbox, which didn't help either. I then restored the settings to their original values.
This seem to have broken something. The applications that come with Wine (e.g. regedit.exe) no longer show any text, while the menus on Photoshop CS6 (which I have used for ages with only minor issues) are being resized to full screen height but most or all menu options are missing. Screenshots attached.
I know about nuking my ~/.wine subdir which I'm sure will fix it, but then I'll have to reinstall all my Windows applications again, which is more of a pain than I can afford right now, especially given that I don't know what caused the problem so it may occur again at any moment.
How to troubleshoot this? All suggestions appreciated!
Everything ran well until I decided that in some applications the text was small and hard to read. I used WineCfg to adjust the screen resolution, which didn't help. Then I tried checking the virtual desktop checkbox, which didn't help either. I then restored the settings to their original values.
This seem to have broken something. The applications that come with Wine (e.g. regedit.exe) no longer show any text, while the menus on Photoshop CS6 (which I have used for ages with only minor issues) are being resized to full screen height but most or all menu options are missing. Screenshots attached.
I know about nuking my ~/.wine subdir which I'm sure will fix it, but then I'll have to reinstall all my Windows applications again, which is more of a pain than I can afford right now, especially given that I don't know what caused the problem so it may occur again at any moment.
How to troubleshoot this? All suggestions appreciated!
Re: Adjusting screen resolution and virtual desktop settings broke config
To reset the DPI setting, you can use the trick found on the WineHQ Wiki.
For the virtual desktop, you can use winetricks.
Should this not give any improvement, you could try to install Wine 7.0
- Make a copy of your wineprefix.
- Add the WineHQ repository.
- Install wine-stable, wine-stable-amd64 and wine-stable-i386 from the WineHQ repository. (This will preserve the old Wine version and install the new version alongside it)
- Test Wine with your new wineprefix
If the control panel works normally again, test your other programs
If everything works, you can replace the old Wine version with the new one.
After this, you can use Wine 7.0 with the wine command
For the virtual desktop, you can use winetricks.
Code: Select all
# set a virtual desktop
winetricks vd=1024x768
# disable the virtual desktop
winetricks vd=off
- Make a copy of your wineprefix.
Code: Select all
cp -r ${HOME}/.wine ${HOME}/wine-test
- Install wine-stable, wine-stable-amd64 and wine-stable-i386 from the WineHQ repository. (This will preserve the old Wine version and install the new version alongside it)
Code: Select all
sudo apt install --install-recommends wine-stable wine-stable-amd64 wine-stable-i386
Code: Select all
# For example, run the control panel
WINEPREFIX="${HOME}/wine-test" /opt/wine-stable/bin/wine control
Code: Select all
# Go to the directory where the program is installed
cd "${HOME}/wine-test/drive_c/Program Files (x86)/some/program"
# Try the program
WINEPREFIX="${HOME}/wine-test" /opt/wine-stable/bin/wine program.exe
Code: Select all
sudo apt install winehq-stable
Re: Adjusting screen resolution and virtual desktop settings broke config
Hi, @jkfloris, and thanks for the advice!
I followed the instructions (https://wiki.winehq.org/Ubuntu) to the letter but I keep running into public key issues:
(No output from this command.)
Seems OK...
Seems OK too... (I did verify that the downloaded files are indeed present where they should be.)
What am I missing?
// FvW
I tried it. The text in the menus is now smaller. Other than that, no effect.jkfloris wrote: ↑Tue Sep 13, 2022 5:12 pm To reset the DPI setting, you can use the trick found on the WineHQ Wiki.
Tried that too. No effect.
Agreed; that looks to be the best option at this point in time. However, now I'm running into a different problem when I try to do that: I can't seem to add the repository due to public key issues. This problem appears to be somewhat common, judging from what I see on Google, but I can't seem to resolve it.
I followed the instructions (https://wiki.winehq.org/Ubuntu) to the letter but I keep running into public key issues:
Code: Select all
$ sudo dpkg --add-architecture i386
Code: Select all
$ sudo wget -nc -O /usr/share/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
--2022-09-15 13:19:01-- https://dl.winehq.org/wine-builds/winehq.key
Resolving dl.winehq.org (dl.winehq.org)... 151.101.174.217
Connecting to dl.winehq.org (dl.winehq.org)|151.101.174.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3220 (3.1K) [application/pgp-keys]
Saving to: ‘/usr/share/keyrings/winehq-archive.key’
/usr/share/keyrings/winehq-archive.key 100%[========================================================================================>] 3.14K --.-KB/s in 0.003s
2022-09-15 13:19:01 (1.13 MB/s) - ‘/usr/share/keyrings/winehq-archive.key’ saved [3220/3220]
Code: Select all
$ sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/winehq-bionic.sources
--2022-09-15 13:20:32-- https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/winehq-bionic.sources
Resolving dl.winehq.org (dl.winehq.org)... 151.101.174.217
Connecting to dl.winehq.org (dl.winehq.org)|151.101.174.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 164
Saving to: ‘/etc/apt/sources.list.d/winehq-bionic.sources’
winehq-bionic.sources 100%[========================================================================================>] 164 --.-KB/s in 0s
2022-09-15 13:20:33 (3.28 MB/s) - ‘/etc/apt/sources.list.d/winehq-bionic.sources’ saved [164/164]
Code: Select all
$ sudo apt update
Get:1 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [6,263 B]
Err:1 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
<!-- snip -->
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
// FvW
Re: Adjusting screen resolution and virtual desktop settings broke config
Where does the Signed-By line in winehq-bionic.sources refer to?
If it points to /etc/apt/keyrings/winehq-archive.key, move the key from /usr/share/keyrings to /etc/apt/keyrings
Code: Select all
cat /etc/apt/sources.list.d/winehq-bionic.sources
Code: Select all
sudo mkdir -pm755 /etc/apt/keyrings
sudo mv /usr/share/keyrings/winehq-archive.key /etc/apt/keyrings/winehq-archive.key
Re: Adjusting screen resolution and virtual desktop settings broke config
Yep... That did the trick! Thank you!!
(Perhaps this should be included in the instructions at https://wiki.winehq.org/Ubuntu)
(Perhaps this should be included in the instructions at https://wiki.winehq.org/Ubuntu)
Re: Adjusting screen resolution and virtual desktop settings broke config
The Wiki has been updated.(Perhaps this should be included in the instructions at https://wiki.winehq.org/Ubuntu)
https://wiki.winehq.org/Ubuntu#Winehq_key_problems