Active Topics

 



Notices


Reply
Thread Tools
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#81
Thank you, nice improvements!

..While you are at it, why not add an autostart (if not active) for some kind of connectivity or profile?
example:
autostart sshd when:
[ ] usb pc suite mode
- wifi profile:
[x] wifi_home
[ ] wifi_job

Then, another interesting feature would be the automatic switch of the wifi power management also for an outgoing ssh session.

Hey, weren't you that asked some ideas?

Last edited by xes; 2016-12-02 at 12:06.
 

The Following 3 Users Say Thank You to xes For This Useful Post:
Posts: 136 | Thanked: 263 times | Joined on Nov 2012 @ Germany
#82
Originally Posted by xes View Post
Then, another interesting feature would be the automatic switch of the wifi power management also for an outgoing ssh session.
Is this just an idea or are there in fact the same input lags for client connections (that's what is meant by outgoing ssh session?) as for server connections? I just installed the client and connected to my Linux Mint, but there didn't seem to appear those input lags?

If indeed needed, I'll add this.
__________________
OpenSSH Status Widget (N900)
Start / stop / kill / restart / autostart server - View server status - View server and client connections - Switch wifi pm automatically

Simpler Brightness Applet (N900) - A variation of the Simple Brightness Applet
Short tap to toggle "keep backlight on" - Long tap to open display settings
 

The Following User Says Thank You to rasmarc For This Useful Post:
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#83
@rasmarc

yes, the latency is the same also for an ssh client session since it is due to the lower power state of the wifi driver, just like it happens in any platform.
You can easily check the latency difference with a simple ping.
ping with power save to local ip =40-50 ms
ping without power save to local ip =3 ms
 

The Following 3 Users Say Thank You to xes For This Useful Post:
Posts: 136 | Thanked: 263 times | Joined on Nov 2012 @ Germany
#84
I've done the following:

The wifi pm feature now includes client connections. There is no option for it. As for wifi pm client connections are handled in the same way as server connections are.

v2.0-1 of yesterday still isn't listed in Extras-devel. I will wait uploading the current version 2.1-0. If you download v2.1-0rc1 from here and install it with HAM, the new dependency on package "openssh" can't be resolved due to local installation. If need be the package "openssh" has to be installed manually.

Changelog for v2.1-0rc1:
* Extended wifi pm feature to support client connections
* Option "Stop server when not connected" moved to section "OpenSSH Options"
Attached Files
File Type: deb openssh-status-widget_2.1-0rc1_armel.deb (43.2 KB, 44 views)
__________________
OpenSSH Status Widget (N900)
Start / stop / kill / restart / autostart server - View server status - View server and client connections - Switch wifi pm automatically

Simpler Brightness Applet (N900) - A variation of the Simple Brightness Applet
Short tap to toggle "keep backlight on" - Long tap to open display settings

Last edited by rasmarc; 2016-12-03 at 04:19. Reason: Typo
 

The Following 3 Users Say Thank You to rasmarc For This Useful Post:
Posts: 136 | Thanked: 263 times | Joined on Nov 2012 @ Germany
#85
Originally Posted by handaxe View Post
Great stuff, much appreciated - really!

HA
Thank you. It's simply more fun using openssh.
__________________
OpenSSH Status Widget (N900)
Start / stop / kill / restart / autostart server - View server status - View server and client connections - Switch wifi pm automatically

Simpler Brightness Applet (N900) - A variation of the Simple Brightness Applet
Short tap to toggle "keep backlight on" - Long tap to open display settings
 
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#86
Thank you for the update.
Sadly, it seems that it can't detect the ssh client session since the wifi power status remains unchanged.
 

The Following User Says Thank You to xes For This Useful Post:
Posts: 136 | Thanked: 263 times | Joined on Nov 2012 @ Germany
#87
Originally Posted by xes View Post
Thank you for the update.
Sadly, it seems that it can't detect the ssh client session since the wifi power status remains unchanged.
Hmmm, on my device I check wifi pm with
Code:
sudo iwconfig
It says "on". Then, after doing
Code:
ssh USERNAME@NETWORK-IP
it says "off".

If you don't mind, you could check several things:

In /etc/ssh/ssh_config is there an entry saying:
Code:
PermitLocalCommand yes
localCommand /usr/lib/openssh/session_client
Does /usr/lib/openssh/session_client exist?

In /usr/lib/openssh/wifi-power-management does line 22 contain
Code:
grep ssh
or
Code:
grep sshd:
?

With an active client connection and no server connections what does
Code:
ps | grep wifi
say? Is /usr/lib/openssh/wifi-power-management running?
__________________
OpenSSH Status Widget (N900)
Start / stop / kill / restart / autostart server - View server status - View server and client connections - Switch wifi pm automatically

Simpler Brightness Applet (N900) - A variation of the Simple Brightness Applet
Short tap to toggle "keep backlight on" - Long tap to open display settings
 
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#88
@rasmarc
the problem is due to the write permission/owner of /home/user/nohup.
 

The Following User Says Thank You to xes For This Useful Post:
Posts: 136 | Thanked: 263 times | Joined on Nov 2012 @ Germany
#89
Originally Posted by xes View Post
@rasmarc
the problem is due to the write permission/owner of /home/user/nohup.
You mean /home/user/nohup.out ? What's wrong with that? What makes you think there's a problem with nohup?

Who has write permission and is the owner of /home/user/hohup.out on your device?

Just delete it and try again...?
__________________
OpenSSH Status Widget (N900)
Start / stop / kill / restart / autostart server - View server status - View server and client connections - Switch wifi pm automatically

Simpler Brightness Applet (N900) - A variation of the Simple Brightness Applet
Short tap to toggle "keep backlight on" - Long tap to open display settings
 
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#90
..if triggered by the sshd daemon the nohup.out is owned by root, then when an ssh client sessions tries to created the same nohup.out it can't exec the command since the file is still there and owned by root.

Generally talking, place in the home folder a nohup.out file is not a good choice. It would be better to move it in some temporary folder.
 

The Following User Says Thank You to xes For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 15:05.