From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4FAB81382C5 for ; Thu, 25 Jun 2020 19:11:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 20FABE0884; Thu, 25 Jun 2020 19:11:01 +0000 (UTC) Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CE961E0874 for ; Thu, 25 Jun 2020 19:10:59 +0000 (UTC) Received: by mail-qv1-xf33.google.com with SMTP id d12so3379044qvn.0 for ; Thu, 25 Jun 2020 12:10:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=KkVaHLyOTaOzDrAWSjPiMyIZshgZfP8MU9CpCdPCNqk=; b=FAN4DMMmlt3XzAvGc6eOoj8C3E6GBLa9mUPJByzo2DMkwydhtf7Cy8Y9rmPceEr9z1 5HiQG4DwIIPHCNrx+4r8SIKo09Va73QhPg8wp6lox5KUHv5AouGSZGq/5NN0+86kiGZ9 zYzoRJzNDC9hmAfBwsaIMu3i5FcWI+69xaFOJX23TIpCO0aAMmuXWy5J/xEFP+8YldYm t4O1NO0MI8gK80iQALkgD85H/2n2W7hl6H7Qk6Zenuq9waCyXkbpKJ1GonPFW+KnnfzH iVFZt46n7jUe3kk27sVCjktPYeEi31nHcY9OJ/yPqhu2s2wZQgHMHaKmTOVQzWeOoQhl yweg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=KkVaHLyOTaOzDrAWSjPiMyIZshgZfP8MU9CpCdPCNqk=; b=SAxFafQoNHcWZlVxhi6ZJD/XbsgfpfJhJ+24Kx/TdEUfOKhPF//hSXiQ5elloONIJ/ V+JBjthHA4PoQVXklPeaLoEgyTsK5XyIhbcmJghFPbDAYDWSt95K1gczKoETah9SbqNZ IRlsSOxC6qxCaJqjcgph+oxV1P3V3wj2TukIEDaLU//0QEjhuUk2nNtQBBsAYLsonsY1 B1khqtEMIGIP2PruwYWXCp+0QjnH0moXZynHETQdJbkbIS93uy3jMPTcrGkYwQHaT6et KHVsHk3oECIvw264fPpkaqVylPphaA7py6lrS+msTn2y9pcfm3XPZmOyRaYUxSOB4gYU c6Xw== X-Gm-Message-State: AOAM530DnlLgQ7UX5u0gdUdRhQAdEnYrHxEDoCuxXMoeGninZthxFD6F nXjdnylkIFgwjcKFeAMSE2MRTG5uKL5bRtXWsOVV11LOBxM= X-Google-Smtp-Source: ABdhPJxBQ64QuTfBVXubwcPzorHxlhjSZ5TNNlppQPTh90yxBkswQ1n38kfbT8A/niKH4PSuYR/xJzctrS6E0ZNLHpc= X-Received: by 2002:ad4:42a6:: with SMTP id e6mr36855250qvr.170.1593112258701; Thu, 25 Jun 2020 12:10:58 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <3127CC4F-910E-48F0-9E8D-F32DC067C873@gmail.com> In-Reply-To: <3127CC4F-910E-48F0-9E8D-F32DC067C873@gmail.com> From: Valmor de Almeida Date: Thu, 25 Jun 2020 15:10:45 -0500 Message-ID: Subject: Re: [SOLVED] [gentoo-user] thunderbird small fonts on hidpi To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 11f9498d-bb1a-4695-8868-2c3ff2ecc5ec X-Archives-Hash: e4811eeb774b04779d36aa403e300391 On Thu, Jun 25, 2020 at 11:52 AM Andrew Udvare wrote: > > > > On 2020-06-25, at 13:40, Valmor de Almeida wrote= : > > > > On Thu, Jun 25, 2020 at 9:43 AM Andrew Udvare wrote= : > >> > >> On 25/06/2020 04:59, Valmor de Almeida wrote: > >>> Hello, > >>> Does anyone know how to fix Thunderbird UI fonts on a HiDPI > >>> Gentoo/OpenBox system with no desktop? > >>> A similar problem exists with Firefox but it can be fixed using a CSS > >>> file (userChrome.css). However I can't get Thunderbird to work using = a > >>> similar fix. The UI fonts are so small that the app is useless. > >>> Thanks, > >>> -- > >>> Valmor > >>> > >> > >> Do you have an ~/.Xresources file? It can have something like: > >> > >> Xft.dpi: 144 > >> > >> Which is also passed to Xorg for me: -dpi 144 (Plasma does this by > >> modifying SDDM service file(s) to systemd). > >> > > > > No I don't have it. I thought the line > > > > xrandr --dpi 192 & > > or > > xrandr --output eDP-1 --mode "3840x2160" --scale "0.75x0.75" > > > > in ~/.xinitrc was sufficient to fix Firefox; it doesn't fix TB. > > > > I just added > > Xft.dpi: 192 > > to ~/.Xresources and not only TB works but LibreOffice works too. > > Of course all of this defies the purpose of having an HiDPI laptop but > > it is either that or no use at all. > > For Qt apps you might want these environment variables in .xinitrc: > > QT_SCREEN_SCALE_FACTORS=3DDVI-I-0=3D1.5;DVI-I-1=3D1.5;HDMI-0=3D1.5;DP-0= =3D1.5;DP-1=3D1.5;DP-2=3D1.5;DP-3=3D1.5;DP-4=3D1.5;DP-5=3D1.5; > > (These device names are the same as what xrandr shows.) > > QT_AUTO_SCREEN_SCALE_FACTOR=3D0 > > Currently I have an issue where opening Qt apps from certain contexts res= ults in resetting the DPI scale to 2 instead of 1.5. Primarily this happens= when Chrome launches a Qt-based viewer such as Kate, and sometimes it happ= ens from Konsole. Have yet to file bugs. > > Thank you. Got those in too. Helpful when I start looking at other X apps. -- Valmor