Score:2

Fractional display scaling: get and set in terminal

us flag

I'm using Ubuntu 22.10 with Wayland. How do I get current fractional scaling value via terminal?

E.g. with GUI set to 125%:

gsettings get org.gnome.desktop.interface scaling-factor

returns 0, and

gsettings get org.gnome.desktop.interface text-scaling-factor

returns 1.0.

Can't see anything relevant in the list of other org.gnome.desktop.interface variables.

bd flag
Which version of Ubuntu are you using? Are you using X or Wayland?
bd flag
I have the same question for Ubuntu 23.04 using Wayland.
Anton Duzenko avatar
us flag
@Flimm Ubu 22, whatever is default on it
bd flag
There's actually two versions of Ubuntu that could be, either Ubuntu 22.04 or Ubuntu 22.10. You can find out by opening "About" in the "Settings" application. You can also find out if you are using X or Wayland from the same place, listed under "Windowing System"
Anton Duzenko avatar
us flag
@Flimm 22.10 wayland
vn flag
AFAIK You won't find it because GTK4 doesn't really fractional scaling [1](https://wiki.archlinux.org/title/HiDPI#Fractional_scaling) [2](https://youtu.be/87W6iIEicoM?t=108). Test any change on dconf with `dconf dump / > before/after`
Score:0
mz flag

this may not be exactly what you are looking for but maybe of help its a CLI utility called 'betterscale' which will give you the options of fractional scaling via the CLI.

have a look here it explains it better then i can ...

https://ubuntuhandbook.org/index.php/2022/01/more-scaling-levels-ubuntu/

bd flag
Thank you for sharing this tool! I want to upvote this answer, as it is helpful, but unfortunately it doesn't answer the question. How do I get the current scaling factor that is already set? bettescale doesn't do that, and it only works on X.org, not Wayland.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.