Adjusting screen resolution and virtual desktop settings broke config

Questions about Wine on Linux
Locked
frankvw
Newbie
Newbie
Posts: 3
Joined: Tue Sep 13, 2022 3:05 am

Adjusting screen resolution and virtual desktop settings broke config

Post by frankvw »

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!
Attachments
Screenshot showing WINE control panel and regedit windows
Screenshot showing WINE control panel and regedit windows
Sceenshot showing Photoshop CS6 menu issues
Sceenshot showing Photoshop CS6 menu issues
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Adjusting screen resolution and virtual desktop settings broke config

Post by jkfloris »

To reset the DPI setting, you can use the trick found on the WineHQ Wiki.

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
Should this not give any improvement, you could try to install Wine 7.0
- Make a copy of your wineprefix.

Code: Select all

cp -r ${HOME}/.wine ${HOME}/wine-test
- 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)

Code: Select all

sudo apt install --install-recommends wine-stable wine-stable-amd64 wine-stable-i386
- Test Wine with your new wineprefix

Code: Select all

# For example, run the control panel
WINEPREFIX="${HOME}/wine-test" /opt/wine-stable/bin/wine control
If the control panel works normally again, test your other programs

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
If everything works, you can replace the old Wine version with the new one.

Code: Select all

sudo apt install winehq-stable
After this, you can use Wine 7.0 with the wine command
frankvw
Newbie
Newbie
Posts: 3
Joined: Tue Sep 13, 2022 3:05 am

Re: Adjusting screen resolution and virtual desktop settings broke config

Post by frankvw »

Hi, @jkfloris, and thanks for the advice!
jkfloris wrote: Tue Sep 13, 2022 5:12 pm To reset the DPI setting, you can use the trick found on the WineHQ Wiki.
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 For the virtual desktop, you can use winetricks.
Tried that too. No effect.
jkfloris wrote: Tue Sep 13, 2022 5:12 pm Should this not give any improvement, you could try to install Wine 7.0
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
(No output from this command.)

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]
Seems OK...

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]
Seems OK too... (I did verify that the downloaded files are indeed present where they should be.)

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.
What am I missing?

// FvW
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Adjusting screen resolution and virtual desktop settings broke config

Post by jkfloris »

Where does the Signed-By line in winehq-bionic.sources refer to?

Code: Select all

cat /etc/apt/sources.list.d/winehq-bionic.sources
If it points to /etc/apt/keyrings/winehq-archive.key, move the key from /usr/share/keyrings to /etc/apt/keyrings

Code: Select all

sudo mkdir -pm755 /etc/apt/keyrings
sudo mv /usr/share/keyrings/winehq-archive.key /etc/apt/keyrings/winehq-archive.key
frankvw
Newbie
Newbie
Posts: 3
Joined: Tue Sep 13, 2022 3:05 am

Re: Adjusting screen resolution and virtual desktop settings broke config

Post by frankvw »

Yep... That did the trick! Thank you!!

(Perhaps this should be included in the instructions at https://wiki.winehq.org/Ubuntu)
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Adjusting screen resolution and virtual desktop settings broke config

Post by jkfloris »

(Perhaps this should be included in the instructions at https://wiki.winehq.org/Ubuntu)
The Wiki has been updated.
https://wiki.winehq.org/Ubuntu#Winehq_key_problems
Locked