yashsingh1/xdaforums huggingface dataset:
[G1 General] PCTechNerd:
Hello everyone,

I recently moved to Helena, MT to be with my children, and there's no way in hell I can give up the functionality of Android. Since T-mobile doesn't get service in MT at all except for roaming, I switched to Cellular One (Formally chinook wireless). I got the APN info from Cellular one, and got internet working, but for the life of me I can't seem to get MMS working at all. I'll first list the settings I was told (they know nothing of Android at all so they gave me the settings for WM smartphones), and then I'll list what settings I have put in the phone. I hope someone can help me to get MMS working ^^.

These are the APN instructions exactly as they were printed out for me (for a WM phone):

Connection #1

Connection Name: Internet

Data Bearer: Packet Data

Access Point Name: internet.chinookwireless.net

Username: None

Prompt Password: No

Password: Leave as default

Authentication: Normal

Homepage: google.com

Network Type: IPv4

Phone IP Address: Automatic

DNS Address: Automatic

Proxy Server Address: None

Proxy Port Number: Blank

Connection #2

Connection Name: WAP

Data Bearer: Packet Data

Access Point Name: wapgw.chinookwireless.net

Username: None

Prompt Password: No

Password: Leave as default

Authentication: Normal

Homepage: multimedia.cellonenation.net

Network Type: IPv4

Phone IP Address: Automatic

DNS Address: Automatic

Proxy Server Address: 204.181.155.195

Proxy Port Number: 8080

Connection #3

Connection Name: MMS

Data Bearer: Packet Data

Access Point Name: wapgw.chinookwireless.net

Username: None

Prompt Password: No

Password: Leave as default

Authentication: Normal

Homepage: http://mms.cellonenation.net/mms/

Network Type: IPv4

Phone IP Address: Automatic

DNS Address: Automatic

Proxy Server Address: 204.181.155.195

Proxy Port Number: 8080

OK, now here's the settings I have set up in the APN in android:

Name: Cellular One

APN: internet.chinookwireless.net

Proxy: < not set>

Port: < not set>

Username: < not set>

Password: < not set>

Server: http://mms.cellonenation.net/mms/

MMSC: http://mms.cellonenation.net/mms/

MMS Proxy: 204.181.155.195

MMS Port: 8080

MMC: 310 (correct for cell one/chinook wireless)

MNC: 570 (correct for cell one/chinook wireless)

APN Type: < not set>

If anyone can help out with this it would be greatly appreciated
[G1 General] dboreham:
Hi, you've probably already figured this out but since I just went through a similar process (my company runs a mobile sync service and we need to test a big pile of different GSM phones against the service, which is not so easy here in Bozeman).

CellularOne has setup instructions for smart phones, e.g. :

http://www.cellonenation.com/support/HTCTouch_setup.pdf
[G1 General] PCTechNerd:
Unfortunately I've tried it with those settings too and they don't work on android. Here's what I have set:

1st connection:

Name: Cellular One

APN: internet.chinookwireless.net

Proxy: < not set>

Port: < not set>

Username: < not set>

Password: < not set>

Server: < not set>

MMSC: < not set>

MMS Proxy: < not set>

MMS Port: < not set>

MMC: 310 (correct for cell one/chinook wireless)

MNC: 570 (correct for cell one/chinook wireless)

APN Type: < not set>

2nd Connection

Name: Cellular One MMS

APN: wapgw.chinookwireless.net

Proxy: < not set>

Port: < not set>

Username: < not set>

Password: < not set>

Server: < not set>

MMSC: http://mms.cellonenation.net/mms/

MMS Proxy: 204.181.155.195

MMS Port: 8080

MMC: 310 (correct for cell one/chinook wireless)

MNC: 570 (correct for cell one/chinook wireless)

APN Type: mms

Did you get these working on an Android?
[G1 General] ajb999:
Don't know if this will help as I am not familiar with android but this site http://montanawireless.blogspot.com/2009/01/cellular-one-gprs-mms-settings.html lists two slightly different settings for mms. One for wap2.0 and one for wap1.0. The only difference I believe is the port. I have no clue what version android runs but it might be worth trying the other port.

Another thing I noticed is when I flashed my s621 to ookba's wm6.5 rom it automatically downloads the network settings by itself using connection setup and I end up with 2 different settings named ChinookMMS. Strangely enough one links to the other anyways so I don't know why 2 are needed. One is under settings>connections>GPRS and the other is under settings>MMS Settings. If changing the port doesn't help I'll post the setting for both even though they are basically the same as yours.
[G1 General] PCTechNerd:
I have tried both the WAP1.0 and the WAP2.0 settings. neither of them are going through. Also, the reason it auto configured like that, is because WM utilizes a piggyback setup. you have to create a DATA connection, then a new one under MMS that states which data connection to use. I'm guessing that the GPRS connection uses an APN of wapgw.chinookwireless.net and the MMS one links to the GPRS one right? it's no different then Android, cept Android does it all within one screen.
[G1 Q&A, Help & Troubleshooting] sasha101:
Okay ever since a week ago my G1 ahs been tunring of by itself. I have to remove the battery for it to turn back on because when I click power it wont turn on. Does anyone know a solution to this? I have CM 3.8.1
[G1 Q&A, Help & Troubleshooting] h.nocturna:
Have to tried wiping and re-flashing?
[G1 Q&A, Help & Troubleshooting] brooklyndiva24:
my phone does the same thing i yet to find a solution and i always try wiping and reflashing.
[G1 Q&A, Help & Troubleshooting] h.nocturna:
Then have to tried flashing back to RC29 and re-rooting from the beginning again?
[G1 Q&A, Help & Troubleshooting] sasha101:
Yea I tried that already it keeps doing it like every hour or so. The LED stays on but the whole phone will stay off unless I remove the battery and click power again.
[G1 Q&A, Help & Troubleshooting] gtrplr71:
same here no solution
[General Questions and Answers] masterrn:
Can anyone tell me if using a class 2 card slow down the hero build?

Should I switch to a class 6? and if so how will it improve things?

And finally how CAN i copy my apps on sd ext2 to windows.

please help thanks

hit me up I am willing to donate if i get this working =)
[G1 Android Development] Denkai:
Many people having issues getting compcache/swap working, so here we go.

Replace the content of your userinit.sh with this code. This code was created by uwonsom and modified by yours truely and lastely by Alapapa. to see the original work click Here.

I've also attached the file ready for you to throw directly into /system/sd.

{from original post}

The current setting enables compcache with backing_swap (a physical partition). It can also be tested with linux-swap only--just comment out lines beginning with insmod, mknod, and swapon /dev/ramzswap0. Then uncomment swapon /dev/block/mmcblk0p3.

If you wish to test it out only with compcache, comment out the insmod line with backing_swap and uncomment the insmod line with disksize_kb.

{/from original post}

#!/system/bin/sh
##adb push userinit.sh /system/sd/

uname_r=`uname -r`
moddir=`find /system/modules -type d -name $uname_r`
insmod=/system/bin/insmod

$insmod $moddir/compcache/xvmalloc.ko;
#$insmod $moddir/compcache/ramzswap.ko disksize_kb=32768;
$insmod $moddir/compcache/ramzswap.ko backing_swap=/dev/block/mmcblk0p3;

mknod /dev/ramzswap0 b 253 0;
echo 20 > /proc/sys/vm/swappiness;

# Experimental settings
echo 1 > /proc/sys/vm/page-cluster; # default: 3 Changes Page clustering from 8 to 2.
echo 5 > /proc/sys/vm/laptop_mode; # default: 0 Helps keep SSD from getting worn.
echo 5000 > /proc/sys/vm/dirty_expire_centisecs; # default: 3000
echo 800 > /proc/sys/vm/dirty_writeback_centisecs; # default: 500
echo 10 > /proc/sys/vm/dirty_background_ratio; # default: 5
echo 16 > /proc/sys/vm/dirty_ratio; # default: 10
#

swapon /dev/ramzswap0;
#swapon /dev/block/mmcblk0p3;

#Over Clock CPU when in use, puts at lower freq when idol. # if you don't want it.
echo 128000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;
echo 528000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;

Edit: Thank Alapapa for the new code, will now work with all versions of CM 3.6.7 and higher!
[G1 Android Development] Binary100100:
Thanks! But it's not going to work if Cyanogen changes the kernal again.

2.6.29.6 is current... but probably not for long. :p
[G1 Android Development] jroid:
does the attached userinit come with those changes already or do u have to modd theose changes over to it
[G1 Android Development] alapapa:
here's the code that will work if kernel version changes:

#!/system/bin/sh
##adb push userinit.sh /system/sd/

uname_r=`uname -r`
moddir=`find /system/modules -type d -name $uname_r`
insmod=/system/bin/insmod

$insmod $moddir/compcache/xvmalloc.ko;
#$insmod $moddir/compcache/ramzswap.ko disksize_kb=32768;
$insmod $moddir/compcache/ramzswap.ko backing_swap=/dev/block/mmcblk0p3;

mknod /dev/ramzswap0 b 253 0;
echo 20 > /proc/sys/vm/swappiness;

# Experimental settings
echo 1 > /proc/sys/vm/page-cluster; # default: 3 Changes Page clustering from 8 to 2.
echo 5 > /proc/sys/vm/laptop_mode; # default: 0 Helps keep SSD from getting worn.
echo 5000 > /proc/sys/vm/dirty_expire_centisecs; # default: 3000
echo 800 > /proc/sys/vm/dirty_writeback_centisecs; # default: 500
echo 10 > /proc/sys/vm/dirty_background_ratio; # default: 5
echo 16 > /proc/sys/vm/dirty_ratio; # default: 10
#

swapon /dev/ramzswap0;
#swapon /dev/block/mmcblk0p3;

#Over Clock CPU when in use, puts at lower freq when idol. # if you don't want it.
echo 128000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;
echo 528000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;
[G1 Android Development] Denkai:
thanks Alapapa, changed the script uptop and the one attached to your modifed script.
[G1 Android Development] alapapa:
De nada...I got the kernel version magic from some thread on here at some point.

Cheers!
[G1 Android Development] zimphishmonger:
Any reason for setting page cluster to 1 instead of 0, as I think i saw earlier in the thread being recommended? Have you had better performance w/ setting it to 1? Thanks
[G1 Android Development] Denkai:
I personally haven't screwed around with the paging. you may get better, you may not.
[G1 Android Development] uwonsum:
You could do away with this line since the CPU already scales to 528MHz:

Add the following.:

echo 200 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/powersave_bias; # default: 0
#echo 2000000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate; # For build <=3.9.1

"The powersave_bias parameter modifies the behavior of the ondemand governor to save more power by reducing the target frequency by a specified percentage. By default, (powersave_bias = 0), the ondemand governor selects the minimum processor frequency that can still complete a workload with minimal idle time. Doing so should result in the highest performance to power efficiency ratio. In some cases, you might prefer a greater emphasis on power efficiency than performance. In this case, set the powersave_bias parameter to a value between 1 and 1000 to reduce the target frequency by one-thousandth of that value. For example, set powersave_bias to 100 for a one-tenth reduction in target frequency. In this case, if the governor chooses a target frequency of 2 GHz (with powersave_bias = 100), the governor instead will request 1.8GHz – a one-tenth reduction. If 1.8 GHz is an exact match with an available hardware frequency (listed in the scaling_available_freq parameter), the processor is set to this frequency. If 1.8 GHz is not available, the processor fluctuates between the closest available upper and lower frequencies for an average frequency of 1.8 GHz."

If you notice lag, I would set it to 150; 100 was not much of a benefit. 250 will give you longer battery life for sure, but anything over that could result in major lag.
[G1 Android Development] bhilgeman:
I pushed the file to /system/sd

I run cmd #free and there's 0 under swap

I run cmd #cat /proc/ramzswap and get an error

When I look in /system/sd the userinit.sh file is in lost+found... Did I do something wrong?
[G1 Android Development] runderekrun:
Yeah same here (except my userinit.sh is not being moved to lost+found).

I ensured the permissions were fine... what am I doing wrong?
[G1 Android Development] ttabbal:
Did you execute it or reboot? Just putting it there does nothing by itself. :D

In a shell, just do /system/sd/userinit.sh

What happens?
[G1 Android Development] uwonsum:
you should not have to execute it.
[G1 Android Development] runderekrun:
Yeah I thought Cyanogen's roms would auto-run userinit.sh?

Anyway trying to manually run it just throws up errors.
[G1 Android Development] ekeefe41:
Is this correct for a linux swap partition?

I was unsure about lines

$insmod $moddir/compcache/xvmalloc.ko;

$insmod $moddir/compcache/ramzswap.ko

Does the $ mean i do not comment them out?

#!/system/bin/sh
## adb push userinit.sh /system/sd

#insmod /system/modules/lib/modules/2.6.29-cm/compcache/xvmalloc.ko;
#insmod /system/modules/lib/modules/2.6.29-cm/compcache/ramzswap.ko disksize_kb=32768;
#insmod /system/modules/lib/modules/2.6.29-cm/compcache/ramzswap.ko memlimit_kb=32768

#backing_swap=/dev/block/mmcblk0p3;
#insmod /system/modules/lib/modules/2.6.29-cm/compcache/ramzswap.ko

#backing_swap=/dev/block/mmcblk0p3;

#mknod /dev/ramzswap0 b 253 0;
echo 16 > /proc/sys/vm/swappiness; # default: 60

## Experimental settings
echo 1 > /proc/sys/vm/page-cluster; # default: 3
echo 5 > /proc/sys/vm/laptop_mode; # default: 0
echo 5000 > /proc/sys/vm/dirty_expire_centisecs; # default: 3000
echo 800 > /proc/sys/vm/dirty_writeback_centisecs; # default: 500
echo 10 > /proc/sys/vm/dirty_background_ratio; # default: 5
echo 16 > /proc/sys/vm/dirty_ratio; # default: 10
##

#swapon /dev/ramzswap0;
swapon /dev/block/mmcblk0p3;

## Additional experimental settings
echo 128000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq; # default: 245760
##

exit;

## commands to display useful system info
## **Do not uncomment**

# free
# top -m 8; displays only 8 processes
# cat /proc/swaps
# cat /proc/ramzswap0
# cat /proc/meminfo
# sysctl -a | grep vm
# cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
# vmstat -d 5 -n 10

Also i am stuck at work, so not ADB for me (don't want to install drivers on work pc)

Can i do this with userinit.sh on root of card

Code:

# su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
# cp /sdcard/userinit.sh /system/sd/userinit.sh
# chmod 755 /system/sd/userinit.sh
[G1 Android Development] uwonsum:
Yes, and you should also comment out this backing_swap=/dev/block/mmcblk0p3;
[G1 Android Development] ekeefe41:
ok, how about now ^^ i edited it
[G1 Android Development] ttabbal:
You have to execute it somehow. Cyanogen's roms do it on boot, that's why I said "execute OR reboot".

If you can't run it manually, it's probably not working on boot either. What errors is it throwing up?
[G1 Android Development] uwonsum:
It's fine the way it is. But if you look at this thread, some of my experimental settings have been implemented into a new userinit.sh script with a user.conf file that makes things so easy where you wont ever have to touch the userinit.sh script.

Now, I have edited this new script. I corrected a line that could potentially pose a problem for people using a different kernel. I also added a few more options to the script that can be set in the user.conf file. I will post it on that thread in a few minutes.
[G1 Android Development] runderekrun:
Sorry I missed the reboot comment.

I just don't understand it. It will not run the userinit.sh. It is saying it can't find it. If I try to run it with the wrong permissions it gives me a "Permission denied" but as soon as I chmod it too 755 it suddenly can't find the file...

I accidentally pasted the whole userinit.sh text the shell and it started working, so I have no idea whats wrong with this file. None what so ever.
[G1 Android Development] My_Name_Is_Neo:
with the backing_swap parameter in place

why is

line commented. Is there no need to enable the swap partition. Compcache will do this internally?

For the first time users. who have never enabled the swap partition ever on the ROM but the partition is in place, is there a need for running

atleast once or this also is handled internally by compcache.
[G1 Android Development] kyralak:
this does not work at all..

It gives constant failures trying to locate insmod using your method
[G1 Android Development] Denkai:
do yourself a favor, reboot. other wise, you can also type sh /system/sd/usuerinit.sh to run the file from terminal. you should not need to reboot.
[G1 Android Development] Denkai:
easy, its commented out. does not run. it's there in case someone wants to disable compcache.
[G1 Android Development] Denkai:
what version are you running of CM? did you run the file as an SH? you need to have the first portion of the script in order for it to know where $insmod is located.
[G1 Android Development] runderekrun:
Hey guys I still can't get this working...

When I try and run the command 'sh /system/sd/userinit.sh', it gives me this output.

: not found
: not found
: not found
: not found
: not founduserinit.sh: /system/bin/insmod
: not found
: not founduserinit.sh: /system/bin/insmod
: not found
: not found
mknod: /dev/ramzswap0: File exists
: not found
: not found
: not found
: not found
swapon: /dev/ramzswap0: No such device or address
: not found
: not found
: not found

It also does not work by just being in /system/sd on the reboot.

If I manually paste the userinit file in my console window it works, also through gscript it works fine.

Anyone have any ideas? I am running CM 3.9.2, fyi.
[G1 Android Development] pinetreehater:
Clearing Swap

I was just curious, and my searches came up empty handed. I have a linux swap installed and was wondering: What happens when the swap is full? It seems to constantly add data, and I am nowhere near full, but should we periodically clear the "cache" or something?

Don't flame if this has been answered...just point me to the thread.

2.6.29.6-cm
14:05:31 up 2:52, load average: 0.00, 0.11, 0.31
20
Filename Type Size Used Priority

/dev/block/mmcblk0p3 partition 32088 9676 -1
/proc/ramzswap: No such file or directory
total used free shared buffers
Mem: 97860 95664 2196 0 708
Swap: 32088 9676 22412
Total: 129948 105340 24608
#
[G1 Android Development] pphi:
I got the same thing, running 3.8.1. How do we know if its working?
[G1 Android Development] runderekrun:
It's probably not working.

Type 'free' into the console, see if there is anything for swap.

Also type in 'cat /proc/ramzswap' and see if that comes up with anything.
[G1 Android Development] pinetreehater:
How to tell if COMPCACHE/LINUX-SWAP is working

From ADB

type "adb shell" (without quotes) then

uname -r;uptime;cat /proc/sys/vm/swappiness;cat /proc/swaps;cat /proc/ramzswap;free

This will give you several reports including

1. swappiness

2. amount of time since last boot

3. swap size

4. amount of used and free and total memory including swap

5. Kernel version

***if you are not using compcache (only linux partition) the command cat /proc/ramzswap will return a "not found"

From Terminal

open terminal and at the first prompt type "su"

then

uname -r;uptime;cat /proc/sys/vm/swappiness;cat /proc/swaps;cat /proc/ramzswap;free

Hope this is helpful

BTW, for clarity's sake, it is sometimes easier to read if you only type one command at a time (e.g., cat /proc/ramzswap....anything between the semicolons will return values).

Will
[G1 Android Development] userfriendlyme:
Im geting the same erros when trying this. since updating to 3.9.2 i cant connect to adb currently. can someone post the instructions to push the script through via terminal i cant seem to get it to work.
[G1 Android Development] pphi:
Yeah looks like its not running. Um, what can I do to make it work?
[G1 Android Development] overground:
I'm wondering (and have been asked) the same thing...you get an answer yet?
[G1 Android Development] pinetreehater:
no Overground, I have not. I may post a similar question in a thread where it is more likely to get answered (but also more likely to get me flamed).
[G1 Android Development] uwonsum:
There is a new script created by huanyu that is really easy to use and works with any cm build. It also makes things easy where you don't have to touch the userinit.sh script, but configure your settings in a new file user.conf.
[G1 Android Development] fahadayaz:
swap?

hi there im a little confused as to what this script does.

and a couple in general, so plz bear with me.

i already am using a 96380KB swap partition. is the difference between swap and compcache that the latter will compress the data whereas swap doesnt?

so with this script, does it use the swap partition as the place to save compcache? this would also be compressed right? and so in the size area in the script would i write 96380KB?

thanks for your time.. :)
[G1 Android Development] SpEnTBoY:
I'm obviously missing something or forgetting to toast something.

Here's how the commands progress:

# insmod /system/modules/lib/modules/2.6.29.6-cm/compcache/xvmalloc.ko
# insmod /system/modules/lib/modules/2.6.29.6-cm/compcache/ramzswap.ko
# lsmod
ramzswap 12584 0 - Live 0xbf015000
xvmalloc 3656 1 ramzswap, Live 0xbf00f000
# mknod /dev/ramzswap0 b 253 0
# ls -l /dev/ramzswap0
brw-rw-rw- 1 0 0 253, 0 Aug 13 16:41 /dev/ramzswap0
# echo 20 > /proc/sys/vm/swappiness
# swapon /dev/ramzswap0
swapon: /dev/ramzswap0: Invalid argument

Anyone know why I'd get an invalid argument? Is there something else you have to do to enable compcache?

I do have a Linux swap partition on my SD card I am not using right now because I wanted to test this but I can't activate this. I also have no ramzswap in proc ... just the device node.

help? :)
[G1 Android Development] alapapa:
which rom are you using? if using a recent cyanogenmod, you will have to use the rzscontrol tool to init prior to swapon like so:

modprobe ramzswap;
/system/bin/rzscontrol /dev/block/ramzswap0 --init;
swapon /dev/block/ramzswap0;
[G1 Android Development] SpEnTBoY:
exactly what I was missing! thanks alapapa. Is the size still static at 24MB or is there an option you can pass rzscontrol that will increase the swap size?

thanks again!!
[G1 Q&A, Help & Troubleshooting] Zaslav:
Can anyone recommend a good bt file transfer software? Tried searching for one in market but couldn't find anything. I know they are floating around just don'tknow the names.

Thanks in advance.
[G1 Q&A, Help & Troubleshooting] Sistum Id:
I think one is called Blue X?
[G1 Q&A, Help & Troubleshooting] h.nocturna:
one word Bluex
[General Questions and Answers] masterrn:
Can anyone tell me what is the best and fastest Hero build?

And what is the best Build period? why and where can i get either one.

thank you

hit me up here
[General Questions and Answers] orb3000:
If you dont want to get your mail spamed better remove your email:eek:
[G1 Apps and Games] jordanfein92:
View attachment 210376Call dock bar widget is the best widget alont with power managment widget lol screen shots will e posted of call bar !!!!!!!!!!!!!!! I have the apk. File for this

APK FILE ADDED SORRY AND THANK YOU TO THE DEVELOPER OF THIS APPLICATION SINCE PEOPLE WANNA COMPLAIN:D
[G1 Apps and Games] Binary100100:
Did you make this? Or is it from Market?

Where did you upload the apk file? I suggest just zipping it and uploading here IF it is not from Market.
[G1 Apps and Games] amarkow2:
or you could support the dev who made this widget instead of STEALING it...sheesh...cheap?
[G1 Apps and Games] jordanfein92:
cause idk who made it i got it from app pack asshole
[G1 Apps and Games] Binary100100:
Do

NOT

post anything up here that you had to purchase. It will be grounds for banning.

Rules to live by on XDA.
[G1 Apps and Games] amarkow2:
this is an app you have to PAY for...ass hole
[G1 Apps and Games] jordanfein92:
i didnt have to purchase this i got this from an appPack !!!!!!!!!!!!!!!!!!!

:D:D:D:D:D:D:D:D:D
[G1 Apps and Games] Binary100100:
There is an app on market called Call Dock Bar on Market. I would suggest removing your attachment before you get banned.