Skip to content

Instantly share code, notes, and snippets.

@CODeRUS
Created November 9, 2015 12:45
Show Gist options
  • Select an option

  • Save CODeRUS/219fd95e8d5f91d429aa to your computer and use it in GitHub Desktop.

Select an option

Save CODeRUS/219fd95e8d5f91d429aa to your computer and use it in GitHub Desktop.
# Config for Nexus4 on CM-10.1
# Tell hybris to use hwcomposer to allow eglfs for Qt to use hwcomposernativewindow
EGL_PLATFORM=hwcomposer
# and Qt to use hwcomposer (note this needs a qpa hwcomposer plugin (qt5-qpa-hwcomposer-plugin))
QT_QPA_PLATFORM=hwcomposer
# which looks like this on the mako
QT_QPA_EGLFS_DEPTH=32
QT_QPA_EGLFS_HIDECURSOR=0
# Both /dev/fb0 and hwc gives us bogus values for physical size, so hardcode them.
QT_QPA_EGLFS_PHYSICAL_WIDTH=120
QT_QPA_EGLFS_PHYSICAL_HEIGHT=160
LIPSTICK_OPTIONS=-plugin evdevtouch:/dev/touchscreen -plugin evdevkeyboard:keymap=/usr/share/qt5/keymaps/droid.qmap -plugin evdevmouse
LIPSTICK_HARDWARE_COMPOSITOR=1
# PRE_USER_SESSION_DISPLAY_OPTIONS=-displayX 187 -displayY -187 -displayRotation -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment