This project is archived. Its data is read-only.
Sign in or sign up before continuing. Don't have an account yet? Register now to get started.
Register now

osk-sdl port for Moto X (ghost)

I've debugged osk-sdl on the motorola-ghost device, which I'm trying to port pmOS to. I've noticed that while generating a fb.modes file, the device has a 32 bits framebuffer, but, according to the wiki, it isn't supported. I've changed the depth to 16 bits and tried setting a 24/32 bit pixel format, but none worked. I later realized that, from the output of fbset that the actual pixel format for the device is ABGR, by looking at DirectFB's source code.

If I set the pixel format to none (which would use the default) or RGB16, the osk-sdl application "works". I get a mirrored screen and a pink background. Touchscreen works.

If I set the pixel format to ABGR, osk-sdl exits with the following error:

ERROR: Unknown dfb pixelformat 418c25 !
INFO: Keyboard 0 - Keyboard
ERROR: SDL_Init failed: The video driver did not add any displays

IMG_20180731_211848

There are other two phones that have the same offsets as the Moto X, but I don't know if they faced the same issues I'm facing right now. They are xiaomi-ido and sony-nicki.

EDIT: I forgot to mention that I've looked at the SDL source code as well and it seems like ABGR mode isn't supported. Is this expected?

Edited Aug 01, 2018 by Xinayder
Assignee Loading
Time tracking Loading