Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-30-2010, 12:02 PM   #1426
badspell68
Scifi is a Digital World
badspell68 doesn't litterbadspell68 doesn't litter
 
badspell68's Avatar
 
Posts: 38
Karma: 102
Join Date: Jan 2008
Location: NJ
Device: PRS-505
If I upgrade to PRS+ will my reader still work wit h the sony software and use sony PRS software updates?
badspell68 is offline   Reply With Quote
Old 10-30-2010, 12:04 PM   #1427
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,786
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by badspell68 View Post
If I upgrade to PRS+ will my reader still work wit h the sony software and use sony PRS software updates?
Yes, it will still work with Reader Library no problem.
JSWolf is offline   Reply With Quote
Old 10-30-2010, 01:05 PM   #1428
jeromedevine
Zealot
jeromedevine doesn't litterjeromedevine doesn't litterjeromedevine doesn't litter
 
Posts: 110
Karma: 240
Join Date: Sep 2009
Device: Kindle 3 3G Graphite, Sony PRS-505
Smile Please add Decimal Point with Percentage Progress to PRS+

Dear Kartu,

Please add the decimal point with the Percentage Progress to PRS+

to be for example 1083 / 1221 (88.7%) instead of 88%. It gives a clearer picture where you are in the book.

You only have to change the 0 into 1 as in the included picture.


Please PLeese PLLEASSSEEE make this addition to your amazing software. Thanks a lot! ;D
Attached Thumbnails
Click image for larger version

Name:	Percentage Progress XX.jpeg
Views:	315
Size:	63.3 KB
ID:	60376  
jeromedevine is offline   Reply With Quote
Old 10-30-2010, 02:27 PM   #1429
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
jeromedevine
I will, no worries.
kartu is offline   Reply With Quote
Old 10-30-2010, 03:28 PM   #1430
elcreative
Wizard
elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.
 
Posts: 2,888
Karma: 5875940
Join Date: Dec 2007
Device: PRS505, 600, 350, 650, Nexus 7, Note III, iPad 4 etc
kartu, just a general query... how goes state of play on port to 600? I like it so much on my 505 that I'm really looking forward to same functionality on 600.
elcreative is offline   Reply With Quote
Old 10-30-2010, 05:05 PM   #1431
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Quote:
Originally Posted by elcreative View Post
kartu, just a general query... how goes state of play on port to 600? I like it so much on my 505 that I'm really looking forward to same functionality on 600.
Packaging / icons / "open via mount" are still to be implemented. It's not a big deal but I have yet to find time to work on it.

Two words on what to expect:

Unfortunately games won't work. I didn't test Mark Nords calculator, I recall him saying that it supports touch interface.

On the bright side, I've implemented opening books directly from SD cards in "disabled scanning" mode. (but not "via mount". This feature will also work on 505's)
kartu is offline   Reply With Quote
Old 11-01-2010, 04:19 PM   #1432
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Standby Picture for 505/300/600 anybody?

I just implemented a very basic Standby Picture for my PRS505

Suspend via the power-switch is handled in ebook.so which needs to be patched here:
Code:
patched ebook.so PRS505 1.4.00.23260
.text:0000B988 ; =============== S U B R O U T I N E ==========================
.text:0000B988                 EXPORT PowerStandby
.text:0000B988 PowerStandby                            ; CODE XREF: SubcpuThreadProcessCommand+228
.text:0000B988

.text:0000BA58 loc_BA58                                ; CODE XREF: PowerStandby+98
.text:0000BA58                 BL      _sync
.text:0000BA5C                 LDR     R3, =0x41C
.text:0000BA60                 LDR     R0, [R10,R3]    ; char *
.text:0000BA64                 BL      _system
.text:0000BA68                 BL      ebookEinkThreadSuspend
.text:0000BA6C             BL      ebookEinkErase  ; NOP this new code: 00 00 A0 E1
.text:0000BA70                 LDR     R0, [R4]
.text:0000BA74                 MOV     R1, #1
.text:0000BA78                 BL      sub_B39C
.text:0000BA7C                 LDRB    R3, [R4,#0xAD]
.text:0000BA80                 CMP     R3, #0
.text:0000BA84                 BNE     loc_BCD0
So the screen isn't any longer erased during suspend.

Then I added this to main.xml to show up the StandbyPicture;
Code:
		<texture href="/Data/kBookStandbyPic.png">
			<cutout id="defaultStandbyPic-a" x="0" y="0" width="600" height="800"/>
		</texture>	
		<skin id="defaultStandbyPic" 
				cutouts="defaultStandbyPic-a"/>	

		<function id="doResume">
			this.STANDBY_IMAGE.show(false);
			this.STANDBY_IMAGE.enable(false);
			this.STATUS_GROUP.show(true);
			this.getDevice().doneResume();
			this.getModel().resume();
			if (this.modal) {
				...
			}
		</function>
		<function id="doSuspend">
			this.STATUS_GROUP.show(false);
			this.STANDBY_IMAGE.show(true);
			this.STANDBY_IMAGE.enable(true);
			this.getModel().suspend();
			this.getDevice().doneSuspend();
		</function>

	<group id="STANDBY_IMAGE" left="0" right="0" top="0" bottom="0" active="false" visible="false">
		<background skin="defaultStandbyPic" left="0" right="0" top="0" bottom="0"/>
		<!--standbyImage left="0" right="0" top="0" bottom="0"/-->
	</group>
I'm sure the picture selection and integration could be done much more elegant, but take this as proof of concept.

I finished on this just one hour ago, so I can't tell about possible side-effects, or a fading of the picture.

Obviously I can't show a screenshoot, too

Last edited by Mark Nord; 11-02-2010 at 02:59 AM.
Mark Nord is offline   Reply With Quote
Old 11-01-2010, 04:31 PM   #1433
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Quote:
Originally Posted by kartu View Post
Unfortunately games won't work. I didn't test Mark Nords calculator, I recall him saying that it supports touch interface.
Is this because the games can't be added to the application-menu/group, or because they have no touch-UI?

For the latter, and assuming that my Calc will work on a 600, at least sudoku should be easily upgraded with a nummeric-keyboard, based on the doCommand (if I recall correctly) property of sprits.
Same applies to mahjong and should go for fiveballs, but for those two the gamecontrol is not so obvious.
Mark Nord is offline   Reply With Quote
Old 11-01-2010, 04:48 PM   #1434
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Great job (as usual ) Mark!

I think many users would like this feature.
Could you do similar ebook.so patches for 300 / 600 please?

As far as image loading goes, I'd probably do it "on the fly" in script (shouldn't be hard in 2.x.x ) to avoid file corruption problems. (I also don't remember what happens if file referenced by XML is missing)

Quote:
Is this because the games can't be added to the application-menu/group, or because they have no touch-UI?
Only the latter.

Quote:
For the latter, and assuming that my Calc will work on a 600, at least sudoku should be easily upgraded with a nummeric-keyboard, based on the doCommand (if I recall correctly) property of sprits.
Thanks for the info.

Quote:
Same applies to mahjong and should go for fiveballs, but for those two the gamecontrol is not so obvious.
Ironically those two should actually work better with touch UI.
kartu is offline   Reply With Quote
Old 11-02-2010, 03:22 AM   #1435
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Quote:
Could you do similar ebook.so patches for 300 / 600 please?
I already checked with 300/600 code. Both have "PowerStandby" implemented the same way.
I can easily upload patched version - atop of "hold" enabled I assume, or atop of "hold" and "rotate"?
But you can also overwrite the four (4) bytes on your own. HTE you mentiond will do a good job on it.
Quote:
(I also don't remember what happens if file referenced by XML is missing)
The device hangs on boot
As I tried first to append "kBookStandbyPic.png" via "prsp.sh" and "mount" to "application\resources\scripts" but failed on doing it right, thus let me move to \Data\ for a quick result. Thats also why I'm using the <background> Tag and not bother to load a actuall image (kbookImage).

Quote:
I finished on this just one hour ago, so I can't tell about possible side-effects, or a fading of the picture.
Update some 10 hours later: The images isn't fading, no impact to the battery level so far.

Last edited by Mark Nord; 11-02-2010 at 03:44 PM.
Mark Nord is offline   Reply With Quote
Old 11-02-2010, 08:44 AM   #1436
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
I'll give it a try with HTE then.
kartu is offline   Reply With Quote
Old 11-02-2010, 11:07 AM   #1437
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Mark, I've tried to modify 600's ebook.so using hte, but it doesn't seem to work. Original and modified files are here.

I didn't try to draw anything onTerminate, since suspend via power switch still clears the screen.
kartu is offline   Reply With Quote
Old 11-02-2010, 03:09 PM   #1438
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Weird thing!
According applicationStart.xml the PRS600 already use
Code:
		<function id="doPowerSwitchHold">
				var value = this.getVariable("STANDBY_STATE")
				if (value == 1) {
					this.setVariable("STANDBY_STATE", 2)
					this.post("kShutdownBySwitch", true)
				}
			</function>
			<function id="doPowerSwitch">
				if (!ebook.pm.isWaiting()) {
					var value = this.getVariable("STANDBY_STATE")
					if (value == 1) {
						this.setVariable("STANDBY_STATE", 0)
						this.resetLight()
						this.container.STANDBY_IMAGE.show(true)
						this.container.STANDBY_IMAGE.enable(true)
						this.setFlushUpdate()
						this.post("kSuspend", true)
					}
					else if (value == 0){
						this.setVariable("STANDBY_STATE", 1)
						this.container.STANDBY_IMAGE.show(false)
						this.container.STANDBY_IMAGE.enable(false)
						this.setFlushUpdate()
						this.post("kResume", true)
					}
					else
						this.setVariable("STANDBY_STATE", 1)
					BookUtil.removeButtonEvent(this.container.getWindow(), "kPowerSwitch")
				}
			</function>
..
<customHold key="kPowerSwitch" hold="doPowerSwitchHold" up="doPowerSwitch" holdTime="3000"/>
..
        <standbyImage id="STANDBY_IMAGE" left="0" right="0" top="0" bottom="0" active="false" visible="false"/>
</document>
So the PowerStandby code included in ebook.so will never be called, because a key-action is triggered instead!
[Edit] At last it seams "ebook.so" is to some extend, or even completly replaced by "ebookSystem.so" [/Edit]

Compared the 600th code to the PRS350/650 some functions in main.xml are missing!
Code:
	<!-- [FY10] Ticket#661: setup standby picture -->
			<function id="preDoEditStandbyPicture">
				var indexs = this.MENU.detailsView.getSelectedIndexs();
				this.bubble("doEditStandbyPicture", indexs);
			</function>
So I assume hacking in the 650-main functions in the 600 main.xml will enable the standby-pic.

Last edited by Mark Nord; 11-02-2010 at 03:46 PM.
Mark Nord is offline   Reply With Quote
Old 11-02-2010, 05:41 PM   #1439
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Very funny, 600 already has the code for standby images.

PS
Update: yep, works like a charm. You can use this code (mostly shamelessly copy pasted from 350) to draw centered image, just replace this.x .y .width .height .color with 0 0 600 800 Color.black:

Spoiler:

Code:
	var window, path, bitmap, temp, port, x, y, bounds, ratio, width, height, ditheredBitmap, color;
	window = this.root.window;
	path = "/Data/logo.png";
	if (FileSystem.getFileInfo(path)) {
		try {
			bitmap = new Bitmap(path);
			temp = new Bitmap(this.width, this.height, 12);
			port = new Port(temp);
			port.setPenColor(Color.black);
			port.fillRectangle(0, 0, this.width, this.height);
			x = 0;
			y = 0;
			bounds = bitmap.getBounds();
			ratio = (bounds.height > bounds.width)?this.height / bounds.height:this.width / bounds.width;
			width = Math.floor(bounds.width * ratio);
			height = Math.floor(bounds.height * ratio);
			if (height > width) {
				x = Math.floor(this.width - width) / 2;
			} else {
				y = Math.floor(this.height - height) / 2;
			}
			bitmap.draw(port, x, y, width, height);
			bitmap.close();
			ditheredBitmap = temp.dither(true);
			port.close();
			temp.close();
			window.drawBitmap(ditheredBitmap, this.x, this.y, this.width, this.height);
			ditheredBitmap.close();
		} catch (ignore) {
		}
	} else {
		color = window.getPenColor();
		window.setPenColor(this.color);
		window.fillRectangle(0, 0, 600, 800);
		window.setPenColor(color);
	}

Last edited by kartu; 11-02-2010 at 06:41 PM.
kartu is offline   Reply With Quote
Old 11-04-2010, 12:54 PM   #1440
jeromedevine
Zealot
jeromedevine doesn't litterjeromedevine doesn't litterjeromedevine doesn't litter
 
Posts: 110
Karma: 240
Join Date: Sep 2009
Device: Kindle 3 3G Graphite, Sony PRS-505
Hi, thanks Kartu and all the contributing developers for your hard work!

I am seeing the mention about the standby image feature. I am attaching the below image from wikimedia of the Gutenberg Press. I am suggesting that once implemented in this Enhanced Firmware, this image could be used as the default image to show for the screensaver, which the user could change at will if he wishes.

Thanks for your consideration, and keep up the good work!

^_^
Attached Thumbnails
Click image for larger version

Name:	printer.jpg
Views:	299
Size:	304.5 KB
ID:	60635  
jeromedevine is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using HD Folders as Collections on Sony PRS-505 fglaysher Calibre 8 07-26-2010 09:55 PM
Enhanced Firmware for V3 keng2000 HanLin eBook 12 04-12-2010 09:30 AM
Poll: Sony Reader PRS-505 upgrade to Sony PRS-700 Kris777 Sony Reader 70 02-18-2009 06:34 PM
Sony Reader PRS-505 upgrade to Sony PRS-700 Kris777 Sony Reader 23 12-08-2008 06:56 AM
Sub folders in firmware v1.08 Prince Hal Amazon Kindle 28 10-23-2008 03:20 PM


All times are GMT -4. The time now is 10:04 AM.


MobileRead.com is a privately owned, operated and funded community.