Changes

Jump to: navigation, search

Hacking b2g on Raspberry Pi

1,105 bytes added, 15:33, 23 October 2014
Enable touchscreen output
== Enable touchscreen output ==
 
b2g on the Raspberry Pi supports a class of extension touchscreens. So far, only the [https://www.adafruit.com/products/1601 PiTFT] has been tested, so that model is strongly recommended. The default prebuilt b2g image, and images you build yourself, include support for touchscreen output by default. However, it's disabled by default.
 
Once you've attached a touchscreen (by which we mean the PiTFT) to your Raspberry Pi (when it's powered off, of course), you can enable it by running the following command through adb (see below)
 
adb shell setprop persist.fbtft adafruitts
 
This restarts b2g and has it output to the PiTFT device. At any time you can revert to HDMI output by running
 
adb shell setprop persist.fbtft none
 
Note: if you're configured your RPi to output through the touchscreen, and you disconnect the touchscreen (when the RPi is powered off, of course), then after rebooting the RPi may still try to output through the nonexistent screen. This bug is not yet understood and seems to be a kernel issue. But you can still follow the directions above to revert to HDMI output.
== Building b2g for RPi ==
Confirm
699
edits

Navigation menu