Archive for the ‘Google G1’ Category
Using Google DNS on Google G1
So far I have been using OpenDNS on my computer at home. Great and fast service. But after reading about the new Google DNS Service I tried this and the results are better (faster) compared to OpenDNS.
So question is how to get this service running on the G1 ? Via Twitter it is suggested to modify the resolv.conf. Pull the file via ADB to your local machine: adb pull /system/etc/resolv.conf .
Edit the file:
nameserver 8.8.8.8
nameserver 8.8.8.4
nameserver 4.2.2.5
nameserver 4.2.2.4
nameserver 4.2.2.3
nameserver 4.2.2.2
Top 2 lines are for the Google DNS Server. Push the file back: adb push resolv.conf /system/etc
Reboot is not requiered. Verify with nslookup on console/shell (Thanks Will for the comment.)
Matthias
G1: Cyanogen 4.1.999(9) Current System Configuration
As my G1 is running very smooth after a trying very different system configs, it is time to share all this.
1) Hardware
I switch to a 16Gb, Class 6 SD Card and folks, it makes such a difference. You can tweak you conf as much as you want… Horsepower beats nothing.
2) Upgrade to the new Cyanogen releases
Only one comment – Do a fresh clean install! Wipe userdata, clean your ext partitions.. all this good stuff will make it easy and prevent most of the issues posted in different forums aka FC’s and unresponsiveness.
As written in a previous artikel, I went for FAT32, 500MB EXT 4 (!!!) and initially 64MB Linux Swap. Couple of comments:
Use EXT4 for ext partition!
I increased the size of my linux swap to 128MB (why – later)
4) System Configuration
I did play around with SWAPPER and other tools, but then went to use the variant with USER.CONF and USERINIT.SH from XDA forum. The main settings to tweak are:
- COMPCACHE (compache)
- SWAP_FILE (swap file on sd card fat32 partition)
- LINUX_SWAP (linux swap partition)
- SYS_WM (virtual memory setting)
- PROC_CPU (cpu clock settings)
I tried all kinds of combination, but finally I’m using only LINUX_SWAP and PROC_CPU. COMPCACHE and all other stuff did slow the G1 down compared to this.
4.1) LINUX_SWAP
#Linux swap parameters
linux_swap{
linux_swap_en=1 # enable(1) or disable(0) linux swap
linux_swap_partition=/dev/block/mmcblk0p3 # swap partition device
swappiness=60 # default 60
As I use a large linux swap partition, I can increase the swappiness to 60. This gives me the following output on the FREE command:
total used free shared
Mem: 98140 96392 1748
Swap: 124992 38168 86824
Total: 223132 134560 88572
Not bad at all! Other report could performance on smaller LINUX_SWAP partitions or even degraded performance on part size bigger then 64MB… Try for yourself. This conf is probably a bit slower when initially loading apps, but when switching between different apps already loaded … quick.
4.2) PROC_CPU
#cpu clock
proc_cpu{
proc_cpu_en=1 # enable(1) or disable(0) user cpu configurations
# freqency options
scaling_min_freq=128000 # default 245760
scaling_max_freq=528000 # default 528000
sampling_rate=2000000 # default 2000000 depending on kernel version
powersave_bias=200 # default 0, (200 since CM3.9.6+ )
up_threshold=40 # default 45, percent cpu usage before going up a speed step
}
So on higher use (treshold=40) the G1 runs full speed 528Mhz. Otherwise it scales down to 245Mhz. My G1 gives me the following information on frequency use:
128000 – 17767
245760 – 244540
384000 – 110545
528000 – 57316
So full throttle when needed and slowing down when not – Means if you use your G1 you get good speed and if not you conserve battery.
5) Activate your Configuration
First, push or copy your file onto your G1. Now go via terminal or adb to the directory /system/sd where you stored the 2 files user.conf and userinit.sh and execute in terminal sh userinit.sh -s and check your config results via sh userinit.sh -i.
6) Summary
With the mentioned tweaks, I have the best G1 software configuration I ever had before. No FC’s at all ! Let’s wait on the next Cyanogen release
Matthias
G1: Rebuild – New SD Card and Cyanogen 4.1.999
After all that playing around and knowing that I have a slow SD card in my G1, I decided for a “dramatically” rebuild of my device. Goal:
- New SD card, 16GB Class 6
- Configure with EXT4 and Linux Swap
- Fresh and clean install of ROM
1) New SD card, 16GB Class 6 Partitioning
I did backup all partitions from my current card, including EXT3. Now insert new Card into G1 and boot into Recovery Mode. Now you can partition your SD, im my case a Class 6 16GB Card:
parted /dev/block/mmcblk0
print >> you should see only 1 partition, a FAT32 partition. Nowrm 1 >> delete partition
mkpartfs primary fat32 0 15000 >> create 15 GB FAT32
mkpartfs primary ext2 15000 15500 >> create 500MB ext 2
mkpartfs primary linux-swap 15500 15564 >> create 64MB linux swapquit
upgrade_fs >> ext2 -> ext 3
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2
e2fsck -fpDC0 /dev/block/mmcblk0p2
>> upgrate ext3 -> ext 4reboot
2) Fresh and clean install of ROM
Take the new SD out of the G1 and copy backup-ed stuff from old SD onto FAT32 partition, also put into SR root the Cyanogen 4.1.999. Reboot with the new SD card your G1 into recovery, WIPE (for clean install) and install ROM zip. Reboot and you have a smooth running clean G1.
3) Restore application
I used the ADB INSTALL to install all apps from backup-ed EXT onto the radio. Done, cool, smooth.
BTW: The process took about 1 hour from start to finish.
Matthias