PINE64
How To: Custom Scaling between 100% - 200% but for Manjaro Phosh - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Manjaro on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=130)
+---- Thread: How To: Custom Scaling between 100% - 200% but for Manjaro Phosh (/showthread.php?tid=14294)



How To: Custom Scaling between 100% - 200% but for Manjaro Phosh - AwHereWeGoAgain - 06-27-2021

Hey again.  I recently posted a howto in the Mobian side of the forum.  I wanted to post the same howto on the Manjaro side with the changes that were made to make it work on this side.  (Please note that these ideas originated from others working with the Librem 5.  I only adapted it to work with Manjaro. Please give credit to those who it is due in the link at the end.  Also note that I am in no way an expert and am much more comfortable with Debian based systems.  I am fairly new to Arch so if you know a more efficient way to complete the same task feel free to post below Smile .)

In the end what I was attempting worked so with that out of the way lets begin!

Step one. 
Install git.

Code:
sudo pacman -Syyu
sudo pacman -git

Step two.  
Install all of the Manjaro equivalents to the original Debian commands.  (This could take a while....it downloads around 300-400 meg?)
Code:
sudo pacman -Sy base-devel

Press enter when it asks what you want to install.....I just installed everything.

Then
Code:
sudo pacman -S ninja
sudo pacman -S meson
sudo pacman -S cmake
sudo pacman -S wayland
sudo pacman -S pkgconf
We should now have all the things necessary to install wlr-randr

Step 3
Lets build it. Smile 

Code:
git clone https://github.com/emersion/wlr-randr
cd wlr-randr
meson build
ninja -C build
sudo cp build/wlr-randr /usr/local/bin

Step 4
Lets run it.
You can now enter a number between 1 and 2 for your scale

Code:
wlr-randr --output DSI-1 --scale 1.5

I mentioned this in the Mobian side but I find that "wlr-randr --output DSI-1 --scale 1.35" works best for me as anything smaller uses the smaller keypad that is very difficult to type on.  

Hope people find this helpful!

Now....if I could just get it to keep the current scale when I reboot that would be nice.  Rolleyes

--------------------------------------------------------------------------------------------------------
Links to original data. 
https://puri.sm/posts/easy-librem-5-app-development-scale-the-screen/


RE: How To: Custom Scaling between 100% - 200% but for Manjaro Phosh - lolgzs - 07-10-2021

To get it on reboot I wrote this desktop file : 

/etc/xdg/autostart/setup-scaling.desktop

Code:
[Desktop Entry]
Name=Setup scaling
Type=Application
Exec=wlr-randr --output DSI-1 --scale 1.5
NoDisplay=true