Last active
August 29, 2015 13:57
-
-
Save notwa/9481694 to your computer and use it in GitHub 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
Section "Device" | |
Identifier "i.MX Accelerated Framebuffer Device" | |
Driver "vivante" | |
Option "fbdev" "/dev/fb0" | |
Option "vivante_fbdev" "/dev/fb0" | |
Option "HWcursor" "false" | |
EndSection | |
Section "ServerFlags" | |
Option "BlankTime" "0" | |
Option "StandbyTime" "0" | |
Option "SuspendTime" "0" | |
Option "OffTime" "0" | |
EndSection |
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
Fix HDMI preferred mode choosing | |
This fixes the HDMI setting to use the preferred mode instead of the | |
lowest resolution by default. | |
Upstream-Status: Pending | |
Signed-off-by: Jon Nettleton <jon.nettleton@gmail.com> | |
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | |
diff --git a/EXA/src/vivante_fbdev/imx_display.c b/EXA/src/vivante_fbdev/imx_display.c | |
index af6dcfc..cf49003 100644 | |
--- a/EXA/src/vivante_fbdev/imx_display.c | |
+++ b/EXA/src/vivante_fbdev/imx_display.c | |
@@ -879,6 +879,8 @@ imxDisplayGetModes(ScrnInfoPtr pScrn, const char* fbDeviceName) | |
(mode->HDisplay > 0) && | |
(mode->VDisplay > 0)) { | |
+ mode->type = M_T_PREFERRED; | |
+ | |
xf86PrintModeline(pScrn->scrnIndex, mode); | |
modesList = xf86ModesAdd(modesList, mode); | |
} |
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
pkgname=xf86-video-imx-viv | |
_srcname=xserver-xorg-video-imx-viv | |
_srcver=3.10.17-1.0.0_beta | |
pkgver="${_srcver/-/_}" | |
pkgrel=3 | |
arch=(armv7h) | |
url="http://www.kernel.org/" | |
license=('MIT') | |
provides=("$pkgname") | |
conflicts=("$pkgname") | |
depends=('xorg-server' 'gpu-viv-bin-mx6q-x11') | |
makedepends=('xorg-server-devel' 'gpu-viv-bin-mx6q-x11') | |
options=('!strip' 'buildflags') | |
_sitedir="http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/" | |
_srcpkg="${_srcname}-${_srcver}" | |
source=("${_sitedir}/${_srcpkg}.tar.gz" | |
'90-vivante.conf' | |
'fix-hdmi-preferred-mode.patch') | |
md5sums=('fee0e4820fe3f89e5f36a0b343e4a33f' | |
'30712be943a191c777f2c73ba5a99b7c' | |
'9ca87352aecc6b309aa5f5b2bb9d6e24') | |
prepare() { | |
cd "${srcdir}/${_srcpkg}" | |
patch -p1 < '../fix-hdmi-preferred-mode.patch' | |
sed -i 's#/home/linaro/share/exa_log.txt#/tmp/exa_log.txt#' \ | |
'EXA/src/vivante_util/logger.c' | |
sed -i 's#<drm/drm_mode.h>#"drm_mode.h"#' 'DRI_1.10.4/src/drm.h' | |
} | |
build() { | |
export CFLAGS="-I../../DRI_1.10.4/src -I/opt/fsl/include $CFLAGS" | |
export LFLAGS="-L/opt/fsl/lib $LDFLAGS" | |
#CFLAGS+=" -DENABLE_LOG=1 -DDRAWING_STATISTICS=1" | |
cd "${srcdir}/${_srcpkg}/EXA/src" | |
make -f makefile.linux BUILD_HARD_VFP=1 YOCTO=0 \ | |
XSERVER_GREATER_THAN_13=1 BUSID_HAS_NUMBER=1 | |
} | |
package() { | |
cd "${srcdir}" | |
mkdir -p "${pkgdir}/usr/lib/xorg/modules/drivers" | |
cp "${_srcpkg}/EXA/src/vivante_drv.so" "${pkgdir}/usr/lib/xorg/modules/drivers" | |
mkdir -p "${pkgdir}/usr/lib/xorg/modules/dri" | |
mkdir -p "${pkgdir}/usr/lib/dri" | |
ln -s /opt/fsl/lib/dri/vivante_dri.so "${pkgdir}/usr/lib/dri/vivante_dri.so" | |
ln -s /opt/fsl/lib/dri/vivante_dri.so "${pkgdir}/usr/lib/xorg/modules/dri/vivante_dri.so" | |
mkdir -p "${pkgdir}/etc/X11/xorg.conf.d/" | |
cp '90-vivante.conf' "${pkgdir}/etc/X11/xorg.conf.d/" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment