As the title describes. The image is static, not changing. I've luckily been able to pull the Xorg log as well as the output of logread. This issue is so far over my head that I unfortunately can't seem to go any further with it. I'm hoping you guys can help.
I modified the xinitrc file from within /etc/postmarketos-ui and commented out exec hildon-desktop and then killed X. Interestingly, the noisy image appears for a split second but then disappears when Xorg restarts itself. This leads me to believe that hildon isn't the culprit and it's more likely to be something very involved with the way Xorg works. I then edited /etc/profile and removed the for loop so I could startx manually. I still notice the image. After messing with various configurations, I can't figure out what causes this.
After some research, I found this thread with the same issue, and the unconfirmed, but proposed fix being:
Turns out that after every write to the memory mapped area, you have to submit the image for display using ioctl(fbfd, FBIOPUT_VSCREENINFO, &vinfo).
...which is exactly what msm-fb-refresher is doing. You can enable it by adding msm-fb-refresher to the depends of your device.
I'm not sure if this is the real fix to your problem though, but you could try it out if you have not already. See also Troubleshooting:display with various patches to try out.
It seems msm-fb-refresher is already in the depends of the device, by looking at pmbootstrap/aports/device/device-samsung-kylessopen/APKBUILD. I'll try playing around with other patches, since I don't know what else to do. Just to let you know, all Wayland interfaces work. This is only an issue with X11. I personally haven't dealt with an issue this technical before. I was curious, what resources or tools do you guys use to troubleshoot, patch and port a new device? I feel like knowing this kind of stuff would greatly help me understand and properly troubleshoot this phone. At the moment, I'm basically treating my phone as if it were a faulty computer rather than a phone.
That device had a lot of driver issues, look in aports/device/linux-huawei-y530 how many patches to get something to work.
If you have some time to spend on this I suggest trying to add some additional logs directly in the kernel driver. At least this is what I did to debug some issues.
I feel like I don't know enough about the hardware and the kernel to know what drivers and functions I should be adding debug lines to. I've never touched kernel source code before. I'm going to try my best to really look into this, but any tips or resources that I could use to figure this out would be greatly appreciated.
@lofenyy: I've looked into linux-samsung-kylessopen to get a suitable example with the actual kernel sources. But then I realized @drebrez already did this, the example he posted directly shows which file to patch and what to add to gain more debug information. For the kernel sources that the kylessopen is using.
I recommend to use the --src method, that should make it a lot easier. You might get real time help in the IRC/matrix channel if you get stuck with patching - otherwise feel free to ask further questions here
I've created the patch file but I'm not sure how to actually implement it. Also, I've found something interesting in the output of dmesg. Look at the output from 212.124921 to 215.465578. It seems to print this whenever I start Xorg.I don't know how to interpret it though.
add the patch to source= (e.g right below "0001-fix-video-argb-setting.patch")
Compile the kernel with force, so it doesn't use the existing binary package: pmbootstrap build --force linux-samsung-kylessopen
Also, I've found something interesting in the output of dmesg. Look at the output from 212.124921 to 215.465578. It seems to print this whenever I start Xorg.I don't know how to interpret it though.
The lines start with NT35510, which probably indicates the kernel driver name that is printing the messages (it should be easy to figure out the source files in your kernel when searching for that string).
What happens when you start weston, do you get the same or similar output?
I'm sorry for the late reply, I somehow missed your question and rediscovered it when reviewing this issue. Weston runs perfectly, but I'll have to do some digging to see what dmesg says. I'd just like to make it known that I'm still interested in this, I just don't have as much free time as I did before.
After looking into everything after quite an amount of time has passed, it seems like a lot of issues have fixed themselves, including this one! Most DE's actually run now except hildon. As for the the contents of dmenu and Xorg's log, I'll have to look and compare, but it seems this issue is mostly fixed.