Open ZimbiX opened 1 year ago
OESF isn't much better IMO, it gets spammed easily, and the GH Discussions tab here is better. Personally, I prefer Discord or Matrix/IRC/Telegram, but use the Discussions tab on this repo for now. Can you make the PR for the scripts please, and perhaps you could make a PR for the wiki on compiling the Astro kernel?
OESF isn't much better IMO, it gets spammed easily,
Interesting, I haven't noticed any spam. But I guess I wasn't subscribed to new threads by default.
Personally, I prefer Discord or Matrix/IRC/Telegram, but use the Discussions tab on this repo for now.
Hmm, the Discussions tab is an idea.. but I guess then we'd be splitting discussion into yet another place :sweat_smile: Maybe let's just Discord. Is the #dev channel on the Astro Slide server most appropriate?
Can you make the PR for the scripts please
Sure, I was planning on submitting one once I was sure I got it working (I haven't tried flashing the result yet). Feel free to cherry-pick though. I was also reworking it a bit to make reruns faster using Docker mounts, but that's probably a separate PR.
and perhaps you could make a PR for the wiki on compiling the Astro kernel?
Haha, a wiki page would be great, but I really don't feel qualified to do a writeup about that! I'm poking around in the dark here 😝 Given you wrote the scripts, and I take it are familiar with the process, could that be something you could throw together a draft of please?
I am happy someone has the sensitive eye as mine. The frame rate of screen on Astro Slide 5G seems very slow, just like a shit screen. I have compiled kernel source and then flashed into Astro Slide 5G. Even though adjust PWM setting value from dtbs but no luck after tested. https://steward-fu.github.io/website/phone.htm#astro
I know it is not easy to obtain the datasheet of OLED, so, what I can do is just trial-and-error for testing.
@steward-fu Cheers. I like that you have a place to publish notes like that.
Let us know exactly what you tried/try so we can avoid duplicating effort =)
Do you have experience using other AMOLED screens?
Hello, I only tried the PWM setting as you mentioned before, which changed from 39385 to 100000: https://github.com/PCLineageOS-Ports/android_kernel_planet_mt6873/blob/main/arch/arm64/boot/dts/mediatek/mt6873.dts#L250
I have some experiences related to OLED but it is long time ago: https://steward-fu.github.io/website/handheld/a320/oled_s6e63d6.htm
In modern OLED, it seems combaine with backlight LED, not nature brightness. I don't have any datasheet related to OLED panel. So, I am trying to modify something under: drivers/misc/mediatek/leds/leds-mtk-pwm.c
If you have any suggestion, it is welcome to provide it to me. I can compile kernel and then testing :)
I still haven't gotten around to trying out a compiled kernel, unfortunately.
However, I recently purchased a device for testing flicker - an Opple Light Master Pro, which I found via this review video, for AUD $57.49. I've just done a bunch of testing with it, and established that the Astro has a constant PWM frequency of 120 Hz with constant 100% modulation.
Here are the readings from a purely white screen at different brightness levels - set using the command above. The Chinese characters translate as 'time'.
At some brightness levels (e.g. 5 above), the app misinterprets the readings as the wrong frequency, which is a bit odd. From the graphs, the spikes are clearly always every ~8 ms; 1000/120 = 8.333; so 120 Hz is the correct frequency.
It's strange that at 100% brightness (255), the duty cycle is so low still. It seems that the screen would be able to go significantly brighter if a 100% duty cycle were to be permitted.
The coloured chart is interesting. As it shows, the constant ~100% modulation depth (turning the light completely off between pulses) is a hugely significant factor in the risk of flicker sensitivity. To illustate this point: I had LED lightbulbs installed about a year ago. At the time, I was glad to find them flicker-free, but I actually recently discovered that they do actually have a bit of flicker, it's just that it's hard to notice. The readings show why - here's the readings from one bulb:
The AC frequency in Australia is 50Hz, and this would be being doubled to 100Hz in the process of full-wave rectification, converting AC to DC. Although the frequency is much lower than the Astro, the modulation depth of the bulb is relatively small, which significantly reduces the flicker sensitivity risk.
Here's readings of a few other things for comparison:
This one was difficult to measure, so might not be accurate. To make the screen produce enough light to register a reading, I had to use the camera function pointed at the lit ceiling, while covering the Opple and CoDi to prevent interference from the ambient light.
Problem
The AMOLED screen on the Astro Slide uses PWM to control brightness. If you don't know about PWM, here's an excellent slow-mo demo and a technical explanation.
I am one of those people highly sensitive to flicker. As I'd feared since Planet Computers announced their screen selection of an AMOLED screen (Indigogo update 9), I do see the Astro's screen constantly flickering during saccades (moving my eyes across the screen); and this makes the device extremely irritating to use. For this reason, I have avoided OLED/AMOLED screens like the plague. IPS LCD screens do not typically have this issue.
Additionally, the screen appears to have a PenTile-like subpixel matrix. This makes the image appear spotty, kind of like a colour photo printed in a newspaper. I guess my eyes must be better / more sensitive than most people's. Unfortunately, I don't have a good enough camera to capture a closeup photo of the screen to show exactly what it looks like, but this is a good PenTile closeup (notice how the straight edges of the text look frayed). It is particularly noticeable in the tiny boot warning text that appears since unlocking the bootloader. Update: I found some closeups of the Astro screen recently posted on OESF - it's not PenTile exactly, but some other non-RGB-stripe subpixel layout I can't find the name of.
Solution investigation
Frustratingly now owning a device with a PWM screen, I've been trying to figure out if there is a way to make it usable. I'll just have to get used to tolerating the ugly subpixel matrix, but hopefully there's something that can be done about the PWM.
It sounds like many other phones with AMOLED screens turn off PWM (or effectively do that) when the screen is set to high brightness. This is not the case on the Astro - the flickering is noticeable to me at all brightness levels.
I suspect that the Astro's maximum brightness is an artificial limit, and that there is a way to increase it to the point of avoiding any off time in the PWM duty cycle. Or a way to disable PWM entirely.
I've fiddled around in a root shell a bit, trying to find a file that controls brightness or PWM, and haven't had much luck as yet.
I can change the brightness with:
but it's capped to 255 (same as maxing out the brightness slider), and the adjacent
max_brightness
file cannot be changed.I've found mention of some PWM control files for another screen; but I'm guessing this is specific to that chipset / display driver, as the Astro does not have the same/similar paths.
There are mentions of PWM backlight in the Astro kernel source code, e.g. here (the kernel is also forked here). I'm an experienced software developer, but haven't done any kernel compiling/development before, and only did a small amount of C back at uni.
At the moment, I'm trying to figure out how to compile the kernel - thankfully, I found some scripts for that, but had to make some modifications to get it to work. We should really add documentation somewhere for the process of compiling the kernel.
Any pointers greatly appreciated. Although perhaps this is not the best place to discuss the finer points of kernel compilation, I'd prefer to do so somewhere indexable by Google, and Discord is not. Maybe on OESF would be better..
Device: Astro Slide Android build number:
Astro-11.0-Planet-05182022-V01
Custom build number:alps-mp-r0.mp1-V8.132_haocheng.r0mp1.k61v1.64.bsp_P20