fix some titles and remove 1 duplicate
authorNiki Roo <niki@nikiroo.be>
Fri, 28 Feb 2025 12:32:09 +0000 (13:32 +0100)
committerNiki Roo <niki@nikiroo.be>
Fri, 28 Feb 2025 12:32:09 +0000 (13:32 +0100)
Tech/Raspi/MHS 3.5 Inch Display.md
Tech/SteamDeck/README.md [new file with mode: 0644]
Tech/SteamDeck/scaling.md [deleted file]
Tech/scaling.md
Tech/ssh.md
Tech/web-css.md

index eac10bda7887dbafd10e19ca9895587af72d0caa..c0766f495817fd5a921bb29ae791879948341d06 100644 (file)
@@ -1,4 +1,4 @@
-# README
+# MHS 3.5 Inch Display
 
 git clone https://github.com/goodtft/LCD-show.git
 cd LCD-show
diff --git a/Tech/SteamDeck/README.md b/Tech/SteamDeck/README.md
new file mode 100644 (file)
index 0000000..d4cff92
--- /dev/null
@@ -0,0 +1,6 @@
+# README
+
+Some scripts are also present here:
+
+* **fix_victor_vran.sh**: required commands to install deps for **Victor Vran**
+* **unlock.sh**: unlock the package installation system *pacman*
diff --git a/Tech/SteamDeck/scaling.md b/Tech/SteamDeck/scaling.md
deleted file mode 100644 (file)
index 16ad0a9..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-# Linux display
-
-This iis detailed in depth on [how does Linux's display works?](https://unix.stackexchange.com/questions/596894) QA.
-
-On most desktops system (like KDE or Gnome) there are settings available on their respective settings panel, this guide is for additional/manual settings that can be applied to scale an application or the whole desktop. This [reference article](https://wiki.archlinux.org/index.php/HiDPI) have many valuable informations for the matter.
-
-## Scaling applications
-
-Scaling application can be done mainly via [DPI](https://unix.stackexchange.com/questions/596765/is-x-dpi-dot-per-inch-setting-just-meant-for-text-scaling), specific environment variable (explained bellow), application own setting or some specific desktop setting (out of scope of this QA).
-
-* Qt applications can be scaled with the following environment variables, note that many applications are hard-coding sizing and font and thus the result on such app may not be as expected:  
-
-```sh
-    export QT_AUTO_SCREEN_SET_FACTOR=0
-    export QT_SCALE_FACTOR=2
-    export QT_FONT_DPI=96
-```
-
-* Gnome/GTK applications can be scaled with the following environment variables:  
-
-```sh
-    export GDK_SCALE=2
-    export GDK_DPI_SCALE=0.5
-```
-
-* Gnome/GTK can as well be scaled globally with this Gnome setting:  
-
-```sh
-    gsettings set org.gnome.desktop.interface text-scaling-factor 2.0 
-```
-
-* Chromium, can be scaled with the following command:  
-
-```sh
-    chromium --high-dpi-support=1 --force-device-scale-factor=1.5
-```
-
-* [Xpra](https://en.wikipedia.org/wiki/Xpra) (python) can be used along with i[Run scaled](https://github.com/kaueraal/run_scaled/blob/master/run_scaled) to achieve a per app scaling.
-
-* Environment variables modification can be placed in `~/.profile` for a global and automatic appliance after login.
-
-## Scaling the desktop with Xorg X11
-
-[Xorg](https://wiki.archlinux.org/index.php/Xorg)'s extension RandR have a scaling feature and can be configured with [`xrandr`](https://wiki.archlinux.org/index.php/Xrandr). This can be used to scale the desktop to display a bigger environment, this can be useful for HiDPI (High Dots Per Inch) displays.
-
-RandR **can also be used the other way around**, example making a screen with 1366x768 max resolution support a greater resolution like 1920x1080. This is achieved by simulating the new greater resolution while rendering it for the supported max resolution, similar to when we watch a Full-HD video on a screen that is not Full-HD.
-
-## Scaling the desktop without changing the resolution
-
-* Getting the screen name:  
-
-```sh
-    xrandr | grep connected | grep -v disconnected | awk '{print $1}'
-```
-
-* Reduce the **screen size** by 20% (zoom-in):  
-
-```sh
-    xrandr --output screen-name --scale 0.8x0.8
-```
-
-* Increase the **screen size** by 20% (zoom-out):  
-
-```sh
-    xrandr --output screen-name --scale 1.2x1.2
-```
-
-* Reset `xrandr` changes:  
-
-```sh
-    xrandr --output screen-name --scale 1x1
-```
-
-## Scaling the desktop and simulate/render a new resolution
-
-When using `xrandr` to "zoom-in" with the **previous method**, the desktop remain full screen but when we "zoom-out" with for instance `xrandr --output screen-name --scale 1.2x1.2` (to get an unsupported resolution) the desktop is not displayed in full screen because this require updating the resolution (to probably a higher unsupported resolution by the screen), we can use a combinaison of `--mode`, `--panning` and `--scale`, xrandr's parameters to achieve a full screen "zoom-out" scaling (simulate a new resolution), example:
-
-* Get the current setup:  
-
-```sh
-    xdpyinfo | grep -B 2 resolution
-    # or
-    xdpyinfo
-```
-
-* Configuration example:  
-
-```
-    Scaling at:                      120%
-    Used/max screen resolution:      1366 x 768
-    Resolution at 120% (res x 1.2):  1640 x 922 (round)
-    Scaling factor (new res / res):  1.20058565 x 1.20208604 
-```
-
-* The idea here is to increase the screen resolution virtually (because we are limited to 1366x768 physically) the command would be (replace screen-name):  
-
-```sh
-    xrandr --output screen-name --mode 1366x768 --panning 1640x922 --scale 1.20058565x1.20208604
-```
-
-* Reset the changes with:  
-
-```sh
-    xrandr --output screen-name --mode 1366x768 --panning 1366x768 --scale 1x1
-
-    # restarting the desktop may be required example with KDE
-    # kquitapp5 plasmashell
-    # plasmashell &
-```
-
-## Making xrandr changes persistent
-
-There is a multitude of methods to make `xrandr` changes persistent, [this](https://unix.stackexchange.com/questions/125556/how-can-i-make-xrandr-changes-persist) and [this](https://askubuntu.com/questions/63681/how-can-i-make-xrandr-customization-permanent) QA have many examples.
-
-## Experiments notes
-
-As a side note and experiments result while using SDDM + KDE, and after many tests to achieve a persistent config, I ended up loading a script with `~/.config/autostart` (`systemsettings5` > Startup... > Autostart), and naming my script `00-scriptname` to make it run first.
-
-```sh
-# 00-scriptname
-
-# Applying the main xrandr suited changes (scaling at x1.15)
-
-xrandr --output eDP1 --mode 1366x768 --panning 1574x886 --scale 1.15226939x1.15364583
-
-# This is where it get odd/complicated, sometimes the screen resolution is not applied correctly or not applied at all... 
-# Note that "xrandr --fb" can be used alone to change the screen resolution on a normal situation... 
-# Here we will be taking advantage of xrandr's "--fb" feature to make the config appliance stable and works every-time.
-
-# The odd thing here is while re-applying the new resolution 1574x886 with "--fb" nothing happen, but 
-# if we use use an unsupported resolution like 1574x884 (vs 1574x886) then xrandr force the resolution 
-# to "reset itself" to the configured resolution (1574x886)... 
-
-# In short just re-apply the setting with "--fb" and an unsupported resolution to force a reset.
-# ("--fb" can be used alone here without re-applying everything)
-
-#xrandr --fb 1574x884 
-xrandr --fb 1574x884 --output eDP1 --mode 1366x768 --panning 1574x886 --scale 1.15226939x1.15364583
-```
-
-
index 16ad0a97453315eb0679420e6faaa2df351c6eb3..9614fbb768730cd17c3f41a640f694477a952eba 100644 (file)
@@ -1,6 +1,6 @@
-# Linux display
+# Linux display scaling
 
-This iis detailed in depth on [how does Linux's display works?](https://unix.stackexchange.com/questions/596894) QA.
+This is detailed in depth on [how does Linux's display works?](https://unix.stackexchange.com/questions/596894) QA.
 
 On most desktops system (like KDE or Gnome) there are settings available on their respective settings panel, this guide is for additional/manual settings that can be applied to scale an application or the whole desktop. This [reference article](https://wiki.archlinux.org/index.php/HiDPI) have many valuable informations for the matter.
 
index 4586c48b1b4692272d425d5653dfb1acfa9e8b3a..4a8efe5ecbde12c4e6d3b8902df81c3342c1bde3 100644 (file)
@@ -1,3 +1,5 @@
+# SSH
+
 cat id_rsa.ssh id_rsa.x509.pub > id_rsa.pem
 
 note: PEM = ssh (priv) + x509 (pub)
index 1dfd9f05cb4421c22d40d9bb0b0881d369b47123..c68fa68e9a79c027fec0cafe0723ac07363d1c9c 100644 (file)
@@ -1,4 +1,4 @@
-## WebDev
+# Web CSS
 
 A few (already working today) somewhat new CSS thingies.
 
@@ -50,7 +50,7 @@ Layers: group rules without regard to specifity (also, outside of layers has pri
 @layer { ... }             /* anonymous layer */
 ```
 
-### Interesting future CSS
+## Interesting future CSS
 
 (Do not use, not ready yet, wait a few months/years...)