Display issues with multiple screens
See original GitHub issueIssue Report Checklist
- Searched the issues page for similar reports
- Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
- Reproduced the issue after updating with
conda update spyder
(orpip
, if not using Anaconda) - Could not reproduce inside
jupyter qtconsole
(if console-related) - Tried basic troubleshooting (if a bug/error)
- Restarted Spyder
- Reset preferences with
spyder --reset
- Reinstalled the latest version of Anaconda
- Tried the other applicable steps from the Troubleshooting Guide
- Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
I have two screens:
- Screen 1, of native resolution 3840x2160
- Screen 2, of native resolution 1920x1080
When I start Spyder with screen 1 turned off (laptop lid closed), Spyder display is bad: some fonts are massive (which prevents to resize internal windows in some case), the pyplot windows open off screen.
Tweaking the DPI options in the settings did not fix the issue. Opening Spyder when both screens are on fixes the issue.
Screenshot (after spyder reset):
What steps reproduce the problem?
- With screen 1 off, open Spyder
What is the expected output? What do you see instead?
Expected a decent rendering. Obtain a poor rendering.
Paste Traceback/Error Below (if applicable)
No error in the internal console. Here are some debug information:
>>> spy.window.screen.size()
PyQt5.QtCore.QSize(1920, 1080)
>>> spy.window.screen.virtualSize()
PyQt5.QtCore.QSize(1920, 1080)
>>> spy.window.screen.geometry()
PyQt5.QtCore.QRect(0, 0, 1920, 1080)
>>> spy.window.screen.name()
'\\\\.\\DISPLAY2'
>>> spy.window.screen.logicalDotsPerInch()
96.0
>>> spy.window.screen.physicalDotsPerInch()
93.61458995237565
Versions
- Spyder version: 4.1.3 (obtained from anaconda channel in conda)
- Python version: 3.7.6 64-bit
- Qt version: Qt 5.9.6
- PyQt version: PyQt5 5.9.2
- Operating System name/version: Windows 10
Dependencies
# Mandatory:
atomicwrites >=1.2.0 : 1.4.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 1.4.1 (OK)
diff_match_patch >=20181111 : 20181111 (OK)
intervaltree : None (OK)
IPython >=4.0 : 7.13.0 (OK)
jedi =0.15.2 : 0.15.2 (OK)
nbconvert >=4.0 : 5.6.1 (OK)
numpydoc >=0.6.0 : 0.9.2 (OK)
paramiko >=2.4.0 : 2.7.1 (OK)
parso =0.5.2 : 0.5.2 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.7.0 (OK)
pygments >=2.0 : 2.6.1 (OK)
pylint >=0.25 : 2.5.2 (OK)
pyls >=0.31.9;<0.32.0 : 0.31.10 (OK)
qdarkstyle >=2.8 : 2.8.1 (OK)
qtawesome >=0.5.7 : 0.7.0 (OK)
qtconsole >=4.6.0 : 4.7.4 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
rtree >=0.8.3 : 0.9.4 (OK)
sphinx >=0.6.6 : 3.0.4 (OK)
spyder_kernels >=1.9.1;<1.10.0 : 1.9.1 (OK)
watchdog : None (OK)
zmq >=17 : 18.1.1 (OK)
# Optional:
cython >=0.21 : 0.29.17 (OK)
matplotlib >=2.0.0 : 3.1.3 (OK)
numpy >=1.7 : 1.18.1 (OK)
pandas >=0.13.1 : 1.0.3 (OK)
scipy >=0.17.0 : 1.4.1 (OK)
sympy >=0.7.3 : 1.5.1 (OK)
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
The most common multi-monitor problems and how to fix them
The most common multi-monitor problems and how to fix them · Second monitor not displaying · Wrong or differing resolutions · Wrong refresh...
Read more >How to Troubleshoot a Multiple Monitor Display Issue - CinchIt
Sometimes, Windows stumbles a little and sort of loses track of your additional monitors. Try a refresh by pressing the Windows Logo +...
Read more >Troubleshoot external monitor connections in Windows 10
If you're able to use one external monitor, but have issues using more than one, it's possible that your display adapter (also called...
Read more >How to Fix It When a Second Monitor Is Not Working - Lifewire
Change the screen resolution. If the second monitor's display is blurry, pixelated, distorted, or discolored—or if it's duplicating the primary ...
Read more >How to fix second monitor not detected on Windows 10
When your computer does not detect the second external display, it could be a problem with the software, but it might also be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found a fix: right-click on Spyder shortcut, Properties, then Compatibility tab, Change high DPI settings.
Tick Override high DPI scaling behaviour, select Scaling performed by System.
If you’re referring to add a check in the
else
part of the code you referenced above, then I agree with add a check to see if those variables are set before overwriting them.