Author Topic: [PATCH] Higher Res LCD Display Patch (apply to build.prop)  (Read 2617 times)

Offline Coburn64

  • Member
  • Posts: 4
  • Karma: +0/-0
  • iDroid Fan
    • View Profile
    • Coburn's Domain
[PATCH] Higher Res LCD Display Patch (apply to build.prop)
« on: October 09, 2010, 09:56:08 AM »
Having made ROMs for my HTC Tattoo when I had one, I experimented with a patch for iDroid to make the LCD Fonts smaller, and what they would look like in iOS.

Here's the patch:

Apply to build.prop in system.img (aka sudo losetup /dev/loop0 && sudo mount /dev/loop0 /mnt/iDroidSystem on Debian systems)

Code: [Select]
# LCD Density Patch
# Makes your screen look right.
# Fiddle with this setting to make the fonts tiny or HUGE.
# Patch by Coburn64, please don't remove this mesly credit line...
ro.sf.lcd_density=120

I have tested this, and everything is smaller but it's the way it's meant to be on a 320x480 screen. The 120 value is the DPI, that value is the default for the HTC Hero. Recommended values are 120 or 160, you could try 150, 100 or 96, 96 would make things small and could cause eye strain - If problems persist, see your doctor :P.

I hoped this helps.
My Site: http://coburndomain.org

Current Device: iPhone 3G with iOS 3.1.3 dualboot with Android 2.2 (MoJo 1.03) with my LCD Patch

Offline ddominator

  • Global Moderator
  • Member
  • *****
  • Posts: 1414
  • Karma: +2/-1002
  • Trust me, I'm a doctor.
    • View Profile
    • Unofficial iDroid News Blog
  • iDevice: iPhone 2G 3.1.3
  • iDroid Version: Pepparkaka (ddominator custom)
  • Jailbreak: redsn0w 0.94
Re: [PATCH] Higher Res LCD Display Patch (apply to build.prop)
« Reply #1 on: October 09, 2010, 10:46:49 AM »
Do you have screen shots or vid to show us a before and after before we randomly try this?

EDIT: To give credit to where credit is due, are you really the first person to discover this patch/hack?
« Last Edit: October 09, 2010, 11:04:10 AM by ddominator »
Help Google takeover the world. Use Android on your mobile devices, use Chrome Browser, use Chrome OS!!!  Sell your souls to Google!
Useful links:
FAQ - http://www.idroidproject.org/wiki/FAQ
User Manual - http://www.idroidproject.org/wiki/User_Manual
Recovery Mode - http://www.idroidproject.org/wiki/DFU

Offline shyboy

  • Member
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: [PATCH] Higher Res LCD Display Patch (apply to build.prop)
« Reply #2 on: October 09, 2010, 07:16:45 PM »
can HTC sense also be  ported some how??
« Last Edit: October 09, 2010, 07:18:47 PM by shyboy »

Offline Coburn64

  • Member
  • Posts: 4
  • Karma: +0/-0
  • iDroid Fan
    • View Profile
    • Coburn's Domain
Re: [PATCH] Higher Res LCD Display Patch (apply to build.prop)
« Reply #3 on: October 11, 2010, 10:16:33 AM »
No, HTC Sense is a totally different kettle of fish and not really compatible with Android 2.2.1.

Here's a screenshot of my iDrod installation running at the 120dpi setting: http://plixi.com/p/50018622

If you're wanting a before and after, look at a stock install of iDroid 1.03 on iPhone 3G  and take a look at the picture linked above. You'll notice the screen res is larger, allowing me to use a lot more screen space.

I may be the first one to find that patch, but I am not taking the work of others and claiming as my own if it has already been patched.
My Site: http://coburndomain.org

Current Device: iPhone 3G with iOS 3.1.3 dualboot with Android 2.2 (MoJo 1.03) with my LCD Patch

Offline Neonkoala

  • Global Moderator
  • Member
  • *****
  • Posts: 348
  • Karma: +3/-0
    • View Profile
    • Neonkoala.co.uk
  • iDevice: iPhone 3G, iPhone 4
  • iDroid Version: WobblyGibl3t 0.1b
  • Jailbreak: PwnageTool
Re: [PATCH] Higher Res LCD Display Patch (apply to build.prop)
« Reply #4 on: October 11, 2010, 10:44:13 AM »
It's hardly a patch. It's a setting.
iPhone 3G | iPhone 4

Offline nickp666

  • Administrator
  • Member
  • *****
  • Posts: 679
  • Karma: +45/-0
    • View Profile
    • http://www.nickpack.com
  • iDevice: Various
  • iDroid Version: Latest
  • Jailbreak: Various
Re: [PATCH] Higher Res LCD Display Patch (apply to build.prop)
« Reply #5 on: October 11, 2010, 10:48:08 AM »
Having made ROMs for my HTC Tattoo when I had one, I experimented with a patch for iDroid to make the LCD Fonts smaller, and what they would look like in iOS.

Here's the patch:

Apply to build.prop in system.img (aka sudo losetup /dev/loop0 && sudo mount /dev/loop0 /mnt/iDroidSystem on Debian systems)

Code: [Select]
# LCD Density Patch
# Makes your screen look right.
# Fiddle with this setting to make the fonts tiny or HUGE.
# Patch by Coburn64, please don't remove this mesly credit line...
ro.sf.lcd_density=120

I have tested this, and everything is smaller but it's the way it's meant to be on a 320x480 screen. The 120 value is the DPI, that value is the default for the HTC Hero. Recommended values are 120 or 160, you could try 150, 100 or 96, 96 would make things small and could cause eye strain - If problems persist, see your doctor :P.

I hoped this helps.

I'd actually come across this value in one of the custom roms (cyanogen I think) and had no idea what it was for!

I'll put this to the dev team and if everyone agrees I'll put it in the vendor/apple tree so that it is automatically added to our builds (no manual hacking of build.prop required)

Offline Ninn

  • Member
  • Posts: 130
  • Karma: +65535/-1
    • View Profile
Re: [PATCH] Higher Res LCD Display Patch (apply to build.prop)
« Reply #6 on: October 13, 2010, 09:51:23 AM »
Having made ROMs for my HTC Tattoo when I had one, I experimented with a patch for iDroid to make the LCD Fonts smaller, and what they would look like in iOS.

Here's the patch:

Apply to build.prop in system.img (aka sudo losetup /dev/loop0 && sudo mount /dev/loop0 /mnt/iDroidSystem on Debian systems)

Code: [Select]
# LCD Density Patch
# Makes your screen look right.
# Fiddle with this setting to make the fonts tiny or HUGE.
# Patch by Coburn64, please don't remove this mesly credit line...
ro.sf.lcd_density=120

I have tested this, and everything is smaller but it's the way it's meant to be on a 320x480 screen. The 120 value is the DPI, that value is the default for the HTC Hero. Recommended values are 120 or 160, you could try 150, 100 or 96, 96 would make things small and could cause eye strain - If problems persist, see your doctor :P.

I hoped this helps.

I'd actually come across this value in one of the custom roms (cyanogen I think) and had no idea what it was for!

I'll put this to the dev team and if everyone agrees I'll put it in the vendor/apple tree so that it is automatically added to our builds (no manual hacking of build.prop required)

as ddominator kindly points out, this isn't groundbreaking research made by op, please dont credit yourself just to apply one single setting which has infact been made in tons of roms, and also pointed out by other users on i.e. xda?

http://tinyurl.com/2ezc2z7

i personally do not disagree towards applying such settings to our official rom, but it's very much against my personal opinion of clean code to apply useless lines with "#I MADE THIS"

Offline nickp666

  • Administrator
  • Member
  • *****
  • Posts: 679
  • Karma: +45/-0
    • View Profile
    • http://www.nickpack.com
  • iDevice: Various
  • iDroid Version: Latest
  • Jailbreak: Various

Offline Coburn64

  • Member
  • Posts: 4
  • Karma: +0/-0
  • iDroid Fan
    • View Profile
    • Coburn's Domain
Re: [PATCH] Higher Res LCD Display Patch (apply to build.prop)
« Reply #8 on: October 16, 2010, 11:19:47 AM »
I respect the views of others, and those comments were just for explaination (the ones with the hash lines). Thanks for committing the code to the iDroid-Project project on github, nickp666. Cheers all! :)
My Site: http://coburndomain.org

Current Device: iPhone 3G with iOS 3.1.3 dualboot with Android 2.2 (MoJo 1.03) with my LCD Patch