yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Q&A, Help & Troubleshooting] alex72:
I thought that I have problem with my router. Guess not. BTW I found "solution" which works for me. As soon as video starts buffering, turn off the screen, then on, unlock and press play on video and enjoy your video without buffering.
[Nexus 7 Q&A, Help & Troubleshooting] bjs229:
Anyone figure out a fix for this?
[Nexus 7 Q&A, Help & Troubleshooting] simonr43:
no solution, but the same problem. Bugs the hell out of me. My workaround has been to switch to SD which of course is a bit crap. When I get within reach of a wifi connection I'll try clearing cache/uninstalling updates etc. Not keen on rooting and installing new Rom/kernel as a solution to be honest.

S.
[Nexus 7 Q&A, Help & Troubleshooting] smallzfsu:
Running 4.2 now makes no difference I'm afraid. Cleared cache and data, left updates. Still buffers uncontrollably. That said, the tip earlier tint he thread of turning off the screen, turning it back on and unlocking, then playing the video worked very well. It played HD video for 3 minutes straight with no buffering. Then a small/short buffer (acceptable) and now buffering again for the remained of the video @ 7 minutes. does this lend any information to lead to a root cause? Willing to work for a solution :D.
[Nexus 7 Q&A, Help & Troubleshooting] Just Some Atoms:
I wanted to update my situation seeing as I started this thread.

I recently moved home and changed internet provider and all of my issues with YouTube have gone away. I have gone from a 60Mb down / 3Mb up fibre optic service with Virgin Media (where I had nothing but issues). Now on a 4Mb down / .3Mb up ADSL service with Sky.

HD YouTube videos play flawlessly from everywhere I want to use my Nexus! It's not just YouTube though as pretty much everything that works from the internet is running a lot faster on my device now. I wish I could offer more of a solution but I can only say that I don't think it's a problem with the Nexus 7/YouTube app.
[Nexus 7 Q&A, Help & Troubleshooting] alex72:
Yep. I found solution in some other thread. You gotta change modem or update firmware on it. I called my ISP requesting modem firmware update, they came and put new modem instead. Even better. Wish I knew about this solution before I bought new router. Oh well...at least now I have dual band so its not total waste of money.
[Nexus 7 Q&A, Help & Troubleshooting] darkmatthew:
same :(
[Nexus 7 Q&A, Help & Troubleshooting] edge929:
So was the problem your modem, router or actual ISP? While my VDSL2 modem is capable of being a router, I have it setup in pass-through (bridge) mode to my DLINK DIR-655 router which handles everything. What exactly in the firmware is causing the slow-down just for youtube on the N7 (and not other computers)?
[Nexus 7 Q&A, Help & Troubleshooting] alex72:
In my case problem was a modem. I don't know what specific problem in firmware caused this behavior.
[Nexus 7 Q&A, Help & Troubleshooting] JeepFreak:
Sooooo, I had this problem too, up until a few days ago. No, it isn't resolved, now YouTube doesn't work on WiFi at all!

I thought my problem was my home WiFi until i had the same problem tethering to my phone. Also, like everyone else here, i have a great signal and plenty of bandwidth, but i would only experience the problem on WiFi and only on "HQ" playback. I thought this was related to the unexplainable decision to leave out "preloading" options from the settings menu of the YouTube app, but only for our tablets, but then i would get smooth playback when tethering to my phone via Bluetooth.

Anyway, I upgraded to CM10.1 and now YouTube doesn't work at all unless I'm NOT using WiFi or the "HQ" option is NOT set, so this is clearly not an issue with my router or anything like that. I would be interested to know what happens when you guys who are still having a problem try what I've tried (mainly Bluetooth tethering) or what happens when you all make it to a 4.2 ROM.

Good Luck,

Billy
[Nexus 7 Q&A, Help & Troubleshooting] JeepFreak:
I just checked my wife's N7, which is unlocked and rooted, but just running stock 4.2 from OTA and i get the exact same behavior. Anyone else?

Thanks,

Billy
[Nexus 7 Q&A, Help & Troubleshooting] mr_tris:
I get this problem when watching YouTube videos.

The way I sort the problem out is to tap the HD button and let the video run in standard definition for a couple of seconds and then put it back into HD mode.

Works every time. But some days the videos will play no problem so it could well be just something going on at Youtubes end.
[Nexus 7 Q&A, Help & Troubleshooting] bjs229:
The new update is just around the corner. 4.2.2. It is supposed to address the streaming issues as well as fix Bluetooth.
[Nexus 7 Q&A, Help & Troubleshooting] skibadee:
For those on Virgin, I found this on some forum a few weeks back and it sorted it for me.

Enter ntli.net in your block domain settings (on your superhub).

Can't remember exactly why (routing of traffic or something) but since then I get no more buffering.
[Nexus 7 Q&A, Help & Troubleshooting] fp.ath.cx:
I also have this problem - my ISP @home provides high-speed internet, which I normally really get, i.e. when I download torrents, I have respectable download-rates which should by far be sufficient for HD-youtube-playback. Still, when watching HD-content on youtube, I experience lots of buffering to a degree it's unbearable.

The interesting thing now is when I deliberately try turing WLAN off on my Nexus 7 and just watch via the 3G-option (which theoretically provides much less bandwidth). Rest assured that I enabled the "high quality even over mobile connections"-option in the setting of the YouTube-app. Interestingly, with this kind of connection I experience no lag at all! Switching back to WLAN - same old problem. :(

So in the end it really seems to be NOT a problem on the client side (Nexus 7), but an ISP-issue. Even if the ISP provides high-speed internet, it doesn't necessarily mean high-speed to all destinations, i guess. There might also be some rate-limiting for certain kind of traffic in place (such devices exist for ISPs, but it's normally not used for YouTube, but P2P-traffic).
[Nexus 7 Q&A, Help & Troubleshooting] PVL_93_RU:
Easy - if you're not using the modified version of YouTube app - then when you're on 3G - you can only watch videos in HQ, which is either 360 or 480p, while HD videos run in 720 or 1080p

So it's obvious that you won't get as much lag with video in much lower quality, even though the mobile data doesn't provide as much bandwidth as Wi-Fi does
[Nexus 7 Q&A, Help & Troubleshooting] JeepFreak:
It IS possible for the device to have issues with connectivity on WiFi and NOT on mobile data. Otherwise, you're concluding that the problem is "an ISP issue" that just happens to cover every ISP all across the country... But only (mainly?) only Nexus 7s, and only (mainly?) on the YouTube app??? Seems... Implausible to me.

Billy
[Nexus 7 Q&A, Help & Troubleshooting] fp.ath.cx:
Well, I understand what you say... but is it really the case that this is a problem *every* Nexus 7 user is seeing (because this is what you're implying). I can tell you the following: I am also experiencing degraded YouTube-experience with frequent rebufferings. today i tried turning off WLAN, using 3G instead. The quality of the video-resolution is the same to my mind (after checking the "high quality when using mobile" option in the settings of YouTube-app). But without the constant rebufferings! The next thing I tried was trying to play the exact same video on YT, but this time with a normal Windows-laptop, using the *same* internet-connection as before (same WLAN, which sits behind the same CPE). And yes - it shows the same awful rebuffering behaviour. This doesn't prove anything of course, and there are many components which may affect user-experience... just saying. have you tried my suggestion?

greetings
[Nexus 7 Q&A, Help & Troubleshooting] JeepFreak:
Not sure if you guys noticed but the new YouTube update (v4.3.9), released a couple nights ago, FINALLY includes the preloading option for our Nexus 7s! Unfortunately, the tablet has to be plugged into power and hooked up to WiFi (obviously) in order for it to start preloading. Hopefully I (somebody) can figure a way around that.

Exciting, none the less.

Billy
[Nexus 7 Q&A, Help & Troubleshooting] bjs229:
Do you mean pre loading?
[Nexus 7 Q&A, Help & Troubleshooting] JeepFreak:
Hah, yeah... Sorry! Stupid auto-correct!

Billy
[Nexus 7 Q&A, Help & Troubleshooting] radpp16:
Happened on my verizon s3 and now with my s4. Youtube is terrible.
[LG Optimus 2x] Cylx:
İ have the same problem with my USB. Any help will be over appreciated.
[LG Optimus 2x] frc147:
I've never experienced a problem like yours, but a friend of mine who has got O2X too had the same problem with CyanogenMod 7.2 stable. After many attempts we succeded in connecting the phone to pc with the debug usb mod on. So you can try :)
[LG Optimus 2x] big noob:
Hmm..Did you try puting sd card reader and putting rom on it?And flash..or new usb?
[LG Optimus 2x] Maggiefix:
Try to download the LG driver for that phone, will probably fix it.
[Xperia Play Android Development] bamsbamx:
Hi, here is a good mod specially for gaming and ICS roms which consumes big memory amount!!!

It is basically an .sh script that enables swapping. This makes device use part of sdcard to use it as RAM memory, so it can be increased a lot...

The only requirement is have root, use relatively fast sdcard and have enabled init.d scripts..

WI always have used this mod on my phone so i think it no needs testing :)

To it follow these steps:

With this, you will:

But this is not all!! You can open and edit this file to adapt it to your requirements:

I forgot it! To use this, remember that you should:

-----------------------------------------------------------------------------------------------------------------------------------------------------------------

FOR THOSE WHO HAVE NOT WORKING, DELETE 00userinit and follow the steps with 01userinit attatched file
[Xperia Play Android Development] solomon4400:
Isnt this much like swapfipe/partition?
[Xperia Play Android Development] romeo_charly:
Does it works on locked bootloaders, obviously on gingerbread??????
[Xperia Play Android Development] mehdi.moha:
i already have linux swap partition and use "swapper 2 " with doom kernel

after using swap we should disable ( turn off ) the swapper2 and then mount the SD card to computer ... so , my question is , is your script the same ? or it can disable - enable itself automatically ?
[Xperia Play Android Development] sewer56lol:
Locked or Unlocked shouldn't make a difference as long as you have Init.d support
[Xperia Play Android Development] extremetempz:
Will this reck your phone in the long run
[Xperia Play Android Development] sewer56lol:
This can't 'wreck a phone' but it can make the life of the SDCARD shorter.
[Xperia Play Android Development] bamsbamx:
That is what says some people, but i always have used it and no problems...

In addition, sdcard life is sure longer than 10 years, if you use swap constantly it could be reduced to7 or 8...

Then, it makes no sense to say that, because you probably will buy another sdcard in less than 5 years ;)
[Xperia Play Android Development] jimmyvau:
I tried this without success. I had to change the script that you provided. First I added #!/system/bin/sh to line 1 so it would run as a shell script and then the partition on my device was /dev/block/mmcblk0p3. I had to do the following to figure out which partition on my sdcard was actually set as swap. Once I edited the script with the addition to line 1 and the correct partition everything worked as expected.

~ # su
root@android:/ # fdisk -l /dev/block/mmcblk0

Disk /dev/block/mmcblk0: 31.9 GB, 31914983424 bytes
255 heads, 63 sectors/track, 3880 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 3818 30666992 c Win95 FAT32 (LBA)
/dev/block/mmcblk0p2 3818 3849 250000 83 Linux
/dev/block/mmcblk0p3 3850 3880 249007+ 82 Linux swap

And my 00userinit script looks like:

#!/system/bin/sh
if [ -n /dev/block/mmcblk0p3 ];
then mkswap /dev/block/mmcblk0p3;
fi;

if [ -e /dev/block/mmcblk0p3 ];
then echo 60 > /proc/sys/vm/swappiness;
swapon /dev/block/mmcblk0p3;
fi;

I'm running FXP 142 CM9.1.
[Xperia Play Android Development] bamsbamx:
Dont know what happened, the script I provided works for me, maybe you had to add that because you are running CM...

And what you say about partition number, I already stated that in original post.... thanks for reporting ;)
[Xperia Play Android Development] af230:
Which is better

Is this MOD better than the ROEHSOFT ram expander
[Xperia Play Android Development] bamsbamx:
i think its different, i dont know how does it work, but reading its description I think that this app creates a swap file, instead of using swap partition.. I think this is worse method than i have posted, because system compresses all swapped memory into a file,so it could be slower... In addition, you must install an app to make it work, which means a service running in background, less space for other apps, etc,etc...

I dont know, but i think my method is better ;)
[Xperia Play Android Development] evol4g:
in theory should this work on any phone?
[Xperia Play Android Development] bamsbamx:
Yes, because android is based in linux
[Xperia Play Android Development] CyberScopes:
Is there a way u could do this without wiping the sd card?
[Xperia Play Android Development] alex.mircea0509:
Hello, can you tell us how this interferes with z-ram? I have z ram init.d script activated also. What is your recomandation? Turn it off or keep them both? Thx
[Xperia Play Android Development] alex.mircea0509:
Yes. I never partition from my phone. Insert ur card into ur laptop and partition with paragon partition manager (or your choice). If you have some free space on it you could easily resize ur fat32 partition to make it smaller and then use the unpartitioned space to make a linux swap partition or en ext2/3 for link2sd, if u want (I have both).. :p Did it lots of times. No problem

---------- Post added at 11:11 AM ---------- Previous post was at 11:06 AM ----------

I had to add the first line too. Thx for the tip. I'm on stock (NXT 1.3 flavour :p )
[Xperia Play Android Development] JunDavis:
Works :D:D:D

+1 For you good sir
[Xperia Play Android Development] TaranQ:
Will this be any good on GB for daily use, I'm always short on RAM on my SGS+
[Xperia Play Android Development] mykamran:
Whether Thise need what memory class 2 best performance?and thise damage on sd or not?
[Xperia Play Android Development] jimmyvau:
I have a class 4 and it works most of the time but if I'm trying to do multiple read/write operations it chokes. I saw that Amazon has a 32GB class10 for $25.
[Xperia Play Android Development] minipot:
IfbI update my kernel or rom will this be reverted?
[Xperia Play Android Development] ozzuneoj:
For those considering buying a faster memory card for swap, you may want to check out my thread first:

http://xdaforums.com/showthread.php?t=1951593
[Xperia Play Android Development] crispyduckling:
ive partitioned my sd card with a 1gb linux swap with partitionwizard

ive put taken the txt extension off the file and put it right folder with write enabled

and rebooted and typed "free"

in terminal emulator and it says not found

ive put the edited 00user file in to see if that did it and it still says

not found in terminal emulator

im stuck
[Xperia Play Android Development] bamsbamx:
Have you tried installing latest busbox 1.20(i think)????
[Xperia Play Android Development] omneon:
not work for me :(

i try in:

- Kernel Lupus 5 GB

- ROM NXT 1.3

- busy box 1.20.2 stericson

partition 1: 12 Gb fat32 forr data

partition 2: 2 Gb for Link2SD Ext3

partition 3: 518 Mb Linux Swap

i edit 00userinit.txt > mmcblk0p2 to mmcblk0p3 > save > delete extension > copy to system\etc\init.d

--- restart

in terminal emu swap is "0" :eek:

suggest me please :angel:
[Xperia Play Android Development] bamsbamx:
Try adding this line at the start of the file

#!/system/bin/sh

If doesnt work, maybe your kernel/rom dont support init.d scripts
[Xperia Play Android Development] crispyduckling:
Tried to install latest busy box

The install messed up and now it won't let me install busy box??
[Xperia Play Android Development] w4lkm4n:
i use ics rom by markpyton ,and it's not work , i've try add #!/system/bin/sh before . . .suggestion please ,oya ,the rom has support init.d
[Xperia Play Android Development] bamsbamx:
I dont know what can happen, using the same Rom and the attached file with no changes it works for me, I am using lupus v11...

Maybe its the partition number... I am using two partitions, the first is the typical partition( music, photos,files, etc..) and the second one is the linux swap partition

Or maybe you have zram enabled... If that, delete zram file from init.d
[Xperia Play Android Development] w4lkm4n:
,i don't have zram file on init.d ,oyaa i've 3 partision : one for data (music ,photos etc)(fat32) second for link2sd(fat32) and the last (linuxswap)

and i've change mmcblk0p2 to mmcblk0p3 too

oyaaa ,i use advance stock kernel
[Xperia Play Android Development] Yusumaru Reiga:
WallAAA.!

It works for me :D

Thank you sir.

Need permission to share with others
[Xperia Play Android Development] bamsbamx:
you could try, in a minute flashing lupus kernel.... if that doesnt work try to change again all mmcblk0p2 yo see by mmcblk0p3...

If doesnt work remove if and fi lines from the file.... maybe one condition is not satisfied, so that could be the reason.... one thing more, have you rebooted device after flashing the file?;)

i dont know what could happen, but for me, i have used it in all the roms i have used
[Xperia Play Android Development] minipot:
In the terminal does it matter if the used bar shows 0 because I thought the used would be how much ram out of the swap its using at that moment in time?
[Xperia Play Android Development] w4lkm4n:
yeah i try reboot ,but it's not work ,you mean try with lupus kernel ?? ,ehm

can you upload your file to me ??
[Xperia Play Android Development] ch3mn3y:
For me it dont work too. I have 1gb partition and can mount/start it via command in terminal "swapon /dev/block/mmcblk0p3" but any of urs scripts dont work.

Via Swapper2 it works.

It would be good if @alex.mircea0509 could upload for me his script coz Im running NXT 1.3 too.

Maybe my kernel (doom v14) dont like swap partition's script? However I like it and I dont want to change it to any other.

EDIT: Flsahed lupus but scripts still not work :(
[Xperia Play Android Development] bamsbamx:
ok its uploaded... o1userinit in first post....

BUT I THINK WHY ITS NOT WORKING!!! DO YOU HAVE ANY OTHER FILES IN INIT.D FOLDER?
[Xperia Play Android Development] bamsbamx:
do you have any other files in init.d folder?
[Xperia Play Android Development] w4lkm4n:
ohh crap :silly: . . . ,the problem solve with nyour upload ,and using DooM Kernel ,thanks mate :good: :laugh:
[Xperia Play Android Development] ch3mn3y:
I used other method (for galaxy s) and it is working however i still want to know why this didnt -

@bamsbamx

Yes. Here is list:

1. 05userinit (but this is new made using method for s)

2. 11link2sd

3. 89kernelVMTweaks

4. 91minfrees

5. 92Turbo3g

6. 93zipalign

7. 94cachecleaner

8. 95setdiskread

9. 96scheduler

10. 97GovernorTweaks

11. 98CpuFreq

All i got with rom or kernel. Iv newer play with scripts till now
[Xperia Play Android Development] bodygaurd:
Pls tell me where is 00userdata file?
[Xperia Play Android Development] ch3mn3y:
So maybe this is the problem that file should be "...data" not "...init". However I have init and it works?? Magic...

Sent using tf300t - stock JellyBean (rooted)
[Xperia Play Android Development] DubleJayJ:
So, I did everything and I'm 100% sure if it worked. Whenever I type in Free in Terminal Emu it says this for swap:

Swap: 1128432(thats the size of the partition i made) 0 1128432

total used free

Did it work? It said if there are no 0's in there then it works. So does it mean it didn't work?

PlayAOKP Milestone 6 w/ Lupus CM9 Kernel
[Xperia Play Android Development] bamsbamx:
Ahhh okay,

this is the reason, any of that script is probably settings swappiness to 0, or is directly disabling swap... What you have to do is delete all other files, or search within all scripts any line where it puts something related to swap...then delete the file which contains that file....

If you are not sure if any line is related to swappiness, just ask here..

Probably its the minfrees file but I dont know, as I havent any script installed excepting 00userinit
[Xperia Play Android Development] bodygaurd:
Pls tell me where is 00userdata file?

also has anyone actually seen any considerable improvements? coz all i am seeing in this thread is "working for me" and "not working for me".

i have a class 4 sd card, stock rom, supercharged.
[Xperia Play Android Development] ch3mn3y:
@bamsbamx

It was in governortweaks file. Set to 20.

@up

Im using other method to make it works for now but my phone is faster than before (i usually have used whole ram i have and now i have +1gb of swap.

I think that ur card (class 4) is too slow (u can try). I always heard that it should be 6+.

EDIT: So now ur script works. However i have new problem. Sth (not acript or app) is changing my swappiness to 20 at boot. I can change it manually or via terminal, but after reboot its again 20.

Someone knows what is causung it?

Sent using tf300t - stock JellyBean (rooted)
[Xperia Play Android Development] DubleJayJ:
Wait, I think it works now. I just checked free again and 64 came up. Sweet. Now if only my SD Card wasn't working.
[Xperia Play Android Development] bamsbamx:
I am 90% sure that is an init.d script
[Xperia Play Android Development] bodygaurd:
From where do i download 00userdata? Also anyone with class 4 seen any improvement?
[Xperia Play Android Development] bamsbamx:
That file is attached in first post
[Xperia Play Android Development] ch3mn3y:
Thanks for help but there is nothing about swap in other files than ur 00userinit.

Now i have 00userinit (with echo 60), 11link2sd (nothing about swap, only second partition), 92turbo3g (like before), 93zipalign (<<<), 94cache cleaner (<<<).

Sent using tf300t - stock JellyBean (rooted)
[Xperia Play Android Development] bodygaurd:
No file with name 00userdata in 1st post pls re upload.
[Xperia Play Android Development] bamsbamx:
Oh excuse me i confused it, the correct file is 00userinit.txt
[Xperia Play Android Development] DubleJayJ:
Hmm odd. I made a 1GB Partition in Ext2, flashed zRam(since that's the only way I could get swap to work) and only 100mb shows up.
[Xperia Play Android Development] bamsbamx:
You must make a linux swap partition, not ext2....

Also, be careful zram is totally oposite to swap... Look at their definition ;)

Swapped memory can only be seen with terminal emulator..
[Xperia Play Android Development] DubleJayJ:
So I made that Ext2 partition into a Linux Swap, so I make it Primary, right?

I'll report back with results to see if it worked.

Also, I deleted the zRAM file in init.d

---------- Post added at 10:05 AM ---------- Previous post was at 10:01 AM ----------

Now nothing comes up whenever I type in free in terminal emulator. Swap comes up as all 0's.
[Xperia Play Android Development] DubleJayJ:
I set the Linux Swap partition to logical, and I may have screwed my SDCard over. I tried to format it and the 1GB Partition that's allocated to that isn't being wiped and it doesn't show up in MiniTool Partition Wizard.
[Xperia Play Android Development] bamsbamx:
Linux swap mustnt be the primary partition... The primary partition must be fat32, which is usually used to photos, videos, etc...

Try to set linux swap as secondary partition...

If its not shown in that program make sure you format the sd card
[Xperia Play Android Development] DubleJayJ:
Can't make it secondary. The only things that pop up are Primary and Logical.
[Xperia Play Android Development] bamsbamx:
Please, post some screenshots, hope I can help you ;)