webOS Nation Forums >  Homebrew >  webOS patches > [Patch Request] Touchstone Lock Screen (Will donate $ for this!)
[Patch Request] Touchstone Lock Screen (Will donate $ for this!)

  Reply
 
LinkBack Thread Tools Display Modes
Old 11/16/2009, 01:43 PM   #1 (permalink)
Member
 
Join Date: May 2009
Posts: 132
Likes Received: 0
Thanks: 0
Thanked 17 Times in 17 Posts
Default [Patch Request] Touchstone Lock Screen (Will donate $ for this!)

My brother and I have been rather annoyed with a change in the 1.3.1 WebOS update. As of 1.3.1, the Pre, when placed on the Touchstone, will go into the locked screen automatically. Before 1.3.1, this would happen only if you pressed the power button, allowing the screen to stay perpetually on and unlocked while it was on the touchstone. Very handy for using Pandora and such in the car.

Him and I really want to see this changed back in the form of a patch. Without this, car mounting is rendered useless (as dealing with a locked screen while driving is NOT safe, cannot be done blind easily), along with making the touchstone rather useless in my opinion as a desktop device when at work.

We'd like this enough that we're willing to donate some real money to whoever writes this one up. Depending on the difficulty and the time spent, of course.

If anyone thinks they can pull this off, that would be great, let me know! Thanks!
Caitlyn McKenzie is offline   Reply With Quote
Thanked By: jbg7474
Old 11/16/2009, 02:27 PM   #2 (permalink)
Forum Moderator
 
Achill3s's Avatar
 
Join Date: Jul 2009
Posts: 2,999
Likes Received: 59
Thanks: 262
Thanked 539 Times in 392 Posts
Default

This will probably be done soon enough now that it's been reported. I had not noticed it. If Jason Robitaille gets bored, he might make one to do this (that guy is an unreal developer, top notch!)
__________________
Achill3s' Palm Pre: Modded and patched to death!!
Achill3s is offline   Reply With Quote
Old 11/16/2009, 03:28 PM   #3 (permalink)
Member
 
pattavino's Avatar
 
Join Date: Aug 2009
Location: Castle Rock, CO
Posts: 132
Likes Received: 0
Thanks: 39
Thanked 25 Times in 14 Posts
Default

+1

I thought that was strange they removed that. 2 days before the update I got a second touchstone for work and now I should have saved the money and just plugged it into the wall.

Need this option back PLEASE
pattavino is offline   Reply With Quote
Old 11/16/2009, 03:34 PM   #4 (permalink)
Moderator
 
jbg7474's Avatar
 
Join Date: Jan 2009
Location: SW Ohio
Posts: 3,858
Likes Received: 92
Thanks: 1,019
Thanked 1,061 Times in 715 Posts
Default

I agree completely!!! I'm really annoyed with this, it's bothered me all day. I keep my Touchstone at work and really enjoyed having the screen on. Why would they change something like that?

Anyway, I was beginning to think maybe I was the only one. I've been making noise about this in the Pre forum all day, and no one else seems to be interested.

I'll donate a little for a patch!!
__________________
Palm III-->Handspring Visor-->Sony Clie PEG-NR70-->no PDA -->Palm Treo 755p-->Palm Pre-->HP Veer
jbg7474 is offline   Reply With Quote
Old 11/16/2009, 04:04 PM   #5 (permalink)
Member
 
Join Date: May 2009
Posts: 132
Likes Received: 0
Thanks: 0
Thanked 17 Times in 17 Posts
Default

Glad to see we're not the only ones interested in fixing this! If I knew how to make the patch diffs and where to start looking, I could probably figure it out myself. But I'd rather someone who knows what they're doing handle it!
Caitlyn McKenzie is offline   Reply With Quote
Old 11/16/2009, 04:59 PM   #6 (permalink)
Member
 
Join Date: Sep 2005
Location: San Francisco, CA
Posts: 20
Likes Received: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Yes, please!!! I would LOVE a fix for this!
Faerie is offline   Reply With Quote
Old 11/16/2009, 08:01 PM   #7 (permalink)
Member
 
Join Date: Jul 2009
Location: Virginia
Posts: 48
Likes Received: 0
Thanks: 11
Thanked 28 Times in 8 Posts
Default

Nodoze - and enable screenAlwaysOn. It is not a patch, but it works now.
gpfountz is offline   Reply With Quote
Old 11/16/2009, 08:54 PM   #8 (permalink)
Moderator
 
jbg7474's Avatar
 
Join Date: Jan 2009
Location: SW Ohio
Posts: 3,858
Likes Received: 92
Thanks: 1,019
Thanked 1,061 Times in 715 Posts
Default

Quote:
Originally Posted by gpfountz View Post
Nodoze - and enable screenAlwaysOn. It is not a patch, but it works now.
I thought about that, but then you'd have to turn it off manually when pulling the Pre of the TS. Thanks for the suggestion, though.
jbg7474 is offline   Reply With Quote
Old 11/16/2009, 09:00 PM   #9 (permalink)
Member
 
Join Date: Sep 2005
Location: San Francisco, CA
Posts: 20
Likes Received: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by gpfountz View Post
Nodoze - and enable screenAlwaysOn. It is not a patch, but it works now.
Do you have to close the app to get the screen to turn off or will hitting the power button do it?
Faerie is offline   Reply With Quote
Old 11/17/2009, 09:38 AM   #10 (permalink)
Member
 
Join Date: May 2009
Posts: 132
Likes Received: 0
Thanks: 0
Thanked 17 Times in 17 Posts
Default

Quote:
Originally Posted by jbg7474 View Post
I thought about that, but then you'd have to turn it off manually when pulling the Pre of the TS. Thanks for the suggestion, though.
Yeah, that application isn't really ideal. I shouldn't have to run an app to keep it going, and to stop it when I'm done. That just adds onto the list of things I have to remember to do when I get in the car.
Caitlyn McKenzie is offline   Reply With Quote
Old 11/18/2009, 12:33 AM   #11 (permalink)
Forum Moderator
 
ChemEngr's Avatar
 
Join Date: Nov 2002
Location: Silicon Valley
Posts: 2,235
Likes Received: 13
Thanks: 158
Thanked 97 Times in 90 Posts
Default

there's a patch that adds more standby times and a 'never' setting. You can leave it at this setting but just remember to hit the power button to turn the screen off when you want.
__________________
Palm III > Palm V > Palm Vx > (Sprint) Kyo 6035 > Handspring Treo 300
> Handspring Treo 600 Oct.'03 > Palm Treo 700P May'06 > Treo 755P Aug.'07 > Pre(-) June'09 + TouchPad July'11 LONG LIVE webOS!!!
ChemEngr is offline   Reply With Quote
Old 11/18/2009, 12:39 AM   #12 (permalink)
Forum Moderator
 
ChemEngr's Avatar
 
Join Date: Nov 2002
Location: Silicon Valley
Posts: 2,235
Likes Received: 13
Thanks: 158
Thanked 97 Times in 90 Posts
Default

Quote:
Originally Posted by Faerie View Post
Do you have to close the app to get the screen to turn off or will hitting the power button do it?
Hitting the power button will turn off the screen. Nodoze is meant to keep the wifi active and an option to keep the screen on. However, the screen will turn off if you press the power button.
__________________
Palm III > Palm V > Palm Vx > (Sprint) Kyo 6035 > Handspring Treo 300
> Handspring Treo 600 Oct.'03 > Palm Treo 700P May'06 > Treo 755P Aug.'07 > Pre(-) June'09 + TouchPad July'11 LONG LIVE webOS!!!
ChemEngr is offline   Reply With Quote
Old 11/19/2009, 03:23 PM   #13 (permalink)
Member
 
Join Date: May 2009
Posts: 132
Likes Received: 0
Thanks: 0
Thanked 17 Times in 17 Posts
Default

Quote:
Originally Posted by ChemEngr View Post
there's a patch that adds more standby times and a 'never' setting. You can leave it at this setting but just remember to hit the power button to turn the screen off when you want.
Still not ideal. I'd prefer if it only did this on the charger/touchstone. Having a standby time is useful since leaving the screen on otherwise drains the battery quickly.
Caitlyn McKenzie is offline   Reply With Quote
Old 11/19/2009, 04:39 PM   #14 (permalink)
Forum Moderator
 
ChemEngr's Avatar
 
Join Date: Nov 2002
Location: Silicon Valley
Posts: 2,235
Likes Received: 13
Thanks: 158
Thanked 97 Times in 90 Posts
Default

well they probably took this feature off because it wasn't working reliably for some maybe due to low quality or reliability of the ambient light sensor. Who knows. It may be very difficult to code a patch since Palm may not have released the API for the sensor. Just saying that this might be your only workaround. If it is important to keep your screen on sometimes, then this is your solution for now until a patch or OS update changes it back.
__________________
Palm III > Palm V > Palm Vx > (Sprint) Kyo 6035 > Handspring Treo 300
> Handspring Treo 600 Oct.'03 > Palm Treo 700P May'06 > Treo 755P Aug.'07 > Pre(-) June'09 + TouchPad July'11 LONG LIVE webOS!!!
ChemEngr is offline   Reply With Quote
Old 11/19/2009, 10:07 PM   #15 (permalink)
Moderator
 
jbg7474's Avatar
 
Join Date: Jan 2009
Location: SW Ohio
Posts: 3,858
Likes Received: 92
Thanks: 1,019
Thanked 1,061 Times in 715 Posts
Default

Quote:
Originally Posted by ChemEngr View Post
well they probably took this feature off because it wasn't working reliably for some maybe due to low quality or reliability of the ambient light sensor. Who knows. It may be very difficult to code a patch since Palm may not have released the API for the sensor. Just saying that this might be your only workaround. If it is important to keep your screen on sometimes, then this is your solution for now until a patch or OS update changes it back.
Yep, it appears that they changed the functionality on purpose. See here: Re: [Bug] Pre screen in "night" mode when on Touchstone during daylight in 1.3.1 - webOS Hardware - Palm Support Community.

But since it used to do it, seems like someone could do a diff on the pertinent files and figure out how to patch back in the old behavior. I can't claim to have the ability to do this (wish I did, though). But I know there are people around who do have the ability. Just got to get one of them interested!
__________________
Palm III-->Handspring Visor-->Sony Clie PEG-NR70-->no PDA -->Palm Treo 755p-->Palm Pre-->HP Veer
jbg7474 is offline   Reply With Quote
Old 11/20/2009, 12:22 PM   #16 (permalink)
Member
 
Join Date: Apr 2009
Posts: 96
Likes Received: 7
Thanks: 11
Thanked 18 Times in 13 Posts
Default

YES!!!! please bring this back i hate the new way. it use to be determined on how much ambient light there was...
phillipah is offline   Reply With Quote
Old 11/20/2009, 03:28 PM   #17 (permalink)
Member
 
Join Date: Jul 2009
Posts: 25
Likes Received: 0
Thanks: 2
Thanked 2 Times in 2 Posts
Default

I'm not a patch writer or anything, but I've applied a few of the patches by hand back in the 1.1 days before Preware and have played around with various Linux distros.

I dug around a bit today and couldn't find anything relating to the screen when the device is mounted on the Touchstone (or the "puck" as it's referred to in the code). The only reference to charging I could find was the "bar-assistant" but it looked like it was about displaying the proper battery icon (/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js)
EDIT: looking at this again and thinking maybe this IS where the code I talk about below should go (around line 1615 there is a reference to payload.name == "puck" - maybe set another if statement just for being on the puck)

I'm afraid that what we might be looking for is in /usr/sbin/powerd which is a compiled linux binary I would assume. The only other thing I can think of, and I'm not sure what JS file it would go in, is when the device recognizes it is on the puck to set the screen timeout to a very large number (essentially being "never" - the same way the extra screen timeout patch does it). The only difference then would be that at night it would still be on, unless we can read the ambient light sensor (haven't looked at the SDK so I don't know) or just say something like "if later than time x and earlier than time y don't set the screen timeout"

Maybe someone with more familiarity can use this as a jumping off point. I'll look around more for the code where it recognizes the touchstone on Monday.

Last edited by sakasune; 11/20/2009 at 03:35 PM. Reason: new info
sakasune is offline   Reply With Quote
Old 11/23/2009, 12:43 PM   #18 (permalink)
Moderator
 
jbg7474's Avatar
 
Join Date: Jan 2009
Location: SW Ohio
Posts: 3,858
Likes Received: 92
Thanks: 1,019
Thanked 1,061 Times in 715 Posts
Default

Just a bit of extra info on this: I've discovered after living with the change that it's not so incredibly bad. First, you can re-activate the screen very easily: push the front button (either open or closed), hit any key on the keyboard, hit the power button, drag the unlock circle. So when I want to look at something, it's pretty easy. Plus, even with the screen locked you can still hit the buttons on the music notification to control your tunes, and when driving, Sprint Navigation keeps the screen on by default, or you can use NoDoze or the extra lock times patch to keep the screen on if you're not navigating.

Info on the Palm support forum (linked above) indicates that this behavior we liked was actually a bug that has now been fixed. So it's almost certainly not coming back.

If we get a patch, great, but if not, it's not as bad as I thought it was initially.
__________________
Palm III-->Handspring Visor-->Sony Clie PEG-NR70-->no PDA -->Palm Treo 755p-->Palm Pre-->HP Veer
jbg7474 is offline   Reply With Quote
Old 11/23/2009, 12:53 PM   #19 (permalink)
Member
 
Join Date: Jul 2009
Posts: 25
Likes Received: 0
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by jbg7474 View Post
Just a bit of extra info on this: I've discovered after living with the change that it's not so incredibly bad. First, you can re-activate the screen very easily: push the front button (either open or closed), hit any key on the keyboard, hit the power button, drag the unlock circle. So when I want to look at something, it's pretty easy. Plus, even with the screen locked you can still hit the buttons on the music notification to control your tunes, and when driving, Sprint Navigation keeps the screen on by default, or you can use NoDoze or the extra lock times patch to keep the screen on if you're not navigating.

Info on the Palm support forum (linked above) indicates that this behavior we liked was actually a bug that has now been fixed. So it's almost certainly not coming back.

If we get a patch, great, but if not, it's not as bad as I thought it was initially.
Yeah, I saw that about pressing the center button on the 1.3.1 Issues thread. It's all about convenience for me (and sometimes aesthetics). I find the music notification control a little hard to hit while driving, and using NoDoze or a higher lock time requires me to remember to set those before driving and after getting out of the car.
I'm going to try my idea for the patch on my phone this afternoon as long as I don't get bothered with "real" work There isn't a way to tell the emulator to be on the Touchstone, is there?
sakasune is offline   Reply With Quote
Old 11/24/2009, 12:01 PM   #20 (permalink)
Member
 
Join Date: Jul 2009
Posts: 25
Likes Received: 0
Thanks: 2
Thanked 2 Times in 2 Posts
Default

I tried out my solution, it seems to work. I made my modifications to the bar-assistant.js file (it is in /usr/lib/luna/system/luna-systemui/app/controllers/). I will provide here what I did - but if you make changes to your phone, it is at your own risk and you should definitely backup the original file. Maybe someone can help me make this a real patch.

I will use the line numbers from the original, un-touched file, but if you have any patches that change the top bar (battery icon/percentage, date in the top, etc) then your line numbers may be different.

By the way, I haven't added anything to have it auto-lock if its too dark like it did in 1.2.1, so just keep that in mind.

Add these two lines at line 20 after this.wifiRadio = false:
Code:
this.previousTimeout = 60;
this.onPuck = false;
Go to line 1550, add a new line before the curly brace ("}") before this.chargingBannerShown = true and add this:
Code:
//if we are on the touchstone, set the timeout to "never" (actually 24 hours)
if(payload.name == "puck") {
	this.onPuck = true;
	//backup original timeout
	this.controller.serviceRequest('palm://com.palm.display/control', {
		method: 'getProperty', 
		onSuccess: function(response) {
			this.previousTimeout = response.timeout;
		},
		parameters:{properties:['timeout']}
	});
	//set new time
	this.controller.serviceRequest('palm://com.palm.display/control', {
		method: 'setProperty', 
		parameters:{timeout:86400}	
	});
}
And then at line 1558 after Mojo.Controller.getAppController().removeBanner('chargingAlert');:
Code:
//if we were on the touchstone, set back to original value
if(this.onPuck == true) {
	//set new time
	this.controller.serviceRequest('palm://com.palm.display/control', {
		method: 'setProperty', 
		parameters:{timeout:parseInt(this.previousTimeout)}	
	});
	this.onPuck = false;
If you have any questions, post here - I'll be visiting family for a few days but will try to get on here if I see anything
sakasune is offline   Reply With Quote
Thanked By: HaPe
Reply

 

Tags
lock screen, patch, touchstone

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0