From 86eff19e0b320fee28e455871c5282af48bc7ad8 Mon Sep 17 00:00:00 2001 From: Minecrell Date: Sat, 20 Mar 2021 17:39:02 +0100 Subject: [PATCH] community/asus-me176c: fix splash screen width and phosh scaling (MR 2047) Actually the display in asus-me176c has a width of 800px, which means that the splash screen isn't perfectly centered. Correct this in deviceinfo to make it show up correctly. Also, add configuration file for Phosh to reduce scaling a bit to 1.75. It's kind of subjective but scaling = 2 definitely feels too large. [ci:skip-build]: already built successfully in CI --- device/community/device-asus-me176c/APKBUILD | 18 +++++++++++++----- device/community/device-asus-me176c/deviceinfo | 2 +- .../community/device-asus-me176c/rootston.ini | 5 +++++ 3 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 device/community/device-asus-me176c/rootston.ini diff --git a/device/community/device-asus-me176c/APKBUILD b/device/community/device-asus-me176c/APKBUILD index b738d3271..b7818b41e 100644 --- a/device/community/device-asus-me176c/APKBUILD +++ b/device/community/device-asus-me176c/APKBUILD @@ -2,8 +2,8 @@ # Maintainer: Minecrell pkgname=device-asus-me176c pkgdesc="ASUS MeMO Pad 7 (ME176C(X))" -pkgver=2 -pkgrel=2 +pkgver=3 +pkgrel=0 _commit=3155254999ac36c3051a2118c415de25a072c0f6 url="https://postmarketos.org" license="MIT" @@ -22,8 +22,9 @@ depends=" makedepends="devicepkg-dev meson eudev-dev" source="https://github.com/me176c-dev/linux-me176c/archive/$_commit.tar.gz deviceinfo + rootston.ini " -subpackages="$pkgname-factory $pkgname-nonfree-firmware:nonfree_firmware" +subpackages="$pkgname-factory $pkgname-nonfree-firmware:nonfree_firmware $pkgname-phosh" builddir="$srcdir/linux-me176c-$_commit" build() { @@ -53,5 +54,12 @@ nonfree_firmware() { mkdir "$subpkgdir" } -sha512sums="25b18f7d2c6d6570077143b404d821e4814f23ce8e46dfe7c8f0ed7d318b5e8c7fba1bd68a7536cb3b9adb3ca6753e08dd1fa56d1e99bfabbe6992ce9b3575e1 deviceinfo -75243e3d0bc9a352465683ec8cf8b83566e4131bb7fae0f388267a62bdbf4691c955ed034b30df550f921b771080688123ae8db144b72f786bf1677ef1d83f57 3155254999ac36c3051a2118c415de25a072c0f6.tar.gz" +phosh() { + install_if="$pkgname postmarketos-ui-phosh" + install -Dm644 "$srcdir"/rootston.ini \ + "$subpkgdir"/etc/phosh/rootston.ini +} + +sha512sums="75243e3d0bc9a352465683ec8cf8b83566e4131bb7fae0f388267a62bdbf4691c955ed034b30df550f921b771080688123ae8db144b72f786bf1677ef1d83f57 3155254999ac36c3051a2118c415de25a072c0f6.tar.gz +e879c597fa4b1493a98a6676c643dc4fb470642dd9d0a7e2071384067a08618b502167f2063b2fec9ceb2a49e1d1a8781402d6e34e898dd02c394006e353939e deviceinfo +a60d1785f0163d4a4eb63ea5e3017631aab7dd6683baad6a74b09809d33888d581ca8b14526c19d18234dcf727d1fdb4ff0489ed4bd5523905d0e4da7d93bc56 rootston.ini" diff --git a/device/community/device-asus-me176c/deviceinfo b/device/community/device-asus-me176c/deviceinfo index 712ff2837..83061af05 100644 --- a/device/community/device-asus-me176c/deviceinfo +++ b/device/community/device-asus-me176c/deviceinfo @@ -14,7 +14,7 @@ deviceinfo_arch="x86_64" deviceinfo_chassis="tablet" deviceinfo_keyboard="false" deviceinfo_external_storage="true" -deviceinfo_screen_width="720" +deviceinfo_screen_width="800" deviceinfo_screen_height="1280" # Bootloader related diff --git a/device/community/device-asus-me176c/rootston.ini b/device/community/device-asus-me176c/rootston.ini new file mode 100644 index 000000000..df433afe9 --- /dev/null +++ b/device/community/device-asus-me176c/rootston.ini @@ -0,0 +1,5 @@ +[cursor:seat0] +map-to-output:DSI-1 + +[output:DSI-1] +scale = 1.75