Hi everyone, I've been using Ubuntu desktop with a dual monitor setup, currently on Ubuntu 24.04 LTS (though I've had this issue on previous versions as well). The problem is with the resolution on a few applications and the desktop. On the second screen, everything looks bigger (higher resolution), as shown in the attached images. I am using the settings shown in the attached images for both screens. When I try to use Fractional Scaling, the screens become blurry. This issue occurs with certain apps: for example, the terminal works fine on both screens with no enlargement, and the desktop on the second screen looks large. However, Firefox browser displays correctly on both screens, but Chrome, Brave, and VSCode appear enlarged. I'm unsure if this is an issue with the Ubuntu desktop, the specific applications, or GNOME. Any assistance with troubleshooting this would be really helpful. Thanks!
Use xrandr for Manual Configuration. xrandr --output HDMI-1 --mode 1920x1080 --scale 1x1 xrandr --output HDMI-2 --mode 2560x1440 --scale 1x1
Apparently this is an electron-specific problem with each app based on electron having difficulty to recognize wayland. for chrome: 1. go to chrome://flags 2. search for "ozone" 3. in the preferred ozone platform drop down choose "Wayland" for VS code the trick is to add flags to the launcher. I suggest to use the .deb from VS code website as I had difficulty locating the launcher in use for the snap install for Arch (untested) https://gist.github.com/qguv/e592dbe...1d2ae8cfa7ef14 For Others, working on Ubuntu 24.04 with VS code .deb https://github.com/microsoft/vscode/issues/176192 Code: Exec=code --force-user-env --enable-features=UseOzonePlatform --ozone-platform=wayland %F note that the launcher might be located at different places (e.g. for snap in /snap/code/.../meta/gui/code.desktop) I finally located the code.desktop file and copied it to ~/.local/share/applications/ (source path may change) Code: cp /usr/share/applications/code.desktop ~/.local/share/applications/ full laucher code in ~/.local/share/applications/ (note the icon path) Code: [Desktop Entry] Name=VS Code Comment=Code Editing. Redefined. GenericName=Text Editor Exec=code --force-user-env --enable-features=UseOzonePlatform --ozone-platform=wayland %F Icon=/usr/share/pixmaps/vscode.png Type=Application StartupNotify=false StartupWMClass=Code Categories=TextEditor;Development;IDE; MimeType=application/x-code-workspace; Actions=new-empty-window; Keywords=vscode; [Desktop Action new-empty-window] Name=New Empty Window Name[de]=Neues leeres Fenster Name[es]=Nueva ventana vacía Name[fr]=Nouvelle fenêtre vide Name[it]=Nuova finestra vuota Name[ja]=新しい空のウィンド Name[ko]=새 빈 창 Name[ru]=Новое пустое окно Name[zh_CN]=新建空窗口 Name[zh_TW]=開新空視窗 Exec=code --force-user-env --new-window --enable-features=UseOzonePlatform --ozone-platform=wayland %F Icon=/usr/share/pixmaps/vscode.png Code:
Exec=code --force-user-env --enable-features=UseOzonePlatform --ozone-platform=wayland %F
cp /usr/share/applications/code.desktop ~/.local/share/applications/
[Desktop Entry] Name=VS Code Comment=Code Editing. Redefined. GenericName=Text Editor Exec=code --force-user-env --enable-features=UseOzonePlatform --ozone-platform=wayland %F Icon=/usr/share/pixmaps/vscode.png Type=Application StartupNotify=false StartupWMClass=Code Categories=TextEditor;Development;IDE; MimeType=application/x-code-workspace; Actions=new-empty-window; Keywords=vscode; [Desktop Action new-empty-window] Name=New Empty Window Name[de]=Neues leeres Fenster Name[es]=Nueva ventana vacía Name[fr]=Nouvelle fenêtre vide Name[it]=Nuova finestra vuota Name[ja]=新しい空のウィンド Name[ko]=새 빈 창 Name[ru]=Новое пустое окно Name[zh_CN]=新建空窗口 Name[zh_TW]=開新空視窗 Exec=code --force-user-env --new-window --enable-features=UseOzonePlatform --ozone-platform=wayland %F Icon=/usr/share/pixmaps/vscode.png
View Tag Cloud
Ubuntu Forums Code of Conduct