Skip to content

Instantly share code, notes, and snippets.

@Herrie82
Herrie82 / gist:1e4300e63e2852e4c43a3a68510cfca3
Created December 27, 2025 15:49
Touchscreen for Tenderloin on Mainline
# Cleaned-Up ts-srv Driver Analysis
## Overview
This analysis covers the cleaned-up HP TouchPad touchscreen driver (`ts-srv`) found in `/home/herrie/webos/touchpad-kernel/touchscreen/`. This version has been adapted from the original Android driver to work on modern Linux systems.
**Source Origin:** Evervolv Android ROM for HP TouchPad
**Modifications:** Android NDK dependencies removed, paths updated for Linux
**Status:** Ready for testing on mainline Linux
@Herrie82
Herrie82 / gist:dfedabe4ebb497063fec48ef97d76861
Last active March 4, 2021 07:44
Halium 7.1/9.0 LuneOS build instruction
Short description on how to build LuneOS with Halium 7.1/9.0:
1. Build Halium as per guide on:
http://docs.halium.org/en/latest/
Basically the parts "Get Halium Source": https://docs.halium.org/en/latest/porting/get-sources.html
And https://docs.halium.org/en/latest/porting/build-sources.html#initialize
In general LuneOS only needs the system.img (and vendor.img for Halium 9.0 where available) created and archived, so the following commands will suffice:
1. Add your device to the luneos_targets.xml file:
Similar to:
https://github.com/webOS-ports/android/pull/2/commits/4c7c5cbb33da73485cc2c8d249e76bdaf6f75f81
You will want to have a repo with binary blobs (usually from TheMuppets), a repo with your device and a repo with your kernel, so normally 3. In some cases you'll need additional repos, but you'll figure that out during the build.
2. You can now use the script in xxxx to do a repo sync.
3. You can use the script in yyyy to try to build your device. It will fail at some point, because you will need to disable some of the Android jar/apk bits in the various .mk files.