My Chromebook used to turn off the screen anytime I pressed the power button. I often use it to type notes during presentations, and I loved having a fast easy way to turn off the screen to save power if I knew I wouldn’t be typing anything for 5 or 10 minutes.
A few months ago, a ChromeOS update changed this so it only works it tablet mode now, pressing the power button in laptop mode now opens an on-screen menu with options to shutdown, log off, or lock screen. The best workaround I have found so far is to use the brightness keys to get the screen off, but it’s a pain to get it back to the right brightness level every time.
I have the Chromebook in developer mode, and I would like to do one of the following (in order from most to least preferred):
1. Restore power button functionality to how it was before.
2. Re-purpose the lock screen button on the keyboard for turning off the screen.
3. Add a keyboard shortcut to toggle the screen on and off.
4. Add a “Turn off screen” option to the current on-screen menu.
I never really modified ChromeOS before. Has anyone else done these things? Where should I begin? Thank you.
Here is some relevant documentation, maybe the information at the bottom is useful?:
https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/docs/power_buttons.md
I was able to do it by adding the flag "--force-tablet-power-button" to /etc/chrome_dev.conf and restarting the UI, but changes to that file don't seem to persist accross system reboots.
edit: I used the instructions at the bottom of this page: http://www.chromium.org/developers/how-tos/run-chromium-with-flags
Related
I have been trying to Find a Macro Mapper or some kind of 3rd party ap to lock my device when i press the power button. The only work around at this time is to use Lock Device with 4 number pin and 0min lock setting. however i am tired of constantly pressing digits and would rather use native Lock Function that requires bottom left tap to unlock than middle right side tap to confirm unlock. However, it is only initiated from a Lock on screen tap.
IF anyone knows how to enable this lock by pressing the power button which is in my case on the right side of my mogul(PPC6800) that shuts off the screen and powers down to standby i would greatly appreciate it. this is also a replacement for S2U which has a few bugs with slide out keyboard and memory leaks.
Try this...
http://www.vijay555.com/?Releases:VJDeviceLock
there is a program by spb that has this funtion... I don't know the name of it but i will look around. I don't remember the specifics of it, but there was a check box that says to lock teh device when you hit the powerbutton (or anytime the display turns off)
i believe it is SPB mobile shell
"Device Lock
Spb Mobile Shell 1.5 improves usability of device locking. Now you can lock your device using a hardware key, soft key on Today or a shortcut. You can also unlock the device using only soft keys. When your device is locked the Now Screen shows you the most important information, so in most cases you don't even need to unlock the device. "
http://www.spbsoftwarehouse.com/about/pressreleases/2007/jun19.html?en
you can at least try it out and see if it does what you want.
damn i apparently didn't didn't read all of your post... so you don't want to use slide2unlock.. hmm i guess your best bet is to try spb mobile shell and play with the options to see if you can get it to do what you want -- unless of course someone wiser than me knows of something else.
::ignore below:::
it turns out that what i was really was thinking of was slide2unlock
http://ac.xenpage.eu/S2U2-0.99c-WM5.rar
(from http://forum.xda-developers.com/showthread.php?t=353008)
options:
lock when device wakes up --- on/off
lock when backlight turns off ---on/off
power off in --- (time in S)
but blank screen only -- on/off
blank screen on talk -- on/off
then it has some other options for how it looks -- but if you don't mind doing the slide bar to unlock the phone it will do what you want.
When I have the dock on the Prime I use it like a laptop. I can't wake the tablet using the "lock" key on the keyboard though - it only seems to lock, not unlock (no toggle).
And the tablet doesn't wake automatically when I open the clamshell so I have to push the button on the top.
Is there an option somewhere I'm missing? I'd like to be able to wake it either from a keyboard shortcut or whenever I open the clamshell!
both said functions are present on my tf prime out of the box. I also don't recall seeing any settings that manages these. maybe something is wrong?
It should automatically come on when you open it from the dock. If it isn't doing that, it's possible your dock is not working as it should. Maybe take your TFP to somewhere that has a dock in stock and try it out there.
Other than that, if you enable the power savings mode for the dock under Settings -> Asus customized setting -> MobileDock Battery saving mode then it won't wake up with any key presses, but it will wake up with touchpad clicks unless you've disabled the touchpad via the 4th button from the top left prior to hitting the lock button.
Thanks guys! I'll take the dock back and get it swapped. Obviously something is amiss.
agentdr8 said:
It should automatically come on when you open it from the dock. If it isn't doing that, it's possible your dock is not working as it should. Maybe take your TFP to somewhere that has a dock in stock and try it out there.
Other than that, if you enable the power savings mode for the dock under Settings -> Asus customized setting -> MobileDock Battery saving mode then it won't wake up with any key presses, but it will wake up with touchpad clicks unless you've disabled the touchpad via the 4th button from the top left prior to hitting the lock button.
Click to expand...
Click to collapse
thanks for pointing that out. it really helps to be able to wake it up without reaching for the tiny power button. One thing tho, if i press the touchpad, it wakes up to the lock screen, but if i press any key on the keyboard it wakes up unlocked. is this normal?
I've gone from sentinalrom 5 to 6 yesterday and im finding some features that i really enjoyed aren't there any more (or at least i can't find them)
Number one is the ability to use the home button on the lock screen to turn on the torch, and the soft buttons to do other functions, this was very handy for me, but now i can't see that option either under "buttons" or "lock screen"
Anyone know if that capability has been removed or am i just unable to find it?
One of the things I love about AOSP ROMs as opposed to LG ROMs is that the power menu activates a lot quicker. I recently found a way to replicate this effect using Xposed.
1. Install Xposed (make sure you're on Dalvik)
2. Install Xposed additions, then activate it and reboot. There appears to be a pro version, though you won't be needing it for this.
3. Go to Buttons, Long Press Delay = whatever you want. 100 is the lowest, 250 feels about right. Too low and your risk activating the power menu when trying to lock the phone.
4. Tap "Add new Key", then press the Power button to detect it. Press OK and then enter the newly created "Power" option
5. Tap "Add New Condition", then tap "Screen On". Optionally add "Lock Screen" as well. No need to add "Screen Off", I don't mind the long delay when the screen is off as it prevents against accidental activation.
6. Inside the Condition, check Long Press, then configure it to open the Power Menu. Make sure to do this for each condition.
Ta-da, instantaneous Power Menu.
Thanks ? What you think about module for additional apps in Quick Window on stock KitKat? ?
Wysłane z mojego LG-D802
Not sure, I don't have one of those quickview cases
Fantastic! Great find mate!
Power Button hold response after 10 sec
Hello guys please help me as I'm frustrated now.
Because when i hold my power button the menu pops up after 10 sec please suggest how to fix it.
Thanks in advance.
Got the some problem as papuruth. Anybody know how to undo changes?
Anyone on the Android Pie Beta may have noticed the little * in the changelog telling you to disable Secure Startup.
If you were like me and assumed it would just be for the first boot after updating and re-enabled secure startup afterwords you may be facing this issue too where you can no longer use your phone because the screen is not coming on.
Luckily i found a pretty nice fix thanks to a user on Reddit HERE
"Rakien
I had this issue! There is a way to fix this!
You need to get Bixby set up blindly, and then ask to activate power saving mode, and turn it on. It'll lower the screen resolution and fix the issue. This is how I sorted it out.
I can post screenshots of what area to press, so you can get it set up.
Edit: Album with screenshots for Bixby, literally the one time it has come in handy, ahah!
By default, the navigation bar will be at the bottom, so find the home button, then move up slightly from there. After set up, ask Bixby to turn on power saving mode, then hit the area to confirm. After you have done this, do a reset of your settings in the menu, and it'll fix it. No factory restore needed. Hope this helps anyone.
Click to expand...
Click to collapse
Seems to be a bug with Android Pie + Secure Startup + a WQHD+ resolution.
So you need to change the resolution and then disable secure startup so it does not happen again.
I managed to get Bixby to enable power saving mode by unlocking the phone with my fingerprint, tapping the bixby key (you should be able to hear bixby welcome you) and tapping where the next arrow should be at the bottom center of the screen,
After this i held the Bixby Key and asked her to enable power saving, and then tapping apply (blind) near the bottom right of the screen.
All credits go to the user on Reddit