pmaports/device/device-htc-vision/initfs-hook.sh
Matthias Berndt 33900c7889
New device: htc-vision (HTC Desire Z/G2) (!132)
Based on cmdrwgls original work from:
https://github.com/postmarketOS/pmbootstrap/pull/810

Fixed to actually boot, compile with GCC-6, and the touch screen is
working!

[skip ci]: already passed CI
2019-02-12 22:19:59 +01:00

8 lines
227 B
Bash

#!/bin/sh
# set framebuffer resolution
echo 16 > /sys/class/graphics/fb0/bits_per_pixel
echo 480,1600 > /sys/class/graphics/fb0/virtual_size
# set usb properties
echo 4 > /sys/devices/platform/android_usb/usb_function_switch