View Single Post
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