[Q] Which Kernel supports SWAP - LG Optimus 4X HD

Hi,
which Kernel supports SWAP?
Rgds
Daniel

All.

Adam77Root said:
All.
Click to expand...
Click to collapse
Really?
i tried to do a swap partition (linux swap)
but every time he shows me at the terminal emulator: swapon: /dev/block/mmcblk1p3: Function not implemented
for me it's a indication that my Kernel don't support swap?
whats your opinion Adam77Root?
Rgds
Daniel

Related

[KERNEL]CM7 Custom Kernel [5-5-2011]Smartass, aufs, Compcache/Swap

http://www.mediafire.com/file/o6e0y3l702vm44m/drowningkernel_7-5.zip
Boots @245-768 Interactive
Smartass 400-806 wake 120-320 screen off
Simple I/O scheduler
Swap enabled
built for liberty but SHOULD work on other CM msm7227 phones
drowningchild said:
http://www.mediafire.com/file/o6e0y3l702vm44m/drowningkernel_7-5.zip
Boots @245-768 Interactive
Smartass 400-806 wake 120-320 screen off
Simple I/O scheduler
Swap enabled
built for liberty but SHOULD work on other CM msm7227 phones
Click to expand...
Click to collapse
Thanks, installed and testing now,
Any chance of having this with a Wlan module attatched?
Boots and runs fine. But how do i know if Swap works?
adb shell
free
It should then display numbers where it says swap
Code:
free
total used free shared buffers
Mem: 298004 267124 30880 0 2156
Swap: 0 0 0
Total: 298004 267124 308800
bonesy said:
adb shell
free
It should then display numbers where it says swap
Code:
free
total used free shared buffers
Mem: 298004 267124 30880 0 2156
Swap: 0 0 0
Total: 298004 267124 308800
Click to expand...
Click to collapse
Code:
C:\android-sdk-windows\platform-tools>adb shell
# free
free
total used free shared buffers
Mem: 298004 294236 3768 0 2996
Swap: 0 0 0
Total: 298004 294236 3768
But i made a Swap-partition?
Im not sure what the command is to enable swap but you can download swapper2 off the market,go into advanced setings and use swap partition as opposed to swap.file
bonesy said:
Im not sure what the command is to enable swap but you can download swapper2 off the market,go into advanced setings and use swap partition as opposed to swap.file
Click to expand...
Click to collapse
Do you know what a good size for the swap would be?
Btw, kernel works great so far! WiFi is fully functional
or in terminal it should be
su
swapon -a "where swap partion is"
but swapper automates that
bonesy said:
Any chance of having this with a Wlan module attatched?
Click to expand...
Click to collapse
if i knew i would, sorry i have the htc liberty so i do not really know much about legend/espresso
drowningchild said:
or in terminal it should be
su
swapon -a "where swap partion is"
but swapper automates that
Click to expand...
Click to collapse
Using Swapper right now, thanks.
Have used this on my phone for most of the day now, working great. No freezes, camera, WiFi, etc. working.
I used it on Stock Legend and it's working fine.
Thank you.
Sent from my HTC Legend using Tapatalk
How is the aufs enabled? I tried aufs --enable but it didn't work.
can u post the modified sources too please?
I have compiled the legend wifi modules (wilink_6_1_0_0_115) for drowningchild´s 2.6.35.13 kernel.
It works great on cm7. No reboots.
wifi modules: http://www.mediafire.com/?3ib31bmkbzd65eh
kernel: http://forum.xda-developers.com/showthread.php?t=970543
thanks for the wlan drivers, bro! should've found this thread much earlier. anyway, i zipped your driver & drowningchild's latest kernel (see attached) from the links you posted. works well on cm7.0.3! i'm on min=122/max=806, smartass2 governor & default compcache. will try this combo on the nightlies when i have time. thanks again!
Is this kernel working on Sense ROMs?
I have tried it in my NewSense rom and i got bootloops.
maxq1 said:
thanks for the wlan drivers, bro! should've found this thread much earlier. anyway, i zipped your driver & drowningchild's latest kernel (see attached) from the links you posted. works well on cm7.0.3! i'm on min=122/max=806, smartass2 governor & default compcache. will try this combo on the nightlies when i have time. thanks again!
Click to expand...
Click to collapse
I've got reboots with this kernel. Is it already overclocked perhaps?
ogo2 said:
Is this kernel working on Sense ROMs?
I have tried it in my NewSense rom and i got bootloops.
Click to expand...
Click to collapse
it's specifically for cm7 roms only, afaik...
qzem said:
I've got reboots with this kernel. Is it already overclocked perhaps?
Click to expand...
Click to collapse
it's oc'd to 768 by default. whadya flash, my bastardized zip ? tosha's? or the one in the first post? flashed mine on 7.0.3 with no problems. i see you've made a post about it on the nightlies thread. i'll post a reply there instead...

[FIX][SCRIPT] Fixed zram for franco 2.6.32.x kernels (v18,v19) plus remount speedups

If you do not know what is this about and do not have any problems, leave the scripts alone and go on with your life.
Click to expand...
Click to collapse
Attached.
1a. Fixed zram.zip for franco kernels v18/v19
Fixed by removing the 00remount script from /system/etc/init.d, since it messes up with boot on phones with DT's apps2sd (and probably other similar scripts) - a2sd fails to mount sd-ext partition, phone "hangs" on LG logo.
If you are already stuck after flashing franco's original zram.zip due to this issue, then go to recovery, mount /system there, and
Code:
> adb shell
# rm -f /system/etc/init.d/00remount
# exit
> adb reboot
Alternatively, flash remove-zram.zip and reboot. This will remove ZRAM altogether.
There is no ZRAM support on franco's 2.6.35.x (v1) kernels, flashing this there is absolutely useless
Click to expand...
Click to collapse
1b. remove-zram.zip: Removes ZRAM. Deletes the following files if they exist:
Code:
/system/bin/zramconfig
/system/etc/zram.sh
/system/etc/init.d/00remount
/system/etc/init.d/00zram
2. remount-noatime.zip
Remounts all your filesystems with noatime,nodiratime options (potential I/O speedup). Taken from the original zram.zip and renamed to 98remount so that it comes after all other stuff is done.
3. remount-noatime-nobarrier.zip
Same as above, plus remounts ext4 with barrier=0 option for users with sd-ext on ext4. (potential I/O speedup)
Q: What is zram?! I do not understand what is this about!
A: Read the red warning.
Q: How can I find whether my kernel supports ZRAM?
A: Use the shell.
Code:
# zcat /proc/config.gz | grep ZRAM | grep -v ^#
CONFIG_ZRAM=y
Q: What is noatime, nodiratime, barriers?
A: Google it!
Q: I deleted the 00remount script as advised in recovery, but still have issues with A2SD not mounting my sd-ext!
A: If you are using CM7 ROM, then delete /system/etc/init.d/05mountsd as well. (Rename to _05mountsd or whatever else that does not start with digits should do as well.)
Em a newbie.... just asking ... is this improves battery life?
>>Sent from my LG-optimus One™ using XDA Premium App® Rom -void forever with franco kernel v19
samcad said:
em a newbie.... Just asking ... Is this improves battery life?
Click to expand...
Click to collapse
no!
1234567890
samcad said:
Em a newbie.... just asking ... is this improves battery life?
>>Sent from my LG-optimus One™ using XDA Premium App® Rom -void forever with franco kernel v19
Click to expand...
Click to collapse
As the doctor already mentioned... THis script is for those who get issues with boot up of their OS..!! Read the FIRST POST...!!
If your phone is working fine then this is not for you...!!!
Good one.
Prepare for 40 thousand posts asking if this script makes coffee and cleans the house for you.
imiki2421 said:
As the doctor already mentioned... THis script is for those who get issues with boot up of their OS..!! Read the FIRST POST...!!
If your phone is working fine then this is not for you...!!!
Click to expand...
Click to collapse
I have read it... but m just knowing anyway in improving in this script
>>Sent from my LG-optimus One™ using XDA Premium App® Rom -void forever with franco kernel v19
franciscofranco said:
Prepare for 40 thousand posts asking if this script makes coffee and cleans the house for you.
Click to expand...
Click to collapse
My /dev/null is ready
And does it make coffe? )
Sent from my LG-P500 using XDA App
Fresh installed 6.5.7 then fk19 then revised zram then noatime then dt a2sd (rebooting in between ofc) and got stuck again after flashing a2sd.
Got in recovery and deleted the 2 scripts from init.d via adb then reboot. It rebooted ok and I thought yeeah we're done. I did another reboot afterwards and it stuck again.
Trying to figure out what to try next. That's a way to spend my vacations lol
See adb logcat
I'll be the first. Does it make coffee and clean the house for me?
Btw glad your hissy fit is over. Good to have you back.
Sent from my LG-P500 using XDA Premium App
Testing -> remount-noatime-nobarrier.zip
I had no problems, just testing that for noatime, no barrier
franciscofranco said:
Good one.
Prepare for 40 thousand posts asking if this script makes coffee and cleans the house for you.
Click to expand...
Click to collapse
rofl, youre kinda, funny you know that?
Lawful123 said:
Btw glad your hissy fit is over. Good to have you back.
Sent from my LG-P500 using XDA Premium App
Click to expand...
Click to collapse
totally out of topic!!!!
but I HAD to rotfl! ...hissy fit.... LOL!
Is there anyway to remove ZRAM after installing the original ZRAM?
I have been following franco kernel since v16.
Now i'm using V19.1.. and i have installed ZRAM for the first time after flashing 19.1
My phone has random reboots and i guess the sole cause is ZRAM.
Is there anyway to disable ZRAM? THANKS!
NOTE: I have tried to revert back to v19 but same issue.. random reboots.
kutysam said:
Is there anyway to remove ZRAM after installing the original ZRAM?
Click to expand...
Click to collapse
Delete the installed files. See the ZIP for which ones.
kutysam said:
Is there anyway to disable ZRAM? THANKS!
NOTE: I have tried to revert back to v19 but same issue.. random reboots.
Click to expand...
Click to collapse
Delete /system/etc/init.d/00zram
Finally, I very much doubt that zram is causing reboots for you. It is merely a swap.
dr. I´m using Juwe11 RamScript, as far as I can see theres no duplicate stuff between your last script and his so i can use both, but my question is if its better that your script runs after him, now yours run first because of the files name.
Roqu3 said:
dr. I´m using Juwe11 RamScript, as far as I can see theres no duplicate stuff between your last script and his so i can use both, but my question is if its better that your script runs after him, now yours run first because of the files name.
Click to expand...
Click to collapse
Does not matter at all in which order they run...
Added remove-zram.zip; self-explanatory.
dr.notor said:
Added remove-zram.zip; self-explanatory.
Click to expand...
Click to collapse
So it will increase quadrant score? (lol)

Q: atrix fbcon

Has anyone got the fbcon framebuffer console to work on the Atrix ?
I have sucessfully compiled an atrix tegra kernel from source and booted on my 4.5.91 (2.3.4) Atrix.
I have 'sucessfully' set the frame buffer console and enabled fbcon via menu config.
These were compiled as builtin modules and built a zImage without any issues.
However, the new kernel fails to boot where the 'default .config' built kernel will boot.
I was hoping to get lucky and override the /dev/graphics/fb0 limitation on these devices. I need the framebuffer to run a framebuffer applictaion proir to starting up android after the kernel boots. I have the capability working on the nexus one just having trouble porting to the Atrix.
Does anyone know a simple kernel trick to fix the framebuffer?
Thanks in advance.
Maybe this will be of help
https://github.com/epsylon3/kernel-MB860/commit/17d7beda6baf7fdee731863ef0ae03785f30eb7b
turl1 said:
Maybe this will be of help
https://github.com/epsylon3/kernel-MB860/commit/17d7beda6baf7fdee731863ef0ae03785f30eb7b
Click to expand...
Click to collapse
It sure was. Thank you very much for the shove in the right direction.
I grabbed that git tree and configured tegra_olympus_cm7_def_config and set that switch. So I can read the framebuffer but have yet to be able to display what I right. Thanks again.
SOLVED
turl1 said:
Maybe this will be of help
Click to expand...
Click to collapse
Thanks again turl1.
there was one more hitch where you actually have to swap buffers using an ioctl found in system/device/motorolo/olympus/recovery/graphics.c:
FBIOPUT_VSCREENINFO

anybody can compile a kernel that support the NTFS?

i just download the arm-version of bt4 image but found that the kernel can not support the NTFS that the image file is too large to put into the sdcard. anybody can supply one?
besides do you guys use the compiler with eabi or not?i just wanna fix the in-call volume problem but have no idea which version compiler to use
fqhlxw520 said:
i just download the arm-version of bt4 image but found that the kernel can not support the NTFS that the image file is too large to put into the sdcard. anybody can supply one?
besides do you guys use the compiler with eabi or not?i just wanna fix the in-call volume problem but have no idea which version compiler to use
Click to expand...
Click to collapse
Try this kernel by CK (v0.4d has NTFS support)
Thread Link
progress tancycr
that's great, but my mobile is sharp 8188u, somebody say that the kernel seems not working well on the machine that the touch screen failed
Main thread updated for touch screen issues in U9000, might work on yours. Ask CK in the thread.
Sent from my Asus TF300T
Try the latest CK kernel.
k1chy said:
Try this kernel by CK (v0.4d has NTFS support)
Thread Link
Click to expand...
Click to collapse
It works greate.:good:You can try it out.
yes, it works. great

set swappiness in GDX v25

hey guys,
i know it may sound like a noob question but how can i set swappiness?
i flashed 'x8EnableSwapPartition', tryed to change swappiness in this script, but still 20..
then i tryed to set swappiness via hw_config.sh: still 20..
i feel like i'm going crazy
You're on custom kernel? If you are, there's a guide here. Try searching for that if you haven't.
Please give credit where credit is due..
If you can't even search how can I help you??
sorry, but there is no working guide...
its not the first time i used swap, but it always worked... well, actually it works but just about 14-18 MB due to 20 swappiness
and yes, of course i'm running a custom kernel
Install SetXperia from the PlayStore.
With it you can control cpu, swap and loads of really great extras.. You can even set a swap file @ boot and yes, swappiness..
thanks, it works
but there has to be another way to set swappiness, like in other roms too, without an app
laufersteppenwolf said:
thanks, it works
but there has to be another way to set swappiness, like in other roms too, without an app
Click to expand...
Click to collapse
yeah... it worked...
after reboot: 'can't get root access'... but superuser allows root...
anyone an idea to set it via script at boot?
Push SetXperia into system apps and set permissions and owner same as others..
laufersteppenwolf said:
thanks, it works
but there has to be another way to set swappiness, like in other roms too, without an app
Click to expand...
Click to collapse
sysctl -w vm.swappiness=x
where x is the value in which 0<x<100
and where do i have to add this line? hw_config ?
laufersteppenwolf said:
and where do i have to add this line? hw_config ?
Click to expand...
Click to collapse
create a new init.d script & name it to 15swappiness or anyname you want as long as there is number in front
Example:
#!/system/bin/sh
# Set swappiness to 40
sysctl -w vm.swappiness=40

Categories

Resources