yashsingh1/xdaforums huggingface dataset:
[Nexus 7 (2013) Original Android Development] meshdub:
Exactly! Thanks much!

Ideally, there would be a timeout of 10-30 seconds or so before going to sleep on power loss, to prevent the tablet going to sleep when starting the car (since power cuts off for a few seconds at that moment).

I'll be happy to test it whenever you need me to :)

Much appreciated!
[Nexus 7 (2013) Original Android Development] flar2:
Disabling the touch wake features when the magnetic lid is closed and re-enabling them when the lid is opened sounds like a good idea.

As for the timeout in that tegra N7 kernel, it's for a wakelock that seems to be necessary for dt2w to work. On this device, dt2w works from deep sleep so that is not necessary. I don't want to introduce a wakelock, and I also don't want to load up on too many options.
[Nexus 7 (2013) Original Android Development] SkaDiZ:
Indeed this is the best idea for magnetic cover user.. I have been waiting for this feature since V1.8.. Hope u can introduce this soon :good:
[Nexus 7 (2013) Original Android Development] leo81486:
can u also explain more of the otg host + charging mode plz.

my y cable doesn't work with the flash drive.

it can charge but can't find the flash drive.

thx
[Nexus 7 (2013) Original Android Development] nikr123:
I think he explains it quite well but give it a google before asking... have you got stickmount?and does your flash drive work w/o otg charging?
[Nexus 7 (2013) Original Android Development] leo81486:
maybe my english wasn't good enough.

anyway, for my understanding, he meant Y cable to power ,than to flash dirve, than y cable goes to otg adapter right?

but which Y cable?

the OTG y cable or just the regular USB y cable?

and there's 2 different kinda OTG y cable, one is with 1 femal USB, 1 Male Micro usb, 1 female micro usb.

the other one is 2 x USB with 1 male 1 female n only 1 X Male Micro USB.

that's what i am confusing about.

if u can explain. please.

thx so much.
[Nexus 7 (2013) Original Android Development] crypticc:
FYI this Qualcomm dalvik flashes okay and delivers 20% boost to antutu benchmark.

http://xdaforums.com/showthread.php?p=47631545

20k before the flash completely stock odex ROM, but with elemental 2.1 and stock frequency, GPU, on demand, etc. Only elemental x picked while flashing elementalx. became 24.6k with no other changes.

Reminder while 24.6k isn't massive this is completely stock krt16s except for Qualcomm dalvik

Chris

Edit same with the step just below 1998 Ghz, 390 mhz GPU and fsync disabled. Still on demand governors. This is fifth boot so there maybe some throttling going on here...
[Nexus 7 (2013) Original Android Development] roofrider:
This post should help.

http://xdaforums.com/showthread.php?p=46568466

*You'll need a normal OTG cable.

*A Y - cable with 1 Female USB and 2 Male USB.
[Nexus 7 (2013) Original Android Development] Ronde90:
Hi. I've been running the saber mod unofficial aospa 4.0 builds. I've been using the 1.7 kernel with the wifi fix and everything runs perfectly. However, when I try flashing the new 2.1 kernel, it boots and all but I don't have wifi, even after trying to flash the 4.4 wifi fix; when I go into wifi settings it's frozen on, "turning wifi on. " any ideas why this is happening or how to fix it? Thanks for the help and the great kernel!
[Nexus 7 (2013) Original Android Development] leo81486:
thank u so much....

so it's USB y cable.

not OTG y cable.

:good:
[Nexus 7 (2013) Original Android Development] ezas:
I'd try dirty flashing your ROM (if it doesn't have a kernel)

It's been helping people whose WiFi stops working after flashing a 4.4 ROM.
[Nexus 7 (2013) Original Android Development] Jleeblanch:
This has been a common issue with all kernels and everyone that used the WiFi fix with 4.3 kernels on 4.4 Roms. I believe you need to dirty flash your ROM, then try reflashing the latest kernel.
[Nexus 7 (2013) Original Android Development] AL2000EX:
Is this kernel (new beta) stable enough for daily use?
[Nexus 7 (2013) Original Android Development] dkreventon:
Can anyone confirm that I can use this kernel with a brand new nexus 7 2013 wifi only to connect a huawei usb dongle via otg to have internet?

What about upgrading to kitkat?
[Nexus 7 (2013) Original Android Development] Philaphlous:
Not sure if this is kernel related but my random reboots seem to be from receiving app updates. It seems that I don't receive any app updates, I have my random reboot, then once its loaded, all my apps that receive updates get then right after the reboot....strange...
[Nexus 7 (2013) Original Android Development] flar2:
yes, you should be able to do that

You seem to have a lot of problems with your tablet. I wonder if you have faulty storage or RAM?

You should never have random reboots at stock frequencies and voltage.

If you post /proc/last_kmsg right after a reboot I'll take a look
[Nexus 7 (2013) Original Android Development] Philaphlous:
Can you link me to a guide how to pull it? I always use wugs toolkit for everything if it matters. I get about 1 reboot a day on average.
[Nexus 7 (2013) Original Android Development] flar2:
After the random reboot, when the system comes back, there is a file showing the log messages from the last time you booted into the system. This has to be done right after the reboot (ie, the next boot up)

Go into adb shell and do:

cat /proc/last_kmsg > /sdcard/last_kmsg.txt

and upload it somewhere (eg: Dropbox)
[Nexus 7 (2013) Original Android Development] Ronde90:
Hi. I've tried dirty flashing using every possible combination and order on twrp, as well as fixing permissions and wiping cache and dalvik. Still no luck. 1.8 works for me so I stick with that until the next beta comes out. Thanks for the help though everyone . I appreciate it.
[Nexus 7 (2013) Original Android Development] flar2:
If 1.8 works for you, then clearly you are either using a ROM based on Android 4.3 or an Android 4.4 ROM with the wifi patches

Version 1.8 is for Android 4.3

Version 2.1 is for Android 4.4
[Nexus 7 (2013) Original Android Development] Ronde90:
The rom is definitely 4.4. The wifi patch was already Integrated so when I flashed the 2.1 kernel without the fix it worked perfectly. I was just being an idiot. Thanks again for all the help and the great kernel!
[Nexus 7 (2013) Original Android Development] flar2:
New option to disable s2w/dt2w if you turn off the screen using a magnetic cover. s2w/dt2w will be re-enabled when the screen comes back on.

Download:

ElementalX-N7-2.2

Changes:

-option to disable s2w/dt2w when magnetic cover is used
[Nexus 7 (2013) Original Android Development] Cryptecks:
I know this is highly subjective, and that's fine, but for me and my tablet usage, this is pretty much the holy grail of power and kernel optimization. I'll make sure there's a stocking stuffer in your Paypal soon for this sir, thank you!
[Nexus 7 (2013) Original Android Development] GialanG:
Thanks a lot for your quick response!
[Nexus 7 (2013) Original Android Development] lmulli:
I've never selected the option to disable the magnetic on/off in either version 2.1 or 2.2 of this Kernel, however, it no longer wakes up or sleeps when I open/close the cover.

Easy fix?

Ta
[Nexus 7 (2013) Original Android Development] GialanG:
You made the wrong option. That's the option to completely disable the usage of magnetic cover, it's not the same as the option to disable dt2w/s2w when magnetic cover is on, which only appears since 2.2. IMO the option to disable the magnetic cover is useless, I see no reason to use it :D
[Nexus 7 (2013) Original Android Development] SkaDiZ:
Thanks a lot :good:
[Nexus 7 (2013) Original Android Development] lolwatpear:
Will this somehow become available for the nexus 7 straight from google? Also, is this better than using art?
[Nexus 7 (2013) Original Android Development] rifraf1:
Could you make a boot.img file of your kernel available for download? Those using the multirom utility can not install the kernel, all the supporting files get flashed it is just that the kernel fails to get created. It looks as if the boot.img and newboot.img files in the /tmp folder are exactly the same after the aroma process ends.

Just wondering. :o
[Nexus 7 (2013) Original Android Development] GialanG:
I'm running this kernel on both internal (stock 4.4) and secondary rom (CleanRom LE 2.1), installed with zip files and don't share kernels, both are working flawlessly
[Nexus 7 (2013) Original Android Development] unknownyello:
Just flash this on top of 2.1 and now my conf is empty. Both conf in etc and etc/init.d are showing 0 bytes. Reflash the kernel again didn't work. It seems the kernel did installed though as I can s2w and dt2w. Any suggestion guys?
[Nexus 7 (2013) Original Android Development] GialanG:
It's the problem with secondary roms, shared kernels
[Nexus 7 (2013) Original Android Development] unknownyello:
Sorry. Should have clarify. I'm on psx. Not the multi Rom
[Nexus 7 (2013) Original Android Development] wd5gnr:
This does not work for me either. The flash appears to work but did not change the installed kernel. Other kernels work.

However tonight I just changed my default to 4.4 and 2.1 so...
[Nexus 7 (2013) Original Android Development] Th3Dictator:
Hey, can I use this kernel on a stock 4.4 which is rooted? (KRT16S)
[Nexus 7 (2013) Original Android Development] Mayday_XL:
Yes you can.
[Nexus 7 (2013) Original Android Development] bossman137:
Excellent rom

FIrst, thank you so much for the rom. I'm doing a car build and without your work it woudl have been much more difficult and featureless.

One questions. simultaneous OTG+charging is obviously the most important feature for me. Problem the power goes off (as it does when car is turned off) and is turned back on, neither otg nor charging works. I have to unplug the y cable from nexus 7 and plug back in.

the search function on xda isn't working properly for me, so i appolagize if this has already been covered.
[Nexus 7 (2013) Original Android Development] bossman137:
Update

checked sys file, is indeed enabled Y
[Nexus 7 (2013) Original Android Development] crypticc:
Probably not. Propriety binaries ripped for dalvik for the Qualcomm SOC from moto x. Better than Art? quite possibly this dalvik is and definitely if you like to flash or have loads of apps.
[Nexus 7 (2013) Original Android Development] Th3Dictator:
And would I be able to use ART, because slimkat 4.4 tells you not to use ART?
[Nexus 7 (2013) Original Android Development] apap:
My battery does not charge past 93%. Someone told me this is a glitch with some kernels that undervolt. Is there a fix or should I just get used to 93 as full battery? Thanks
[Nexus 7 (2013) Original Android Development] bokagavrilov:
You have probably enabled battery extender in the setup for the kernel
[Nexus 7 (2013) Original Android Development] lmulli:
Perhaps I was misunderstood, but I did NOT select the option to disable the magnetic on/off so by my reckoning it should still work, but it doesn't. Of course I have also tried it with the option selected just in case for some reason it was reversed but still no joy.

Its not going to cause me to lose sleep, was just wondering if anyone had a fix for it. And for what it's worth, I agree with you completely in that I see no reason why someone would want to disable the magnetic on/off but I guess that's the beauty of Android - Options, there's always options :)

Thanks for the reply anyway.
[Nexus 7 (2013) Original Android Development] deathmouse:
Do you have plans to fix the availability of CIFS mountpoints to all apps?
[Nexus 7 (2013) Original Android Development] flar2:
I'm not sure what I can do about that with the kernel, I think it's an android issue. I'll read up on it and see.
[Nexus 7 (2013) Original Android Development] flar2:
works for me
[Nexus 7 (2013) Original Android Development] aresbv2000:
Sorry for asking...but for usb 3g dongle to work is there something to do before connecting it to micro usb port?like a setup or something.Or just connect it and you'ready to go?
[Nexus 7 (2013) Original Android Development] flar2:
You need a certain app to make it work, can't remember what it's called. PPP Widget or something.

Someone else might know.
[Nexus 7 (2013) Original Android Development] aresbv2000:
yes...maybe someone knows the name of the app.would be great because i'm gonna leave the town for a few days an my tablet supports only wi-fi....no 3g,lte...:(

thanks for your kernel and for your hard work.
[Nexus 7 (2013) Original Android Development] GialanG:
That's the correct name
[Nexus 7 (2013) Original Android Development] aresbv2000:
I found it on google play store....but it's not working.FC's.Any other solutions for Nexus 7 Wi-fi to connect via usb 3g dongle?
[Nexus 7 (2013) Original Android Development] bossman137:
Bump
[Nexus 7 (2013) Original Android Development] treyweez11:
Hey guys I'm new to the kitkat kernel flashing. C can this be used with AOSP? DJL Kangs?
[Nexus 7 (2013) Original Android Development] apap:
Thanks. Yes I have...so does that mean that 93 will be my new 100 as long as I have battery extender enabled?
[Nexus 7 (2013) Original Android Development] leo81486:
What kind of y cable r u using?

mind share u whole wiring set up?

cause this kernel doesn't work the way Tim's kernel is.

It's. A hack,u will need something different than the otg y cable.
[Nexus 7 (2013) Original Android Development] bossman137:
http://www.amazon.com/gp/product/B009YPYORM/ref=oh_details_o06_s00_i00?ie=UTF8&psc=1

Ya I read a bit about people having a bit more success with something else. Mine works perfectly well until I unplug the power and plug it back in, then it no longer recognized keyboard
[Nexus 7 (2013) Original Android Development] leo81486:
That doesn't work with this kernel.

As i mentioned, it's. a hack build.

Flar mentioned aswell.

U will need a usb y cable which is 2x male usb 1x usb female,

Than a regular otg adapter which is just usb female to 1 micro usb male .

Connect the otg to tablet, y cable to the power source, femal usb connet to the flash drive.

Than connect to the otg adapter.

I haven't test it out,i am still waiting for all the cables to arrive,i will report back later when i get it n tested it.
[Nexus 7 (2013) Original Android Development] bossman137:
Hmmm... weird... ok i'll send off for one too. I can't see how this would make a difference, except maybe that this is the hardware setup flar developed for. Ya keep me posted! thanks mate
[Nexus 7 (2013) Original Android Development] cunn8780:
Yep, 93 is a full charge with the battery extender enabled.
[Nexus 7 (2013) Original Android Development] Co.Tibi:
Does anyone have problems with OTG USB support? I'm on a stock ROM (the last official update) with stock recovery and all that. I flashed the last update today and tried to connect a flash drive (NTFS formatted) and it did not recognize it. I than formatted it to fat32 and plugged it back in and this time I could access it but when I tried to play any of the files on the flash drive it fails to do so.

Edit: Never mind, It worked... It seems like StickMount isn't as stable as advertised. You get different behaviours each time you plug a flash drive in.
[Nexus 7 (2013) Original Android Development] vcallas:
Yes works great with the DJ 4.4 ROM.
[Nexus 7 (2013) Original Android Development] Jonnyredcorn:
I was running 2.0 at the time I believe and my tab would stop charging at 93%. Reflashed my ROM and am gonna see with stock kernel if it happens. Was wondering if anyone else experience this.
[Nexus 7 (2013) Original Android Development] Saythis:
You must have checked the "Battery Life Extender" option which lowers the batteries voltage and thus reduces the maximum charge from 100% to 93%.
[Nexus 7 (2013) Original Android Development] bossman137:
Not to complain, merely to observe, but the otg seems to be spotty all around, was it a little more stable in the 4.3? I hopped on board post kit kat release.
[Nexus 7 (2013) Original Android Development] capu81:
FTDI and D2XX serial driver modules

Can you insert support for FTDI and D2XX serial driver modules in your kernel? I've a CanUSB for CANBUS code read and i need this drivers for my device.

more information here: can232.com/?page_id=16

Thank you

Ilario
[Nexus 7 (2013) Original Android Development] katsooba:
does the ElementalX2.2 work on android 4.3?
[Nexus 7 (2013) Original Android Development] GialanG:
No, only version 1.8 or before works with 4.3
[Nexus 7 (2013) Original Android Development] BFirebird101:
So what kind of battery drain will the average user experience having sleep to wake, wake to sleep, and double tap to wake enabled? I have a magnetic lid, and have the option enabled to shut off with lid closed, and the option to turn off those things when the screen is turned off using the power button. Basically all the defaults.
[Nexus 7 (2013) Original Android Development] GialanG:
On my N7 it's ~1%/h without turning the features off
[Nexus 7 (2013) Original Android Development] leo81486:
:p:p:p:p
[Nexus 7 (2013) Original Android Development] Katana1234:
hey flar2,

are you able to add otg usb webcam support to this kernel?

thx
[Nexus 7 (2013) Original Android Development] GialanG:
... And your N7 will last for 1h only :D
[Nexus 7 (2013) Original Android Development] Katana1234:
thats not a problem cause this kernel supports OTG-Y-cable charging while using the otg devices :)

i'm sorry for my noob-questions :D are these settings set in this kernel?

CONFIG_VIDEO_DEV=y

CONFIG_VIDEO_V4L2_COMMON=y

CONFIG_VIDEO_MEDIA=y

CONFIG_USB_VIDEO_CLASS=y

CONFIG_V4L_USB_DRIVERS=y

CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y

copied from:

https://bitbucket.org/droidperception/simplewebcam

my webcam is correctly recognized in my device but i cant use it... the obove page said these settings must be set...

thx!
[Nexus 7 (2013) Original Android Development] GialanG:
Sometimes the cover is closed but dt2w... still works, I see that by the battery trend. I'm examining when and how.
[Nexus 7 (2013) Original Android Development] cobyman7035:
How do I go back to stock so I can take the 4.4 OTA but I can keep my data apps same? Thx

Via Google voice Δ |\|€×u$™ 7 FHD on Tapatalk²
[Nexus 7 (2013) Original Android Development] Katana1234:
try nexus root tookit. go advanced and restore orignal recovery for OTA, after OTA you can flash the new custom kernel again

http://www.wugfresh.com/

it will take you through all necessary steps...
[Nexus 7 (2013) Original Android Development] cobyman7035:
i might have to claim warranty on my nexus 7 fhd, the left speaker is blown i think! too many loud sound mods, the headphone jack works fine and the bottom right speaker is fine but the left one is all static and distorted...maybe i should open it up and clean?
[Nexus 7 (2013) Original Android Development] Katana1234:
please ignore these posts. my problem seems to have a complete other source...

---------- Post added at 06:08 PM ---------- Previous post was at 06:01 PM ----------

personally, i wouldn't... uncarefully opening the n7 might break the case. send it back to google ;)
[Nexus 7 (2013) Original Android Development] konradsa:
This is a really cool feature, thank you so much. Can you please clarify whether closing the magnetic cover also disables s2w/dt2w when the screen is already of, or does this only work when the screen is still on?
[Nexus 7 (2013) Original Android Development] flar2:
Can you describe how I can replicate this situation?

I haven't checked for sure, but I think this only works if you turn the screen off with the magnetic cover.
[Nexus 7 (2013) Original Android Development] Marjuuus:
Installed kernel, when rebooting all colors get messed up, and tablet get laaggy ass he*ll.. What's wrong? Running cm 10.2 android 4.3.. Appreciate all help! :)
[Nexus 7 (2013) Original Android Development] bokagavrilov:
You have your answer "running cm" look for color fix or change rom one that's not cm based also if you installed 2.2 that's for ktikat
[Nexus 7 (2013) Original Android Development] Marjuuus:
So this kernel dont work with cm? Sorry for newb questions :p
[Nexus 7 (2013) Original Android Development] bokagavrilov:
It's vice versa it's cm that isn't compatible with this kernel they are the only in the world that use the caf sources or what ever it's called and not the aosp sources. And that breaks the compatibility with aosp based kernels
[Nexus 7 (2013) Original Android Development] Nedlinin:
Cross posting here from the Glitch kernel thread as it affects both kernels.

--

I'm looking at permanently installing my tablet into my car and have found what appears to be a few minor bugs in the kernel.

I've created a USB-Y cable and have the power coming from a wall wart. The cable then plugs into the hub on one side and the other plugs into an OTG adapter and into the tablet.

The bugs:

A) If I boot the tablet up and plug all the power into everything then plug the OTG adapter in, everything works great. However, if I plug the OTG cable in THEN boot the tablet, the tablet only seems to detect the hub but doesn't try to draw power.

B) If I plug the OTG cable in after everything is powered, things work great. dmesg of a working plug in: http://pastebin.com/jsHf726G

However, if I disconnect the power (I literally am flipping the power switch on the power strip that the hub and Y cable are plugged into..) then try to turn the power back on only the charging portion of the USB connection works. dmesg of power off then power on ~10 seconds later: http://pastebin.com/u9SFK3fB

The big thing I notice is that when plugging in the first time we get "<6>[38569.211303] The USB cable status = CHARGER_SDP" but after turning the power off then back on at the wall I get "<5>[39386.050933] smb345_charger: [usb_cable_type_detect] AC cable detect, disable wpc_pok, disable DCIN" and "<6>[39386.251220] The USB cable status = CHARGER_ACA"

If I disconnect the OTG cable from the N7 and then plug it back in ~3 seconds later it redetects everything once again and all works well.

Any thoughts? I'm hoping you'll have an idea of where to start. I'm a coder but have never touched kernel work... However, I'll be digging into this myself soon if you don't think you know the fix. Hoping you have some valuable insight!

EDIT: In the same line of questions, are you willing to share you defconfig?
[Nexus 7 (2013) Original Android Development] bossman137:
I posted about this earlier. I've experienced the EXACT problems and want to do a permanent car install as well. I and many others would be extremely grateful if you nailed this, i'm holding off on my install for this bug.
[Nexus 7 (2013) Original Android Development] leo81486:
So that means everytime u dismount the flash drive,u will have to dismount the y cables n power n everything inorder to make it work again?

Thx
[Nexus 7 (2013) Original Android Development] GialanG:
That's it, [MENTION=4684315]flar2[/MENTION]. If the screen is automatically off after timeout, the features still work and N7 won't receive the command to temporarily turn off the features when the magnetic cover is closed. So the turn-off feature only works if the cover is closed during screen on
[Nexus 7 (2013) Original Android Development] bossman137:
No the key is disconnecting the power. I can romove my USB device (be it mouse keyboard flashfrive) and plug it back in and it be just fine. But as is the case with a car the power supply will go on and off with the car (as you don't want a direct connection to the battery, major drainage) and so I was recreating that occupancy by plugging and unplugging my power source from wall and when it's plugged back in one of the two (charging or USB devoce) doesn't work
[Nexus 7 (2013) Original Android Development] leo81486:
So this mean.thos function doesn't really works it should be.

Cause the car power had to go on/off eventually.

Anyway.

Hope flar2 can fix this.

Or a wireless charge might work.