Skip to content

Conversation

@fonix232
Copy link
Contributor

@fonix232 fonix232 commented Dec 15, 2025

Added support for the Boox Palma 2 Pro.

Standard Qualcomm EPD works according to tests, but none of the existing light providers managed to effect the backlight.

Did a bit of digging and turns out Boox just changed the sysclass endpoints for backlight brightness (onyx_bl_br) and colour temperature (onyx_bl_ct). Both work as standard backlight endpoints. On my unit, brightness max was 255 while temperature max was 32 - can't say this will apply to all devices (I suspect the Palma 2 uses the same endpoints albeit that model works with Onyx ADB and SDK implementations), so added dynamic reading of max values too.


This change is Reviewable

@fonix232
Copy link
Contributor Author

Ah shoot, forgot that prod targets don't allow primitive lateinits. Let me fix that up.

@hugleo
Copy link
Contributor

hugleo commented Dec 15, 2025

looks fine but make sure that compiles

e: file:///__w/android-luajit-launcher/android-luajit-launcher/app/src/main/java/org/koreader/launcher/device/lights/OnyxPalma2ProController.kt:83:29 Unresolved reference: readMaxBrightness

e: file:///__w/android-luajit-launcher/android-luajit-launcher/app/src/main/java/org/koreader/launcher/device/lights/OnyxPalma2ProController.kt:97:25 Unresolved reference: readMaxWarmth

@fonix232 fonix232 force-pushed the feat/add_boox_palma2_pro_c_support branch from 13fc6f4 to 5d3c156 Compare December 16, 2025 10:44
@fonix232
Copy link
Contributor Author

@hugleo @Frenzie updated the PR, it should work now 🙂

@Frenzie Frenzie merged commit b243407 into koreader:master Dec 18, 2025
3 checks passed
benoit-pierre pushed a commit to benoit-pierre/koreader that referenced this pull request Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants