Ask / Submit
6

Add option to keep display on while in developer mode

asked 2016-07-19 18:18:43 +0300

updated 2016-08-10 23:27:24 +0300

vattuvarg gravatar image

Currently, if you want the display to keep on while testing your app, you have to either enable the "keep display on while charging" option or set a higher value for the display timeout. After you have finished your work, you have to reset those settings.

Just like the option "keep display on while charging", it would be really nice to have an option to keep the display on while the device is connected via USB in developer mode.

edit retag flag offensive close delete

Comments

Trimmed the headline a bit. Hope that's OK.

vattuvarg ( 2016-08-10 23:27:58 +0300 )edit

3 Answers

Sort by » oldest newest most voted
2

answered 2016-08-08 15:02:19 +0300

spiiroin gravatar image

The "keep display on while charging" in display settings effectively toggles the mce display blanking inhibit mode between "stay-on-with-charger" and "disabled". By using command line also other modes can be selected (stay-on, stay-dim-with-charger, stay-dim) - for example:

mcetool --set-inhibit-mode=stay-on

Alternatively there is the so called "demo-mode" convenience option for mcetool, which toggles few other actions in addition to setting the inhibit mode and is a bit shorter to write:

mcetool -Don

Back to "regular use" via:

mcetool -Doff

And there is also a variant that allows the display to dim, but not blank:

mcetool -Ddim
edit flag offensive delete publish link more
0

answered 2016-07-20 08:26:09 +0300

ehakkarainen gravatar image

Did You try the "keep display on while charging" setting, because my Jolla1 "stays on" with that setting, when connected to USB (charging)

edit flag offensive delete publish link more

Comments

Yeah, sure :) but I don't want the display to stay on while charging only :)

ejjoman ( 2016-07-20 10:08:41 +0300 )edit
0

answered 2016-08-10 22:10:53 +0300

coley gravatar image

I thought this was a good idea too :) I had used mcetool before for this but went a step further this time, I forked usb-mode-switch and added prevention of display blanking as a toggle on Developer Mode selection.

See https://github.com/MrColeyC/harbour-usb-switch/tree/dev-blanking

edit flag offensive delete publish link more

Comments

@coley: Nice.

For whatever reason, I did not think about "developer mode" in the usb mode sense. Which could easily be used also to add "stay-on/dim-while-developing" kind of inhibit modes directly to mce too.

spiiroin ( 2016-08-11 07:35:16 +0300 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2016-07-19 18:18:43 +0300

Seen: 293 times

Last updated: May 18