Page 1 of 5 12345 LastLast
Results 1 to 10 of 41
Discuss Battery life and SSH at the General - Hackint0sh.org; I have seeen some reports over here that runing a SSH-Server (Dropbear from iNdependence or ...
  1. #1
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default Battery life and SSH

    I have seeen some reports over here that runing a SSH-Server (Dropbear from iNdependence or OpenSSH from Installer) may sigificantly reduce battery live.
    I wanted to keep my SSH server but use it every now and then.
    I am too lazy to type the terminal commands to do so, so I used Installer (from App Tapp Installer) on the iPhone to install "UIctl".
    Its a grafical interface that allows to issue launchctl commands to all daemons. USE WITH CARE, if you dont know what you are doing, you may begin from scratch...

    I installed and startet it.

    All running deamons are printed in black.
    The one for Dropbear SSH is
    au.asn.ucc.matt.dropbear
    the one for Open SSH is
    com.openssh.sshd

    Type on the one you wanna stop sucking your battery. A dialog appears, choose
    unload -w
    and in the following dialog hit "Do it". The name (of the deamon) turns red, the ssh-Server (and SFTP-server) is not running anymore but still installed.

    If you wanna use it again, start UIctl, hit the (red) deamon name and hit
    load -w
    in the appearing dialog and then "Do It". Server is up and running again. No restart on both actions needed.

    Don't try that on other deamons as long as you dont know what you are doing!!!

    volkspost
    Last edited by volkspost; 09-18-2007 at 05:09 PM. Reason: typo
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2



  2. #2
    Rookie Array

    Join Date
    Sep 2007
    Posts
    14
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Thank you - works like a charm!

    It really DOES seem to affect the battery life - who would have guessed?
    Firmware 1.0.2 -- TurboSim -- iTunes 7.4.1 (2)
    Call In/Out: Yes/Yes -- SMS In/Out: Yes/Yes
    Mobile Data: GPRS only -- YouTube: Yes
    Voicemail: No (favorite only) -- VM notification: No

  3. #3
    Senior Professional Array h4xxr's Avatar

    Join Date
    Aug 2007
    Posts
    103
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    12

    Default

    Sweet, good plan. Also makes iPhone more secure (even tho I have changed the root passwords of course!).

    I have also used rSBT to "hide" the UIctl application once I did this, as many people like to play with my iPhone and I don't want them opening up that app and clicking away!

  4. #4
    Professional Array Polo's Avatar

    Join Date
    Aug 2007
    Location
    Zurich
    Posts
    84
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    Quote Originally Posted by h4xxr View Post
    Sweet, good plan. Also makes iPhone more secure (even tho I have changed the root passwords of course!).

    I have also used rSBT to "hide" the UIctl application once I did this, as many people like to play with my iPhone and I don't want them opening up that app and clicking away!
    haha....oh man how i know this: "may i?" "wow, can i have a look?" "what does this do?" and them "oops" handing it over back to me..

  5. #5
    Newbie Array

    Join Date
    Sep 2007
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Thanks for the tip volkspost! He he, "the people's post" ;-)


  6. #6
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    145
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    14

    Default

    Are you sure this is due to SSH and not the fac tthat you have to set the phone to "never lock" in order for it to not sever the SSH connection. When you're connected to via SSH and the phone is not locked (screen locked) you are obviously draining more power because the screen is always on. This isn't to do with SSH directly per say, it's to do with the screen being on. I noticed the battery drain issue myself which is why I posted a thread in "Native Software" asking kindly for someone to develop a screen off app. If we had such an app i'm sure this wouldn't be an issue.

  7. #7
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default

    Quote Originally Posted by hubbards View Post
    Are you sure this is due to SSH and not the fac tthat you have to set the phone to "never lock" in order for it to not sever the SSH connection. When you're connected to via SSH and the phone is not locked (screen locked) you are obviously draining more power because the screen is always on. This isn't to do with SSH directly per say, it's to do with the screen being on. I noticed the battery drain issue myself which is why I posted a thread in "Native Software" asking kindly for someone to develop a screen off app. If we had such an app i'm sure this wouldn't be an issue.
    Well as I said. I am using SSH/SFTP only every now and then for a couple minutes. For that time, setting Auto-Lock to never and ending up with screen on will drain battery of cause. But, as far as I know the server is - when on - always in kind of a waiting state for connection and running. So shutting this off will decrease use of the battery.
    Using Apples Notebooks from almost the beginning with model 100 I always switch off all services (plus network adapters when not using) when I am travelling and away from power supply. With Mac-OS x now I use a setting that has no services running (personal filesharing, web sharing remote desktop etc) that helps for sure - should help on the iPhone aswell. At least it will not harm.

    volkspost
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2

  8. #8
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    145
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    14

    Default

    Fair point... have your tried running 'TOP' or a similar process monitor on the iPhone to check how much resource the app is using. I can't believe it's that intensive unless it's a badly coded port.

  9. #9
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default

    Quote Originally Posted by hubbards View Post
    Fair point... have your tried running 'TOP' or a similar process monitor on the iPhone to check how much resource the app is using. I can't believe it's that intensive unless it's a badly coded port.
    I dont think its coded badly. I have benn running top on both (dropbear and OpenSSH). Like the always running MobileSafari and some other (Apple-SW) processes SSH is usually at 0% but every like 10-15 seconds the CPU percentage exceeds to > 1000% (I know thats ...) and then drops down to a minus value then back to 0%. Something is happening there I guess. I don't know how much power that needs, I keep SSH off as long as I dont need it. With UIctl switching is just three fingertipps away and (for me) it wont harm battery. Even if it saves just the extra-minute, for me its worth.

    best
    volkspost
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2

  10. #10
    Advanced Array

    Join Date
    Sep 2007
    Posts
    33
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Would be nice to have an icon to switch ssh on and off.


 

 
Page 1 of 5 12345 LastLast

Similar Threads

  1. Promo codes for Battery stand: know your exact Battery life
    By tinagrace in forum AppStore Software
    Replies: 0
    Last Post: 10-12-2011, 09:24 AM
  2. Battery Life
    By MJ29 in forum General
    Replies: 2
    Last Post: 10-27-2008, 05:21 PM
  3. Replies: 3
    Last Post: 08-02-2008, 04:22 PM
  4. battery life
    By thesutex in forum General
    Replies: 14
    Last Post: 09-24-2007, 12:39 AM
  5. Battery Life???
    By iceman012 in forum General
    Replies: 7
    Last Post: 09-23-2007, 08:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 10:06 AM.
twitter, follow us!