webOS Nation Forums >  Homebrew >  webOS patches > Noticed something in Touchpad conf files
Noticed something in Touchpad conf files

  Reply
Like Tree24Likes

 
LinkBack Thread Tools Display Modes
Old 09/08/2011, 12:02 AM   #1 (permalink)
Member
 
Join Date: Sep 2009
Location: Canada
Posts: 1,488
Likes Received: 311
Thanks: 64
Thanked 660 Times in 214 Posts
Default Noticed something in Touchpad conf files

EDIT 2:

This works the best if you install "Bigger Active Screen When Minimized" patch from Preware and set the keyboard size to Small ("S"). I will be adding this patch to Preware that does both, called "BIgger Active Screen and Bigger Mojo Apps"


EDIT: I've put the correct patch file at the top of this thread in order to not confuse people.

My patch didnt really do anything, its really GyroJoe's patch that got us to where we are now. Please thank him as well!


In the luna-platform.conf file, there are these values:

ModalWindowWidth=320
ModalWindowHeight=480

Which leads me to believe that these are settings for how big the emulator mode window is.

I've doubled the value, hopefully making the emulator window double in size.

Anyone brave enough to try this patch?

I dont have a Touchpad.

Let me know what happens :P

This may bork webos and you will have to doctor. So use only if you want to possibly further webOS. Take one for the team!
Attached Files
File Type: patch big-emu-cards.patch (227 Bytes, 382 views) Email Attachment

Last edited by rmausser; 11/10/2011 at 09:28 AM.
rmausser is offline   Reply With Quote
Old 09/08/2011, 01:34 AM   #2 (permalink)
Member
 
Join Date: Aug 2011
Posts: 108
Likes Received: 40
Thanks: 6
Thanked 84 Times in 29 Posts
Default

Interestingly there is also EmulatedCardWidth and EmulatedCardHeight.

These do have an affect - but it's not a simple doubling. Check out what Accuweather looks like with this change.
Attached Images
File Type: png palm_2011-07-09_233154.png (116.3 KB, 374 views) Email Attachment
GyroJoe is offline   Reply With Quote
Liked by blackfireball5 and tricialee like this.
Thanked by johnsonx42, Yellowhammer
Old 09/08/2011, 01:35 AM   #3 (permalink)
Member
 
mikevember's Avatar
 
Join Date: Jun 2009
Location: Katy, TX
Posts: 444
Likes Received: 27
Thanks: 120
Thanked 115 Times in 77 Posts
Default

I like where this thread is headed.
__________________
Did you know I can also annoy you on twitter? @mikevember
mikevember is offline   Reply With Quote
Liked by blackfireball5 and geeksquadkid like this.
Old 09/08/2011, 02:36 AM   #4 (permalink)
Member
 
Join Date: Aug 2011
Posts: 108
Likes Received: 40
Thanks: 6
Thanked 84 Times in 29 Posts
Default

Alright, here's a patch if you want to try it.

1.5x seems to work best, since it leaves enough space for the virtual button and keyboard.

Some apps work better than others.
Attached Images
File Type: png stocks_2011-08-09_003008.png (158.8 KB, 381 views) Email Attachment
File Type: png pandora_2011-08-09_003019.png (256.7 KB, 342 views) Email Attachment
Attached Files
File Type: patch big-emu-cards.patch (227 Bytes, 1001 views) Email Attachment
GyroJoe is offline   Reply With Quote
Liked by brum, Rennat, DaDueler and 1 others like this.
Old 09/08/2011, 02:50 AM   #5 (permalink)
Member
 
Join Date: Aug 2011
Posts: 108
Likes Received: 40
Thanks: 6
Thanked 84 Times in 29 Posts
Default

Are third party apps patchable, or do they need to be signed? There are some simple issues, like not being able to read text because the background image is too small.
GyroJoe is offline   Reply With Quote
Old 09/08/2011, 09:27 AM   #6 (permalink)
Member
 
Join Date: Sep 2009
Location: Canada
Posts: 1,488
Likes Received: 311
Thanks: 64
Thanked 660 Times in 214 Posts
Default

as a web developer I find it abhorrent that the Palm guys didnt have the foresight for the SDK to CENTER certain aspects and do css scaling on different images so that they would scale nicely on different screen sizes.

Oh well, I guess its better than nothing.

I guess theres no way to zoom into the apps now as its web languages, the apps would have to be rewritten.
rmausser is offline   Reply With Quote
Liked by Jive Turkey likes this.
Old 09/08/2011, 10:35 AM   #7 (permalink)
Member
 
Join Date: Aug 2009
Posts: 91
Likes Received: 14
Thanks: 18
Thanked 6 Times in 6 Posts
Default

It's too bad this can't be done on a per-app basis
Jawbox is offline   Reply With Quote
Old 09/08/2011, 01:41 PM   #8 (permalink)
Member
 
Join Date: Sep 2009
Location: Canada
Posts: 1,488
Likes Received: 311
Thanks: 64
Thanked 660 Times in 214 Posts
Default

Quote:
Originally Posted by GyroJoe View Post
Alright, here's a patch if you want to try it.

1.5x seems to work best, since it leaves enough space for the virtual button and keyboard.

Some apps work better than others.
Can we try something with a different aspect?

Howabout pushing the limits of both the width so that it completely fills to the sides of the Touchpad, and the height so that it is JUST small enough to leave the gesture area and keyboard visible.

Theres no need to keep the aspect the same considering how web languages scale.

Unfortunately images and other elements are pre-rendered and do not, but at least if we are going to mess up the layout of the apps, we should push the size to the absolute limit.

Thanks.
rmausser is offline   Reply With Quote
Liked by geeksquadkid likes this.
Old 09/08/2011, 01:59 PM   #9 (permalink)
Member
 
Join Date: Sep 2009
Location: Canada
Posts: 1,488
Likes Received: 311
Thanks: 64
Thanked 660 Times in 214 Posts
Default

Quote:
Originally Posted by GyroJoe View Post
Are third party apps patchable, or do they need to be signed? There are some simple issues, like not being able to read text because the background image is too small.
You cannot patch third party apps as their code is closed source and property of their creators.

I think our only option is to see if we can somehow trick the apps into thinking they are in a 320x480 window when the emulator size is 1.5x as big, and thus zoom in on the app rather than rescale it.

There must be a way to change the pixel density or something of a window in HTML or CSS.

For example, when you zoom in with Firefox, it resizes all elements rather than just moving them further apart on the screen.
rmausser is offline   Reply With Quote
Old 09/08/2011, 02:40 PM   #10 (permalink)
Member
 
Join Date: Aug 2010
Posts: 126
Likes Received: 11
Thanks: 3
Thanked 19 Times in 13 Posts
Default

I like it I've been messing to scale up some of the apps I got from my phone that don't have HD version that I really like. Is it possible to have a slider or buttons for the size on certain app, since not all of them look pretty scaled up or any change to that conf file requires luna or device restart? I've seen ipad has 1x and 2x button. I guess we can have 1X and 1.5X. It should've been there from the beginning. Maybe very few apps are written so they can be scaled up with no layout issues but having the option there would've gained some more app numbers for webOS.
BoRn is offline   Reply With Quote
Liked by Jive Turkey likes this.
Old 09/08/2011, 03:43 PM   #11 (permalink)
Homebrew Developer
 
geeksquadkid's Avatar
 
Join Date: Jan 2010
Location: The fine line between fact and fiction
Posts: 928
Likes Received: 93
Thanks: 61
Thanked 183 Times in 112 Posts
Default

Quote:
Originally Posted by rmausser View Post
In the luna-platform.conf file, there are these values:

ModalWindowWidth=320
ModalWindowHeight=480

Which leads me to believe that these are settings for how big the emulator mode window is.

I've doubled the value, hopefully making the emulator window double in size.

Anyone brave enough to try this patch?

I dont have a Touchpad.

Let me know what happens :P

This may bork webos and you will have to doctor. So use only if you want to possibly further webOS. Take one for the team!
I LOVE YOU. I had a theory about this but it was never pursued until now! <3 <3


http://forums.precentral.net/3079823-post203.html
__________________
Conne>< Coding

Remember!!
*In Rod we trust.*

Yes, my user name says kid. Also, yes I'm 20. It's a long story.

Devices: Touchpad, 32 GB; Pre- Sprint

geeksquadkid is offline   Reply With Quote
Old 09/08/2011, 04:02 PM   #12 (permalink)
Member
 
sketch42's Avatar
 
Join Date: Jan 2007
Location: in the dark recesses of the earth, awaiting "The Rise of the L@@T"
Posts: 3,991
Likes Received: 184
Thanks: 2,996
Thanked 1,967 Times in 1,402 Posts
Default

Quote:
Originally Posted by geeksquadkid View Post
I LOVE YOU. I had a theory about this but it was never pursued until now! <3 <3


http://forums.precentral.net/3079823-post203.html
Does it work?

-- Sent from my Palm Pre using Forums
__________________
NEWBIES Check These Threads First
WebOS FAQExport ContactsBackup-Restore Patches/Apps


follow me on twitteror Catch me at LOOT

ATTN: If You like my Patches or Themes please feel free to DONATE
sketch42 is offline   Reply With Quote
Old 09/08/2011, 06:15 PM   #13 (permalink)
Member
 
Join Date: Sep 2009
Location: Canada
Posts: 1,488
Likes Received: 311
Thanks: 64
Thanked 660 Times in 214 Posts
Default

Quote:
Originally Posted by sketch42 View Post
Does it work?

-- Sent from my Palm Pre using Forums
The one by GyroJoe does, sorta.

This is a WIP.
rmausser is offline   Reply With Quote
Old 09/08/2011, 06:48 PM   #14 (permalink)
Member
 
Join Date: May 2009
Posts: 1,142
Likes Received: 49
Thanks: 151
Thanked 286 Times in 147 Posts
Default

Quote:
Originally Posted by rmausser View Post
as a web developer I find it abhorrent that the Palm guys didnt have the foresight for the SDK to CENTER certain aspects and do css scaling on different images so that they would scale nicely on different screen sizes.

Oh well, I guess its better than nothing.

I guess theres no way to zoom into the apps now as its web languages, the apps would have to be rewritten.
I think that they probably thought (even after 2 years of seeing all the things that the homebrew community can do. ha! joke's on them...) that no one would ever get into the code and try to resize it. So there's no need to center and do css scaling.

If the stories we've heard about how webOS 3.x was basically being worked on until the very last minute, then it's likely that it was one of those "cut corners all all costs" scenario. I hate the thought, but I can see it being the case.
__________________
--

Get your virtual onscreen keyboard themes & installation instructions here

Free 2GB of online storage, with automatic synching between multiple devices, on Dropbox
un_designer is offline   Reply With Quote
Old 09/08/2011, 07:21 PM   #15 (permalink)
Member
 
Join Date: Sep 2009
Location: Canada
Posts: 1,488
Likes Received: 311
Thanks: 64
Thanked 660 Times in 214 Posts
Default

Quote:
Originally Posted by un_designer View Post
I think that they probably thought (even after 2 years of seeing all the things that the homebrew community can do. ha! joke's on them...) that no one would ever get into the code and try to resize it. So there's no need to center and do css scaling.

If the stories we've heard about how webOS 3.x was basically being worked on until the very last minute, then it's likely that it was one of those "cut corners all all costs" scenario. I hate the thought, but I can see it being the case.
Ruby: "Guys, the touchpad goes out in a month and we arent even done webos 3.0 yet!!! We gotta leave some things out!"

webOS engineer: "why dont we just put all the 7000 apps we have into a tiny hard to use emulator window rather than getting them to work in fullscreen either by zooming in or proper scaling"

Ruby: "great! Its not like having no apps is the number one reason people slag webOS! Who needs apps anyways!"
rmausser is offline   Reply With Quote
Liked by geeksquadkid and stickerboy like this.
Old 09/08/2011, 10:06 PM   #16 (permalink)
Homebrew Developer
 
geeksquadkid's Avatar
 
Join Date: Jan 2010
Location: The fine line between fact and fiction
Posts: 928
Likes Received: 93
Thanks: 61
Thanked 183 Times in 112 Posts
Default

works great on the engadget app btw... not perfect but MUCH better
__________________
Conne>< Coding

Remember!!
*In Rod we trust.*

Yes, my user name says kid. Also, yes I'm 20. It's a long story.

Devices: Touchpad, 32 GB; Pre- Sprint

geeksquadkid is offline   Reply With Quote
Old 09/08/2011, 10:07 PM   #17 (permalink)
Member
 
Join Date: Aug 2011
Posts: 108
Likes Received: 40
Thanks: 6
Thanked 84 Times in 29 Posts
Default

Quote:
Originally Posted by rmausser View Post
Can we try something with a different aspect?

Howabout pushing the limits of both the width so that it completely fills to the sides of the Touchpad, and the height so that it is JUST small enough to leave the gesture area and keyboard visible.

Theres no need to keep the aspect the same considering how web languages scale.

Unfortunately images and other elements are pre-rendered and do not, but at least if we are going to mess up the layout of the apps, we should push the size to the absolute limit.

Thanks.
Yea - initially I tried doubling it. The problem is it uses this value to render the minimized card too. You end up with giant cards that overlap and look silly

Quote:
Originally Posted by rmausser View Post
You cannot patch third party apps as their code is closed source and property of their creators.

I think our only option is to see if we can somehow trick the apps into thinking they are in a 320x480 window when the emulator size is 1.5x as big, and thus zoom in on the app rather than rescale it.

There must be a way to change the pixel density or something of a window in HTML or CSS.

For example, when you zoom in with Firefox, it resizes all elements rather than just moving them further apart on the screen.
Well, they aren't really closed, at least the JavaScript/CSS/HTML parts. For example, here's some code from the Pandora app:
Code:
root@TouchPad:/# head /media/cryptofs/apps/usr/palm/applications/com.palm.pandor
a/app/core/ad_service.js 
var AdService = Class.create({

	initialize: function() {
		this.splashScreenCallback =  this.showSplashScreenCallback.bind(this);
	},

	showSplashScreenAd: function() {
		if (AppGlobals.splashScreenAdUrl != null) {
			var url = AppGlobals.splashScreenAdUrl;
			url = url.replace(AdService.CACHEBUST, new Date().getTime());
That's why I was asking if they were signed in some way and would refuse to start if modified.

I do have an idea, but I'm not sure where to start looking. Basically apply a css scale transform to the whole body. In theory that should scale everything.
GyroJoe is offline   Reply With Quote
Old 09/08/2011, 11:17 PM   #18 (permalink)
Member
 
Join Date: Aug 2010
Posts: 126
Likes Received: 11
Thanks: 3
Thanked 19 Times in 13 Posts
Default

Just did 640/960 ie 2X and it looks IMHO. Tried some diffirent ratios but that messed up all the taps. Of course just tested with few apps that I have on my profile from my pre-. Some work some need to be patched with different method.
I'm really happy that Slide RSS+ is working just fine.
The virtual gesture zone is right at the edge in the doubled up emulator screen.
The only thing that have to be changed is to change the kb size to at least S from M so some of the fields that are on top are completely viewable.

And just noticed GyroJoe comment about the silly looking minimized cards.

Last edited by BoRn; 09/08/2011 at 11:53 PM.
BoRn is offline   Reply With Quote
Old 09/09/2011, 12:03 AM   #19 (permalink)
Member
 
Join Date: Aug 2011
Posts: 108
Likes Received: 40
Thanks: 6
Thanked 84 Times in 29 Posts
Default

Settled on 480x640 for now as it looks least silly minimized.

Looking into the scaling thing - kind of got it working. WebKit's scaler on WebOS is pretty poor - the result is ugly. Apps seems to depend on the screen size a lot too. Menus and buttons appear off screen. Modify Mojo's default.css if you want to see this.
GyroJoe is offline   Reply With Quote
Old 09/09/2011, 11:08 PM   #20 (permalink)
Member
 
Join Date: Aug 2010
Posts: 126
Likes Received: 11
Thanks: 3
Thanked 19 Times in 13 Posts
Default

I noticed the same thing - very few apps are written in way that they don't depend on the screen size:-(. So even if there is a way to scale the app correctly unfortunately the app will have to be fixed and most likely to add the back buttons unless you figure out a way to patch that in the apps the same way you did the browser power swipe. I rather use gestures... For some reason it's not working for me. I was thinking maybe the increase sensitivity patch is messing it up. Tried to uninstall it but got some errors. I guess I'll have to post that in the correct thread anyway.
BoRn is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0