yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] _crue_:
I'm also using Tasker, if not there weren't Tasker plugin functionality

No conflicts at all.

If you are using some special tasks that locks your tablet and prevent going to sleep, it actually all up to you.

all this is kernel functionality,

detecting power plug/unplug, turning screen on on power on, turning on USB DAC etc.

my app only operating only with ROM actions,

if kernel will not wake up tablet app doesn't work.

2 simple actions, power on, power off.

I would like to fix, but I have no such issues

I'm using stock ROM with kangaroo kernel.

And write this app exactly for stock ROM because I want stay on it (for now).

So, don't you thing that after clear install of all, you got no issues?

I'm noticing in my app no ROM related code, just implemented UI for kernel features.

firm sleep - kernel feature for deep sleep. working independent from other.

fixed mode - used to detect in my app does it need to put tablet in sleep on power loss or not, also kernel used it for something.

Wow, exactly plug / unplug micro usb is a true power actions (or supply from power network)

this is how it works in fixed install mode.

and the main idea of fixed install mode, that you can operate only with AC power on/off. no power button etc.

so first of all

you have to write how you expect it will works.

next I will tell you how it doesn't and or will add this in app or not, depended on usability of functionality you asked.

actually powereventmgr works with screen event, but only if fixed install mode = 1 and you put table in sleep manually, from app or taker.

then you could press power button and it will restore back all stuffs.

if fixed install mode = 1 and tablet loss external power, then powereventmgr will restore all stuffs only on external power on.

This done in such way because for listening screen event powereventmgr have to run special service, and this is unwanted

when using it with true fixed install mode. No need to eat more system resources.
[Nexus 7 Android Development] gregthomas129:
This is a known issue with the Nexus 7. Sometimes, for reasons nobody seems to be able to track down, it won't be able to detect charging at all. I've had this happen on numerous occasions no matter what rom or kernel I'm running. A couple of reboots, a few minutes of time and a couple of power cycles (unplugging and re-plugging the charger) and it comes back. It's not a ROM, kernel or powereventmgr problem.
[Nexus 7 Android Development] jimmng:
Lol. Nexus 7. Sigh. Looks like I'll have to buy an ipad mini :(

Really thought switching to android would impress me.
[Nexus 7 Android Development] _crue_:
this is driver issue, and there is a fix for that it should be in next kernel update
[Nexus 7 Android Development] gregthomas129:
For the "not charging" problem?

---------- Post added at 05:54 AM ---------- Previous post was at 05:50 AM ----------

Yeah well hacking any device to make it do things it wasn't intended to do will bring out bugs... whether its Android or IPad.
[Nexus 7 Android Development] _crue_:
yes, iif this the same issue as I think.

http://xdaforums.com/showpost.php?p=50371448&postcount=441
[Nexus 7 Android Development] jimmng:
nice! I'd probably hold out a bit then, before buying an ipad lol
[Nexus 7 Android Development] _crue_:
try [MENTION=5061970]NetFluke[/MENTION] kernel there it should be fixed already
[Nexus 7 Android Development] jimmng:
yeah but I beg to differ due to apple being really simple, the jb apps are also more light weight thus less bugs occur ( usually ). That said, apple jb apps are much more simple and have less functions.

Activator for iphone/ipad is the equivalent to Tasker that we have, good read to see the difference between the two systems.

side note: I like to be a bit diverse in what os' I use. Using a Surface 2 (awesome!), iphone and nexus 7 :P

---------- Post added at 10:06 PM ---------- Previous post was at 09:59 PM ----------

is there a name for that kernel....?
[Nexus 7 Android Development] _crue_:
Please check his topics.
[Nexus 7 Android Development] redeyedjedi:
Yes, I am working on update right now, to help with some of this. Some things to note. The way the code is written, you can ALWAYS detect power loss, power restored with an otg y cable...but in deep sleep, it wont detect power restored with a regular usb cable. If you are charging with an otg y cable, it will go to deep sleep while charging...but not with a regular microusb cable. I am testing netflukes fix, which for me it does allow the tablet to go into deep sleep while charging.

with respect to the tablet NOT DETECTING power from deep sleep. If "firm sleep" is enabled, then only power restored from an otg y cable will reliably wake the tablet. the normal rom function that can wake tablet on power restored, involves using a wakelock that is blocked by the "firm sleep" function. however, sometimes with firm sleep disabled, the tablet will not wake up on power restored with a regular usb cable. this is another issue I am woking on, but there is no fix yet.

I should state, for the record, that I personally have NO issues with my tablet waking up from deep sleep, while using an otg y cable. this is regardless of whether I am using powereventmanager or not. I think crue is saying the same thing...although he has a sleep of death issue when using a regular usb cable and the stock 4.4.2 rom. I believe this is a permission problem in the stock ramdisk.... I have not had a single other person say they have this problem, but no one else says they are using a stock rom either.

I also thought there was someone else having an issue with the tasker function, but crue fixed it. So, make sure you are in fact using his newest version.

Again...I will have in a day or so, a release to test certain fixes... but not specifically for "power detection from a regular usb cable while in deep sleep." Im still not sure if this is a problem, or just an unavoidable result of the code being used for controlling otg mode while charging and detecting power from an otg y cable. If I "fix" this problem, it may render other functions useless. I STRONGLY advise the use of an otg y cable for fixed installs, if not for all uses of this kernel.
[Nexus 7 Android Development] jimmng:
has anyone heard of the issue where usb dac doesn't power on after screen lock/ deepsleep?

is it a kernel problem or rom or what?

I've been having that problem a lot lately.

---------- Post added at 07:06 PM ---------- Previous post was at 07:00 PM ----------

is it this http://xdaforums.com/showpost.php?p=50417390&postcount=499):&nocache=1&z=2258619315423044 ?

or faux?

If i dl the one from that link do I have to use it with cm11?

sorry im a hardcore noob
[Nexus 7 Android Development] redeyedjedi:
Please don't refer to something as "the issue" if you are the only one experiencing it. People will get confused. If set up correctly, all devices attached to USB will be re-detected when waking up from deep sleep. A DAC, an easycap, a webcam, a flash drive, a TV tuner have been plugged into mine at the same time, and all are detected after sleep, without unplugging any chords and without rebooting tablet.

You either don't have enough power, or the right cable, or a rom issue....because no one else is having these issues. In fact, some users have stated that detecting devices after deep sleep is actually MORE reliable than usbrom.

Instead of just calling something an issue.......include a dmesg or logcat that actually shows an error/ so I can help you fix it.

That other kernel will work....doesn't have DAC on boot, or firm sleep....but it will work.
[Nexus 7 Android Development] jimmng:
If you actually read through ALL pages of the posts on nexus 7 car installs there are many accounts where the dac doesn't turn on after system lock / deep sleep

I will upload a logcat or dmesg soon when I get home from uni today.

Btw, what kernel and rom are you using?

Thanks.

Jim.
[Nexus 7 Android Development] gregthomas129:
He's the kangaroo kernel and rom dev and original poster in this thread... which ROM and kernel do you think he's using? Lol!
[Nexus 7 Android Development] jimmng:
Awkward. I thought crue replied
[Nexus 7 Android Development] svs57:
Does exist application for kernel configuration?

Or may be explanation of /sys interface?

How can I see current charging?
[Nexus 7 Android Development] _crue_:
Sorry I didn't see your question,

I'm using kangaroo kernel and stock rom.
[Nexus 7 Android Development] Mugga:
[MENTION=5546006]_crue_[/MENTION]

If I'm not mistaken, you got some experience with arduino boards, maybe you have an idea:

When my arduino is connected to the nexus before it's waking up from sleeping or when I'm booting, my 3G breaks! It just says "No service" and baseband says "unknown". I think that has something to do with the serial firmware on the arduino. On the other hand, when I'm connecting the arduino after the nexus was done with booting/waking up, everything is working fine.

Do you got an idea how I can fix that?
[Nexus 7 Android Development] _crue_:
are you sure this is Arduino issues?

Sounds very weird.

3G - external, internal

Could specify more details :) what Arduino board used?
[Nexus 7 Android Development] Mugga:
Oh, that was fast :D

It's definetly the arduino which is causing that problem. I got exactly the same problem with all my 3 arduino board (uno, leonardo, leonardo mini).

3G is internal (tilapila 3G Nexus).

I got the same behaviour with Kang-aroo Kernel and with timurs usb rom.

This is soo annoying because, 3G is only working after I'm doing a reboot with arduino disconnected.
[Nexus 7 Android Development] _crue_:
I don't know what it could be. You have to get logcat of this. then we could try to find a reason.
[Nexus 7 Android Development] Mugga:
Ok, here are the logcats:

View attachment logcat_with_arduino.txt

View attachment logcat.txt

One with arduino connected at boot and broken 3G.

The other one without arduino connected at boot and working 3g.

At the moment I got timurs rom installed. I'm right now installing redeyedjedi 3g rom with his latest kernel.
[Nexus 7 Android Development] _crue_:
I din't fine someting special, do you have any tasker events on usb sevice connect?
[Nexus 7 Android Development] Mugga:
Just had a USB Storage device event set-up. But for testing I disabled tasker. Nothing changed.

But here is another interesting log, with redeyedjedi 3g rom (purity_tilapia_ota_2014-02-26):

View attachment 2014-04-11-11-32-18.txt

When I'm booting the tablet with arduino connect, 3G is disabled. Same as before. The weird thing is when I'm now removing the arduino with tablet still "on" and waiting approx. 20seconds, mobile data is getting re-enabled automatically.

This happens around this line:

04-11 11:32:09.880 D/MobileDataStateTracker(534): hipri: Received state=CONNECTING, old=DISCONNECTED, reason=dataEnabled
[Nexus 7 Android Development] _crue_:
maybe [MENTION=4035939]redeyedjedi[/MENTION] could say more
[Nexus 7 Android Development] Mugga:
Ok, did some more researching. When I connect the arduino after finished booting, eventhub says: New device..... path=/dev/input/event3

And everything is working.

When I connect the arduino at boot time, and 3g is disabled, eventhub say: New device..... path=/dev/input/event2

Don't know if this info could help.
[Nexus 7 Android Development] svs57:
Do anybody have issue that N7 switches off but battery level is big enough?
[Nexus 7 Android Development] _crue_:
it's not switched :) try to connect it to PC

but it's not accessable

we reported here already about this issue
[Nexus 7 Android Development] svs57:
It is interested that if I full charged and reboot N7 then the issue disappeared.

N7 sleeped 6 days and I can wake up it without problem.

But if I use it for a while then the bug appear again.

Looks like SOD (Sleep Of Death)
[Nexus 7 Android Development] _crue_:
yes it is.
[Nexus 7 Android Development] Mikey:
Link is dead :(
[Nexus 7 Android Development] Rage2:
http://rghost.ru/51545088 please :)
[Nexus 7 Android Development] WeeBo:
Hi there, I was wondering if the carl9170 driver could be buiult as well for the ath wifi drivers. its under Linux Community under Atheros.

Thanks so much for so many modules, yet thats the one I;m missing\

TIA
[Nexus 7 Android Development] svs57:
Development of the project is still going on?

When will the new version?
[Nexus 7 Android Development] dn*:
I'm looking to do a N7 2012 car install. I have the Y split OTG cable for simultaneous USB audio to DAC and for charging.

Is this the kernel for me?

I want to run stock 4.4 with this one top. Is there something more suited to my needs?
[Nexus 7 Android Development] Mikey:
Both are dead.....thanks anyways :)
[Nexus 7 Android Development] Rage2:
No, both live links.
[Nexus 7 Android Development] 3andala:
[MENTION=4035939]redeyedjedi[/MENTION] any update will come soon or the project dead ?!

thanks in advance

GJ bro :)
[Nexus 7 Android Development] MetalMan2:
His profile is showing that his last activity was on March 28th. Hope he's doing alright!
[Nexus 7 Android Development] 3andala:
yeah seen wish that too :)
[Nexus 7 Android Development] Dirtylarry11:
how to show video?

I understand a picture or a video can be used with the event manager when I hit the power button to turn off scree, but where do I implement this? I have the videos to do it, I just need to know how to apply it? Thank you
[Nexus 7 Android Development] _crue_:
in settings you able to select a file, video or image
[Nexus 7 Android Development] Dirtylarry11:
hmmm..

I dont see that anywhere...maybe a screenshot or something? Pardon my lack of knowledge here...hahah...thank you so much
[Nexus 7 Android Development] _crue_:
[IMG="SCREEN"]http://dl-1.va.us.xda-developers.com/2/9/4/0/7/6/9/Screenshot_(09-15PM__Sep_17__2014).png?key=bh_VhDL1hxgBxaWMcdc73w&ts=1410977932[/IMG]
[Nexus 7 Android Development] Dirtylarry11:
TY!!! Interesting though, I dont have that option..I am using version 1.6...maybe I have an older version ? Where can I get this one at?
[Nexus 7 Android Development] _crue_:
its built-in in ROM
[Nexus 7 Android Development] Dirtylarry11:
I just found it...but it was weird, I had to tick a setting in the kernel settings to get it to show up...not sure exactly what I did but I see it now....lol..Thank you so much!!!

So when does this video play? Id like it to play when i use the power button to turn off the screen...
[Nexus 7 Android Development] shantur:
Anyone facing sleep of death?

I am unable to wake up my N7 at times with this kernel. Have to hold power for 10 secs to reboot.

I am using this on Stock 4.4.4
[Nexus 7 Android Development] rans0m00:
Has happened a couple of times for me... Maybe 5... For how many times it wakes up I would say it happenes extremely rare.
[Nexus 7 Android Development] kam1kazze:
I have just mounted my nexus 7 2012 on my car...

this Kernel is what I have need, but I have some questions, if anyone can help me:

1- Are there some alternative to this kernel? This project seems dead, and with new Android L (released soon) I would like upgrade. What I need it's only OTG+Charging

2- Power Event Manager: where can i find last release? And more important, where can I find some description for app options?

3- Anyone know how can "merge/expand" usb key and internal memory of Nexus 7, something like UnionFS or Aufs

I know are a lot of questions, sorry.

And thanks in advance!
[Nexus 7 Android Development] _crue_:
all moved here http://xdaforums.com/showthread.php?t=2789993&goto=newpost
[Nexus 7 Android Development] unknownprotocols:
That project is dead too.
[Nexus 7 Android Development] redeyedjedi:
this project is not dead. It reached a high level of stability for android 4.4.4. There has some been frustration because of those who don't get what android is about ...but I have always done this as a hobby in my spare time because I want to learn more regardless. I was working on a new app for easycap devices, but without hardware accelerated encoding our 1.3 ghz ARM cannot handle simultaneous raw capture, encoding and compression, software decoding and simultaneous live streaming. I actually custom built an ffmpeg for our tablet and in my tests i got about 2 fps MAX. on my note 2 it was about 13fps, so it has come down to lack of hardware resources. There is a way to do it with hardware acceleration but it would require someone with hardcore libstagefright skills.

This kernel will be updated for android 5.0

otg while charging will still work, but all timur usb audio stuff will get removed in place of stock google lollipop which means working audio, and mics as well!!!! I need time, but it will get done. Im not sure about firm sleep, it may not even be needed anymore. lollipop introduces "batch wakeups" which means that instead of every app causing a wakelock whenever it wants, instead the system will queue wake requests into batches, and once there are enough requests, it wakes the device, runs them all as a batch, then goes back to sleep. this means there are minimal wakeups while device is in deep sleep, and standby times for lollipop have been as high as 300% over jellybean on some devices. Also, I am about to post some new drivers and detailed info for watching live tv on the nexus 7. It works great and can even pause/record. It is a complicated setup but worth the effort.

this uses new drivers which are practically bleeding edge from linuxtv.org there are also new drivers for all easycap devices.
[Nexus 7 Android Development] redeyedjedi:
double post
[Nexus 7 Android Development] vovaxxxx:
do you mean dvb broadcasting? It works... here http://www.geniatech.com/pa/t230.asp

there discuss http://4pda.ru/forum/index.php?showtopic=569783

an analog which work w/o any driver or other effort with tegra 3 neon.
[Nexus 7 Android Development] chismay:
hey guys sorry to just jump in with this probably previously answered question but 66 pages is hard to search lol is there anything particular i need to do to enable usb wifi antenna? if i boot kali nethunter and plug in the antenna it automatically uses it in terminal under wlan1 however if i try to connect to net it automatically uses the internal bc wifi , was hoping this kernal would allow the kali net hunter plus other android stock roms such as 4.4.4 to be able to switch to using the wifi usb as default.

its a RTL8188CU , but in kali terminal its shows as wlan1 rtl81892CU And works for wifite moniter.
[Nexus 7 Android Development] unknownprotocols:
I apologize, I am learning all of this myself. I wasn't meaning to call your project dead. Just AutoDroid. Sadly... Had a N7 2012 laying around, find autodroid, spend another $400 on parts (Dac, equalizer, etc) to build myself an awesome in car system, and then the dev of that rom gets an upgrade and decides to cease development of that rom. Good for him. I totally get it, and don't fault him or you for having a life, and especially not for upgrading. I really don't have enough time in the day either, and have plenty I'd rather do than code. I'm just irritated because I am having more trouble than I expected in learning ubuntu+github merging commits on my own. I need to hire a tutor to teach me how to build a rom myself.

Thank you very much for your efforts. This is all awesome news. I had been eagerly awaiting lollipop on the n7 because of the built in dac support. AutoDroid worked, but after a while (2 weeks-a month) it would stop routing audio to the dac. The only solution at that point was a factory reset... after 4-5 rounds of that, I was super ready to update. Of course, then I discovered the n7 2012 has this no audio bug. It made me grumpy.
[Nexus 7 Android Development] DANOFDANGER:
Hey redeye,

Iv been trying for days now to get this to work on any rom, iv been using stock 4.2.2 as i cant get the dac patch to work on any other version.

However after installing the patch it doesn't to appear to have worked. Is it required to have the power manager FI enabled ?.

Also does it matter if you flash the roo kernel before or after.

Cheers.
[Nexus 7 Android Development] rapid_rabbit:
Newbie here!

First thanks for your hard work and enthusiasm. I am new to the android dev scene (mostly used stock devices) but I've been using gnu/linux for quite long. Fortunately stopped compiling my own kernels back in the Slackware/Suse days when modules were slow but i have some idea about the process.

I'm currently trying to get stable running grouper with stk1160 mainly for gps and reversing camera. I've successfully made it work with your kernel (or timur + modules or stock + modules) but the picture seems a bit strange (interlaced) and carcam_1.4bbb is unstable as hell. Can you please post some tutorial for you easycap drivers workflow? I would like to compile my own kernel without the rest of the hacks. Imho for car usage we don't need all the overclocking or the different governors (easycap + otg/(possibly even slow)charging is enough for me).

Maybe the best approach (as you mentioned) would be to get lollipop as it has most of the things already there so we only need the easycap drivers.

The other topic - carcam_1.4bbb - this is practically unusable. We should be able to use some decent player (vlc has v4l2 support under linux but couldn't find anything for android apart from some patches which are disabling it under some conditions). The other option which i believe you are trying too is to get ffmpeg to stream the v4l2 so another player can be used however latency will build up even if streaming raw input.

From what i read franco kernel / m-kernel is quite popular, maybe it is better base kernel than 'bricked-grouper-3.x' ?
[Nexus 7 Android Development] dadoreverend:
f2fs support

Can someone tell me if is in progress some kind of f2fs support?
[Nexus 7 Android Development] Tengis:
Download links only give me a 13kb file...

Tried the download again and it was fine today. Im also interested in F2FS support...
[Nexus 7 Android Development] DarkN3ss61:
I installed but my 2 DAC's aren't being detected. The lights light up but sound still comes out of tablet. Do you have any ideas on how to fix this?
[Nexus 7 Android Development] zs77706:
i am running Timurs USBROM with Android 4.2.2

can i flash the v2 kernel? because it is 4.3/4.4...
[Nexus 7 Android Development] mag16:
Hi All!

Need help. I've got a brand-new brick from my grouper charged with autodroid 1.2 and latest kangaroo v.2.

I had installed kangaroo over Autodroid 1.2 and was testing the fast-charge function while connected through a Y-OTG to a D-Link USB hub with a stick, easycam and DAC in it. All this time it was playing music through DAC. The hub was powered from the tablet as well.

The tablet was draining continuously. The amp.meter showed ~0.75-0.90A supplying from the wall, but if I was opening the battery settings, it was falling to 0.20-0.40A. Strange behaviour, isn't it?

While testing in that environment, the tablet was warm in the left side (I guess the battery is there along with it's controller).

At a moment music stopped playing, and the battery is off. It won't charge by OTG neither by normal cable - amp.meter shows 0A going to tablet. Of course, ADB doesn't see it. Any ideas?

So, does anybody know why this happens: grouper with Autodroid 1.2 and Kang v.2 on it while connected through a OTG-Y to wall charger and D-Link hub (with a couple of devices in it) shows "Charging (AC)" but the percentage is not changing or is slowly decreasing? Voltmeter shows ~5.1 V and most of time ~0.42A. Finally it may completely drain the battery while the percentage will show the same 30-40%.

BTW, when I first plug N7 to the OTG it shows up to 0.90A but if I enter battery settings it falls down to 0.20-0.40A and stays there. Why this?

P.S. I had found that the tablet in my case gets hot because of the chipset.
[Nexus 7 Android Development] ericvincent:
Is this still available? The files I downloaded appear to be missing quite a bit of stuff. I was expecting something much larger than 45 mb.

Thanks,

Eric