yashsingh1/xdaforums huggingface dataset:
[Thinkpad Tablet Android Development] jorge.aragon:
Hi Krook,

not broken. It´s just not there. No options at all. It should be there in parallel to mobile networks and VPN

(that is how it is arranged on all other devices and the original Lenovo ICS for the K1)

So if the option is missing you cannot activate it at all.... 8-(

Cheers, Jorge
[Thinkpad Tablet Android Development] vitoski:
Krook I love the latest version of Jelly Bean rom you have made. Yesterday I had a couple of hours with it and did not notice any single problem.

There is one thing that I would like to ask you... Is there any chance to make HOME button to wakes the tablet? I know there is an option in CM10 to wake up the device with 'volume' buttons, but somehow it stops working after some time (I suspect when tablet is in deep sleep).

I read somewhere that POWER button is pretty weak and might get broken one day:)

I saw 'Wake up screen' app on google play store, which might prevent power button from being dead quickly. Nevertheless if HOME button could work it would be awesome.

Unfortunately I have not found any solution or patch or even instruction/tip how this can be done:(
[Thinkpad Tablet Android Development] fanaras:
You should use root browser, or any other browser, to replace file and edit permissions. Permissions should be 755. I don't know if cwm fixes it automatically. It’s easier with a browser.

I have to make clear, I did not compile it myself. I tested every modified gapps package I found and I discovered this file. If I find a new apk that supports liveness check i'll let you know which one it is and who is the original developer.
[Thinkpad Tablet Android Development] ronimus:
Has anyone tried to use the Themes option in CM10? I have tried several different themes from Android Market and when I try to use them from CM10 it says the theme was compiled wrong.
[Thinkpad Tablet Android Development] skelt6or:
Can someone please provide a bit of advice? I want to upgrade to V6 of this ROM but I cannot remember which ROM I last installed! The about page isn't very helpful: I have both Khanning and JRO03L listed as follows:

Kernal Version: 2.6.39.4khanning-R1-administrator@server #1 SMP PREEMPT Wed Aug 15 18:08:40 EDT2012

Build Number: K1-userdebug 4.1.1 JRO03L eng.administrator.20120819.010011 test-keys

Does this mean I'm already on V3 and can simply flash V6 from an SD card?

Thanks in advance and apologies for such a newbie question.
[Thinkpad Tablet Android Development] fanaras:
Just flash it. If you already have jb, you won't have to clear cashes and data. Also flash latest google apps.
[Thinkpad Tablet Android Development] traihan:
Hi Krook, again thanks for a great ROM.

I understand computers but my knowledge in android is limited. I have a few question

1) Is there a reason why you are not updating to the latest version of gapps now available?

2) So apparently BT in my K1 is not working (mentioned on p-28, could not use the "quote" function). Other people say theirs is working. How can I troubleshoot. It worked in previous version.

3) Is it OK to go back to v5 or v3 from v6? I would like to see if BT is working in those versions now.

Thanks
[Thinkpad Tablet Android Development] K1Andy:
I believe you are probably on khanning's JB AOSP build, but that should be fine. I upgraded from that to CM10 v5, and then later v6, with no problem. To be on the safe side, I did wipe data/cache/dalvik-cache and reinstalled my apps, as per Krook's original instructions (case ii). Worst case, you could try without wiping, but go back into recovery and wipe if you have any problems.

---------- Post added at 10:16 AM ---------- Previous post was at 10:03 AM ----------

Since gapps are installed separately anyway (not included in the ROM), I suspect Krook just didn't update the instructions to point at the latest package. Several of the apps get updated through Google Play anyway, but you might as well install the latest package for 4.1.2 (20121011).

Not sure why your BT would not be working in the new ROM. Is it the same problem that people were reporting in v5, that you couldn't even turn it on (that is, it immediately turns back off)? You could go back to an earlier version (although BT was broken in v5, so it won't do you any good to go back there), but I'm not sure what that would prove. You might want to first try going into Settings->Apps->All, looking for Bluetooth Share, and clearing the data (this means you'd have to re-setup your BT pairings).
[Thinkpad Tablet Android Development] mjb32803:
Sleep of Death

First, thanks so much for this ROM. Overall it is an impressive piece of work.

Unfortunately, I am having a consistent issue with the tablet going into sleep and not being able to wake it up.

The problem only happens after the tablet sits screen off for at least an hour or more.

But it happens EVERY time the tablet sits and probably goes into deep sleep?

Symptoms are that the power button will not wake it up.

It usually requires several attempts of power and volume button holding for 10+ seconds to get it to restart.

I was running KHanning88 AOSP ICS v2 which worked pretty well. I had this same issue under that ROM as well, but VERY INFREQUENTLY.

Installing this ROM I did a factory reset / wipe data

then formatted /system

Flashed ROM zip

Flashed GApps

Fixed Permissions

Installed Titanium Backup

Restored Apps

I am using Nova Launcher

Did not change scheduler or overclock.

I had read on other ROM pages that similar sounding SOD issues were fixed by setting WiFi to always stay on.

Just did that now and going to see what happens.

Anyone else having this issue?

Edit: I set wifi to stay on and SOD problem went away. Doesn't seem to adversely affect battery. Slept for 6 hours and only dropped 3 points.

Krook is this something you can fix or is it a CM issue?
[Thinkpad Tablet Android Development] K1Andy:
Krook, I assume that the Overclocking mod that is now included in the latest ROM (v6) does not change the default max CPU frequency of 1GHz. However, I've been using an app called System Tuner to look at various system performance metrics, and change the CPU frequency when I want to try it out, and it's been showing me these occasional CPU frequency peaks of 1.4GHz, even though it also shows a max setting of 1GHz on the governor (Interactive mode). So I'm not sure whether to believe these spikes or not. One thing I notice is that if I go in and change the max frequency and then set it back to 1GHz, I don't believe I see any more of those spikes after that. Is it possible that some boot-time default allows peaks of 1.4GHz, even if the governor max value is supposedly set at 1GHz?

Update: I notice that I'm also seeing these 1.4GHz spikes after the tablet comes out of sleep. Again, if I go back into System Tuner and set the max frequency to something and back to 1GHz, it seems to stay at 1GHz or lower after that. Hmmmm.

---------- Post added at 11:13 AM ---------- Previous post was at 11:10 AM ----------

Yes, until I set the Wifi to always stay on, as you mention. Seems to have been OK since then.
[Thinkpad Tablet Android Development] vitoski:
Guys I just checked RAM (settings/applications/running) and I had only 90 MB of free ram even though there was a couple of apps running and none of them ate all ram.

It showed me that almost 600 MB are in use...

Can anyone confirm this? I hope we do not have any memleak.

Wysyłane z mojego GT-I9100 za pomocą Tapatalk 2
[Thinkpad Tablet Android Development] mjb32803:
I get the same results with system tuner. Despite setting cpu to 1.2 I get constantly t spikes at 1.4
[Thinkpad Tablet Android Development] Mordred69:
Hi!

Thanks a lot for the ROM, Krook1!

For me, Camera still crashes on res change. K1 USA on WiFi.
[Thinkpad Tablet Android Development] fanaras:
Download gapps-jb-20121011-signed.zip and gapps-jb-picasa-20121011-signed.zip from Goo.im and flash them. The second file will replace the camera app with a more stable one, but with less options.
[Thinkpad Tablet Android Development] K1Andy:
Just curious, do you see the 1.4 spikes after changing the max setting from something else (like 1GHz) to 1.2GHz? Or do you have System Tuner set up to set the max to 1.2GHz at boot time? Is so, have you tried going into System Tuner and changing the CPU max setting (take it up or down a notch) and then set it back to 1.2GHz, and see if you get 1.4 spikes after that?

---------- Post added at 08:26 PM ---------- Previous post was at 08:13 PM ----------

I'm seeing about 370MB in use, and 330MB free, with about 30 processes "lurking" in memory, so about the same total memory as you. I haven't looked to see if memory gets consumed over time, but at least so far it doesn't seem like it's the basic ROM eating all the memory. An app like System Tuner will show you how much memory is being consumed by each process.

---------- Post added at 08:36 PM ---------- Previous post was at 08:26 PM ----------

Confirm on that - it does significantly reduce the camera options, but the resolution can be changed without crashing. Plus, it gives the ability to sync with Picasa, and that's actually more useful to me.
[Thinkpad Tablet Android Development] traihan:
Hey guys, another question:

I already have v6 installed. I want to do a fresh install of the system (not just delete the apps). How do I do that? I see some format options in recovery. Can I do it from there? I suspect some of my files to be corrupted/not working.

Thanks in advance.
[Thinkpad Tablet Android Development] fanaras:
Enter recovery and format everything except external sd. after that, flash the rom again, flash gapps and reboot. Like new...
[Thinkpad Tablet Android Development] mjb32803:
What apps are you running? I could be an app and not the rom. I have about 14 task running and a bit over 225mb free
[Thinkpad Tablet Android Development] K1Andy:
Well, you probably don't have to format the whole internal card and do a full reinstall, unless you want to start totally clean. You could just wipe data (which also wipes cache) and wipe dalvik-cache. That gets rid of pretty much everything except the system and application code.
[Thinkpad Tablet Android Development] tockey:
i can not see where download?
[Thinkpad Tablet Android Development] detriod:
Hi, please dont be so lazy for not flipping those pages to find the download link :angel:

---------- Post added at 06:16 PM ---------- Previous post was at 06:10 PM ----------

need help here. my screen sometimes turn on and off . especially when i let it flat on the table or 45 degree. any ways to know what trigger it ?
[Thinkpad Tablet Android Development] Mordred69:
Hi Krook1

Another bug report: Adjusting Light Sensor Levels crashes settings...

Settings > Display > Automatic Backlight > Light Levels (select Use Custom) > Edit Other Levels

I think the automatic level is too dim so I usually adjust my phones here. I decided to do it with the tablet and found every time i "Save and Apply" new levels, Settings crashes.

Thanks again!
[Thinkpad Tablet Android Development] Burlito:
No matter what i try, my tablet stops booting at the lenovo logo after flashing v6.

krook could you please add a new starter version with v6 (if it's not too many work)? maybe that way flashing to v6 is possible.

if not, it's probably a hardware defect :crying:
[Thinkpad Tablet Android Development] jorge.aragon:
Did you clean dalvik-cache? Try!
[Thinkpad Tablet Android Development] traihan:
Thanks for the reply.

Now, after formatting, do I use CWM Flashable image to flash or I need to use the NVFlash starter?

Thnaks
[Thinkpad Tablet Android Development] Mordred69:
Hi all.

Set WiFi ON all the time, and still get Sleep of Death... :( I didn't get it before, but I did a clean install to free RAM and now, every single time my tablet goes to sleep. it stays off.
[Thinkpad Tablet Android Development] Burlito:
yes, i tried. still not booting.
[Thinkpad Tablet Android Development] mjb32803:
Try factory wipe data cache dalvik etc. Reflash rom then gapps and try setting wifi on and test before restoring any apps.
[Thinkpad Tablet Android Development] Mordred69:
Sorry, I guess I should have specified that the clean installation means a factory reset and all wipes x3.

Thanks for the reply, what I will do is backtrack to how I had it previously (v2 NVM to v5 to v6) and see if I can keep it from turning off.
[Thinkpad Tablet Android Development] krook1:
The most common theory on SOD is network access by applications during deep sleep. When Wifi is accessed it triggers a dead lock causing the tablet to go into very deep sleep. This can be caused by a variety of factors.

So to start figuring out what is causing this.

a. Start with a vanilla install. Make sure no OC, just 1Ghz. Disable sync and change settings to "Keep wifi on during sleep" to always.

b. If this stays on for a day, change one variable at a time to see if you see an SOD.

There is a whole thread on tasker, that I'm trying to read which will help debug the issue. There is very likely a kernel bug (perhaps a driver bug), that could be lurking, and shows up when some other variables change.
[Thinkpad Tablet Android Development] krook1:
Burlito,

If you know how to set up ADB, you should try that. The Lenovo logo may indicate that the kernel has indeed booted, but the UI has not fully initialized. Or it may mean that the kernel is indeed not loading.

If its the latter,you will need to nvflash the v2 version, and make sure it boots cleanly, and then upgrade to v6.

If its the former, you can enter recovery and flash v6 directly.
[Thinkpad Tablet Android Development] krook1:
Thank you. I'm actively trying to get to a debugging technique to point out if its a kernel/wifi issue.

Need to do some reading before attempting the debug. I attempted to do this the fast way by browsing github for fixes that other Tegra/Ventana tablets may have done with their kernel, but was not able to find something specific.

If you or others can help in that search, we could do this faster.
[Thinkpad Tablet Android Development] krook1:
Camera issue looks to me like a problem with CM10s camera implementation.

We are not alone: http://code.google.com/p/cyanogenmod/issues/detail?id=6400

So for now, either go with the lower functionality version as recommended by fanaras, or use Camera JB+ from Google Play, or not change the resolution, and reboot after the change.
[Thinkpad Tablet Android Development] Burlito:
thx for the reply.

i tried to set up adb, but it didn't work..so i have no idea how to build a nvflash version of v6..

i already did a nvflash with v2. the tablet is also still booting after updating to v3 and/or v5. but the update to v6 breaks everything. i downloaded the file several times, so that should be ok.
[Thinkpad Tablet Android Development] vitoski:
Thanks guys for tips. I installed System Tuner and found out that my UCCW widget eats my entire RAM. I had only one UCCW widget on the screen and it was eating something around 300 MB and was increasing continuously. I have already reported this within UCCW thread. In fact there are more people suffering memleak with UCCW (too bad, it's pretty good framework for widgets).

Nevertheless I can confirm that there is no memleak on Krook's v6 Jelly Bean ROM. It works great!

There is one small issue I would like to report for this ROM. The RAM consumption by applications does not appear properly. Every single app show 0.00b of RAM used in system settings.
[Thinkpad Tablet Android Development] ram1986:
USB Mass storage mode

The USB Mass storage mode doesn't seem to be working.

If I connect my K1 to my PC, I am not getting the option to mount my USB device.

Anyone else having this issue?

Maybe a CM10 bug.

MTP is working fine though - but MTP has limited use.
[Thinkpad Tablet Android Development] ronimus:
I just checked mine..same as you.
[Thinkpad Tablet Android Development] DevsAwesome:
I'm having the same problem on both windows and Linux.

Sent from my AOKP GS2
[Thinkpad Tablet Android Development] steveziggy:
MTP still works.

Select this under Settings->Storage-> Media Device.
[Thinkpad Tablet Android Development] DevsAwesome:
Yeah, MTP works flawless but on my Ubuntu system (Linux) I rather use mass storage.

Sent from my CM10 K1 Tab
[Thinkpad Tablet Android Development] krook1:
Debugging SODs

So it appears that we need to get the "kmsg" file to figure out what went wrong to get into an SOD.

The kernel has a facility where the previous boots kmsg is kept in memory and can be obtained via the /proc/last_kmsg file.

For this to be preserved, the power to ram should be preserved during the reboot cycle.

Unfortunately our long press of the Power button, only power's off the tablet. Which means loss of power to RAM, and hence no last_kmsg on power off.

Does anyone know, of a "reset" procedure on our tablet?
[Thinkpad Tablet Android Development] Diaz1999:
Noob question :D

If i flash the WiFi and 3G image, will both WiFi and 3G works?
[Thinkpad Tablet Android Development] K1Andy:
Krook, not sure if this applies, but I notice that the System Tuner allows you to tweak some "System Controls", and a couple of them relate to kernel panic behavior. I'm not sure that's what we have here, but it looks like the default setting is that the kernels just loops after a panic. However, the setting can be changed to automatically reboot some number of seconds after a panic. I'm sure this is also in a configuration file somewhere, but System Tuner gives easy access.

Anyway, would someone who is experiencing SOD like to try installing System Tuner (needs root access), and seeing if changing this setting causes the tablet to reboot? Then maybe we can get the kmsg file.

Update: Looks like you can do this without System Tuner:

Add the following to /etc/sysctl.conf:

kernel.panic = 20

This tells the kernel that if it encounters a panic, it is to reboot the system after a 20 second delay. By default, the kernel will never reboot when it encounters a panic, but with the above setting you can force it to.
[Thinkpad Tablet Android Development] DevsAwesome:
If you have a 3G tab, then yes it should.

Sent from my CM10 K1 Tab
[Thinkpad Tablet Android Development] Diaz1999:
I cant flash 3G v6 it says something error :crying:

If i flash the boot.img from 3G v6 manually and install the /system zip from 3G v6 with CWM, will i bricked my K1 ?
[Thinkpad Tablet Android Development] mjb32803:
No. It's one or the other

---------- Post added at 03:14 PM ---------- Previous post was at 03:08 PM ----------

I just looked in /etc and don't see sysctl.conf do we have to create it? Or am I missing something?

Edit: I just used system tuner and set kernel.panic =10

Going to set wifi back to its default "let it sleep" System and see if I can get a kmesg.

Edit2:ok I used system tuner as described above and set wifi to allow sleep after 15 mins.

Here's where it gets WIERD.

No longer getting SOD... But when I wake up the tablet, wifi is disconnected and I have to toggle it off/on to get it to reconnect.
[Thinkpad Tablet Android Development] K1Andy:
That's actually the way mine normally acts - if it's asleep long enough, the WiFi is no longer connected when it wakes up, and I have to toggle WiFi on/off to get it to reconnect.
[Thinkpad Tablet Android Development] mjb32803:
Before I tweaked the kernel.panic setting I would always go into SOD with wifi set to sleep after 15 minutes. Now it just disconnects and I have to toggle to get it back. If I set wifi to never sleep tablet works perfectly. I expected bad battery life with wifi on all the time but it is pretty much the as it was running KHanning88 AOSP ICS v2...His does not have this wifi issue but I don't think he is active with it anymore.

Edit: If I set the kernel.panic setting back to 0 with wifi set to sleep then I get the SOD. If I set kernel.panic to 20 with wifi set to sleep the WiFi just disconnects and I have to toggle to get wifi back. If I set wifi to never sleep everything is fine regardless of how I set kernel.panic
[Thinkpad Tablet Android Development] Diaz1999:
I found some bugs here :D

1. When I choose clock align left the clock still align right

2. I flash only v6 3G image, and network operator only appear with WiFi on

Hope the dev will fix it :)
[Thinkpad Tablet Android Development] K1Andy:
Well, this just gets stranger all the time :confused:

As I think about it, I think my WiFi behaves properly if I leave the tablet plugged in. If I leave the tablet in sleep while unplugged for some period of time (not exactly sure how long that is), I think that's usually when I have to resort to turning my WiFi off/on to get it to connect again. This is with WiFi set to never sleep, by the way.

Now, why the kernel panic setting would prevent the SOD without actually causing the tablet to reboot (since that's all it's really supposed to do)??? I have no idea.
[Thinkpad Tablet Android Development] mjb32803:
I was hoping that if I set the kernel.panic to 20,I would be able to get kmesg after it rebooted. Unfortunately, now it won't reboot. WiFi just hangs during sleep instead of putting tablet into SOD. Is there still information that ends up in this kmesg file? Or does it only get created after a reboot?
[Thinkpad Tablet Android Development] krook1:
I was able to get a few dumps, and they pointed to the BCM4329 (Wifi) driver not playing well with SDIO.

I was not able to get any obvious fixes in the kernel, so digging deeper.
[Thinkpad Tablet Android Development] taphie78:
JB 4.2

Hi krook1, would like to thank you for your awesome work in K1. Jz wondering would u upgrade to JB 4.2 in v6.1? or jz a few tweaks?

Don't mind to wait abit longer for 4.2upgrade. :D:good:
[Thinkpad Tablet Android Development] mjb32803:
Is there any testing you would like us to try that could help debug the issue further?
[Thinkpad Tablet Android Development] krook1:
Not yet. Once I get to a fix or a workaround, Ill post an updated kernel for testing.

I can reproduce this quite easily now. Although it may be that Kernel crashes are not 100% of the SODs.

Hang in there, we will get this baby stabilized!
[Thinkpad Tablet Android Development] Diaz1999:
I have fix the Calculator.apk :)

Here
[Thinkpad Tablet Android Development] ram1986:
Can't boot

Hi,

I have a problem. I left my tablet on standby last night and due to battery drain, tablet had shut down.

Today, I am unable to boot into the OS. The tablet switches on and hangs at Lenovo logo and doesn't go further.

Is there any shortcut to directly boot into recovery by pressing harware keys?

I am thinking if I clear cache/dalvik cache I might be able to boot, but I need to get to recovery first.

Any suggestions would be great.
[Thinkpad Tablet Android Development] krook1:
Try connecting to a charger and leave it connected for a few hours, then try powering on.
[Thinkpad Tablet Android Development] mjb32803:
I don't use the stock calculator much and didn't realize it FC when trying to open. Thanks for the heads up.

What did you actually fix/change in the apk?
[Thinkpad Tablet Android Development] ram1986:
Thanks Krook, but it didn't work.

I had to resort to NV Flash to go back to original CM10 version and flash V6 again.

It was a pain but at least it's all set now.
[Thinkpad Tablet Android Development] MPWheeler:
I found a way to access files on the K1 using Windows Explorer. This worked for me in Windows 7.

1. Plug the K1 to the PC using the USB cable.

2. On the K1 go to Settings, Storage, hit the three dots top right and hit USB computer connections, select MTP.

3. Hit the power button quickly to make the K1 screen go black.

3. A windows should pop up in Windows, select "Sync Media Files" This will start Windows Media Player and list all your media files on the K1.

4. In Windows go into Control Panel, System, Device Manager.

5. Look for an entry, "Android USB Devices, click the arrow and it should show "NVIDIA tegra ADB Debug Interface (lenovo) This means the drivers for the K1 are loaded in Windows. There should be no yellow dot around the driver.

6. In Windows click Start, Computer. There should be and entry Portable Devices, K1 "Portable Media Player". Click on K1 and you should see two entries, Internal storage and SD card. Click on either to access your files.

This worked for me. Your results may vary.

Good Luck - Mike :D