Alterar a escala do Ecrã para 150%

Olá a todos.

Sou novo no EndlessOS, mas estou a adorar! :grinning:

Mas neste momento estou com um pequeno entrave, que é…

Tenho um monitor 28" 4K e com a escala a 100% fica tudo pequeno, mas a 200% fica tudo grande… não é possivel colocar a escala a 150%?

Obrigado.

Qual versão do Endless OS você tá usando?
Para verificar qual versão do Endless OS você está em Configurações :arrow_right: Detalhes

1 Like

I don’t have a Hi-DPI Display, but from what i’ve read, you can enable fractional scaling (e.g. 125%, 150%, …) by enabling the corresponding feature manually:

gsettings set org.gnome.mutter experimental-features "['x11-randr-fractional-scaling']"

Now fire up your settings and set the desired fractional scale.

1 Like

Olá Leandro,

A versão é : 3.6.4 (190924-114254)

Atualiza para o Endless oS 3.7.2 pela Central de Aplicativos

Olá, Obrigado pela resposta.

Já actualizei e fica igual…

Hello, thank you for your answer.
Did that in the terminal but it gives no feedback…

It’s supposed to give no feedback. Open up your Display settings, now you should have the option of 125%, 150%, …

Thank you, but it does not work.

Can you please put the following in a file and execute it:

#!/bin/bash
OUTPUT=$(xrandr | grep primary | awk '{print $1}')

gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "[{'Gdk/WindowScalingFactor', <2>}]"
gsettings set org.gnome.desktop.interface scaling-factor 2
xrandr --output ${OUTPUT} --scale 1.5x1.5

Then open up a Terminal and:

chmod +x myfile.sh
./myfile.sh

(I assume that you saved the text above to a file called myfile.sh directly in your home directory). If this works, our next step is to apply this script at every boot. Play around with the xrandr scale to find something which suits your needs.

2 Likes

Thank you for the answer!
That worked as a charm and the scale is great!! :wink:

How do you make it run at startup?

ty

Enable autostart of Applications

To automatically launch a application or script upon the login to your desktop session, you need to create a few files and put them into the right location.

In this tutorial, we will autoload a script located in ~/scripts/resolution.sh.

Create a launcher file

Open up a text editor and put the following in:

[Desktop Entry]
Name=SetResolution
Description=Sets the Display resolution and scale
Type=Application
Exec=/sysroot/home/egon/scripts/resolution.sh
Icon=application-x-executable-symbolic
X-GNOME-Autostart-Enabled=true
X-GNOME-Autostart-Delay=0

Adopt the Exec path to reflect your actual home directory. The last two lines aren’t really necessary, but give you some kind of freedom to enable/disable autostart and optionally set a launch delay.

Save this file as ~/.config/autostart/SetResolution.desktop

Mark the launcher as trusted

Open up a Terminal and enter:

chmod 755 ~/.config/autostart/SetResolution.desktop
gio set ~/.config/autostart/SetResolution.desktop metadata::trusted yes
2 Likes

Thank you egrath for your precious help!

:clap:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.