yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 2 7" Android Development] ketut.kumajaya:
[MENTION=5337314]CodyF86[/MENTION], [MENTION=4503423]daavvis[/MENTION], [MENTION=5153662]Android-Andi[/MENTION], [MENTION=4995415]Chirag_Galani[/MENTION], and else

You can try revert this change https://github.com/codyf86/android_...mmit/02b354cb37f4d5e0f9e1b4986370bd29009e3b19 and make sure in kernel defconfig:

CONFIG_FB_OMAP2_VSYNC_SEND_UEVENTS=y
CONFIG_FB_OMAP2_VSYNC_SYSFS=y

Stock 4.2.2 ROM need "CONFIG_FB_OMAP2_VSYNC_SEND_UEVENTS=y" and CM 11.0

without

"TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true" and

with

"TARGET_HAS_WAITFORVSYNC := true"

need both

"CONFIG_FB_OMAP2_VSYNC_SYSFS=y" and "CONFIG_FB_OMAP2_VSYNC_SEND_UEVENTS=y". In my opinion, kernel side VSYNC framework better than software side version.

NEXT kernel compiled with "CONFIG_FB_OMAP2_VSYNC_SEND_UEVENTS=y" and "CONFIG_FB_OMAP2_VSYNC_SYSFS=y". The HWC flooding logcat with "Ignoring duplicate VSYNC event from HWC" message. Reference: https://github.com/CyanogenMod/andr...surfaceflinger/DisplayHardware/HWComposer.cpp

So tell to [MENTION=3503248]Jiangyi[/MENTION], it's better move "TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK" config to individual device tree.
[Galaxy Tab 2 7" Android Development] Jiangyi:
Uevents and sysfs aren't meant to be used together, it's one or the other. I was thinking of removing TARGET_HAS_WAITFORVSYNC since that seems to be rather useless and potentially harmful. Haven't done any sort of thorough tests yet, enjoying the holidays.
[Galaxy Tab 2 7" Android Development] ketut.kumajaya:
Stock 4.2.2 ROM definitely need "CONFIG_FB_OMAP2_VSYNC_SEND_UEVENTS=y" as well as KitKat now (without "TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true"). And my NEXT kernel still need "CONFIG_FB_OMAP2_VSYNC_SYSFS=y" since it must be able to boot CM-10.1 and CM-10.2.
[Galaxy Tab 2 7" Android Development] Jiangyi:
Right, stock needs that since it doesn't have sysfs implemented in userspace. I have KitKat working fine with sysfs vsync on my i9100g, and I believe it's the same for cody on his Tab 2. To use uevents in CM, you'll need to turn off BOARD_USE_SYSFS_VSYNC_NOTIFICATION in omap4-common.

Your situation of having a dual-boot kernel really makes things tricky. Sorry that I can't be of much help.
[Galaxy Tab 2 7" Android Development] ketut.kumajaya:
This is my dirty trick:

diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
index e5bbe55..29ec0bd 100644
[COLOR="Blue"]--- a/drivers/video/omap2/omapfb/omapfb-main.c
+++ b/drivers/video/omap2/omapfb/omapfb-main.c
@@ -50,6 +50,13 @@ static int def_vrfb;[/COLOR]
static int def_rotate;
static int def_mirror;

[COLOR="Blue"]+#ifdef CONFIG_FB_OMAP2_VSYNC_SEND_UEVENTS
+/* 0 - vsync event disable
+ * 1 - vsync event enable
+ */
+static int i_event_mode = 1;
+#endif
+[/COLOR]
/* Max 4 framebuffers assumed : FB-ix-W-H */
#define MAX_FB_COUNT	4
#define ELEMENT_COUNT	3
@@ -2400,20 +2407,58 @@ static ssize_t omapfb_vsync_time(struct device *dev,
static DEVICE_ATTR(vsync_time, S_IRUGO, omapfb_vsync_time, NULL);
#endif

[COLOR="Blue"]+#ifdef CONFIG_FB_OMAP2_VSYNC_SEND_UEVENTS
+static ssize_t omapfb_vsync_mode_show(struct device *dev,
+	struct device_attribute *attr, char *buf)
+{
+	int size;
+
+	size = sprintf(buf, "%d\n", i_event_mode);
+
+	return size;
+}
+
+ssize_t omapfb_vsync_mode_store(struct device *dev,
+	struct device_attribute *attr, const char *buf, size_t size)
+{
+	if (kstrtoint(buf, 0, &i_event_mode))
+	pr_err("omapfb: failed storing vsync_mode value\n");
+
+	if (i_event_mode < 0) {
+	i_event_mode = 0;
+	} else if (i_event_mode > 1) {
+	i_event_mode = 1;
+	}
+
+	return size;
+}
+static DEVICE_ATTR(vsync_mode, S_IRUGO | S_IWUSR, omapfb_vsync_mode_show,
+	omapfb_vsync_mode_store);
+#endif
+[/COLOR]
static void omapfb_send_vsync_work(struct work_struct *work)
{
struct omapfb2_device *fbdev =
container_of(work, typeof(*fbdev), vsync_work);

#ifdef CONFIG_FB_OMAP2_VSYNC_SEND_UEVENTS
[COLOR="Red"]-	char buf[64];
-	char *envp[2];
-
-	snprintf(buf, sizeof(buf), "VSYNC=%llu",
-	ktime_to_ns(fbdev->vsync_timestamp));
-	envp[0] = buf;
-	envp[1] = NULL;
-	kobject_uevent_env(&fbdev->dev->kobj, KOBJ_CHANGE, envp);[/COLOR]
[COLOR="Blue"]+	/* Ketut P. Kumajaya:
+	* Mute "Ignoring duplicate VSYNC event from HWC" message on CM 11.0
+	* echo 0 > /sys/devices/platform/omapfb/vsync_mode
+	*
+	* Stock 4.2.2 need kernel VSYNC event
+	* echo 1 > /sys/devices/platform/omapfb/vsync_mode
+	*/
+	if ((i_event_mode & 0x1) == 1) {
+	char buf[64];
+	char *envp[2];
+
+	snprintf(buf, sizeof(buf), "VSYNC=%llu",
+	ktime_to_ns(fbdev->vsync_timestamp));
+	envp[0] = buf;
+	envp[1] = NULL;
+	kobject_uevent_env(&fbdev->dev->kobj, KOBJ_CHANGE, envp);
+	}[/COLOR]
#endif

#ifdef CONFIG_FB_OMAP2_VSYNC_SYSFS
@@ -2586,6 +2631,14 @@ static int omapfb_probe(struct platform_device *pdev)
}
#endif

[COLOR="Blue"]+#ifdef CONFIG_FB_OMAP2_VSYNC_SEND_UEVENTS
+	r = device_create_file(fbdev->dev, &dev_attr_vsync_mode);
+	if (r) {
+	dev_err(fbdev->dev, "failed to add sysfs entries\n");
+	goto cleanup;
+	}
+#endif
+[/COLOR]
INIT_WORK(&fbdev->vsync_work, omapfb_send_vsync_work);
return 0;

And thanks for your kind response.
[Galaxy Tab 2 7" Android Development] CodyF86:
Got a surprise for you all in about two hours assuming it works correctly.

/cross fingers
[Galaxy Tab 2 7" Android Development] sharingan:
HAPPY NEW YEAR TO MR [MENTION=5337314]CodyF86[/MENTION] AND BEST OF LUCK FOR 2014
[Galaxy Tab 2 7" Android Development] CodyF86:
1-2-2014

p3110 / p3113: http://d-h.st/wdn

p3100: http://d-h.st/Bs3

Soooooo, hwrotation set back to 270 and boot animation not messed up

at the same time

zomg. :D

Code review links on OP.

edit: lol I already forgot to do something, I have to revert the camera blob now, I need to repost ^

few minutes haha.
[Galaxy Tab 2 7" Android Development] kinung:
Waiting for p3100

Sent by Lenovo A390 powered by Tapatalk HD
[Galaxy Tab 2 7" Android Development] CodyF86:
p311x link updated, redownload if you downloaded it before 1:05am est.
[Galaxy Tab 2 7" Android Development] lokesh.3440:
Hi [MENTION=286278]CODY[/MENTION]. is it safe to use next kernel 2.1.6 with 1/2 build ? someone was reporting problems with camera after flashing it.:D:D:D
[Galaxy Tab 2 7" Android Development] CodyF86:
No idea just got home from another state, but there was an issue for a build day or two right before I left,

with the cm camera app, that should be fixed now, the gapps camera always still worked.

Could have been because of that also.
[Galaxy Tab 2 7" Android Development] ketut.kumajaya:
[MENTION=5337314]CodyF86[/MENTION] 0102 build silently ready for P3100 :good:
[Galaxy Tab 2 7" Android Development] Clint E.:
Stock camera works again, but Google contacts still crashing...
[Galaxy Tab 2 7" Android Development] lokesh.3440:
Hi [MENTION=4021423]ketut.kumajaya[/MENTION]..i have flashed next kernel 2.1.6 on latest build in P3100..i can see camera is broken? please help...i've flashed it without any proprietary blobs,,,,thanks in advance
[Galaxy Tab 2 7" Android Development] antutu:
here is what i have done

edit:

discuss custom kernel problem in kernel thread
[Galaxy Tab 2 7" Android Development] CodyF86:
When you say google contacts do you mean just the app that says people in the app drawer or where?

I'll try and see what happens to me. When I just go to whatever contacts app I have it seems to be working,

but I think that might be the cm one maybe?

Let me know i'll try.

Or is it a sep google app not included in gapps?
[Galaxy Tab 2 7" Android Development] lokesh.3440:
sorry for posting in wrong thread. Your trick worked..thanks a ton brother [MENTION=4938788]antutu[/MENTION],,,:good::good::good::good:
[Galaxy Tab 2 7" Android Development] Clint E.:
Hm, I don't really know if that app comes with gapps or cm, but I'm talking about the one you can also access from the quick settings menu...
[Galaxy Tab 2 7" Android Development] CodyF86:
Hmm maybe take a screenshot and post it so I know where you mean. I don't have a contacts option in quick settings,

or a tile for that.
[Galaxy Tab 2 7" Android Development] Clint E.:
I can't screenshot the app itself, because it crashes...
[Galaxy Tab 2 7" Android Development] CodyF86:
Does that word translate to 'people' in english? The icon is the same as the one I'm talking about

and it opens fine for me. Could be an issue with the translation code/formatting.

Try to switch to english maybe and try to run it, that would narrow it down, but yes

an icon that looks like that, that says people works for me.
[Galaxy Tab 2 7" Android Development] Clint E.:
I switched to English, that's what I get...
[Galaxy Tab 2 7" Android Development] sbsharma:
working great... smooth n beatiful now after the portrait bootscreen
[Galaxy Tab 2 7" Android Development] stingjoel:
What recovery do you use? did you format the system and the data too? I suspect that...
[Galaxy Tab 2 7" Android Development] kundancool:
[MENTION=5337314]CodyF86[/MENTION] is it possible for you to include Trebuchet as that is much better than launcher3 in my opinion

when I sideload Trebuchet I can't configure it in settings, is it a CM bug or it needs to be complied with it?

PS: very nice update and thanks for your work :cheers:
[Galaxy Tab 2 7" Android Development] sim_tcr:
Wiped cache, dalvik. Flashed 2014/01/02 build and 11-15_GApps_4.4_Odex_Art_signed.zip

Booted fine. Used 1 hour and no reboots or FCs. All previously installed apps and games worked fine too.

Screen rotation is slow. Screen rotates only after 3 seconds delay. (it is not particular to this build)

Occasional Dialler issues.

Camera panorama mode still has issue.

WhisperPush is giving Connectivity error "Text secure was unable connect push service"

Koush mirror apk not getting installed.

Real Racing 3 and NFS Most Wanted has sound issues.

After reboot, icons still disappear from menu bar.
[Galaxy Tab 2 7" Android Development] as007:
I installed latest version from 02.01.2014 and I have a problem with icon on the down right corner. After tablet is off/on this icon is disappear. I use stock launcher and I wouldn't use any other launcher, for exaple APEX or Nova.
[Galaxy Tab 2 7" Android Development] kthomson205:
Same problem here. It seems to be a universal issue across cm11. Mokee is the only one that hasn't had the dock icon prob.
[Galaxy Tab 2 7" Android Development] Christoph21x:
PDroid patches of today's version 2013-01-02 :)

Dear All

First of all: Happy New Year to anyone of you!

Thanks, Cody, for continuously working on your ROM - simply great!

For the latest upload of today - build as per 2013-01-02, please find attached for all device types (P3100/P3110/P3113) the PDroid patch (and - in case of - the restore patch) for those who want the OpenPDroid privacy protection on API level.

P3113 users - please use the P3110 versions.

For installation instructions, please refer to earlier post http://xdaforums.com/showpost.php?p=48745281&postcount=1375

Kind regards from Switzerland - Chris

EDIT: removed attachments due to newer available version, to avoid mismatch and save space
[Galaxy Tab 2 7" Android Development] daavvis:
[MENTION=5337314]CodyF86[/MENTION] nice find on the bootanimation thing!!!!!! i just pushed a commit to mokee to add it as well... :)

---------- Post added at 10:29 AM ---------- Previous post was at 10:21 AM ----------

Oh and check out this commit adding vpx encoder... http://review.mfunz.com/#/c/4302/.... it seems to speed up snappieness, will eventually be nesisary for screen recording, when we get it fixed, and never hurts to have codex lol
[Galaxy Tab 2 7" Android Development] kenundrem:
It never gets installed by cm builds. I know I have commented to you and others before about this....it is available as a beta app on the play store if you join the clockworkmod beta testers on Google +. It doesn't even work after you do that so you'd be wasting your time for now as screen recording/casting is broke on our devices.
[Galaxy Tab 2 7" Android Development] daavvis:
Indeed he is correct, I didn't mean to confuse anyone... Mokee is the only ROM with screen recording built in, and its not the same one... And it doesn't work... At the moment domx is crashing trying to render colors, and I am working on fixing it.... The codex I was referring Cody to are part one of the fix...

Edit, I mean it doesn't work on our tab, works fine on my m7 ;)
[Galaxy Tab 2 7" Android Development] sim_tcr:
Point noted. I will remember this from next time.
[Galaxy Tab 2 7" Android Development] daavvis:
That change in the omap files is on mokees github... I wonder what the effect on other devices would be if it was removed...

I'm building now with it removed and with the added flag in the kernel (one was already there, and I'll report back...

---------- Post added at 01:46 PM ---------- Previous post was at 01:28 PM ----------

Seems to work... Not sure what I'd did lol
[Galaxy Tab 2 7" Android Development] CodyF86:
[MENTION=4503423]daavvis[/MENTION] [MENTION=5153662]Android-Andi[/MENTION]

I can't remember because it's been awhile but I think I tried removing that flag, and I didn't notice anything

bad happen, but I didn't test any recording software etc etc, I was actually trying to fix something else.

Now that I'm back home, I'm just today starting to go back through everything on xda for the last week or 2

to catch up on posts, messages, etc.

edit: also there is a patch to add trebuchet back in, because the new stock launcher kind of sucks atm. lol

I'll add treb tonight if I can, if it works ok.
[Galaxy Tab 2 7" Android Development] daavvis:
Tried it, didn't notice much dif, camera works fine, screenshots work, screen recording still broken,lol, did just notice something in media profiles tho, switching 3gp to mp4 to see if it makes a difference... :)
[Galaxy Tab 2 7" Android Development] ketut.kumajaya:
Just to make sure, from https://github.com/CyanogenMod/andr....0/services/surfaceflinger/SurfaceFlinger.cpp :

// This works around the lack of support for the sync framework on some
// devices.
#ifdef RUNNING_WITHOUT_SYNC_FRAMEWORK
static const bool runningWithoutSyncFramework = true;
#else
static const bool runningWithoutSyncFramework = false;
#endif

So, I am pretty sure we don't need this workaround.
[Galaxy Tab 2 7" Android Development] Narciso Neto:
This is a problem with the latest Google Now (that packs Launcher) update... :good:
[Galaxy Tab 2 7" Android Development] as007:
However, I must install other launcher or wait fot the update google now?

Wysłane z mojego GT-P3110 przy użyciu Tapatalka
[Galaxy Tab 2 7" Android Development] daavvis:
Explains the duplicate errors screaming through logcat lol
[Galaxy Tab 2 7" Android Development] Narciso Neto:
I saw on an android news website (don't remember wich one) that google is testing Google Launcher support for 7'' tablets, so it means that there should be updates... :cyclops:
[Galaxy Tab 2 7" Android Development] daavvis:
[MENTION=5153662]Android-Andi[/MENTION] and [MENTION=5337314]CodyF86[/MENTION]

check this out... mp4 recording and 1080p ;)

p5100 gerrit , p3100 gerrit
[Galaxy Tab 2 7" Android Development] enochpc:
Anyone else having issues downloading the latest build? Or is it just my isp? I keep getting the lovely oops can't find the url screen.

EDIT: No luck in IE either... Maybe I'll try directly on the tab.

Ok seems like Dev host is dev dead. Hopefully they get things up and running soon.
[Galaxy Tab 2 7" Android Development] ketut.kumajaya:
I just decided to upgrade my daughter's P3100 to KitKat and re-istall all her games. Without external SD card, there's no camera app in app drawer. Is this normal? And when the boot animation got paused, there a lot PVR error in dmesg. Is this also happened on stock kernel or something related to NEXT kernel? Thanks [MENTION=5337314]CodyF86[/MENTION], because of you this CM 11.0 port almost perfect as CM 10.2 :good:
[Galaxy Tab 2 7" Android Development] CodyF86:
[MENTION=4021423]ketut.kumajaya[/MENTION]

For some weird reason if I don't re-flash gapps every time I flash, camera etc, dissappear lol, not sure why

but I always have to flash gapps even if its a dirty flash, but there should be the cm camera app I thought,

now that I think about that more, that is kind of strange.

I'll check my logcat and hit you back in the morning about the messages.
[Galaxy Tab 2 7" Android Development] as007:
[MENTION=4660826]Narciso Neto[/MENTION]

Thanks for your answer.

I find new problem. When I connect my tablet to computer via USB or to AC adapter after 1 minut battery is charging to 100%. I make reboot and this problem is actually.
[Galaxy Tab 2 7" Android Development] putr4s:
Does that happen all the time or ...? My tab charges as usual, so yours may have a faulty battery.
[Galaxy Tab 2 7" Android Development] as007:
@up

This situation appeared after installing the latest version this rom, so I think that's software problem.
[Galaxy Tab 2 7" Android Development] putr4s:
Well, maybe you can try installing NEXT kernel. I'm using it right now on my tab.
[Galaxy Tab 2 7" Android Development] CodyF86:
Yes the graphics are completely fixed except for when you rotate the screen its a little wonky for now,

but not in the bad way it was before, no actual corruption anymore, so yeah it's way better than it was.
[Galaxy Tab 2 7" Android Development] mythi:
art mode is awesome !
[Galaxy Tab 2 7" Android Development] CodyF86:
Also the reason I linked to the other gapps and not the PA ones is because

when gapps wouldnt work right the first time I was using the PA ones, then I

did a clean install and flashed the other gapps at the same time and it worked fine.

http://xdaforums.com/showthread.php?t=2012857

The ones I link seem to work in ART, I had trouble with ART and the PA ones,

but if the PA gapps work for you with ART then go for it. :)
[Galaxy Tab 2 7" Android Development] sim_tcr:
I was referring to same link, There are 11-15_GApps_4.4_Odex_Art_signed.zip and

11-15_GApps_4.4_Odex_Art_Update-3_signed.zip which one to use?

Or can i use pa_gapps-modular-mini-4.4-20131114-signed.zip ?
[Galaxy Tab 2 7" Android Development] zeetherocker:
I saw the PA gapps changelog... They have mentioned that they work for both ART and dalvik :confused:

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

How exactly is the ART mode different...?? Didn't read much about it anywhere..!! :rolleyes:
[Galaxy Tab 2 7" Android Development] mythi:
art makes app excution faster than ever i hope it take over that old dalvik
[Galaxy Tab 2 7" Android Development] sim_tcr:
Installed Build#4 successfully.

Wipe DATA, CACHE, DALVIK CACHE

Installed BUILD#4

Installled pa_gapps-modular-mini-4.4-20131114-signed.zip

And I have root, playstore, gmail.

Camera, sound, dialler, 3g works well.
[Galaxy Tab 2 7" Android Development] CodyF86:
One is newer than the other they have the dates next to them on the link I posted.

But PA gapps worked for ^^ above, so I think the key is flashing gapps right after

you flash the rom, don't boot before you flash gapps.
[Galaxy Tab 2 7" Android Development] sim_tcr:
Flashed 11-15_GApps_4.4_Odex_Art_Update-3_signed.zip too and cannot make any difference.
[Galaxy Tab 2 7" Android Development] CodyF86:
http://www.androidfilehost.com/?fid=23212708291677613

These are the gapps I am using, and it works, just flash it right after you

flash the rom. Also make sure you setup your google account in the setup

thing on first boot, it worked for me fine once I did it like that.
[Galaxy Tab 2 7" Android Development] DarkStryder:
Cody is ART making a big diffrence?

sent from my xperia neo v
[Galaxy Tab 2 7" Android Development] jprednik:
Can someone please confirm working phone calls ower BT? This has been main isue on mine P3100 for most roms. Many thx. Also GJ!
[Galaxy Tab 2 7" Android Development] philidor:
[MENTION=5337314]CodyF86[/MENTION] will be you CM maintainer for P31XX tablet?

PS great work!!!!

Inviato dal mio GT-P3100 con Tapatalk 4
[Galaxy Tab 2 7" Android Development] gradular:
He just does this in his free time, like most devs. Welcome back Cody and great progress in such little time!
[Galaxy Tab 2 7" Android Development] nakbaliNe:
Just flash it and most of it working,try to.open bbm but it onlys show halfs screen

great job,thank you
[Galaxy Tab 2 7" Android Development] lokesh.3440:
[MENTION=286278]CODY[/MENTION] ,I must say superb work brother, I am really exited to see kitkat running on my tab except for the minor rotation bug,,,keep this going,,,
[Galaxy Tab 2 7" Android Development] simomare:
Ehm, i ve tryed v4 but i bootloop...
[Galaxy Tab 2 7" Android Development] Android-Andi:
try a clean install using CWM 6.0.4.5 or CWM 6.0.4.4

Wipe Data Factory reset

wipe cache

wipe dalvic cache

format /system

flash rom

reboot device and give it some time for 1st boot

---------- Post added at 04:42 PM ---------- Previous post was at 04:41 PM ----------

no problems here for experimental-4 on p3110
[Galaxy Tab 2 7" Android Development] simomare:
thanks a lot but i have do it, with cwm 6.0.4.4 and i have waited for 20 minutes, but nothing.
[Galaxy Tab 2 7" Android Development] juninromualdo:
lost root, all requests are denied, looked at settings - superuser and everything is normal. some solution, without reinstalling the rom?
[Galaxy Tab 2 7" Android Development] daavvis:
I know the camera answer ;)

OK, so I had this same problem a while back, and I posted here but I'm not sure people knew what I meant...

Its your g apps... The ones you have been using, combined with the backuptool in the ROM zip...

To fix it, do a system wipe before flashing your ROM, and use core gapps... Otherwise it won't install cam or launcher3 cause it thinks you are gonna use googles... Its a weird thing for sure...
[Galaxy Tab 2 7" Android Development] Narciso Neto:
Mine was with the same problem, but I was using an FAKE usb cable (yeah the original is really overpriced)... Tried on my mom's Tab 2 7.0 (Stock original Samsung) and it did the same thing! So the problem must be with USB cable, if you're using a fake one. :good:
[Galaxy Tab 2 7" Android Development] as007:
[MENTION=4660826]Narciso Neto[/MENTION]

Only that I am using the original cable that was included. I suppose it is the fault of this build. I used to option in recovery to wipe battery status. Now this is not the latest recovery CWM 6.0.4.5. It seems to me that this would solve the problem.

---------- Post added at 04:22 PM ---------- Previous post was at 04:04 PM ----------

EDIT:

I noticed that the problem occurs only when the tablet is connected to your computer via USB. When I disconnect, battery is charging to 100%.
[Galaxy Tab 2 7" Android Development] Narciso Neto:
[MENTION=4637864]as007[/MENTION]

Really strange, my problems happened three builds ago, and its exactly what you describe...

Make a backup of your ROM and save it on PC then reflash stock ROM to test if it happens there too, if yes the problem should be your USB cable or even the battery...
[Galaxy Tab 2 7" Android Development] CodyF86:
Charging via USB attatched to a computer will only work if it's a powered port and then it will barely charge.

Charge it from the wall, you're also not doing your battery any favors charging it like that.

Gonna skin over some stuff maybe do another build tonight, setting up some tab 3 repos also sometime today.
[Galaxy Tab 2 7" Android Development] as007:
[MENTION=5337314]CodyF86[/MENTION]

I know, that I should charge my tablet via ac supply, but I will copy files form my computer.
[Galaxy Tab 2 7" Android Development] shinobisoft:
The typical powered USB port will only supply 2 mA of DC current, while a wall charger, on the average, supplies 500 mA of DC current. On some PC's, the USB ports output power can be changed however.

@as007

Just because your PC won't charge your tablet, doesn't mean that it won't allow data transfer. ;) Also, it could possibly be your data/charging cable that's at fault. Nothing lasts forever and the cable are easy to mess up if you're not careful. Try with another data cable if at all possible.