yashsingh1/xdaforums huggingface dataset:
[Nook HD, HD+ Android Development] amaces:
Slightly Tweaked Kernels for Testing

So, we have a somewhat clearer picture of the reboot/power off bugs, and it ain't pretty… Based on the posts so far, it seems that bad power off is more of hardware/kernel bug, while reboot to recovery is happening on the ROM side, and CM is doing it's best to break it every so often ;) I'm saying this because of reports of Xposed-based reboot-to-recovery working fine, as well as positive feedback on the July 31st builds, so let's hope that the next set of normal builds is still OK. Otherwise, although there isn't much activity in the CM12.1 review, I still cannot pinpoint what exactly is responsible for these bugs… Oh well, now I just need to figure out how to turn off the poll ;)

This was a great idea to try out, and confirm that indeed it's on CM. As a side note, I'm an Xposed user too, but on CM (where the frameworks are already heavily modified compared to stock/AOSP), you want small modules, with very specific functionality. LP GravityBox on CM12 is not a good idea; even if it feels harmless only using a subset of features, the way LP/ART Xposed works means that much of GB's functionality is actually plugged in (not like in the JB/KK days when off actually meant stock code paths were used).

Thanks for these; I will compare to logs when things work properly. On the plus side, no SELinux denials involved, thankfully.

Most GApps packages are not up-to-date, so updates are usually necessary, plus you may have restored a previous device profile, which pulls additional apps, possibly not included in the package you flashed. Alas, you have to wait those ten minutes for the app optimization step pretty much anytime you upgrade the ROM :( These devices don't have the best heat dissipation. especially in the summer heat, so I have this little cooling station with a fan ventilating the back, specifically the lower right corner (hummingbird may be different); you probably don't have to worry too much about it. P.S. Dig the lone wolf handle ;)

Panel drivers could definitely be involved; I'll make sure to look carefully through the logs. Otherwise, I also don't like how hot these Nooks get, during that initial upgrade step, and even during normal use. My hunch is on some of the PVR build optimizations we enabled a couple of weeks ago. Some of the absent kernel/hardware panel features that we emulate in software could probably be turned off, although I haven't finished testing.

Aww, thank you, I definitely appreciate the sentiment, [MENTION=6822220]PeteInSequim[/MENTION]. I think for now, I can get by with reports and logs posted here, and I do have one idea about how to fix it on both devices. Power off on my ovation has also become more erratic lately, although not sure whether it's connected to overheating, or just my board getting old ;) I'll keep your offer in mind, but for now, I'm glad there are good hummingbird testers.
[Nook HD, HD+ Android Development] PeteInSequim:
OK, whenever you're ready. The offer remains open.

This one is a Version D. I have another one that is Version A, but it does the same thing at shutdown. My wife has one that also reboots, but I don't know what version it is offhand.

I wonder if a comparison of MAC addresses would shed any light? Maybe there is a big displacement in the sequence for different versions or manufacturing sites.
[Nook HD, HD+ Android Development] mattyyey:
that is interesting. I have not noticed any problems or slowdown as a result yet. I do only have ~5 xposed mods installed, all but gravity box are kinda small (greenify, volume2skip, secure setting and so on). So Gravity box uses a plugin instead now? Does that mean potential errors? or just a slow down of my system? I'm only using it as you say for a few tweaks.... worth removing it?
[Nook HD, HD+ Android Development] Sus_i:
OK, thank you for information.

Unfortunately, I think selinux seems to prohibit any mount of network shares.
[Nook HD, HD+ Android Development] amaces:
Things are probably OK if you don't enable features that conflict with CM framework changes (which is the majority of them). I was saying that Gravity Box on top of ART Xposed does not have the same control over hot plugging custom code compared to Dalvik days, so the dev was talking about having to keep much more code active (albeit dormant functionality). Bottom line, the probability of conflicts and interference with non-stock frameworks is much higher than on Dalvik, so if you have unusual problems, check the Xposed logs. GB is great otherwise (my N5 is very happy with it), but it feels like overkill to install it just to replace the reboot/power off menu ;)

That's easy to fix; SELinux denials are easy to spot in dmesg, and if you send me the relevant portion (or the whole output), I can add the necessary permissions to the ramdisk. Of course, you can test if it's indeed SELinux by switching to Permissive temporarily.
[Nook HD, HD+ Android Development] belfastraven:
Re turning off poll , a least at one time this was the answer

PM MikeChannon

( apparently xda is protecting us from someone messing with results :)

Also, with the experimental hummingbird kernel and 7/31 build , shutdown problems returned for me. Just curious, what was changed in the kernel?
[Nook HD, HD+ Android Development] echoedge:
I don't have xposed, but for me just going into terminal emulator and typing the command

'reboot recovery'

successfully reboots to recovery, in my case TWRP.

From here I can choose from the twrp menu Reboot > Shutdown

and my tablet shutsdown without issue.

This is how I've been shutting down my tablet as of late to get a successful shutdown
[Nook HD, HD+ Android Development] amaces:
Thanks, I'll PM the guy soon. With the 07/31 builds, nothing had been changed in kernel for a couple of weeks I think; that's what's puzzling… Yesterday's kernels in experimental have minor changes to SYNC/VSYNC features that are not really handled properly in hardware, and may actually be unneeded for PVR, composer, etc. At any rate, I'm brewing full builds for later today.

All good signs, as it proves once again that CM is doing something unorthodox with the reboot/power off commands.
[Nook HD, HD+ Android Development] belfastraven:
Unfortunately going to terminal emulator and entering reboot recovery doesn't work for me on hummingbird, nor does rebooting to recovery through flashify, or twrp. The system never complains about the command; it just boots the rom. I haven't tried gravity box, but I think I'll just wait for a fix from CM in a future rom.
[Nook HD, HD+ Android Development] agantai:
it looks like the latest update has fixed the power off issue.thanks
[Nook HD, HD+ Android Development] wanderso:
Way back in post #677, Amaces noted that:

Does this mean that (sometime soon), CM 12.1 for the Ovation may be accepted by the Upstream Arbiters-of-Good-Code and become part of the official nightly build at cyanogenmod.org? If so, I will save my debug data for the Cyanogenmod JIRA and not pollute this thread. I am still having issues with my Bluetooth keyboard and headset (12.1-20150726-UNOFFICIAL-ovation), and have both cat and BTsnoop logs of a typical connect-input-disconnect session. The BTsnoop log, BTW, clearly shows the data coming through, meaning that it gets tossed somewhere farther up the stack.

No complaints here regarding the progress on the unofficial CM12.1 for Ovation. Amace's (and Hashcode's and Verygreen's) work continues to be amazing, and I am most grateful, like most of the contributors to this thread. I use my Nook HD+ as a daily driver, I just want to get all the bells and whistles, you know, working.
[Nook HD, HD+ Android Development] echoedge:
Oh yeah? Are you hummingbird or ovation?

Did you also install the kernal update posted yesterday, or just the 0803 rom?

I will try to update now
[Nook HD, HD+ Android Development] agantai:
just the latest rom,what is the kernel for ? & how do you install it ?

edit: hummingbird
[Nook HD, HD+ Android Development] echoedge:
I dunno. lol. I just saw it also posted in the download folder. I don't know anything about it, really.

You just install it like you install a rom.. in TWRP go to install and then flash the zip.

I assume. But you probably shouldn't take my advice, wait for one of the devs or someone who knows more about it to chime in.

I just installed the rom on my ovation.. I will see if I still get the shutdown problem.
[Nook HD, HD+ Android Development] agantai:
i did full wipe then installed the rom then wiped the dalvick cache then installed gapps again wiped dalvik cache then installed superuser & rebooted

hopefully [MENTION=4473900]amaces[/MENTION] or someone else can tell us what the kernel is for.
[Nook HD, HD+ Android Development] echoedge:
So I just updated from 0719 build to 0803 build and gapps is breaking my nook. Constant pop-ups when I load and boot.... "google partner setup has stopped" and then "process com.google.process.gapps has stopped" over and over and over again.

Any help on this? Should I update the kernel as well? Is there a gapps update that I need to install?

The good news is.. the shutdown function now works! (i assume, gapps isn't letting my tablet fully boot up properly, but it shuts down when I choose the option).

---------- Post added at 01:15 AM ---------- Previous post was at 01:13 AM ----------

Ok, cool. Were you also getting this same error? Or did you not boot up in time to check. I will try to flash my existing gapps again and see.
[Nook HD, HD+ Android Development] agantai:
i did spend around 5 minutes in the system menu & did not experience those or any errors at all (maybe i need to tested it longer) !! the gapps i installed were pa_gapps-modular-micro-5.1-20150315-signed
[Nook HD, HD+ Android Development] echoedge:
You would have noticed.. I got the gapps error right away. All my background apps wouldn't even load on start-up because of this error (i know because there is like a half a second in between me constantly pressing "OK" on error dialogue and while doing so I could see, for example, my weather app starting in the background in between the error dialogue which pauses additional start-up).

But, anyways.. I just reflashed gapps (i had a 0217 version...) and then cleared dalvik cache and it is working now :) That's all I had to do.

Also, I just tried to shutdown again (this time after everything was loaded?) and it booted back up. Either was an issue with everything booting up or a random chance, but the shut down issue is not gone yet :(

One more thing... I am missing superuser. Do I just flash this zip file here:

http://xdaforums.com/showpost.php?p=58137820&postcount=105

http://download.chainfire.eu/641/SuperSU/UPDATE-SuperSU-v2.40.zip

and that's it? I don't think there is a seperate superuser zip for hummingbird and ovation, right?

I should probably do a back-up now before this though just to make sure :)

edit: nevermind, I will just install SuperSU from play store. That should be safe way to do it.

---------- Post added at 01:52 AM ---------- Previous post was at 01:35 AM ----------

Okay.. so I installed supersu (had to flash that zip I posted above ;)).. and then tried to shutdown, and it shut down properly. So seems to be hit and miss.
[Nook HD, HD+ Android Development] twiztid_:
Go into Developer Options and disable root, then enable it again for Apps or Apps and ADB.
[Nook HD, HD+ Android Development] agantai:
sorry this is the the zip file which i installed from recovery to get root working again UPDATE-SuperSU-v2.46
[Nook HD, HD+ Android Development] BakaNeko59:
I am unable to download from the Box link in the OP. It says the file or folder has been removed. Is something goofed up or is it just me?
[Nook HD, HD+ Android Development] twiztid_:
Works for me. Try again?
[Nook HD, HD+ Android Development] echoedge:
Cool right. Was prompted to update to latest in the app, so I should of went with that one. All well.
[Nook HD, HD+ Android Development] MossyTC:
I've never been able to download directly with my tablet, can't remember the error. Try downloading on a PC/Mac and then transfer to your tablet, if you haven't done so already.
[Nook HD, HD+ Android Development] FirePsych:
I've had that problem a bit when I try to download through links on XDA

I ended up bookmarking AMACE's website in Chrome and I download through there on my tablet. Haven't had a problem since then.
[Nook HD, HD+ Android Development] vinceweis:
I basically do the same, except with dolphin. The built in browser gave me problems.
[Nook HD, HD+ Android Development] king200:
Comment that indicates disabling advanced power menu and then using same function in Xposed worked. I don't use Xposed to try it with.

http://xdaforums.com/showpost.php?p=62136225&postcount=784 [ROM][NOOKHD/HD+][EMMC] UNOFFICIAL CM12.0 NookHD/HD+ (LP 5.0.x) [2015-02-17]
[Nook HD, HD+ Android Development] twiztid_:
Amaces addressed this before, and there could be problems with Xposed modules that make large changes like Gravity Box. So just be aware when using them, and remember that a new problem you may find could be related to, or caused by, the Xposed module.

http://xdaforums.com/showpost.php?p=62158251&postcount=748

http://xdaforums.com/showpost.php?p=62168354&postcount=752
[Nook HD, HD+ Android Development] king200:
You could try just the Advanced Power Module http://repo.xposed.info/module/hk.kennethso168.xposed.apmplus
[Nook HD, HD+ Android Development] PeterLustig:
Hmmm can't find the download link for the rom.
[Nook HD, HD+ Android Development] tnckd13:
Hi

I recently installed cm12.1 0726 version in my new nook hd+,

However i experienced auto restarting problem whenever i try to

shut down my nook. So i fully wiped this version and installed cm12.1

0803 version.

Sadly, i am still experiencing same problem. And i cant pair my bluetooth

Mouse so i am considering installing cm11 version.

Please give me some advice if you know about this re starting issue.

(By the way the shut down function works sometimes when i shut down

In landscape mode)

Thank you.
[Nook HD, HD+ Android Development] echoedge:
For what rom, cm12.1? There is link in first post.. it is kind of hidden, took me a minute, but read through the post you'll find it
[Nook HD, HD+ Android Development] PeterLustig:
Thanks! I was blind.
[Nook HD, HD+ Android Development] ST Dog:
And how exactly would one do that?

I haven't seen an SD install for CM12.
[Nook HD, HD+ Android Development] twiztid_:
Not exactly sure, but I do recall having to write a recovery image (not just copy) to a MicroSD when I switched from Stock. I'm not sure if the process is the same, or if you need a special build for it.
[Nook HD, HD+ Android Development] ST Dog:
That's just an initial recovery so you can install everything to EMMC.

That's not installing the OS to the SD card like is possible with CM10 and 11, and would be good for testing stability prior to installing to EMMC.

(I currently run CM11 from an SD card, having run 10 the same way prior to that)
[Nook HD, HD+ Android Development] huntz:
Great ROM

Hi and thank you [MENTION=4473900]amaces[/MENTION] for the hard work.

I'm coming from CM11 M12 and to update to CM12.1 I have used those files:

- cm-12.1-20150414-0425-UNOFFICIAL-ovation.zip - md5 06610f2332e7b5950648c566e845d341 (from first post of this thread)

- omnirom-twrp-2.8.6-ovation.img - md5 e23e83a4d8ab0e8c10ce79d9396914a2 (from first post of this thread)

- pa_gapps-modular-micro-5.1-20150315-signed.zip - md5 a9bd42e95758b29c8a02a1711dbaa459 (from this page http://www.androidrootz.com/2015/03/download-android-51x-lollipop-pa-gapps.html )

Before the upgrade, I have made a backup of all apps and settings with Titanium Backup (link: https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup&hl=en ).

To flash TWRP I have used Flashify (link: https://play.google.com/store/apps/details?id=com.cgollner.flashify&hl=en ).

After the reboot to recovery, I have made a factory reset and then installed cm-12.1 and gapps, in order.

After the first long boot (15 minutes) Android Lollipop comes up.

To begin using it, I have made some first configurations:

- in Settings app -> "About Tablet" and tap seven times on "Build number" entry to activate the developer menu

- in Settings app -> "Developer options" enable "Disable HW overlays" to add more stability to the ROM

- in Settings app -> "Developer options" tap on "Root access" and select "Apps only" (to make Titanium Backup be able to restore apps)

All is working nicely (all my apps, like Total Commander, Flow, Tapatalk, Flipboard, Telegram, Titanium Backup, Splashtop, Dolphin Browser, etc... are working).

The tablet feels a little more slow compared with CM11 M12, but the new kernel and zram works ok. No one crash, reboot or killed app.

I'm very impressed. :victory: :good:
[Nook HD, HD+ Android Development] pmt223:
root access?

Hey there. Thanks for then work on this. I installed this last night and it runs mostly good. Question: when using flashify or anything else now it says I don't have root access? Is there something I did wrong, or something I need to enable? Thanks
[Nook HD, HD+ Android Development] ekimookh:
do these

- in Settings app -> "About Tablet" and tap seven times on "Build number" entry to activate the developer menu

- in Settings app -> "Developer options" tap on "Root access" and select "Apps only"

(thanks to huntz)

then install Chainfire's SuperSU free from play store
[Nook HD, HD+ Android Development] amaces:
Experimental K3.0

So, I finally got an updated 3.0.101 kernel up and running, fixed most of the major errors, and uploaded experimental stuff for testing. Post #2 will be the place for kernel updates, and I'm sure people will figure out where the new build lives (ovation only, for now).

Now, in reply to some of the earlier stability questions, none of the current or past builds would qualify as CM11-level stable, or hassle free. I should probably have better emphasized the totally beta quality of these ROMs, although we have the kind of devices that are pretty hard to break solely with software.
[Nook HD, HD+ Android Development] Monfro:
Bravo!!

This is really a great news!!

A new shiny kernel!!
[Nook HD, HD+ Android Development] Zippy Dufus:
Are your original patches still required or can I remove them from my build procedure?

I will be building something this evening! :)
[Nook HD, HD+ Android Development] sega dude:
Just installed the April 14th build on my Nook HD (hummingbird). It works pretty well, I'm loving it so far. Quick question, when new builds are released, so I have to do a data wipe/factory reset every time or can I just flash the new build over the current build? Keep up the great work, this is a great ROM.
[Nook HD, HD+ Android Development] king200:
I don't know if this is the proper thread to report but I'll try.

I installed on HD+32gb the Experimental cm-12.1-20150421-K101-UNOFFICIAL-ovation.zip along with a reliable gapps http://fitsnugly.euroskank.com/?rom=banks&device=gapps

The system did boot and seemed more responsive to touch. Display popped nicely too.

The indication for battery in status bar is 0%. There is no battery menu in settings either. My 32gb, FAT, MicroSd card is not recognized in storage or Root Explorer.

Superuser was working as expected. Power off seemed ok too.
[Nook HD, HD+ Android Development] tj2003:
I have it running on two tablets the only problem so far is battery status shows 0% and red square at all times even when charging.

I now must add no sound of any kind from both tablets.

It will not read sd card.
[Nook HD, HD+ Android Development] pmt223:
Is there a way to enable a 12 hour clock instead of the 24?

---------- Post added at 11:43 PM ---------- Previous post was at 11:42 PM ----------

And thanks for your work on this. I do hope you support hummingbird with the kernel as well.
[Nook HD, HD+ Android Development] twiztid_:
Settings -> Date & Time -> uncheck Use 24-hour format
[Nook HD, HD+ Android Development] g002ahe:
Tried the new 2104 build

No sound

Battery at 0

Possibly does not charge (unconfirmed)

Hw overlay does not need disabling. No flicker and reboot problems using weather link off notifications

Seems a little stuttering on video

Netflix seemed to work.(previously did not for me)

I installed over previous 12.1 without wiping.

Am now going to recharge and restore previous 12.1 which I am finding very stable with Hw overlay disabled

Thanks for your great work on this!
[Nook HD, HD+ Android Development] tebra:
Hi [MENTION=4473900]amaces[/MENTION]

When the new 3.0 kernel begins stable, please add modules to connect a wiimote with bluetooth.

See here for the instructions http://forum.cyanogenmod.org/topic/93000-wiimote-pairing/page__hl__+wii#entry460990

Thanks
[Nook HD, HD+ Android Development] Zippy Dufus:
Good first try!

I built cm-12.1-20150422-UNOFFICIAL-ovation.linaro-4.9.3.1503.zip with your kernel repo and here are my notes and first observations:

I'm using the bleeding edge Linaro build chain so my results are suspect.

There was a little instability upon first boot

It hung on the cyanoboot screen upon first boot.

I powered off and it got to the boot animation*, hung for about 30 seconds and then rebooted. (I always remove the bootamimation.zip on my builds so I can closely watch the "pulsing" boot behavior of the default "Android" boot animation.)

Third time after I powered down, it booted and it proceeded to "optimize" the apps and successfully finish the boot.

I have since successfully rebooted.

I can confirm that the battery statistics don't work. The app "Battery Circle" shows zero too.

Sound is not working.

The external sdcard cannot be mounted.

Hangouts Dialer still force closes. :crying: (This is still a problem on the CM12.1 Nook Table so I believe that the issue is in the common code shared by both.)

I'll be leaving this ROM installed for a while so I can watch its CPU and battery usage statistics. Maybe I will try an Antutu test too.

Regardless, thanks for great work!
[Nook HD, HD+ Android Development] krustyzy:
Hi guys,

first of all, thanks so much for all the work you devs put into our device in spite of its age.

I have the following problem:

- I did install the latest TWRP from amaces (2.8.6.0) via Flashify

- I then booted into recovery (which worked), and flashed the latest CM12.1 with PA nano GApps (which also worked)

- I then wanted to do a factory reset to completely set up the tablet and am now faced with a continuous TWRP boot loop (TWRP appears on turning the tablet on, after about 7 s screen briefly turns black and TWRP screen appears again, and so on)

Obviously, the factory reset did something nasty here. Can anybody please give advice on how to escape the recovery boot loop?
[Nook HD, HD+ Android Development] shdware:
I had the same issue, and the solution is very simple but the implementation is a PITA.

1. First download CWM and make a bootable SD (http://xdaforums.com/showthread.php?t=2600572). The actual file is going to be the 'emmc-cwm-early3.1.img' one.

2. Plug in the charger so that you'll have a charging light going. This part was critical for me for timing the following steps as there will not be any power light unless it's plugged in.

3. At least for me, the Nook wouldn't display at all if I tried to turn it on with the uSD card plugged in. YMMV. So have the bootable card ready to go in but not inserted all of the way. Turn it on.

4. The charging light will go on. Four seconds will pass and then it will briefly change color, then the BN Nook logo will pop up. Immediately before this (say, at the 3.5 second mark) pop in the uSD card. There isn't a lot of time for error as Cyanoboot will check for it and it takes a bit to read.

5. EVENTUALLY it will read the card and automatically install CWM, overwriting TWRP. I was able to boot/reboot normally after this.

Good luck. It took me like 30 minutes to figure this out.
[Nook HD, HD+ Android Development] tj2003:
I have found the sound works only with headphones.

It charges goes to green light but no change with battery readout still 0%.