question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disabling monitor scale change warning when using two screens

See original GitHub issue

Issue Report Checklist

  • [ x] Searched the issues page for similar reports
  • [ x] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • [ x] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • [ N/A] Could not reproduce inside jupyter qtconsole (if console-related)
  • [ x] Tried basic troubleshooting (if a bug/error)
    • [ x] Restarted Spyder
    • [ x] Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • [ N/A] Tried the other applicable steps from the Troubleshooting Guide
  • [ x] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

I use two screens with different resolutions. When I drag the Spyder window from one screen to the other, the following message appears: “A monitor scale change was detected. We recommend restarting Spyder to ensure that it’s properly displayed. If you don’t want to do that, please be sure to activate the option Enable auto high DPI scaling in Preferences > General > Interface, in case Spyder is not displayed correctly. Do you want to restart Spyder?” This warning message appears when the Preferences > General > Interface > Screen resolution setting is set to either “Normal” or “Custom high DPI scaling”. It does not appear when “Enable auto high DPI scaling” is selected, however I do not like the automatic scaling of the window, I prefer when the scaling is the same on both screens.

What steps reproduce the problem?

  1. Open Spyder
  2. With the Preferences > General > Interface > Screen resolution setting set to either “Normal” or “Custom high DPI scaling”, drag the window from one screen to the other, which has a different resolution.

What is the expected output? What do you see instead?

I do not want to apply any DPI scaling, as I am perfectly content with how Spyder is displayed on both monitors with the “Normal” setting of the Preferences > General > Interface > Screen resolution menu. Of course I can disable the warning message temporarily by ticking the “Hide this message during the current session” box before clicking the “Dismiss” button of the warning window, but it is kind of tedious having to do it at each session. Is there a way of disabling it permanently?

Paste Traceback/Error Below (if applicable)


N/A

Versions

  • Spyder version: 4.2.0
  • Python version: 3.7.9
  • Qt version: 5.9.6
  • PyQt version: 5.9.2
  • Operating System name/version: Windows 10

Dependencies


# Mandatory:
atomicwrites >=1.2.0            :  1.4.0 (OK)
chardet >=2.0.0                 :  4.0.0 (OK)
cloudpickle >=0.5.0             :  1.6.0 (OK)
diff_match_patch >=20181111     :  20200713 (OK)
intervaltree >=3.0.2            :  3.1.0 (OK)
IPython >=4.0                   :  7.19.0 (OK)
jedi =0.17.2                    :  0.17.2 (OK)
jsonschema >=3.2.0              :  3.2.0 (OK)
nbconvert >=4.0                 :  6.0.7 (OK)
numpydoc >=0.6.0                :  1.1.0 (OK)
paramiko >=2.4.0                :  2.7.2 (OK)
parso =0.7.0                    :  0.7.0 (OK)
pexpect >=4.4.0                 :  4.8.0 (OK)
pickleshare >=0.4               :  0.7.5 (OK)
psutil >=5.3                    :  5.7.2 (OK)
pygments >=2.0                  :  2.7.3 (OK)
pylint >=1.0                    :  2.6.0 (OK)
pyls >=0.36.1;<1.0.0            :  0.36.2 (OK)
pyls_black >=0.4.6              :  0.4.6 (OK)
pyls_spyder >=0.1.1             :  0.3.0 (OK)
qdarkstyle >=2.8                :  2.8.1 (OK)
qtawesome >=0.5.7               :  1.0.1 (OK)
qtconsole >=4.7.7               :  4.7.7 (OK)
qtpy >=1.5.0                    :  1.9.0 (OK)
rtree >=0.8.3                   :  0.9.4 (OK)
setuptools >=39.0.0             :  51.0.0.post20201207 (OK)
sphinx >=0.6.6                  :  3.4.0 (OK)
spyder_kernels >=1.10.0;<1.11.0 :  1.10.1 (OK)
three_merge >=0.1.1             :  0.1.1 (OK)
watchdog >=0.10.3               :  0.10.4 (OK)
zmq >=17                        :  20.0.0 (OK)

# Optional:
cython >=0.21                   :  None (NOK)
matplotlib >=2.0.0              :  3.3.2 (OK)
numpy >=1.7                     :  1.19.2 (OK)
pandas >=1.1.1                  :  1.1.5 (OK)
scipy >=0.17.0                  :  1.5.2 (OK)
sympy >=0.7.3                   :  None (NOK)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
ccordoba12commented, Aug 11, 2021

Given that a lot of people find that warning very annoying and it’s also triggered in the wrong circumstances, we will offer an option to not show it again in our next version (5.1.2), to be released shortly.

1reaction
KennethGrimescommented, Aug 9, 2021

Hey @pmassat, thanks for reporting. You said:

Of course I can disable the warning message temporarily by ticking the “Hide this message during the current session” box before clicking the “Dismiss” button of the warning window, but it is kind of tedious having to do it at each session

Unfortunately, we can’t offer an option to hide that warning forever because it would lead to an inconsistent interface if you connect Spyder to different monitors than the ones you describe in this issue.

So, if don’t want to take our advice of setting Enable auto high DPI scaling, I’m afraid you’ll have to live with this minor inconvenience, sorry.

Hi Carlos,

I have the same issue as the original poster, I tried setting “Enable auto high DPI scaling” and restarting Spyder but the error message continues to appear. Is there any way to make this warning disappear??

Thanks in advance!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Configure Display Scaling in Windows 10 - Alphr
Using Windows 10 Preset Display Scaling for Two or More Monitors · Go to “Start Menu > Settings > System > Display” and...
Read more >
Windows scaling issues for high-DPI devices - Microsoft Support
Right-click the application, select Properties, select the Compatibility tab, and then select the Disable display scaling on high DPI settings check box.
Read more >
The most common multi-monitor problems and how to fix them
Step 1: Right-click your desktop and select the Display Settings option on the resulting pop-up menu. Step 2: The Settings app opens with...
Read more >
Windows applications resized incorrectly when moving ...
I have one 28" 4K monitor and two 21" HD monitors. Windows scaling is working "fine" but the annoying thing is when I...
Read more >
Dual Screen Setup for Desktop Computer Monitors
If you want the mouse to scroll left to right across your monitors, make sure monitor "1" is on the left and monitor...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found