Notices


Reply
Thread Tools
Posts: 1,378 | Thanked: 1,604 times | Joined on Jun 2010 @ Göteborg, Sweden
#51
Originally Posted by rasmarc View Post
Before uploading I'll wait for some feedback regarding the two actual issues, mistaken switching to "off" and appearing icon in the status area. I attached the deb file of v1.3-pre.
So far, so good. Maybe a bit more time to see and perhaps ThomasAH to chip in here too?

Last edited by handaxe; 2015-05-15 at 21:02.
 

The Following User Says Thank You to handaxe For This Useful Post:
Posts: 136 | Thanked: 263 times | Joined on Nov 2012 @ Germany
#52
Originally Posted by handaxe View Post
So far, so good. Maybe a bit more time to see and perhaps ThomasAH to ship in here too?
In respective situations did you notice the display switched to 'off' and back to 'on'? It shows the actual status now and does no longer bridge 'off'-time.

Originally Posted by handaxe View Post
I think it is a little cluttered and changing it to orange would be a simpler way of showing the same. My 2 cents worth :-)
I gave it a try and think a coloured indicator is a good idea. In view of the fact that the button's text colour depends on your current theme - and I also like the additional symbol - I just added an option to choose between indicator styles (symbol, blue, green, orange, red).
 

The Following User Says Thank You to rasmarc For This Useful Post:
Posts: 1,378 | Thanked: 1,604 times | Joined on Jun 2010 @ Göteborg, Sweden
#53
Originally Posted by rasmarc View Post
In respective situations did you notice the display switched to 'off' and back to 'on'? It shows the actual status now and does no longer bridge 'off'-time.
Yes it does. I think the 1.3-pre implementation is good.
 

The Following User Says Thank You to handaxe For This Useful Post:
Posts: 136 | Thanked: 263 times | Joined on Nov 2012 @ Germany
#54
I updated the screenshots in post #1 showing the modified status area icon of v1.3-0, with user symbol in one case, and orange colored in the other. Available colors are: blue, green, orange, red. In case one absolutely needs a special theme-colored icon, a custom icon can be added by copying a png file of size 18x18 px to
Code:
/usr/share/icons/hicolor/18x18/hildon/openssh-status_users_description.png
"description" has to be lowercase. As soon as the file exists it will be available in the configuration dialog.

Given handaxe's feedback, I kept the 10 seconds follow-up time for tracking, when status switches to 'off'.

v1.3-0 has just been uploaded.

Changes:
*new option: show status 'connected' in status area
*status 'off' is displayed without delay again, instead added follow-up time for tracking
*bugfix: tapping outside confirmation dialog didn't cancel but disconnect
 

The Following 2 Users Say Thank You to rasmarc For This Useful Post:
Posts: 136 | Thanked: 263 times | Joined on Nov 2012 @ Germany
#55
Hi! I uploaded v1.4-1 yesterday. Using some information from this thread i added another option
  • Keep WiFi power management off when connected
Unlike described in the thread the widget solely turns off power management and leaves the signal strength unchanged because I did not notice any effect from that so far.

Furthermore the widget's icon has changed from simple blowfish to openssh style, see post #1. And there was a command missing in the installation routine, "update-sudoers". I tested v1.4-1 on my just PR1.3-flashed spare device.

Changes:
Code:
*new option: keep wifi power management off when connected
*added postinstall/postremove command: update-sudoers
*icon changed
 

The Following User Says Thank You to rasmarc For This Useful Post:
Posts: 136 | Thanked: 263 times | Joined on Nov 2012 @ Germany
#56
Folks, here comes an important update!

In v1.5-0 cpu load is being reduced by about 90%. In prior versions the routines for checking server status and number of connections generated a cpu load of 6% (measured with top in ssh). The reason was to be found in the python command
Code:
subprocess.Popen
which in python 2.5 does neither allow direct piping beween shell commands nor writing directly into a variable. I replaced it with the legacy command
Code:
commands.getoutput
which reduced the respective code to two lines and the cpu load to 1,7%.

In addition I increased the tracking interval of 2 seconds to finally 5 seconds, which feels still reasonable to me. It led to further decrease in cpu load to 0.6%.

Another option has also been added (as a result of discovering the former cpu load ):
  • Stop server when not connected for xx minutes
...still a suitable option, even with heavily decreased cpu load.

Finally I added setting signal strength to high level when keeping off wifi power management.


Changes in v1.5-0:
*cpu usage reduced by 90% (from about 6% to 0.6%)
*new option: Stop server when not connected for xx minutes
*signal strength set to high when wifi pm is off
 

The Following 3 Users Say Thank You to rasmarc For This Useful Post:
Posts: 1,378 | Thanked: 1,604 times | Joined on Jun 2010 @ Göteborg, Sweden
#57
Brilliant! I was watching the battery and had developed the impression that battery drain was higher. Thought about using powertop to investigate and here you provide the answer and solution. Thanks.

Last edited by handaxe; 2015-06-04 at 21:33. Reason: poor typing :-(
 

The Following User Says Thank You to handaxe For This Useful Post:
Posts: 176 | Thanked: 468 times | Joined on Jan 2010 @ NL
#58
Thanks a lot rasmarc for this update! I also had the feeling the widget was eating my battery for a bit, so nice to see this update coming out.

Sorry for not responding sooner btw, I was away for a while, and then my N900 got bricked (e.g. wouldn't startup anymore) by an update so I had to flash and reinstall everything. Am now running your widget v. 1.5-0 for a while, and I haven't seen the weird bug of the SSH-icon 'flashing' in the tray area for a while now.

Thanks for all the hard work
__________________
Sony CMD J6 > HTC Canary > HTC Universal > Nokia N82 > Nokia N8 > Nokia N900 > HTC One X > Jolla > Nexus 5 > Nexus 5X > Pixel 2 / PinePhone
 

The Following 2 Users Say Thank You to ThomasAH For This Useful Post:
Posts: 136 | Thanked: 263 times | Joined on Nov 2012 @ Germany
#59
Thank you for the feedback messages. There was still room for improvement:

The widget now detects display blanking/unblanking - as it should be of course - and stops/resumes tracking (i.e. cpu load ~0% when blanked). If "stop server when not connected" is enabled status is tracked once per minute.

I added an option "enable tracking" which is selected by default. But if one has the display on and the server running most of the time it might be better to disable tracking. In this mode the button displays just on/off. The number of connections can then be called up by long pressing the button and again from the confirmation dialog (see screenshot in post #1).

"Keep wifi power management off when connected" (to avoid input lags) is now implemented into the server configuration. This way it still works when tracking is disabled. Changes to this option take now effect immediately (the script is being restarted), so power management can be turned on/off on demand. This might be useful because of the increased battery drain when power managment is kept off.


Changes in v1.6-0:
* added power saving features:
+ widget detects display blanking and almost falls asleep
+ tracking made optional, just switch on/off and call up number of connections manually
* wifi power mangement is now implemented into the server configuration
* added option to choose wifi-pm refresh time
* confirmation dialog changed
 

The Following User Says Thank You to rasmarc For This Useful Post:
Posts: 1,378 | Thanked: 1,604 times | Joined on Jun 2010 @ Göteborg, Sweden
#60
Has the widget disappeared for anyone else? Both the status icon and in the drop-down.
 

The Following 2 Users Say Thank You to handaxe For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 02:39.