e090a0a498
I noticed that some times the framebuffer driver gets configured in a
way that the ioctl performed by msm-fb-refresher returns something lower
than zero:
0ed263db09/drivers/video/fbmem.c (L877-L911)
For example when the Xorg starts I noticed it does a ioctl BLANK and
UNBLANK, but if msm-fb-refresher performs a ioctl in that moment it
stops its loop and exit.
For this reason I lost a lot of time trying to understand what was the
problem with Xorg not displaying anything until I noticed that I had
to restart the msm-fb-refresher.
With this change we don't have to care about msm-fb-refresher as it will
continue call ioctl PAN even if the framebuffer returns some negative
error code.
42 lines
1.9 KiB
Text
42 lines
1.9 KiB
Text
pkgname=msm-fb-refresher
|
|
pkgver=0.1
|
|
pkgrel=3
|
|
pkgdesc="Display refresher for Qualcomm devices"
|
|
arch="all"
|
|
url="https://github.com/AsteroidOS/msm-fb-refresher"
|
|
license="GPL2"
|
|
makedepends="linux-headers"
|
|
install="$pkgname.post-install"
|
|
source="
|
|
${pkgname}-${pkgver}.tar.gz::https://github.com/AsteroidOS/msm-fb-refresher/archive/v${pkgver}.tar.gz
|
|
msm-fb-refresher.init
|
|
00-msm-fb-refresher.sh
|
|
00-msm-fb-refresher.files
|
|
0001-Perform-ioctl-even-if-there-are-errors.patch
|
|
"
|
|
builddir="${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
build() {
|
|
gcc refresher.c -o refresher.o -c
|
|
gcc refresher.o -o msm-fb-refresher
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 "${builddir}/msm-fb-refresher" \
|
|
"${pkgdir}/usr/sbin/msm-fb-refresher"
|
|
install -Dm755 "${srcdir}/msm-fb-refresher.init" \
|
|
"${pkgdir}/etc/init.d/msm-fb-refresher"
|
|
|
|
# Initramfs hook
|
|
local initfsdir="$pkgdir/etc/postmarketos-mkinitfs/"
|
|
mkdir -p "$initfsdir/hooks" "$initfsdir/files"
|
|
install -Dm755 "$srcdir/00-msm-fb-refresher.sh" \
|
|
"$initfsdir/hooks/00-msm-fb-refersher.sh"
|
|
install -Dm755 "$srcdir/00-msm-fb-refresher.files" \
|
|
"$initfsdir/files/00-msm-fb-refersher.files"
|
|
}
|
|
sha512sums="6c39f2a2eccf5c4b4dc89e91b69385ad89cfd3fdef3121d32e88f2811b3a6df1ca15c5f8df8df7eced7133e99abdf54034bc82e9d871f40bfc4271b9a0474e15 msm-fb-refresher-0.1.tar.gz
|
|
5820e02dcb1cd927bcd6c8548307936a12f0dde1b92f15a931134b8d4a41f4b5e8811c6969d9b11a6a31d40da218b24ee274614936f6e50bcd6e794346f99c13 msm-fb-refresher.init
|
|
1b6168037293db465a5a55d5c263cb60ac46cccb601329b193110bbdffc23207b3d38419d2ad128020bf4ddbcdb868e8fa2f561764adf02c7db0526b0177ee5a 00-msm-fb-refresher.sh
|
|
906c0d672682a9f0e3e8e07e207a557b8a1659e2e6021cb95c4b9886aed3b9ea477638c00ce9e4193b52dcfab7da317d9840cc576f29c7c7158cc11fd368be84 00-msm-fb-refresher.files
|
|
0dabbead89190cf8167fface2513cd342731362a701c397c06cbee6336bd0a197c1d11f6c63c38c97222d9dfaf2d25e3305ed447f9b10e137565d2d48cca9ff4 0001-Perform-ioctl-even-if-there-are-errors.patch"
|