Results 1 to 3 of 3

Thread: Resolution issue with dual monitor set up on Ubuntu or Gnome?

  1. #1
    Join Date
    Jul 2024
    Beans
    1

    Post Resolution issue with dual monitor set up on Ubuntu or Gnome?

    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!





  2. #2
    Join Date
    Aug 2024
    Location
    Bratislava
    Beans
    11
    Distro
    Ubuntu Kylin 24.04 Noble Numbat

    Re: Resolution issue with dual monitor set up on Ubuntu or Gnome?

    Use xrandr for Manual Configuration.

    xrandr --output HDMI-1 --mode 1920x1080 --scale 1x1
    xrandr --output HDMI-2 --mode 2560x1440 --scale 1x1

  3. #3
    Join Date
    Sep 2024
    Beans
    1

    Re: Resolution issue with dual monitor set up on Ubuntu or Gnome?

    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:

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •