ADeadTrousers / android_device_Unihertz_Atom_LXL

Common device tree for the Unihertz Atom L and XL
Apache License 2.0
15 stars 6 forks source link

LiveDisplay is not working #8

Open ADeadTrousers opened 3 years ago

ADeadTrousers commented 3 years ago

I just got word that LiveDisplay isn't working at all. The settings are there but it cannot be activated.

ADeadTrousers commented 3 years ago

LiveDisplay is being included in vendor by default and because this ROM doesn't touch vendor at all the required files are missing. Need to investigate if it's possible to change it to "non-vendor".

ADeadTrousers commented 3 years ago

With lineage.livedisplay@2.0-service-sdm I was able to include it into system (instead of vendor.lineage.livedisplay@2.0-service-sdm) but now I get avc:denied in logcat. So the selinux rules are missing.

ADeadTrousers commented 3 years ago

I've been checking all 3 livedisplay interfaces offered by LOS but none of those seems to be suitable for the Atom L/XL: legacymm requires a library libmm-disp-apis.so but it's not on stock rom. sdm requires a library libsdm-disp-apis.so but it's not on stock rom. sysfs requires specific interfaces (or rather "files") in /sys/class/graphics/fb0 but none of them (e.g. hbm, sre, rgb ... ) are present. The third one looks the most promising but it seems that the hardware interface is not designed the way LOS is expecting. The code is not that complicated and I found various other device trees that included their own livedisplay implementation but as long as I can't find a more "mediatek" solution I'm afraid I cannot do a thing about this.

ADeadTrousers commented 3 years ago

It looks like it's not possible to get livedisplay to work anytime soon because the kernel doesn't offer the required services. Maybe they are just named different but as long as I don't get any better clues I'm moving this on the "enhancement" list for later.