-
-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add automatic nested desktop resolution handling for a number o…
…f handhelds.
- Loading branch information
Showing
1 changed file
with
26 additions
and
2 deletions.
There are no files selected for viewing
28 changes: 26 additions & 2 deletions
28
system_files/deck/shared/usr/etc/default/steamos-nested-desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
STEAMOS_NESTED_DESKTOP_WIDTH=1280 | ||
STEAMOS_NESTED_DESKTOP_HEIGHT=800 | ||
# Adjust the below values to set the resolution for devices not explicitly checked for. | ||
# This includes all laptops, all desktops, and some handhelds. | ||
STEAMOS_UNKNOWN_NESTED_DESKTOP_WIDTH=1920 | ||
STEAMOS_UNKNOWN_NESTED_DESKTOP_HEIGHT=1080 | ||
|
||
# Handle nested desktop resolution for known devices. | ||
case "$(cat /sys/devices/virtual/dmi/id/product_name)" in | ||
"Jupiter" | "Galileo" | "AYANEO GEEK" | "G1619-05") | ||
STEAMOS_NESTED_DESKTOP_WIDTH=1280 | ||
STEAMOS_NESTED_DESKTOP_HEIGHT=800 ;; | ||
"ROG Ally RC71L_RC71L" | "G1618-04" | "G1617-01") | ||
STEAMOS_NESTED_DESKTOP_WIDTH=1920 | ||
STEAMOS_NESTED_DESKTOP_HEIGHT=1080 ;; | ||
"AYANEO 2" | "AYANEO 2S" | "AOKZOE A1 AR07" | "G1619-04") | ||
STEAMOS_NESTED_DESKTOP_WIDTH=1920 | ||
STEAMOS_NESTED_DESKTOP_HEIGHT=1200 ;; | ||
"83E1") | ||
STEAMOS_NESTED_DESKTOP_WIDTH=2560 | ||
STEAMOS_NESTED_DESKTOP_HEIGHT=1600 ;; | ||
"Win600") | ||
STEAMOS_NESTED_DESKTOP_WIDTH=1280 | ||
STEAMOS_NESTED_DESKTOP_HEIGHT=720 ;; | ||
*) | ||
STEAMOS_NESTED_DESKTOP_WIDTH=$STEAMOS_UNKNOWN_NESTED_DESKTOP_WIDTH | ||
STEAMOS_NESTED_DESKTOP_HEIGHT=$STEAMOS_UNKNOWN_NESTED_DESKTOP_HEIGHT ;; | ||
esac |