yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] bweN diorD:
your assistance is requested here, from a user with too few post to ask here.

thanks :)
[Nexus 7 Android Development] SiK TL:
Thanks for pointing out that MacroDroid app. That's exactly what I was looking for. I deleted the PEM app. Like you pointed out. It was just too buggy on 5.1.1.
[Nexus 7 Android Development] sgt. meow:
No, thank you, good sir, for bringing this to my attention.
[Nexus 7 Android Development] machmanx:
So I have issues with this:

-My tablet used to do OTG + charging with Autodroid, but with this kernel + optipop ROM it won't charge. It only allows OTG but not both simultaneously.

-Audio switchover to USB audio takes a ridiculous amount of time and is not within the first few seconds (I have to leave my car off while plugged into OTG and then when I come back later after a few hours, it's connected. At the very least it doesn't connect within even 5 minutes)

-When I start playing audio from silence, it starts out at MAX Volume for a split second, and then returns to normal. This could happen when I'm switching songs on my player. But if I press it quick enough it doesn't do it. (This one could be a player related issue)

So my primary issues are the first two, the not charging with OTG and the long audio switchover time. How to fix? Do I need that Event Manager program? (a post here says it's unreliable at times)
[Nexus 7 Android Development] Buratei:
I am not entirely sure how, but somehow managed to get oxydo-revamped working with blisspop. If anything, it was probably wiping the user data partition (or not restoring certain something that was backed up from there).

Anyway, I am nearly done setting it up and a few things still lingering + random observations

- battery stat probably isn't being reported as accurately as it should; it just jumped from 27% to 40%, whoa! It was actually at 21% when I had put it to sleep!

- power event manager v1.8 + quickshortutmaker installed. host mode / fast charge settings stick, but no such luck with firm sleep / usb disk lock for some reason. worse yet, it won't put tablet to sleep on power loss. this could be a deal breaker for me

- charges quite slow compared to autodroid; most likely it is either the jumpy battery stat report I was talking about, or the screen not dimming out like autodroid used to - need to play around with the display settings I guess

- I prefer the quick settings panel from autodroid, but that's more like kitkat vs lollipop thing

- the gps-only nav app I've been using no longer works; again, I am willing to bet that app simply aint lollipop compatible

+ I REALLY REALLY LOATHED accidentally double tapping the notification bar and putting the tablet to sleep. blisspop comes with an option to opt out of that 'feature'. good riddance!

? the real bugger with autodroid was sporadic "sleep of death", which I think was caused by overheating battery. I hear lollipop come with better power/thermal management so we will see how that plays out with my hot as hell miata radio compartment.
[Nexus 7 Android Development] sgt. meow:
1. Try plugging in the charger to the Y cable first and then the USB device to the Y cable and then the entire thing to the tablet. Works that way for me.

2. USB Audio is unfortunately something I cannot test myself given that I have no DAC in my possession. But if someone else could help out in this regard, I'd be very thankful. I haven't heard of this before though.

3. If the 2nd issue is fixed, this is more than likely, as you say, an app issue. Unfortunately the app layer is not controllable at kernel level (not this specific type of app at least) and even if it were, I'd require far more knowledge to be able to tinker with it.

You could try the PowerEventManager app but I haven't used it myself either and therefore have no experience in that department either. In fact the only thing I can say with certainty is that OTG + charging works for me and that USB audio appeared to work for a few testers. Maybe [MENTION=4231539]Beakfire[/MENTION] can be of some assistance.
[Nexus 7 Android Development] sgt. meow:
1. I get this sometimes too. Looking into it. It may also create the impression that the device is charging very slowly.

2. I'm not an expert but you have to have fixed installation mode for deep sleep upon power loss to work.

3. I thought I was the only one getting this. Definitely checking this out, although changes to battery charging portion of code when no USB devices are plugged in in hostmode had little to no change at all. Worth a quick check anyway. You may also wanna lower your load on the device (and hence the battery) during charging, by perhaps reducing the CPU clock speeds or using a conservative-like governor (the only one I include is conservative) and not using the device that heavily while charging. I play games on my tablet all the time (Clash of Clans addict here) and my battery lasts me about a day max. Recharges over night.

4. Next version will have the better backlight dimming patch by Metallice. Maybe this would be useful to a certain extent especially if you're a night-time reader like me.

5. The GPS app not working is probably a compatibility issue but you may wanna check with other similar apps just to be sure. Unfortunately I don't know a lot of apps that can do that.

6. If your device goes to a BSOD-like state from overheating I'd generally classify that as "VERY BAD". Usually from overheating you are meant to get a pop-up (I think) and there is thermal throttling (that is meant to shut down a few CPU cores maybe and reduce overall performance and charging current (yes thermal limit on charging has existed since KitKat)). In more serious cases, the tablet reboots. But I've never had it BSOD on me. Ever. Can you get a /proc/last_kmsg the next time it reboots or even dmesg around the time you expect it to BSOD on you.

Hope everything gets fixed for you.
[Nexus 7 Android Development] Buratei:
2. I meant the fixed installation mode not the host mode (host mode obviously works too haha). when I tick off firm sleep option it does invoke superSU so it is definitely trying something but unfortunately up to no good. I am doing some more detective work (googling) on the power event manager to see if I can find some more clues.

3. device load is quite minimal I believe - most times it is just the gonemad music player running in the background with a few (21 to be exact) minimalistic text widgets scattered over 5 desktop screens, gmd gesture controls, multipicture live wallpaper, that's about it - mobile data/BT/wifi/GPS/auto sync are off and no gaming on this sucker at all. I don't have a more detail oriented battery app on it yet; the default android one reports screen (19%), android system (3%) and system UI (3%) are the biggest consumers, which is pretty good except it shoulda been tablet idle if PME's firm sleep were working as it should have.

4. Mine is being used solely as a car infotainment system (mostly headunit at that), so the screen stays on as long as power is supplied through the USB port. Lowering screen power consumption would have a tremendous effect for sure!

5. I am sure there are other options like waze for US folks, but as far as I am concerned this is the only one that works with no data at all. there are bunch free ones but they all require assisted GPS meaning they have to get internet connection from a phone via BT tethering. The whole idea behind having a nav on the tablet was to use it as a backup when the phone is fully discharged or not available for whatever other reason. saved my ass a few times already ;):good:

6. more on that bit in this link: http://acurazine.com/forums/audio-b...ernel-otg-charging-android-5-0-coming-933527/

while I don't have any concrete proof I am pretty positive this is what's been happening to my poor grouper. makes sense cuz the only times it crashes is when the engine is off along with the cooling system, heating up the car interior with all that heat being radiated from the exhaust pipes.

---------- Post added at 06:41 AM ---------- Previous post was at 06:09 AM ----------

I have every single wakelock blocked through one of the developer settings for blisspop. wonder if that has something to do with firm sleep option reverting itself back to off?
[Nexus 7 Android Development] sgt. meow:
Well the 120F limit is something Google coded in. We can probably up the temp to 130 or even 140 but the damage to the battery would not be worth. Beyond 120F Google has placed a thermal limit on charging (making it charge slowly or not at all seemingly). I'll take a better look tomorrow. Busy schedule you see.
[Nexus 7 Android Development] sgt. meow:
Thanks a ton for helping people out here. Really do appreciate it. And no, I didn't port anything, per se. I just cherry-picked a commit from the old kernel (the one for USB ROM) and just removed a debug statement for it to compile properly (could've probably restructured the code better but I was too lazy :p )

Regarding the more incremental volume steps, I think that's a ROM mod. I believe a few KitKat and Jellybean ROMs had it. Dunno about Lollipop though. I'm fairly satisfied with stock Lollipop and my kernel, although I have yet to get a good day's use out of tis sucker while having decent performance.
[Nexus 7 Android Development] machmanx:
No problem

No problem, Sgt. Meow. I could only think of the pains many users have went through trying to set this up. So if my notes and findings help out other users then that is a good thing. If it doesn't, well, at least I gave them something to try. And in that process they might find some other way to get it to work, and I hope they post their findings as well.

BTW I updated my earlier post with the following:

Edit 4: If a restart fails to get the charging working, then try unplugging and replugging the USB cable. After that, the system should properly charge when key is put to ACC or ON position. It seems that when you use the tablet for anything else while the OTG cable is unplugged, it tends to "forget" the FastCharge capability. So just unplug the cable, restart the device, replug the cable, unplug the cable, wait for a few seconds, and then replug the cable. Charging should be restored.

(Note: If you use the tablet as a car only device and don't mess with it, the sleep mode is actually pretty reliable. It's when you do other things on it that take away that reliability.)

I notice there is a rendering slowdown with Lollipop which sucks when using the internet or any other 2D graphic app (haven't touched 3D). I feel that Lollipop doesn't have good drivers for the Tegra 4 processor. Currently I have an issue where some apps crash right after they are opened because they are stuck at the last rendered screen before I killed the program with the app manager. On top of that, Google Maps has a rendering issue where if I switch apps and come back to Maps, the map area is covered by a black rectangle. At that point I have to kill and restart Maps to get it to work again (It does continue to give verbal directions though). Also on TuneIn Radio the music starts to stutter after a certain amount of music has been stored in memory (could be an F2FS issue though). So I'm going to install AutoDroid again to see if the problems exist there.
[Nexus 7 Android Development] miki8989:
Hello

I had the problem with stess poweramp . every 30-40 seconds crashed , I solved by raising the minimum CPU speed (100 to 475 MHz )

now it seems to run pretty smooth .

I put power event manager

all on the Roma pop bliss 3.4
[Nexus 7 Android Development] nalott:
I'm also one of those who are not able to read logcat with oxydo-revamped.

Sgt. Meow, yes, my terminal emulator has superuser access granted. I would really love to make it run. With the same Autodroid but with the original kernel (other things being equal) logcat used to work for me.

Thanks!
[Nexus 7 Android Development] machmanx:
Rendering issues

Well Autodroid with ALL-F2FS is showing no issues for me. Though I'd love to get to Lollipop without all the above issues.

I see. I've never messed with clock speeds on my N7 but I'd like to know how. Did it solve the rendering issue I mentioned above with google Maps? Can you test my above dilemma by installing google Maps and see if you have the same problem as me? It would be a big help :)
[Nexus 7 Android Development] Buratei:
lost about 2% over night, that's very good AFAIK. the only thing is, as i said earlier, powereventmanager doesn't seem to recognize loss of power and go to sleep like it should. I just manually hit the sleep button from the notification pulldown. strangely it has no problem waking up from sleep on when the car is powered on.
[Nexus 7 Android Development] Reiven89:
Wich version should i flash for Kitkat? thanks :)
[Nexus 7 Android Development] sgt. meow:
All of them should, in theory, work just fine with KitKat, although they were built with Lollipop in mind.
[Nexus 7 Android Development] enzoevo:
Any chance this kernel will get updated for MM?
[Nexus 7 Android Development] Buratei:
I've got something strange to report.

On my nexus 7, I have a dvb-t adapter I've been trying to use for FM radio reception via SDR touch. It works, but reception is poor probably due to shoddy antenna grounding or splicing. In an attempt to fix that, I had to mess with the tablet and the usb cable a lot, maybe a bit too much.

The way I had the whole gig wired, I had some thick (14awg? I forget the exact size) soldered onto the OTG y-cable directly feeding from the PSU into the tablet, and in the past that had helped to get me a faster charge rate. While it was built well enough at first, constant fiddling must have loosened all the insulation.

About a month ago, I was just getting on the road and noticed smoke coming from the cable (had the tablet detached and sitting on the passenger seat at the time) and the cable literally catching on fire. Luckily I was able to find an empty area on the side of the road to pull off immediately, so not much harm done. I feared the tablet had suffered some serious damage, but it seemed to chug along fine.

In the long run though, that might have done something to the wiring inside. Before that mishap took place, I was losing like 2% a day, now it has degraded to 4% an hour. The strangest thing is, tablet idle accounts for only <5% of power usage, yet tablet seems to be sleeping like it should at all times when the power is cut (every single wakelock has been blocked and wakelock block works I guess). At times it would say no usage data is avaliable despite some 20-30% drain.

Two things I have on my mind as possible culprits: 1)battery is nearing the end of its useful life, the tablet was a second hand unit to begin with 2)when the otg y-cable burnt, it took some of the electronics in the tablet with it

Just to be sure, I have used a pair of unmolested brand new otg y-cables and got the same results. When the tablet is supposed to go to sleep (and it probably is judging by the wake time graph) and is in airplane mode, the hub seems to be drawing power from the tablet. I know this as my usb hub has an indicator LED that lights up when it is getting juice. Not sure if it worked like this before the "accident", I thought the whole point was to cut off power to otg devices when the tablet goes to sleep? Anyway, the hub itself has that LED, and a usb volume dial also has its LED indicator. Both of these combined may dissipate some power, not sure if enough to drain that much off the tablet's battery though.

I still need to test what battery drain looks like when the tablet is put to sleep WITHOUT the hub attached to it. That should give me some idea whether it was the aging battery or not.

cliffs: huge battery drain all of a sudden, not shown in the battery usage stats and no wakelocks left to keep the tablet up. what gives?
[Nexus 7 Android Development] Nilleri:
Hi, and thanks for some great work done here.. I haven't tried to install this yet.. But I wanted to know, is this stable for a in car tablet at this point? Just to be sure also, is every feature from the usbrom implemented or will I miss some features? For example shutdown video and so on?
[Nexus 7 Android Development] mikereidis:
This kernel seems fine.

But, like many others, I find the N7 2012 horrible to use with the last stock Android 5.1.

Sometimes it gets crazy slow and once RAM starts getting used reboots and other bad stuff seem to happen. I tried factory resets with no luck.

I'm about to explore CM or whatever AOSP ROMs are available as I don't want to go back to Kitkat as many people have done.
[Nexus 7 Android Development] Nilleri:
Thank you for your answer, I tried installing and I am using the tablet with xenon HD, sometimes the tablet gets really slow, but so far I can live with that.

Another thing, I have a problem with charging.

When I first insert the usb+otg charging cable it works flawless, but when I cut the power and puts it on again a couple of times, suddenly it won't work. I saw the earlier reply about changing the settings and restart, also taking the cable out and in again.. But since I use this in my car I won't be able to do this.. Is there something I can do about it so it becomes more stable? When I was on usbrom, this was never a problem so I guess this can be done somehow.
[Nexus 7 Android Development] skooter32:
Hey dev is this compatible with mm?
[Nexus 7 Android Development] nexus7car:
Stuck on step 3 (or maybe step 1)

I am stuck on step 3 or maybe step 1. My APK manager says PEM1.8 is installed, but it doesn't show up under quickshortcutmaker, play store, or in my list of apps (like the old PEM did when i used Timur). I am using the stock 5.1.1 and the oxydo kernel listed here on Tilapia N7 2012 3G. Also, I am not getting OTG charging to work with this kernel and the stock ROM.

PS, I have spent about 12 hours trying to get OTG + charging today which I need for my car application.

Thanks
[Nexus 7 Android Development] kiepas96:
which version is the newest/stable? #3?
[Nexus 7 Android Development] Sage:
any plans on when you will release the "Features" is this a Marshmallow kernel?
[Nexus 7 Android Development] sci05:
Stuck on boot screen on cm12. Tried both graphite and non graphite versions
[Nexus 7 Android Development] sara.ramli:
Anybody had luck in making this work with a Marshmallow ROM? Even information on failed attempts should help.
[Nexus 7 Android Development] furious84:
Hi, i tryed To instal the apk, But give me An error about packets. It s compatible with other ROM's like timurs usb rom? Sorry for my bad English i m writing from italy

Inviato dal mio Nexus 7 utilizzando Tapatalk
[Nexus 7 Android Development] reynard80:
Does this kernel work on CM12.1?
[Nexus 7 Android Development] kazimserhan:
does anyone have the link for this kernel with otg support? All the links are down
[Nexus 7 Android Development] canadianclub:
Please

If someone who does have it can please send it our way it would be much appreciated.
[Nexus 7 Android Development] Andy2No:
I downloaded some files from this thread in March, but I don't know if they're the versions you're looking for.

See the attached picture and let me know if you see anything you want.
[Nexus 7 Android Development] kazimserhan:
It doesn't matter, anything is appreciated:) Can you upload all of those files please?
[Nexus 7 Android Development] Andy2No:
Glady. Can you suggest somewhere for me to upload them to?

I could put them in my Dropbox account, but maybe not for long because it's groaningly full. I could put them there temporarily, so people can get them, but if there's somewhere they could stay long term, without me signing up for an account with some dodgy warez repository, let me know.
[Nexus 7 Android Development] kazimserhan:
I have a 1 tb onedrive scholar account, so i could host them till M$ closes onedrive :)

You can send the files to my mail. kazimserhan [at] gmail [dot] com
[Nexus 7 Android Development] Andy2No:
Cool. I've put them on Dropbox, and here's the link:

[Link removed - see the link in kazimserhan's post after this one, instead]

Apparently, they like to give the impression you need an account to download a file, but I don't think you do - you just need to click the right button.

Let me know when you've got them up on your account and I'll delete them from mine. It's one ZIP containing the folder I showed in my recent post - the second part of that picture is a sub folder, so it's all in there, hopefully.
[Nexus 7 Android Development] kazimserhan:
Thanks for the kernels. Here is my Nexus 7 folder. I will try to put everything i have about nexus 7 in here. Hope some of these help nexus 7 owners like me in the future.

https://selcukedutr-my.sharepoint.com/personal/kazimserhan_selcuk_edu_tr/_layouts/15/guestaccess.aspx?folderid=06ef59c568a094ca0ae91f7efa4764873&authkey=AZI0uZeZyKRC-LJw-zMjE3I
[Nexus 7 Android Development] Andy2No:
That looks like a very useful resource, kazimserhan. Maybe you should start a thread somewhere to direct people to it, if you haven't already - I'm not sure where would be best.

I'll be interested to hear if you get OTG working. I'm currently using nAOSP 7.1.something, but if I revert back, it will be to KitKat.

The main thing I need working is a USB Audio input. My Behringer UCA202 (same thing as UCA222) works, but connecting to it is very hit and miss. There doesn't seem to be any consistent way to get the Nexus 7 2012 (Tilapia) to see it, with any ROM I've tried.

There was no official support for USB Audio in Kitkat, of course.
[Nexus 7 Android Development] pride007.2012:
OK, finally I got the time to flash it and wow, you never stop to amaze me. What a kernel ,everything is as fluid as butter. Thanks for the great kernel.

Sent from my Nexus 7
[Nexus 7 Android Development] Finner42:
I noticed this too when downloading directly onto my tablet - it looks like it didn't like the # in the file name so just took that and everything after it out of the file name, including the extension.

I also don't see another .zip inside this, just the file directory, as expected. I'm going to download it again on the PC before I flash though, just to be sure.
[Nexus 7 Android Development] Dark Jedi:
All I did on file manager is click on the zip once it opens I just copy the oxydo-revamp#1.zip and paste it in my download file. Then when in recovery I select oxydo-revamp#1.zip and it flashes fine. Running this on freaks slim lp f2fs ROM and seems to cure the lag I get from time to time. Will give it a few days to see if it cures the lag but so far seems to do way better than the kernel he has loaded. Thanks for the kernel always good to see more devs building for our devices. Shows how our devices are not obsolete like many thinks it is. Soon my son will get this tablet as I go with the N9. Only reason I am doing that is my sons tab2 took a dump and he needs a tablet. This one will serve him well. Again thanks for the work.
[Nexus 7 Android Development] Finner42:
Just installed with a fresh install of latest CM12, but gave me the android password screen... doesn't seem to work with data-f2fs?
[Nexus 7 Android Development] sgt. meow:
Were you on a f2fs setup beforehand? If so, there shouldn't be such a problem.

Oxydo doesn't have its own ramdisk; it creates a ramdisk based on the one already there. So if the current ramdisk is configured for f2fs, oxydo should support f2fs.
[Nexus 7 Android Development] Finner42:
This is data-only F2FS though. I was all-F2FS on the previous rom, but wanted to test a different one that was only available as EXT4, which, after formatting cache and system partitions, I'm now running with phantom kernel, and it boots fine. I'll try again with oxy tomorrow knowing that it does boot, to be sure it wasn't something else. I don't know much (anything, actually) about ramdisks, but maybe it needed to be set by another kernel first, given I changed formats?
[Nexus 7 Android Development] sgt. meow:
It's like this.

1. Be on a f2fs setup with a compatible kernel (LegoKernel for example).

2. NANDROID. Because you never know when you may get yourself in a fix.

3. Flash my kernel on top without changing anything else.