SOLVED

[BUG](Linux) Wrong scale in HiDPI screen and text Location report to input method

Copper Contributor

 

Hello, I am using Arch Linux with:

OS: Arch Linux x86_64

Kernel: 5.11.16-arch1-1

Shell: zsh 5.8  
Resolution: 3840x2160  
DE: Plasma 5.21.4  
WM: KWin

microsoft-edge-dev: 91.0.864.1

 

I am using a 4K monitor, so I set the system scale to 200%, and it works well in most applications. However, edge presents a vary big interface, about 2 times larger than normal. I tried "export GDK_SCALE=1", than lunch microsoft-edge-dev in the terminal, the interface become normal, but when I lunch download file in edge, the file manager (dolphin) become 0.5 smaller than normal. 

 

What's more, edge seems incompatible with input method (Fcitx), the location where float bar should be present in the left up of the position. Chromium fixed the issue (Refers to: https://bugs.chromium.org/p/chromium/issues/detail?id=475718 ).

 

I tried Google Chrome, and it works prefect without the two bugs. Both of the two are my favorite browsers, wish it can be fixed. Thanks a lot!

 

Here is my output of env : 

Spoiler
COLORFGBG=15;0
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=plasma
DISPLAY=:0
DOTNET_BUNDLE_EXTRACT_BASE_DIR=/home/sky96111/.cache/dotnet_bundle_extract
DOTNET_ROOT=/usr/share/dotnet
GDK_DPI_SCALE=0.5
GDK_SCALE=2
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/sky96111/.gtkrc-2.0:/home/sky96111/.config/gtkrc-2.0
GTK_IM_MODULE=fcitx
GTK_MODULES=canberra-gtk-module
GTK_RC_FILES=/etc/gtk/gtkrc:/home/sky96111/.gtkrc:/home/sky96111/.config/gtkrc
HOME=/home/sky96111
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
KONSOLE_DBUS_SERVICE=:1.342
KONSOLE_DBUS_SESSION=/Sessions/1
KONSOLE_DBUS_WINDOW=/Windows/1
KONSOLE_VERSION=210400
LANG=zh_CN.UTF-8
LANGUAGE=zh_CN:en_US
LOGNAME=sky96111
MAIL=/var/spool/mail/sky96111
MOTD_SHOWN=pam
OLDPWD=/home/sky96111
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/home/sky96111/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PROFILEHOME=
PWD=/home/sky96111
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_IM_MODULE=fcitx
QT_SCREEN_SCALE_FACTORS=DVI-D-0=2;HDMI-0=2;DP-0=2;DP-1=2;DVI-D-1=2;
SESSION_MANAGER=local/Archlinux:@/tmp/.ICE-unix/937,unix/Archlinux:/tmp/.ICE-unix/937
SHELL=/bin/zsh
SHELL_SESSION_ID=54054b33c43c48fb97cda8a90b9b5738
SHLVL=1
TERM=xterm-256color
USER=sky96111
WINDOWID=102760455
XAUTHORITY=/home/sky96111/.Xauthority
XCURSOR_SIZE=48
XCURSOR_THEME=breeze_cursors
XDG_CURRENT_DESKTOP=KDE
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=2
XMODIFIERS=@im=fcitx
_=/usr/bin/env
PAGER=less
LESS=-R
LSCOLORS=Gxfxcxdxbxegedabagacad
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
5 Replies
Hi,
please use the feedback button on Edge to submit the bug report
press Edge's (...) menu => Help and feedback => Send feedback

you can attach files to your feedback too and enter your email to receive replies.
Hello, I submitted this feedback monthes ago, without getting any reply. So, I turn to the form, thinking this may be a better way to track this issue.
I have the some problem with kubuntu 20.04, with a 4k hidpi screen with the microsoft edge, it have 2X scaling, the OS have 200% scale, but MS edge add another 200%, the result: The browser saddly its innusable.
With ubuntu traditional with gnome this works fine, dont have this problem.

Regards!
best response confirmed by sky96111 (Copper Contributor)
Solution
Hi,
I had this scaling issue today after installing Edge beta on Kubuntu (KDE) and we found a solution from here: https://wiki.archlinux.org/title/HiDPI#Chromium_/_Google_Chrome

Launch Edge with the following flags: --high-dpi-support=1 --force-device-scale-factor=2
To make these changes permanent, copy the .desktop file from /usr/share/applications to ~/.local/share/applications and add the flags to "Exec" before the "%U" in the file.

This will override's Edge's scaling and forces an absolute scale of 2 (1 = 100%, 2 = 200%).

Hope this helps!
It works!
Sadly, this bug have not been fixed by Microsoft officially yet.
1 best response

Accepted Solutions
best response confirmed by sky96111 (Copper Contributor)
Solution
Hi,
I had this scaling issue today after installing Edge beta on Kubuntu (KDE) and we found a solution from here: https://wiki.archlinux.org/title/HiDPI#Chromium_/_Google_Chrome

Launch Edge with the following flags: --high-dpi-support=1 --force-device-scale-factor=2
To make these changes permanent, copy the .desktop file from /usr/share/applications to ~/.local/share/applications and add the flags to "Exec" before the "%U" in the file.

This will override's Edge's scaling and forces an absolute scale of 2 (1 = 100%, 2 = 200%).

Hope this helps!

View solution in original post