Keep screen on when connected via USB (Feature #651)


Added by Herman van Hazendonk almost 3 years ago. Updated almost 3 years ago.


Status:Closed Start date:09/27/2014
Priority:Normal Due date:
Assignee:John McConnell % Done:

100%

Category:Applications
Target version:Black Eye

Description

Add option to Settings app for Screen & Lock to keep screen on while connected to USB.

Can be achieved by setting calling "luna-send -n 1 -f luna://com.palm.display/control/setProperty '{ "onWhenConnected": true }'" and can be disabled by "luna-send -n 1 -f luna://com.palm.display/control/setProperty '{ "onWhenConnected": true }'"


History

Updated by Herman van Hazendonk almost 3 years ago

A simple toggle button would do, that does something to the following extend when changed (just mocked it up, so needs some proper testing):

screenOffToggleChanged: function(inSender, inEvent) {
if(this.palm) {
if(enabled) {
this.$.SetDisplayProperty.send({onWhenConnected: true});
}
else {
this.$.SetDisplayProperty.send({onWhenConnected: false});
}
}
else {
enyo.log(parseInt(this.$.BrightnessSlider.value));
}
}

Updated by Achim Königs almost 3 years ago

I would better like this option to appear in developer options. This is a typical developer request and found under developer options in other systems, too.

Or what is the use case for ordinary folks? ;)

Updated by John McConnell almost 3 years ago

Ok that simple to do :)
John

Updated by John McConnell almost 3 years ago

Ok it is moved ready for testing and tweeking
John

Updated by Simon Busch almost 3 years ago

  • Status changed from New to In Progress

Updated by Simon Busch almost 3 years ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

Also available in: Atom PDF