yashsingh1/xdaforums huggingface dataset:
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] fernando sor:
This is second charge with a mix of WiFi and data. The data was poor also.

Gsam battery monitor correctly has my screen using the most of the battery and not android system.
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] slickmastajay:
2nd charge first time ever breaking 8hrs SOT on any device I've owned. Mostly wifi, some 3 hrs on data and about 15 minutes on gps.
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] fernando sor:
Nice. This was my third charge. Also broke 8 hours for the first time in owning 9 android smart phones.
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] unknownbeing:
I'm having horrible battery life with this phone, anyone else? I haven't broken 4 hours of SOT since I've gotten this phone on 2/29
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] NotATreoFan:
Google Play Services shouldn't be that high. You may need to clear data on it and let it rebuild.
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] NotATreoFan:
Although my battery life is not horrible, I'm going to do a factory reset and slowly introduce my apps back until I find what's affecting it most.

I picked up a second S7 Edge on Friday for the BOGO deal. All I did was add a Google account, and disable whatever bloat could be done without Package Disabler Pro. In the 60+ hours it's been sitting, the battery is still north of 65%. Minimal screen use, around 30 minutes, but I've been carrying it around with me in and out of WiFi.
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] guaneet:
i highly recommend you do a factory reset, that is crazy drain lol also do as [MENTION=320479]NotATreoFan[/MENTION] is doing and introduce apps one by one. sometimes certain apps aren't compatible(IE apps that haven't been updated in years/months)

this was my usage yesterday with packages disabled with package disabler pro. http://xdaforums.com/showpost.php?p=65826217&postcount=520

also note that the dev for that app just pushed out an update! grab it while its hot!
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] unknownbeing:
I did a factory reset about a week after I got it because of this issue
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] guaneet:
install gsam battery monitor and check what is causing the extra cpu usage. its possible that an app isnt letting your phone go to sleep.
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] Kilroy672:
Took the phone off the charger roughly 10 am or so this morning and now its 8pm and I'm at 58%. My Note 4 would have been dead by now.
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] jagman96:
Just curious you guys with crazy good SOT. Do you have many accounts syncing? I'm getting only 4-5hrs daily mostly on WiFi. I have BT and NFC on all the time, too. I have a Huawei Watch so maybe that is affecting it. My son plays Angry Birds and driving games that really seem to kill the battery. 8hrs is just plain crazy.
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] jrwingate6:
Anyone else getting this kind of WiFi drain?
[Samsung Galaxy S7 Edge Questions and Answers] umbrokhan:
Galaxy S7 Edge - Bend Test, Scratch test, Burn Test

by jerry Rig everthing the same person who bend Nexus 6P so easily.

youtube link below for galaxy S7 Edge bend test

https://www.youtube.com/watch?v=D_bB5fnN7Jk
[Galaxy S6 Edge+ Q&A, Help & Troubleshooting] da.trute:
HI, anyone esle getting network problems, no errors reported on the phone but two days running now i've had to put phone in plane mode and out again to get it to send a text, seems to be going offline.

Mine is none rooted / customised so I cant just update the modem.
[Lenovo K900] X0LARIUM:
http://www.android-x86.org/download

There are tons of ROMs..But I dont know what it is actually.

Anyone?
[Chromebooks] Sneets:
Hey everyone,

I am looking for a way to activate sleep mode of my chromebook manually in order to save battery without having to log out or power off all the time (it's connected to an external display, so closing the lid doesn't trigger it).

So far I found out that calling "powerd_dbus_suspend" from the shell does the trick, but as you can imagine, using the shell and actually typing the command every time is not really a solution.

Is there a way to create a chrome os app that executes this program call, so I can put it in my shelf and just click it to activate sleep?

I'm not really good at .json, maybe there's a way? Or any other suggestions?

Thanks alot!

Markus
[Chromebooks] _jis_:
I would like to know it too. Anyone?
[Chromebooks] parrotgeek1:
Run a tiny web server like lighttpd in the shell on a weird port, restrict to localhost. Set up index.php to run system (whatever);

Then bookmark the 127.0.0.1: xxxx URL
[Chromebooks] jeffmil:
Which system call invokes power_dbus_suspend?

Thanks Parrotgeek1. Working off your excellent suggestion I installed a lightweight local server on ChromeOS (Web Server for Chrome with the 200 OK! icon) and built a small framework app that is served from local storage. I'm all set up to call chrome.app.??? from my JavaScript. Which API provides the power_dbus_suspend capability? I looked through the Power and System APIs and I don't see anything. - Thanks!
[Chromebooks] Pkt_Lnt:
Have you tried this simple extension? Keep Awake

https://chrome.google.com/webstore/...lb?utm_source=chrome-app-launcher-info-dialog
[Chromebooks] beetroot:
What I do is have the shell tab pinned, and press [up arrow] for the command then hit [enter]. Probably not ideal if you use the shell a lot as you have to step through recently used commands.
[Chromebooks] jeffmil:
Re: Pkt_Lnt's post

Thanks Pkt_Lnt. That app only deals with disabling the normal sleep behavior, not causing it, and in particular not causing it when an external monitor is connected. I'm looking for something like Sneets has requested, to invoke a powerd_dbus_suspend command that will force the system to sleep (and turn off an external monitor). Per Parrotgeek1's comment, I've got a little app now sitting on the shelf that is all set to call some system command to invoke powerd_dbus_suspend, only I'm looking for what command to call, from JavaScript.
[Chromebooks] Nolirum:
I managed to find a way to do something similar with the Secure Shell app. During the process of figuring it out, I also found that I was able to create a homescreen shortcut on my Android tablet which when tapped sends a shell command to the Chromebook.

This method might be overkill somewhat, but, anyway, what I did was as follows:

Installed Secure Shell extension; setup sshd on the Chromebook (by making a symlink in /etc/init/ pointing to /usr/share/chromeos-ssh-config/init/openssh-server-conf); rebooted; added public key from ConnectBot (Android app) to ~/.ssh/authorized_keys in order to test connection; setup Android homescreen shortcut to send shell command; created profile in Secure Shell app on Chromebook to connect to chronos@localhost/my local IP address; generated keys on Chromebook (in ~/.ssh); added generated public key to ~/.ssh/authorized_keys; imported newly-generated private/public key pair within Secure Shell app (one by one); created bookmark link to chronos@localhost profile in shelf, and, finally, added required command to profile in Secure Shell.

It works well! It looks like any command can be added to the 'Arguments' field in Secure Shell, with the syntax:

-- thecommand

Although I guess commands that need sudo would require a connection to root@localhost, instead of chronos. (-t argument lets you use sudo, but then sending a line break/ENTER seems to be needed)

The window opened with the click does hang around - I haven't figured out if it's possible to avoid this - but it does at least seem to persistently remember the size and position to which it's set.

I posted up some further details at http://nolirium.blogspot.com/shell-command-shelf-shortcut-chromeos.html
[Chromebooks] jeffmil:
Impressive! But a bit more than I'm looking to do

[MENTION=7895194]Nolirum[/MENTION] - I read your blogspot doc and your procedure's pretty impressive. Frankly it's a little beyond me and beyond what I'm looking for. If you ever run across a way to invoke powerd_dbus_suspend a little more directly please post here as well. You clearly have a strong grasp of the issues!
[Chromebooks] DandyRandyMarsh:
This really is impressive! Thanks for the extremely detailed explanation.

I was able to follow along completely and get the SSH argument "powerd_dbus_suspend" working.

However, I got to thinking. I was wondering if this could be extended to use an alias stored in ~/.bashrc?

After doing some research of my own and using various parameters and arguments, I was unsuccessful.

The goal is to have a linux app (through crouton) be run using xiwi with just a single bookmark by utilizing an alias.

Any thoughts?

UPDATE:

Of course just a few moments later I figured this out! Rather than dealing with an alias stored in ~/.bashrc and ensuring ssh had access, typing the entire alias command as an argument worked. Now I can run Steam directly from a shelf bookmark. All it took was replacing "powerd_dbus_suspend" with "-- sudo enter-chroot xiwi steam" in the argument.

Thanks again!
[Chromebooks] Nolirum:
No problem! I think it's perhaps overly detailed if anything. Might be easier to follow if I cut it down a bit.

Nice!

Adding crouton single app shortcuts is a cool idea which I hadn't considered. Does it work OK for you with sudo in the command, even straight after booting up? ...You didn't have to setup sudoing without a password via sudoers.d or anything?

Inspired by your post I added xiwi to my chroot to try it out. I seem to remember experiencing quite unbearable lag and slowness when running a full desktop via xiwi in the past, but with single apps there doesn't seem to be any noticeable performance hit (this is on an armv7 Asus Flip, with the chroot on a slooow USB drive).

In order to not have to enter my sudo password, in the argument I put:

-t -- echo mypassword | sudo -S sh /media/removable/3/bin/enter-chroot xiwi firefox

Maybe I'm missing something? Is there a better way, perhaps?

Anyway, since I have rootfs verification switched off, I also tried saving a similar command to a file in /usr/bin, and putting the filename in the argument instead. This works, too, and I suppose could potentially be useful e.g. in the case of needing to run a more convoluted sequence of commands with a shortcut.
[Chromebooks] DandyRandyMarsh:
I'm not entirely familiar with exactly how my process worked, but I do not have any sudo password required within shell.

Here's the list of steps I followed allowing me to use sudo commands in the SSH Arguments box.

As a side note, this is the crouton installation I am running on an ASUS c302.

sudo sh ~/Downloads/crouton -r trusty -t unity,touch,xiwi,extension

Setup Bookmarks that Run Shell Commands

1. Installed Secure Shell extension

2. Open crosh with Ctrl+Atl+T

3. Enter Command: shell

4. Enter Command: sudo su -

5. Enter Command: sudo /usr/share/vboot/bin/make_dev_ssd.sh --force --remove_rootfs_verification

6. Enter Command: reboot

7. Let Chrome OS reboot

8. Open crosh with Ctrl+Atl+T

9. Enter Command: shell

10. Enter Command: sudo su -

11. Enter Command: mount –o remount rw /

12. Close current crosh window

13. Open a new crosh with Ctrl+Atl+T

14. Enter Command: shell

15. Enter Command: sudo ln -s /usr/share/chromeos-ssh-config/init/openssh-server.conf /etc/init/openssh-server.conf

16. Enter Command: sudo initctl reload-configuration

17. Enter Command: sudo initctl start openssh-server

18. Enter Command: cd ~/.ssh/

19. Enter Command: ssh-keygen

“Enter file in which…” *LEAVE BLANK*

“Enter passphrase” *LEAVE BLANK*

“Enter same passphrase” * LEAVE BLANK*​

20. Enter Command: cat /home/chronos/user/.ssh/id_rsa.pub >> /home/chronos/user/.ssh/authorized_keys

21. Enter Command: cp -a /home/chronos/user/.ssh/id_rsa* /home/chronos/user/Downloads

22. Close current crosh terminal and open Secure Shell extension

23. Select [New Connection]

24. Click Import… and select “id_rsa”

25. Click Import… again and select “id_rsa.pub”

26. Enter chronos as the username and localhost as the hostname

27. Enter a shorthand name replacing the text in the top cell “chronos@localhost”

28. Click Enter. If prompted, enter “yes” to continue connecting

29. Bookmark the page that is open which should end in, "#profile-id:_ _ _ _"

DONE. Now time to add some commands to automate.

Open Secure Shell and select the connection created. In the arguments box, start with two dashes -- and follow it your desired shell command.

Examples:

-- sudo startunity

-- sudo startgnome

-- sudo enter-chroot xiwi steam

-- sudo enter-chroot xiwi wine microWord​

Next Steps... Getting Custom Shelf Icons

Now here I am running into some issues. Rather than have all these icons be the same, I was hoping to customize them.

Followed a strategy found on reddit, Change Shelf Icon for Website, but this only works if the site already had an "apple-touch-icon" set. Also, tried to inject the entire code myself which I couldn't get to work. Unfortunately, I think that since this bookmark is created from a Secure Shell, there are some issues.

I have already tried adding in code for this into the site, but it is having no effect. If someone could make this work then we're really looking good here.
[Chromebooks] Nolirum:
Oh, I see what you mean. You are saying that you can sudo in the shell generally, without being prompted for a password, right?

Was that the default setup on your CB (after switching to Dev mode)? Or did you have to configure it manually for passwordless sudoing...

Nice work summarizing the steps. :highfive: It's probably easier to follow, listed out like that. One slight addendum, perhaps - at step 29, it might be good to clarify the "add to shelf" procedure. Especially because of the following...

Happily it turns out that, when you add shortcuts to the shelf on Chrome OS like this, a minimal app is created for each one, with its own manifest.json, and icon.pngs. Our shell shortcuts were getting created with blank pngs by default (the black box with P in the center).

So, all we need to do, is get some icons, find the right folder for our shelf shortcut apps, then copy our new icons into them!

For instance, here's how I made a nice shiny icon for my single app shelf shortcut to Firefox.

Prepared icons:

Created a temporary folder in ~/Downloads to store downloaded icons.

Prepared a set of icons in ~/Downloads/firefox. (I downloaded mine from findicons.com).

Six sizes are required - from 32px to 256. To avoid any manifest editing, saved them as *size*.png

e.g. 32.png; 48.png; 64.png; 96.png; 128.png; 256.png

Located folder to copy icons to:

It is easiest to do this directly after clicking "add to shelf"

EITHER:

To change dir into the most recently modified extension icon subfolder automatically, the following one-liner worked for me*.

shell
cd ~/Extensions/&&cd $(ls -v1td */ | head -1)/*/icons&&ls

A list of blank icons (*.png) should be visible. If so, the new icons can simply be copied over these, e.g..

sudo cp ~/Downloads/firefox/* .

*YMMV with this particular one-liner - sometimes there's an extra 'temp' folder in ~/Extensions, which stops it working as expected. If you get an error after running the command, simply use the slightly more manual method to locate the folder, as detailed below.

OR:

(slightly more manual method).

shell
ls -ltr ~/Extensions

Checked the date/times - the most recently added folder is at the bottom. Then,

cd themostrecentlyaddedfolder

(or, the folder modified at the date/time that the shortcut was "added to shelf"). Then,

cd */icons
ls
sudo cp ~/Downloads/firefox/* .

I then repeated the above with a new SSH argument and a set of Ubuntu icons, for a custom startxfce4 shortcut, too.

Then just did sudo restart ui, and enjoyed the shiny new shelf icons!

I am hopeful that these changes will get picked up by CrOS's sync, thus getting backed-up and restored automatically. At this point I am not sure if that will be the case, but I don't see why it wouldn't.
[Chromebooks] fattire:
Another way?

Another way to approach this, since you're modifying system stuff anyway, might be to edit crosh at /usr/bin/crosh. It's a regular ol' dash/bash shell program, and you can create a shortcut to it on the shelf by opening crosh (ctrl-alt-T), then right click the top right of the browser and select More Tools --> Add to shelf...

Clicking the newly-created link (which looks like an "N") will launch /usr/bin/crosh in a tab. Changing the default behavior of /usr/bin/crosh could accomplish your goal to do whatever you want. With some experimenting, you might even be able to pass arguments to make it do different things depending on how it's opened (via ALT-CTRL-T vs from the shelf-- dunno if it can read the url used to call crosh), but at the very least you could do something like have it run whatever you want it to run if a second modifier key is held down (or if it isn't...), otherwise return to normal operation. A menu w/1 sec timeout could do this as well, ie--

Doing [THE THING YOU WANT] in 2 seconds (press SPACE for crosh)... /

Note there's no proof-of-concept here. Just throwing it out as an idea that I'm pretty sure would work... Someone might even create a neat extension that allows crosh to use scripts/plugins to execute different system operations beyond the stock ones that are built-in via single-clicks... If it worked, it might be a little simplier than via the SSH extension and you wouldn't have to run any extra daemons.

ft

This is probably harder, but a third way, which probably is the "right" way is to see how the crosh extension works and learn about opening the hterm.Terminal instance chrome.terminalprivate object directly, sending it output, and closing it in the same way crosh does it. There's a file in the crosh extension at js/crosh.js that shows the basics of how it's done:

var terminal = new hterm.Terminal(profileName);

And then you can do stuff with it. You could then create an extension that could handle multiple shelf-icons (say by appending ?COMMAND=ls to the URL to do different shell commands(. The security implications for this would probably be huge obviously.

Update: More on embedding hterm is here.
[Chromebooks] Nolirum:
Nice post - Some good food for thought, changing up the contents of crosh etc directly is an interesting idea.

Interesting! ....Aaaaand, now I've broken crosh. lol. Lucky I had my SSH shortcut setup... (actually, we can still get into the VTs with CtrlAltF2 etc anyway).

Some good potential for experimentation with this, definitely.

Again, very interesting. Now you come to mention it, an approach such as this does seem like it might be do-able without too much messing around (maybe)...

Any possible method we can get e.g. an extension to 'talk' to the shell is worth looking into I think; as you say, if we can cut out the middleman (ssh) and maybe do it more elegantly, that might be pretty useful indeed.
[T-Mobile LG G4] lilpetamoix:
For people who had bootloop and requested replacement handset from Tmobile under their warranty, were your handsets rooted/installed with custom roms?

Reason I ask is because while rooting voids the warranty, how would Tmobile know if you rooted if your phone doesn't boot?

I'm debating on whether to root or not, and whether it really affects Tmobile's replacement policy under warranty.
[T-Mobile LG G4] cschmid44:
Hi, to answer your question rooting in general wouldnt affect a hardware issue because the bootloop has nothing to do with the rooting process, Rooting simply allows you to access software that has been locked down by tmobile and lg that they do not wan you messing with rooting is strictly a software based process, However if you start using custom kernels (core of the os) to overclock and or overvolt your processor then you may have an issue but because its not strictly related I think that LG would most likely fix the issue given they are aware of it. Also you can always unroot the device as for the bootloop issue it is a hardware related issue it will be covered. You can't warranty software under any circumstances because no software is 100% bug free. I hope this helps
[T-Mobile LG G4] jvianney94:
i've sent multiple phones in that i've bricked. just take it in to a store and act dumb. "i don't know what happened. it just won't boot." respond negative on all questions regarding water damage, etc. They will return it for you, offer to give you a loaner device until the warranty replacement arrives within a couple of business days. It's relatively painless.
[T-Mobile LG G4] Laguar:
worked for me!

I returned my phone with no problem. I had an unlocked bootloader that displayed a message on the boot screen. They asked about it and they didn't seem to care. Apparently they've dealt with it enough that they knew it was a hardware problem and I got my phone the next day.
[Galaxy Tab 3 Q&A, Help & Troubleshooting] ms6:
hi,guys

i am starting whatsapp group for dev purpose and also for oftopic

if anyone interested pls put up there phone number with country code ?????
[Galaxy Tab 3 Q&A, Help & Troubleshooting] fernandosayai:
Please add +919436847571
[Galaxy Tab 3 Q&A, Help & Troubleshooting] ms6:
Need more numbers.... text me @+919567489407
[Galaxy Tab 3 Q&A, Help & Troubleshooting] ms6:
Any more no
[Elephone P8000] halloj:
How do I block a caller?
[Nexus 6P Q&A, Help & Troubleshooting] jujak82:
hy there is a mod for google keyboard to enable number row?

i searched but i found just some mods that are discontinued.

i dont wanna install other keybord or enable pc version ( i dont like it)

thx in advance
[Nexus 6P Q&A, Help & Troubleshooting] Barsky:
Seems there was one I tried, but with no height adjustment, the keys were to small.

Alternate keyboards can do this. Swiftkey. Chrooma.
[Nexus 6P Q&A, Help & Troubleshooting] androidddaaron:
Yes there are many of them there all moded Google 123 keyboards. From a past forum That work on 6p well.

You Must and have to root explore and either backup and delete the stock keyboard apk first Or just delete them period with root browser

You must set the keyboard in preferences to Holo White for the theme to take effect.

NOTE:

Download the desired apk first before you delete the stock apks within the O.S you'll need the keyboard you use now to type

Just install apks as normal and follow install.

The (123) keyboards meaning number rows are incorporated within the keyboard and multiple themes available.

I should tell you to search these things out and you would find them as this is found in the 6p theme section here

http://xdaforums.com/showthread.php?p=44170372

But today im feeling nice so I'll link you to the forum.

Most people would just ignore the question since its Literally within themes and mods section. Follow the install guide as mentioned or it won't work
[Nexus 6P Q&A, Help & Troubleshooting] stevemw:
Settings, Language & input, Google keyboard, Appearance & layout, Custom input styles, + (Add style) : Language (choose language); Layout (choose PC)
[Nexus 6P Q&A, Help & Troubleshooting] kboya:
[MENTION=454752]stevemw[/MENTION] thanks, I'd forgotten all about that.
[Nexus 6P Q&A, Help & Troubleshooting] stevemw:
Glad to help.
[Samsung Galaxy S7 Edge Questions and Answers] Jaybell4444:
So I got by S7 Edge and wanted to install some Script fonts but every Font I installed keeps giving me an error saying it's not compatible. Are there any fonts out there yet that are compatible with marshmallow? I tried several with Play Store and the Samsung Apps store but no such luck. The fonts install but when you try to change it, that's when I get the error. Any ideas?
[Samsung Galaxy S7 Edge Questions and Answers] Brava27:
Daaaaamn that sucks. I am a big font fan. I hope ifont works for me.
[Samsung Galaxy S7 Edge Questions and Answers] mannyp:
Ifont not working either.
[Samsung Galaxy S7 Edge Questions and Answers] Brava27:
Probably have to go root method.
[Samsung Galaxy S7 Edge Questions and Answers] mannyp:
Pretty much. Or maybe an update from these apps can get it to be compatible. Idk