yashsingh1/xdaforums huggingface dataset:
[G Pad 8.3 Android Development] Rick Roll:
I merged some fixes related with video playback:

https://github.com/victormlourenco/...mmit/0c584762eb190c835a7562a838a99ef7afbfaae7 - It was on "lollipop" branch

https://github.com/victormlourenco/...mmit/ad7562e3666ea38c81dbe584fb4ed8f89f88df85

Please test with 5.1 blobs. CM merged lp-mr1 kernel source however their blobs are still 5.0
[G Pad 8.3 Android Development] Deltadroid:
Thanks Rick Roll. The black screens are so random that I think it's related to a compiler optimization that isn't building properly.

Although, most of the time I get a black screen, I am not watching videos. In fact, most of the time, it occurs while looking at web pages with the web browser (any).

Another problem is that my sdcard keeps unmounting unexpectedly when using any red kernel >= #16. It seems like red kernel #15 is using a different sdcard driver, because red kernel #15 has no sdcard problems with the 20D bootloader. I think the stock 20D sdcard driver is the only driver that works with certain sdcards without having unmounting problems. I don't have any sd card problems with stock cm12.1 kernel and red kernel #15.

Can these video blobs also be used with the stock cm kernel without modifying any kernel code? Or, can they only be used with the attached kernel? I want to test the blobs with latest red kernel, but the sdcard unmount issue is also a problem for me.
[G Pad 8.3 Android Development] Rick Roll:
It works with stock CM kernel too.
[G Pad 8.3 Android Development] Deltadroid:
The blobs package has the firmware directory in the wrong location.

It should be /system/vendor/firmware NOT /system/vendor/lib/firmware

Also, I think you need to set the metadata on the files during the installation process.

set_metadata("/system/vendor/lib/egl", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
[G Pad 8.3 Android Development] Deltadroid:
[MENTION=4575133]Rick Roll[/MENTION] the official cm nightly is now bumped. You will probably need to adjust your kernel install scripts and remove the loki stuff.
[G Pad 8.3 Android Development] Rick Roll:
The installation script is from qcom and they don't set the metadata, I only changed the blobs. I will upload another zip with the firmware folder on the right place. Also, on the attachment release I revert some sched commits. I think it was the cause of sdcard unmounts, since I didn't touch on the emmc driver.
[G Pad 8.3 Android Development] Rick Roll:
This kernel is already bumped. I use loki script only to remove loki from boot.img :p
[G Pad 8.3 Android Development] Deltadroid:
Correct, but the new cm12.1 nightly doesn't use loki anymore. So, when you run the kernel installation script to unlok it, it might have trouble.

I will test your new kernel and see if it fixes the unmount problem.

Thanks so much!
[G Pad 8.3 Android Development] 0nebukadnezar0:
Have exactly the same issue, I'm on latest CM12.1 nightlies and the R20 redkernel version
[G Pad 8.3 Android Development] zacharias.maladroit:
I also had those blank screens (backlight still working)

with RedKernel 20 + FlexOS,

currently running RedKernel 15
[G Pad 8.3 Android Development] zacharias.maladroit:
Can anyone confirm that RedKernel 17 & 18

ARE

affected by this screen blank issue ?

[MENTION=4575133]Rick Roll[/MENTION]:

All kernels newer than RedKernel 15 are based off the lollipop-rebase, right ?

What are the minor differences between the e.g. lollipop-rebase and the lollipop-rebase-aosp branch ?

I'm trying to understand how you created those kernels, where the base for the rebase was and what exact commits related to voltage, graphics, color, etc. where introduced

otherwise it's rather difficult to track this down ...

Are there any outstanding commits from upstream related to the freedreno, msm/kgsl driver ?

Also it's not entirely certain that it's a kernel-only related issue, as pointed out by [MENTION=5227588]Deltadroid[/MENTION]

Thanks

edit:

ah - yes, forgot about the factor of graphics firmware blob update, etc.
[G Pad 8.3 Android Development] Deltadroid:
Adreno update.

Here are my changes to the adreno install script:

ui_print("Adreno Graphics Driver Updater");

show_progress(1.000000, 0);

ui_print("Mounting system.");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
set_progress(0.500000);

ui_print("Extracting files.");
package_extract_dir("system", "/system");

ui_print("Setting metadata.");
set_metadata("/system/vendor/firmware/a300_pfp.fw", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/vendor/firmware/a300_pm4.fw", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/vendor/lib", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/vendor/lib", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/vendor/lib/egl", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/vendor/lib/mediadrm", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");

set_progress(1.000000);

ui_print("Done.");
[G Pad 8.3 Android Development] Deltadroid:
I've been running rXXX with the latest adreno drivers from the modified installer I made and here are the results after 12 hrs..

1) no more unexpected sdcard unmount :)

2) no black screen

Thanks [MENTION=4575133]Rick Roll[/MENTION]. :) I don't want to jinx it, but I should know more after another day of tests.
[G Pad 8.3 Android Development] Rick Roll:
r15 - lollipop branch (based on cm-11.0 with commits from aosp branch "android-msm-mako-3.4-lollipop-release")

r16 - lollipop-rebase branch - (based on cm-12.0)

I think it's is something with rmcc cm-12.0 commits.
[G Pad 8.3 Android Development] Deltadroid:
I just got another black screen with rXXX. Going back to r015 seems to be only solution so far.

But, on the bright side, the sdcard unmount problem is fixed in latest r020.
[G Pad 8.3 Android Development] Bronando:
I don't have any black screen problems on r019...
[G Pad 8.3 Android Development] Rick Roll:
Please test if it fixes the black screens.

Changes:

https://github.com/victormlourenco/...mmit/6b2d4f0a9a829ccee3848430a217d466126a5e8c

https://github.com/victormlourenco/...mmit/60bd9b363ef3be32e7b2d3e5dc1f31be47b16e2d
[G Pad 8.3 Android Development] 0nebukadnezar0:
Cool, thx, rXXX is installed, will report any issue
[G Pad 8.3 Android Development] Cal:
Installing RR #xxx also. Taking out RR#15 (which had *no* black freezes here). Also will report. Thanks!!

EDIT: Just had a freeze when browsing. Clicked on a 'show more' and all black with nothing I could do except hard reboot to revive RR #21 ...I'm returning to old faithfully #15.
[G Pad 8.3 Android Development] Rick Roll:
It's seems the problem is not with KGSL and video drivers. Wrong voltages can cause BSOD too, so I merged all the voltages commits from the lollipop branch on this test version.

Changes:

https://github.com/victormlourenco/...mmit/6e1be1b51644ac40b6c89373420a0f7e34db6ecd

https://github.com/victormlourenco/...mmit/c4bf9f5c7d6613f32218f6cc62fb1e464a237d95

https://github.com/victormlourenco/...mmit/5d90db66667b86564d757bd0ea77f64a9794df8f
[G Pad 8.3 Android Development] Cal:
So far all seems solid with RR #x22. Will post back if, & when I get a freeze/ or 'anything' else.

Did make one change to intelldemand governor/(prosessor) from default. Just using the browser. Left the I/O default.
[G Pad 8.3 Android Development] zacharias.maladroit:
Thanks !

Will try that out ASAP :good:

This problems looks similar to the bootup and recovery low level backlight issue

that was also a kernel-related issue, right ?

Can't currently remember what the cause was ... :mad:
[G Pad 8.3 Android Development] Deltadroid:
That was because the 4.4.2 bootloader uses a different backlight setting and requires a patch.

---------- Post added at 11:20 PM ---------- Previous post was at 10:24 PM ----------

@Rick Roll

I notied in #cyanogenmod-dev that is says we need to define out default PowerHAL now because the default has been removed. Should this be added to BoardConfig.mk?

# Use CM PowerHAL by default

TARGET_POWERHAL_VARIANT := cm
[G Pad 8.3 Android Development] Cal:
Back to #15 for me. Was once again only browsing...stopped a minute, then BLACK FREEZE! That was with RR's x22...this was worse than my freeze with #x21. Had to do a 3 button restore!

Going to let Deltandroid & Rick Roll get a bit better kernel figured out!

This kernel 22 (tester) was almost 'instant' to freeze. Did worse than #21 (tester). Will try more if you develope a new one!

:)
[G Pad 8.3 Android Development] zacharias.maladroit:
++

also just had a black (blank) screen again

Mainly reading with Opera, Kindle App, dict.cc+ (dict.cc should provide the same)
[G Pad 8.3 Android Development] Darkmasterhk:
I noticed two issues in this release, on a clean install both hotplugging solutions seem to be active

at the same time and the gpu won't idle as it used to be. (no 27MHz, most of the time it idles at 320MHz)

And about these bsod, are those random and appear only on a few devices?

I couldn't remember to have ever seen one, so I tried opera on a clean install 40min of browsing and everything is fine.

never mind after another 45 min i got one.
[G Pad 8.3 Android Development] 0nebukadnezar0:
No Black screen 24 hours after the installation, it's a good sign. But I have still following issue (also with older CM and Redkernel releases) after several hours not using the gpad, after enabling WLAN, it becomes unresponsive, very slow several minutes, then it's working again smoothie and very quick. Any idea what could be wrong?
[G Pad 8.3 Android Development] Deltadroid:
It could have something to do with the version of your modem partition. The modem partition is filled with files that affect wifi and sensors. Try the 4.4.2 bootloader I posted that includes the latest 20D modem.img.

http://xdaforums.com/showthread.php?p=57851987
[G Pad 8.3 Android Development] zacharias.maladroit:
Just to have a "reference":

[MENTION=4575133]Rick Roll[/MENTION]:

could you please build a kernel with the same branch like RedKernel 15 (source equal to RedKernel 15) with the only difference being an up-to-date initramfs ?

I doubt that this would show the same behavior - just to be sure ...

also this appears to be an Adreno or Qualcomm related regression since it appears on the Moto G (2014, 2nd gen):

http://xdaforums.com/moto-g-2014/help/random-dark-grey-screen-cm12-1-t3124937

and also on the AOSP-ROM from adrianom
[G Pad 8.3 Android Development] 0nebukadnezar0:
Black screen again with RXXX test release... but appears always during the use of a web browser (in my case Dolphin)
[G Pad 8.3 Android Development] Rick Roll:
Please test this one.

Changes:

https://github.com/victormlourenco/...mmit/e827092b69030ca09b508f27706caa4c31ec7c8a
[G Pad 8.3 Android Development] Cal:
Am not able to test at this time Rick, but can you possibly add the same or more processor governers as the #15 had?

Never mind...the new kernel has a good governor also. My mistake.

Thank you,

Cal
[G Pad 8.3 Android Development] Deltadroid:
I think you are on the right track. My guess is that the black screen is caused by something in the video driver and this looks like a good culprit. Thanks for getting this narrowed down. :)

Can I ask if you would accept patches for the installation script so that it doesn't recursively change permission on /system/etc ?

Also, no more need to support loki since official cm 12.1 nightly builds are now bumped.
[G Pad 8.3 Android Development] Deltadroid:
[MENTION=4575133]Rick Roll[/MENTION] the latest xxx is running fine so far. I'll report any issues.
[G Pad 8.3 Android Development] meanoc:
Is the latest kernel still causing SD card issues?
[G Pad 8.3 Android Development] Deltadroid:
No, sdcard is working good now.
[G Pad 8.3 Android Development] Cal:
Testing also and all seems fine so far. Will report problems.

Thanks Red Rick!
[G Pad 8.3 Android Development] tewje:
I installed your kernel yesterday together with the latest cm nigthly. Works without black screen issue just a few hours. I will report any bug. Thx!
[G Pad 8.3 Android Development] Deltadroid:
Running about 12 hours with latest test kernel and no black screen. Good job [MENTION=4575133]Rick Roll[/MENTION].
[G Pad 8.3 Android Development] Cal:
Also about the same time of running the test kernel #xx22. No issues at all browsing and the SD card is fine, all looks good. [MENTION=4575133]Rick Roll[/MENTION], thank you.
[G Pad 8.3 Android Development] meanoc:
And I'll agree that so far no issues at all and running great. Thanks for making this happen :)
[G Pad 8.3 Android Development] Cal:
BACK TO RR#15. All of a sudden I got a red hue over my complete display - no matter what app I was running. It started on the browser. No freeze, but red hue. Went to display & lowered from the default LCD 320 to 280 but no change. Must be as Deltandroid keeps saying...video card. Maybe pushing it too hard?

I'm completely bumped and I presume the install of Loki's RR#15 followed by the remove Loki script, which I flashed after #15 put all bumped. Install read Loki removed from kernel RR#15.

Sorry to report flaw. Thought all was OK.

:(

EDIT: Am using 12.1 official nightly ROM June 2nd 2015
[G Pad 8.3 Android Development] Deltadroid:
Using the current source code for CM12.1, the problem is that the color calibration also needs to be changed in the ROM. What [MENTION=4575133]Rick Roll[/MENTION] did with the kernel is correct, I think. The other thing is that the ROM needs to go back to the LGE kcal interface for Color Calibration.
[G Pad 8.3 Android Development] Cal:
Thank you Deltandroid. When the official cm-12.1-20150605-Nightly is posted I'll reload the RRxx#22(experimental kernel) once more and see what happens - & hope nothing does.
[G Pad 8.3 Android Development] Cal:
OK. The latest CM nightly 2015-6-06 is out so I'm installing it and the experimental kernel RR#xx22 of Rick Roll's. Only change I'm making to my tablet is to disable the HW rendering in Developer options, and am not using default governor - but using intelliactive instead of the default ondemand to see about memory usage.

Will see what occurs and will post back.

Thanks to Deltandroid for assistance.

EDIT: Only thing I'm concerned about is the idling prosessor is 918Mhz. That is default no matter the governor & using settings same as above. This may use a lot more memory...will change the HW setting and check...

NO EFFECT. Still at 918Mhz idle.
[G Pad 8.3 Android Development] Darkmasterhk:
which app do you use to check idle freq.?

and which to tune your kernel settings?

918MHz is the boost freq. of the new hotplug, it overwrites the min freq in cpu settings,

some kernel tuning apps may have problems with this behaver, if the cpu is boosted and

you save your governor settings it may also save 918MHz as the default min freq.
[G Pad 8.3 Android Development] Cal:
Not using any app to modify. Nor have I used any before this. That is just what I saw when checking the governors by opening 'performance'.

Edit: just looked and now idling is back to normal !
[G Pad 8.3 Android Development] Deltadroid:
The performance settings can get stuck when using a custom kernel that has extras performance options then going back to stock kernel that does not have those options.
[G Pad 8.3 Android Development] Cal:
Just un-stuck Deltandroid. Things are looking up! :)
[G Pad 8.3 Android Development] Darkmasterhk:
strange my default governor on a clean flash (yesterday) of candy5 is ondemand, i remember that one xxx test version had intelli as default

maybe this one caused something, to happen in your system?

sorry shouldn't multitask, didn't read your text fully.^^

you changed your settings using the rom internel performance setting right?

this causes the 918MHz idle issue, for me too.

change governor hit restore at boot and change min frequ to 384MHz.

this solves the issue for me.
[G Pad 8.3 Android Development] Cal:
I'm using Rick Roll's experimental kernel and I thought the new display resolution commit in this latest nightly was causing it. I got the same Hz with both, but now all seems normal. The default governor on RR's 22 kernel was OnDemand.

Thanks!
[G Pad 8.3 Android Development] Deltadroid:
The change in screen resolution won't affect the kernel.
[G Pad 8.3 Android Development] Cal:
Have had *no* issues since install of cm-12.1 official Rom-2015-6-06 yesterday with RR#22(experimental). No issues with screen color either. All settings default except processor governor. HW setting in Developer Options default.

Will post if anything occurs.
[G Pad 8.3 Android Development] Cal:
All stable & nothing to report. I'm mostly browsing, but that is where the errors came after this much time...but *nothing* happening unusual. Now as stable as any ROM I've used. All is bumped. Memory usage is good, speed excellent. I think this kernel is a wrap.
[G Pad 8.3 Android Development] nytral:
I'm still having SD issues with the experimental kernel :/ everything else is solid.
[G Pad 8.3 Android Development] Cal:
Have you tried another card, if possible? I have had no card issues, but I do use a small card. Also, are you using the latest official nightly? The ROM of 2015-6-6?
[G Pad 8.3 Android Development] Cal:
Same as above with ROM 12.1-2015-6-09 (all excellent). All I personally would like to see is the Processor governors, & the I/O's choices the same as RR#15. I believe I was better with intellidemand governor memory wise & BFQ scheduler for I/O. Otherwise perfect *for me*. :)
[G Pad 8.3 Android Development] scaramonga:
Concur with Cal, all good with 12.1-2015-6-09 & 22, and extra choices for I/O & CPU would be just excellent! Good work guys!!
[G Pad 8.3 Android Development] jonup:
What exactly are your memory issues? How does CPU governor affect memory? Choices are great; having choices for sake of having choices is retarded. Dev would only tune one, maybe two, governors. The other gazillion governors are bone stock, the way some faux dev made them to gain popularity. So stick with ondemand and enjoy your tablet. As in 2+ months of up time and still butter smooth.
[G Pad 8.3 Android Development] Cal:
I'm sure you are correct, jonup, about my posting about governors and memory. I should be saying

battery saving

and not

memory saving

. What I was attempting to say, was that some of the many CPU governor choices may possibly save a bit of battery usage and I think the ones I stated in a previous post are what I prefer to use and were available by the coder Rick Roll in a previous kernel, but not available in a later one and me and another member would like to see them added.

Best regards,

Cal
[G Pad 8.3 Android Development] nytral:
I just had the issue with latest nightly... Can't test with other card (and that would not be a proper fix either). Going back to r16 :)

Envoyé depuis mon LG-V500 avec Tapatalk 4
[G Pad 8.3 Android Development] Rick Roll:
r021 Released!

- Fixed random BSODs

- Squashed interactive governor from bacon

Download CM: https://www.androidfilehost.com/?fid=24052804347759574

Download AOSP: https://www.androidfilehost.com/?fid=24052804347759572
[G Pad 8.3 Android Development] nytral:
Sd still ko on r21, back to 16 :)
[G Pad 8.3 Android Development] Disrupthor:
[MENTION=4575133]Rick Roll[/MENTION], could you please add to the kernel more tcp congestion options? Westwood especially.
[G Pad 8.3 Android Development] 0nebukadnezar0:
Still BlackSOD... Not each time, but most of the time after re-enable WLAN shortly after the tablet is waking from "standby"
[G Pad 8.3 Android Development] Rick Roll:
This release is for [MENTION=4517918]fefifofum[/MENTION] builds.

https://www.androidfilehost.com/?fid=24052804347760974

This custom UKM is required to change the kernel settings.
[G Pad 8.3 Android Development] fefifofum:
Thanks! I had to amend my latest commit so display doesn't get too dark at low backlight values. Maybe you want to fix that too. Look here.
[G Pad 8.3 Android Development] Fenderstratocaster87:
Hi guys, i would like to prove this Kernel. Now I have got Euphoria rom, which one should I download? lollipop or kitkat?And which is the best version?
[G Pad 8.3 Android Development] Deltadroid:
[MENTION=4575133]Rick Roll[/MENTION], should "knock on" be enabled by default with this kernel? I'm trying to figure out what change is necessary for knock on to be enabled upon startup without having to touch the screen one time first.
[G Pad 8.3 Android Development] st@@tz:
R u talking about dt2w or knock on?
[G Pad 8.3 Android Development] Deltadroid:
Double tap to wake. It seems like I have to touch the screen one time before it is activated.
[G Pad 8.3 Android Development] nytral:
I was happy to report that sd is fixed in latest CM nightly kernel and then, black screen of death! bummer...
[G Pad 8.3 Android Development] 0nebukadnezar0:
I have removed the kernel for one week ago, and all the stuffs related to it (UKM, Synapse), and I was surprised to see that all my problems have disappeared, no Black Screen issue, the GPAD is very smooth and quick responsive, no SD Card unmount, after enable WLAN, all apps are directly available, no stuck anymore... I have to say bye bye RedKernel.
[G Pad 8.3 Android Development] scaramonga:
Nah, Red 15 works just fine, and the only version that does, unfortunately ;)
[G Pad 8.3 Android Development] zacharias.maladroit:
Not sure what ROMs you guys are on and what causes those issues

but the latest RedKernel runs fine here (FlexOS) - no black screen after several hours & days of usage ( *knock on wood* )
[G Pad 8.3 Android Development] scaramonga:
ROM is in my signature, and happens on 'unofficial' also. Been like this for months now, random black screens, unless one uses RED 15, which cures the problem instantly.

I may give FlexOS a try with latest RED, as I'm fed up with this problem on the Cy ROM's.
[G Pad 8.3 Android Development] jonup:
I'm on SlimLP without black screens. I only have WiFi issues but it's probably ROM related
[G Pad 8.3 Android Development] zacharias.maladroit:
do you need to disable and re-enable once screen has turned off ?

Disable SELinux (permissive) - that should do it

it's a permissions problem - likely on the ROM's side
[G Pad 8.3 Android Development] vicky-am:
No issues with Euphoria and latest Red Kernel ?

Enviado desde mi LG-V500 mediante Tapatalk
[G Pad 8.3 Android Development] 0nebukadnezar0:
Hmmm, I'm back to RedKernel, because my internal sd-card is full, I have to use "Link2SD", but it's simply not possible to use it with the CM12.1 kernel, due to the sdcard unmount issue.

I've re-installed R15 and the SE linux permissive, no more SD-Card unmount, no black screen and no more WLAN issue. Have now reach 4GB free space on the internal sdcard. I will make a try with the latest RedKernel version.
[G Pad 8.3 Android Development] Rick Roll:
r022 released!

Changes:

Merged latest changes from [MENTION=4517918]fefifofum[/MENTION] repo.

Added mako_hotplug by [MENTION=3292224]franciscofranco[/MENTION] (disabled by default).

Updated BFQ sched to v7r8.

Download for CM nightlies: https://www.androidfilehost.com/?fid=24052804347772800

Download for [MENTION=4517918]fefifofum[/MENTION] builds: https://www.androidfilehost.com/?fid=24052804347770979

Download for AOSP builds: https://www.androidfilehost.com/?fid=24052804347772801

UKM Script: https://www.androidfilehost.com/?fid=24052804347760982
[G Pad 8.3 Android Development] zacharias.maladroit:
Any of those new r022 kernels work with Resurrection ROM ?

I flashed the CM one and wifi wouldn't come up during fresh installation of the ROM - thanks !