yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Maleko48:
Yes, he speaks the truth. After updating to a recent Cyanogen ROM, my phone just got super clunky and annoying to use, so I set out to do a completely fresh install: resizing, reformatting, wiping, fresh ROM flash, and fresh app dls. I thought since I was stuck using the stock 1GB SD card (for now at least) that is inherently Class 2, it was causing me a major bottleneck since CC and BackingSwap both employ fair usage of your SD card. Well after updating to Cyanogen's 4.1.2.1 and installing all my apps, Benchmark Pi clocked in at about 15.5ms - 16.5ms using Cyano's stock CC settings built into his ROM. Next I pushed Taylor00's user.conf with the 0.1.4.1 userinit.sh. After rebooting, my phone clocked in at 12.6ms - 13.2ms on Benchmark Pi, a definite improvement.

:D -Maleko48
[G1 Android Development] alapapa:
if i notice it being laggy, i just swapoff & swapon and it's like i'm fresh off a reboot.

what would be epic is if someone ported anacron / atd to android -- i could set it to do this at 4am.
[G1 Android Development] miketaylor00:
I believe that crontab is a part of busybox. You can use that.
[G1 Android Development] ei8htohms:
I'm still not following

What I'm confused about is the significance of choosing 192000 as a scaling frequency at all. My understanding is that the CPU can only run at certain frequencies and 192000 is not one of them. If you set 192000 as your minimum scaling frequency, doesn't that have exactly the same effect as setting it for 245760? Since there are no frequencies available between 122880 and 245760, any setting (for minimum scaling frequency) between those would default to the higher frequency, in this case 245760. Am I missing something here?

The reason I thought it might be a typo is because there is a 19200 frrequency available, but from all reports anything near that low will just lock up the phone.
[G1 Android Development] overground:
Here is a copy/paste of that section of the latest user.conf set with MT00's settings:

#cpu clock
proc_cpu{
proc_cpu_en=1 # enable(1) or disable(0) user cpu configurations
# freqency options
# 19200
# 122880
# 128000
# 245760
# 384000
# 528000
scaling_min_freq=192000 # default 245760
scaling_max_freq=528000 # default 528000
sampling_rate=2000000 # default 2000000 depending on kernel version
powersave_bias=0 # default 0, (200 since CM3.9.6+ )
up_threshold=45 # default 40, percent cpu usage before going up a speed step

While 192000 is not an option listed, here is the output of my userinit.sh:

C:\Documents and Settings\user>adb remount
remount succeeded

C:\Documents and Settings\user>adb shell
sh-3.2# sh /system/sd/userinit.sh -s
sh /system/sd/userinit.sh -s
=== user.conf ===
*** general ***
apps2sd=0
media2sd=0

*** CompCache ***
compcache_en=1
cc_memlimit=18
cc_disksize=32
cc_backingswap_en=1
cc_backingswap=/dev/block/mmcblk0p3
swappiness=28

*** Swap File ***
swap_file_en=0
linux_swap_file_size=32
linux_swap_file=/system/sd/swap.file

*** Linux Swap ***
linux_swap_en=0
linux_swap_partition=/dev/block/mmcblk0p3

*** VM ***
sys_vm_en=1
page_cluster=3
laptop_mode=0
dirty_expire_centisecs=3000
dirty_writeback_centisecs=500
dirty_background_ratio=5
dirty_ratio=10

*** CPU ***
proc_cpu_en=1
scaling_min_freq=192000
scaling_max_freq=528000
sampling_rate=2000000
powersave_bias=0
up_threshold=45

=== CompCache status ===
CompCache version 0.6+
Compcache enabled
CompCache: MemLimit 18432(system) 18432(user)
CompCache: BackingSwap /dev/block/mmcblk0p3(system) /dev/block/mmcblk0p3(user)
CompCache: cc_swappiness - 28(system) 28(user)

=== CompCache status output ===
BackingSwap: /dev/block/mmcblk0p3
DiskSize: 32130 kB
MemLimit: 18432 kB
NumReads: 8048
NumWrites: 10222
FailedReads: 0
FailedWrites: 0
InvalidIO: 0
NotifyFree: 3870
PagesDiscard: 0
ZeroPages: 177
GoodCompress: 100 %
NoCompress: 0 %
PagesStored: 4340
PagesUsed: 1060
OrigDataSize: 17360 kB
ComprDataSize: 4078 kB
MemUsedTotal: 4240 kB
BDevNumReads: 1233
BDevNumWrites: 1731

=== VM status ===
Set VM: page-cluster - 3(system) 3(user)
Set VM: laptop_mode - 0(system) 0(user)
Set VM: dirty_expire_centisecs - 3000(system) 3000(user)
Set VM: dirty_writeback_centisecs - 500(system) 500(user)
Set VM: dirty_background_ratio - 5(system) 5(user)
Set VM: dirty_ratio - 10(system) 10(user)

=== CPU status ===
Set CPU: scaling_min_freq - 192000(system) 192000(user)
Set CPU: scaling_max_freq - 528000(system) 528000(user)
Set CPU: sampling_rate - 2000000(system) 2000000(user)
Set CPU: powersave_bias - 0(system) 0(user)
Set CPU: up_threshold - 45(system) 45(user)

That setting seems to take.
[G1 Android Development] miketaylor00:
You can set the frequncy to 1234 if you want to. I wouldn't recommend it but you can. I don't know why it isn't listed as an option. It should be. It is a valid setting.
[G1 Android Development] andonnguyen:
You actually cant set the frequencies to any arbitrary number. There are a set of defined frequencies in the arch/arm/mach-msm/clock.c file. So you can't try to clock your CPU at let's say 523.12 or 99.8 mHz atm. Unless that frequency table is expanded to include every single frequency. Where's coolbho3000 he might be able to explain it better. lol
[G1 Android Development] bigragu:
After the phone has rebooted you can use the following command to see if everything is running properly:

Code:

su

sh /system/sd/userinit.sh -s

Everything seems to work right for me on the install but after I reboot and enter this code. I get "sh: Can't open /system/sd/userinit.sh".

Does this mean it did not work?
[G1 Android Development] overground:
Which ROM are you on? Different builds require the userinit in different places.

Have you done this?

su
cd /system/sd
chmod 755 userinit.sh
chmod 755 user.conf
reboot
[G1 Android Development] bigragu:
I'm on CyanogenMod v4.0.4. I clicked the link from this post which lead me to the code he had posted in another thread. I followed the instructions there. I don't believe the code was exactly what you have here. Will try. Thanks.
[G1 Android Development] miketaylor00:
That is not true at all I just set mine to 192123. Are you telling me that is in the clock.c file?

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;
192123
[G1 Android Development] miketaylor00:
Most likely you don't have a userninit.sh. If you are on CM 4.x it doesn't come by default. Follow the steps in this thread:

http://xdaforums.com/showthread.php?t=542899
[G1 Android Development] miketaylor00:
I added a note to the install for Cyanogen to link to the userinit.sh thread. I thought the post I linked to already had a note about it. Sorry for the confusion.
[G1 Android Development] ei8htohms:
We're talking about two different things

You can set the minimum frequency to whatever you want: agreed.

The point I'm trying to make is that the kernel will only allow the CPU to run at certain frequencies, so setting the minimum (or maximum) scaling frequencies anywhere in between two frequencies specified in the cpufreq_table will have exactly the same effect as setting it to the higher (if we're talking about min freq) or lower (if we're talking about max freq).

Since 192000 is between 128000 (I forgot that this frequency is employed as well) and 245760, using it to define the minimum CPU scaling frequency has exactly the same effect as setting it for 245760 (which is the CM 4.0.4 default min). Any setting between 128001 and 245760 would yield the same exact results in fact (barring any rounding that may be going on that close to a specified scaling frequency that is?).

If you're up for a little more testing, why not try it out? I'll do the same if my interest level and attention span hold out and will post the results.

Ok, tried out various Max Scaling Frequencies using the Benchmark Pi app (it doesn't make sense to try different Min Scaling Frequencies for that test) and got these results (avg of 5):

528000: 12695 ms

384000: 17750 ms

527000: 17663 ms

I'm calling 17663 and 17750 within the normal variation given the variability of each test, so no difference between setting max at 384000 vs. 527000.
[G1 Android Development] fengwuyu:
I flashed xROM1.4r3 on my G1 and set compcache with backing swap. I'll do some test on it.

Thanks!
[G1 Android Development] miketaylor00:
Ok, I see where you are coming from. You know you can also just ask for the current frequency.

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

If it will never step to 192000 then I may as well change the min to 245760. Thanks for pointing that out.
[G1 Android Development] miketaylor00:
I updated the second post in the thread with more information about compcache.
[G1 Android Development] miketaylor00:
If you are running xROM, you no longer need to push my user.conf. It includes a slightly updated version of my user.conf at install for version 1.5r3 and up.
[G1 Android Development] sacredsoul:
Hey man, can you upload the latest user.conf... I installed the user.conf over that of 1.5r3 :( Or Ill just reflash. Nevermind :)
[G1 Android Development] Vlad83:
Mike, I have a question. I've been reading the CC threads and in one of them you mentioned that if you have backing swap enabled and a linux swap partition then the swap would be placed on the linux-swap partition. After using your script I noticed that there was a swap.file in /system/sd which I thought was part of my ext2 partition. Am I getting something wrong?

Also, you said that the setting are different for those that have a swap partition and those that do not, can you elaborate please?

Thanks for your time and effort.
[G1 Android Development] miketaylor00:
It shouldn't have created a swap.file unless you enabled swap file, which is a newer feature for the userinit.sh. Check your settings and make sure it is set to 0.

When you use compcache by itself, the CC Disksize is the amount of memory allocated to Compcache. When you use backing swap, the CC Memlimit is the amount of memory that Compcache can use to compress data. So if backing swap is enabled the CC Disksize is meaningless. You can set it to 0 if you want. It will always show the size of your swap partition in this case.

Do some research to explain the answer better made me realize something I never knew and I have never heard anyone talk about on here. I have more testing to do! Thanks for asking the question.
[G1 Android Development] Vlad83:
Yeah I was playing with the settings and had it enabled before. I guess it needs to be deleted manually after it's created. Thanks for your input, your user.conf is working well but I still get blank home screens when exiting the browser on CM4.11.1 I understand its a trade off between responsiveness and the amount of process' and apps that the swap stores, so in order for me to slightly improve the disappearing act my icons and widgets like to play on me after using the browser, what setting(s) should I increase/decrease?
[G1 Android Development] miketaylor00:
Are you using a backing swap partition? If you are I would be really suprised that you are getting reloads that often. I do have a fix that would help on Cyanogen's experimental build but I'm waiting until xROM 1.6 comes out before I share it with everyone.
[G1 Android Development] Vlad83:
Ok no prob, I understand about the wait. Last question, by backing swap partition you mean linux-swap partion? I have a P3 32MB Linux-swap. Or should I make the P3 an ext2 for the backing swap?
[G1 Android Development] miketaylor00:
You want it to be a linux swap partition. CM exprimental has the latest BFS fixes in it. I've found that it is much better at handling memory than Android was on it's own. I've been running a 64MB swap on xROM which also uses BFS. Give that a try.
[G1 Android Development] Vlad83:
Will do thanks.
[G1 Android Development] DeFiant*X:
I just switched to your user.Conf and it has put new life into my CM 4.1.11.1! I have an 8G class 6 with 32 swap, and switching droppped my Benchmark Pi from 16 to 13 seconds. Thank you mikey!
[G1 Android Development] Loccy:
Ok, I'm gravedigging a slightly dead thread here, because Mike's user.conf has become something of a default, and Compcache/backing swap is pretty much now universally accepted as a GOOD THING, but does anyone else find that it EATS battery compared to just plain old Linux swap?

I've run dozens of ROMs. Hero, Cupcake, Rogers, experimental Cyan Donut builds. Most ROMs I end up reverting after an hour or so. A couple I run for a few days before finding something I don't like, before I revert back to Cyan 4.0.4 (and I include Cyan 4.1.x.x in that too).

One of the things I find is that Cyan 4.0.4 with plain old Linux swap is the subjectively smoothest user experience than any other ROM or swap setting. I get better Benchmark Pi's on other ROMs, and with other settings, but I will inevitably end up thinking "this is 'worse' than Cyan 4.0.4 with simple swap" and reverting. The definition of 'worse' in that sentence might mean

* battery life is arse

* ROM slows down, or glitches, over prolonged use (days of uptime)

* ROM (usually Donut) is incompatible with something or other I use

Most recently I ran xROM with Mike's default settings. Same thing. Battery life compared to Cyan 4.0.4 was poor. In term of the battery life question, I've searched the forum and found that there is precious little discussion of this - just on speed. For me, 4.0.4 is *fast enough*, and I can leave the thing sitting there all day on standby and when I come back to it 8 hours later, there hasn't been single dip in battery power (and I have Exchange and GMail push running, but wifi usually disabled - so email pushes over 2/3G).

This is all subjective, and I haven't done any proper scientific testing, but does anyone else find this?
[G1 Android Development] darthlukan:
Here is my user.conf setup (minus the disabled parts). I use SetCPU to set my clock speeds, those settings are tapped out with set on boot and always max checked. My SD card atm is setup with a 68MB Linux Swap partition on a 4GB PNY Class 4 card using Cyanogen 4.1.999, about 200 apps installed (so says aTrackdog) and 1.49GB ext4 with 2.1GB Fat32. My clock profiles in SetCPU are setup for speed, except for when my phone goes to sleep, it is set for 128/128 min/max. The batter lasts all day (from 6am when I pull it off of the charger) and all night (until about 10pm when I go to bed and plug it in), I only reboot when I change ROMs or settings in the user.conf, I have used these same settings for 3days now and no lag.

#Linux swap parameters
#
# linux swap can only be enabled if cc_backingswap_en is set to "0"
#
linux_swap{
linux_swap_en=1	# enable(1) or disable(0) linux swap
linux_swap_partition=/dev/block/mmcblk0p3 # swap partition device
swappiness=66 # default 60
}

#virtual memory
sys_vm{
sys_vm_en=1	# enable(1) or disable(0) virtual memory configurations
page_cluster=0	# default 3, (0 since CM3.9.6+)
laptop_mode=0	# default 0
dirty_expire_centisecs=3000	# default 3000
dirty_writeback_centisecs=500	# default 500
dirty_background_ratio=5	# default 5
dirty_ratio=10	# default 10
}

With the above settings Benchmark Pi has me clocked at 12250ms or 12.250secs as personal best with an average (due to testing CC) of 14850.34ms or 14.850secs. Hope this helps a little. Notice the Virtual Memory is just left on with all other settings being "stock" for this version of userinit.sh. I'll let you know how laptop mode goes when I get the chance.

Brian
[MDA II, XDA II, 2060 Windows Mobile 6 Upgrading] doomboyu:
I made this thread to know if anyone of you making the developments on new builds of Windows mobile 6.5 for HTC Himalaya such as Windows Mobile 6.5 build 21054 and 23037? curious to know if any one like swampy, ather, sundream and other masters can port these build on himalaya
[MDA II, XDA II, 2060 Windows Mobile 6 Upgrading] aeroflyluby:
i tried, but relocation of imgfs failed always.
[MDA II, XDA II, 2060 Windows Mobile 6 Upgrading] Ather:
there is no use of running WM6.5 on Himalaya's because you arent left with much memory..im currently working on porting the latest WM6.1 Build, WM61 21054 CE OS 5.2.3026
[MDA II, XDA II, 2060 Windows Mobile 6 Upgrading] reefsucks:
hi Ather . .

are you planning to included M2D inside the rom?? :)

Regards
[MDA II, XDA II, 2060 Windows Mobile 6 Upgrading] Ather:
havent thought about it, but i could :rolleyes:
[MDA II, XDA II, 2060 Windows Mobile 6 Upgrading] SaBo:
That would be awesome.

I yould suggest latest M2D version from HTC mega as it seems to be less of a memory hog.

Sascha
[MDA II, XDA II, 2060 Windows Mobile 6 Upgrading] aeroflyluby:
Ather, can you tell my why I can't realloc? Are you using ervius or normail buildos kitchen?
[MDA II, XDA II, 2060 Windows Mobile 6 Upgrading] Ather:
im using 4 types of kitchen :rolleyes:

1. my own C# kitchen

2. CRBuilder2

3. Avis Kitchen

4. Swampy's kitchen
[MDA II, XDA II, 2060 Windows Mobile 6 Upgrading] Ather:
try PPCGeeks XIP Kitchen, i think it auto relocates , just slect donor XIP and your XIP thats it
[MDA II, XDA II, 2060 Windows Mobile 6 Upgrading] aeroflyluby:
I mean imgfs relocation, not xip :) But I can't port 6.5 xip at all, so I will try, thanks!

Also, Ather, did you found that if you use G'reloc in avis kitchen, your rom will not boot? Tried on oryginal too.
[Touch Pro2, Tilt 2 Windows Mobile General] D_monie3:
Hi, I am new to programming mobile platforms, so I wanted to know what is the best way to back my phone up, and if I do attempt to install a new ROM, how easy is it to revert back to my original ROM? Is it even worth it, since I am pretty new at it? I am looking into installing the Manila 2.5 on my t-mobile touch pro 2... If someone could give me some insight, it would be highly appreciated...
[Touch Pro2, Tilt 2 Windows Mobile General] YodaJM:
[Resources] Flashing your First Rhodium Rom (For Noobs) :

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

The Rom Dev board is what you are looking for.
[8525, TyTN, MDA Vario II, JasJam General] gwatty:
Hi Everyone.

My Hermes has died and it was replace by a TYTN2 so I have a few spare bits and bobs. They are on ebay.

GPS Reciever

and

Housing

*Mods, Please Move if in the wrong place, Thanks :o*

Thanks

Gwatty :D
[Windows Mobile Development and Hacking General] ZakMcRofl:
Hello everyone,

when making a localized ROM people often face the problem of finding proper localized packages/MUI, especially for non-standard packages.

Many localized ROMs are the result of a lot of translation work that may have already been done by someone else.

So the idea is that we collect working packages in a central place where we can collect matching localizations. After all, most WM6.5 packages should be device and OS version independent so we could essentially share across all devices.

What do you think about this idea? Obviously it would not be trivial to implement because we would need some kind of shared storage where everyone can contribute. The simpler solution may be a collection thread or a separate forum with links to rapidshare et al.
[Tilt, TyTN II, MDA Vario III Themes and Apps] vasquez123:
I just installed a rom on my Tilt. I believe its shifus V17. and when i go to my active sync to syncronise it will only allow me to syncronise files and favorites ..i cannot sync my mail or contacts :( please help
[Tilt, TyTN II, MDA Vario III Themes and Apps] swtaltima:
settings/connection/usb to pc/ un tick enable faster data... done and done
[Shift Development] Romper:
Hi, guys. As I found this is the driver for HTC shift's wifi? But I cannot found this library in kitchen's temp. Can someone upload your GSPI8686.dll from your ROM?

Many thanks.
[Shift Development] J_Den:
You mean driver for WinMO-side? I think, it wouldn't work, because of Wi-Fi as SDIO card, and cardreader is not accessable from winMo-side.
[Shift Development] Romper:
Actually I mean driver GSPI8686.dll that is in your windows direcory, that controlls Wi-Fi chipset.

The best would be driver from original ROM, but any other suites I think.

Many thanks.
[Shift Development] Romper:
Thank you I aready found original ROM and extraced the file.
[HTC Vox] handsolo:
hello,

does anybody know difference between these lcd types for vox :

60HH00087-00MM

60HH00088-00MM

are they compatible ?

i have vox with broken 60HH00087-00MM, after replace lcd with 60HH00088-00MM phone starts but lcd is black :( (old lcd works, but it's broken)
[HTC Vox] tobbbie:
Where did you get the replacement from? Was it announced to fit the Vox?
[HTC Vox] handsolo:
i buy it as a brand new spare part for vox, seller said that never found diffrent types of lcd's
[HTC Vox] tobbbie:
Can you derive if just the backlight is not ok and the screen works (you need some very bright light to see this) or will it stay without any signs of life?

Anyway it is simply defective - return it to the seller.
[HTC Vox] handsolo:
both types works fine, problem was with my assembling process and lcd connector :)
[HTC Vox] tobbbie:
Yes, you need to know how to unlock/lock the connector for the LCD flexcable, otherwise it will not connect.

Are you happy with the brightness of the LCD? I had one replacement LCD which was only half as bright as the original one (like the dimmed state there) - no more readable in direct sunlight.

If it is as bright: where did you buy it?
[Windows Mobile Apps and Games] Nullstring:
IMAG to Date renames image files, JPG, GIF, and BMP to Date Formatted filenames, MMddyyyyHHmm_RID (R.I.D. Random ID). The dates are based on the Date when the file is created.

You’ll probably hate the way Camera application saves the image file, which was “IMAG####.jpg”. This kind of naming will cause a problem when backing up the image files in your PC/MAC specially when the file already exists in your backup drive but different picture, the only thing you could do is to rename the file in your mobile device. For example, you have “IMAG0050.jpg” in your mobile phone and you want to move that in your PC/MAC but a file “IMAG0050.jpg” already exists but has different picture? Probably the first thing you’ll do is to rename “IMAG0050.jpg” in your mobile device into something different.

Now to make things easier, IMAG to Date is created to help from that problem.

New Version Released for NETCF 3.5

IMAG to Date 2.5

Sep. 13, 2005

ADDED

- Can customize supported extension

- File list sorted

- Enable/Disable Notifications

UPDATE

- Checked items, shown first in file list.

FIXED

- error occuring on a file with no extension

visit my blog post for more information and more screen shots!

http://bit.ly/IMAGtoDate

alternative link

http://bit.ly/IMAGtoDate2

if you found anything. please let me know ..

If you found my work useful, please consider donating

and the complete Gratitude Lists

update: June 26, 2010

moved the installer here.
[Windows Mobile Apps and Games] alexirsi:
Really useful!

But is it possible to customize the renaming pattern? For example yyyy-MM-dd_HH-mm-ss
[Windows Mobile Apps and Games] Nullstring:
yes, possible! but for the next release.

thanks for the feedback!
[Windows Mobile Apps and Games] TheRem:
this is cool! thanks Nullstring! :)

btw: i'm also using your JSPA Program Manager.

Mabuhay ang Pinoy!
[Windows Mobile Apps and Games] Nullstring:
oist! :D glad to know! maraming salamat!
[Windows Mobile Apps and Games] solrac_:
very usefull, thanks a lot.

another user interested in a yymmdd pattern (my way to classify files), even more if the pattern can be customized :)

anyway thanks for this very first solution
[Windows Mobile Apps and Games] TheRem:
i just tried it... is there a way to change the default folder (open)?
[Windows Mobile Apps and Games] Nullstring:
@solrac_

currently I'm designing a way to make things easier ..

You can format it in any way you like. :)

@TheRem

yes, click Menu>Select Folder

:)
[Windows Mobile Apps and Games] TheRem:
i mean when starting the program, it automatically opens My Documents folder but i like it to open the DCIM folder as the startup folder.