lenovo-a6010: add phosh config (MR 2577)

I'm not sure it is possible to connect a second display to this phone
through P2P WiFi, so mapping cursor to DSI-1 just in case. It is needed
for screen rotation when a second display is connected.

Reduce scaling factor from default 2 to 1.8.
This commit is contained in:
jenneron 2021-10-07 15:37:55 +03:00 committed by Oliver Smith
parent 5594dc1cd3
commit 8c7325aa5e
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 15 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-lenovo-a6010
pkgdesc="Lenovo A6010"
pkgver=2
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
@ -9,11 +9,12 @@ arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
makedepends="devicepkg-dev"
source="deviceinfo"
source="deviceinfo rootston.ini"
subpackages="
$pkgname-kernel-mainline:kernel_mainline
$pkgname-kernel-mainline-modem:kernel_mainline_modem
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-phosh
"
build() {
@ -42,6 +43,13 @@ nonfree_firmware() {
mkdir "$subpkgdir"
}
phosh() {
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-phosh"
install -Dm644 "$srcdir"/rootston.ini \
"$subpkgdir"/etc/phosh/rootston.ini
}
sha512sums="
d02f0712741ef173022c61d6cf981c2742b6ce69bd124e2220dc041ab490b444eb1b4e82c56e44aabcf0cca85e54e82ded0d732b2ddf21f532fcb1db85c120c2 deviceinfo
cd1402fcd7133c9364de8bd4e32f0d9e890f35d5d57fe92bd65736e23df1af428f091c9e5275fced111a6887ef562c46c5c19157b84a63955f8a1805b04d9951 rootston.ini
"

View file

@ -0,0 +1,5 @@
[cursor:seat0]
map-to-output:DSI-1
[output:DSI-1]
scale = 1.8