e33io
December 3, 2024, 12:37am
1
Description of the issue:
GTK scaling detection is broken and UI is giant (twice as big as it should be)
The HiDPi scaling worked fine prior to v1.73.91
How can this issue be reproduced?
Use a Linux X11 session, then set: Xft.dpi: 192, GDK_SCALE=2, GDK_DPI_SCALE=0.5
Expected result: Proper UI scaling
NOTE: All other Linux apps are respecting Xft.dpi: 192, GDK_SCALE=2, GDK_DPI_SCALE=0.5 for HiDPI scaling
(updated 12/17/24) Brave Version: 1.73.101
289wk
December 16, 2024, 7:45pm
2
Please update your Original Post, above, to include:
That you have updated Brave Browser to the latest version
Among the results of that update - list the improvements
Among the results of that update - list the no improvements
List other applications’ windows wherein GTK scaling detection is broken
List other applications’ windows wherein GTK scaling detection is not broken
Tests that you conducted with all extensions disabled
Tests that you conducted with one-at-a-time extension enabled
Tests that you conducted with a sequence of extensions enabled
Graphics Acceleration status
You get the idea: What works and what does not work. So where, exactly does your issue stand out? Is Brave Browser the only suspect?
Routine maintenance:
Be Prepared
Clear cookies, cache, history, etc.
In a Brave Browser New Window , go to:
brave://settings/clearBrowserData
Select the Advanced tab
Set Time range to “All time”
ENABLE everything except:
Passwords and other sign-in data
(Myself, I would NOT make that exception)
(because I would have a backup prepared.)
(In other words, be prepared .)
Click on the “Clear data” button
e33io
December 18, 2024, 12:31am
3
i updated the initial post with more details.
289wk
December 18, 2024, 12:38am
4
Thanks for the extra info. I do not know who is the resident Linux OS wiz, but @Saoiray might know.
May interest:
brave://flags
Some Brave Browser users search there, for:
ANGLE
D3D11
Metal
NVIDIA
OpenGL
WebGL
and Disable or Enable as they see fit.
In addition to adjusting the Graphics Acceleration (formerly Hardware Acceleration) switch in Brave Browser Settings.
A general discussion, including a tip re Brave Shields:
“https://www.ghacks.net/2022/01/31/your-devices-gpu-may-be-used-for-fingerprinting-purposes/ ”
Scrolling down to one of the comments, the following (by “Iron Heart” Fe…
GitHub > Brave Browser issues
https://github.com/brave/brave-browser/issues?q=is%3Aissue+scaling+detection+sort%3Aupdated-desc
iowaguy
December 30, 2024, 6:13pm
5
I am having the same issue with the latest update (1.73.101).
Attaching a picture of the problem.
e33io
January 3, 2025, 7:05am
6
I haven’t found a solution, but I have found a temporary workaround. If you modify the .desktop file by changing the Exec
lines adding GDK_SCALE=1
to the command, it scales Brave correctly. See code below for complete details.
[Desktop Entry]
Version=1.0
Name=Brave Web Browser
GenericName=Web Browser
Comment=Access the Internet
Exec=bash -c "GDK_SCALE=1 /usr/bin/brave-browser-stable %U"
StartupNotify=true
Terminal=false
Icon=brave-browser
Type=Application
Categories=Network;WebBrowser;
MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;
Actions=new-window;new-private-window;
[Desktop Action new-window]
Name=New Window
Exec=bash -c "GDK_SCALE=1 /usr/bin/brave-browser-stable"
[Desktop Action new-private-window]
Name=New Incognito Window
Exec=bash -c "GDK_SCALE=1 /usr/bin/brave-browser-stable --incognito"