Comments (11)
I am on thud. I just tested this by doing screen /dev/ttyS1 115200
and have no problem reconnecting.
Same when just doing screen
. Maybe the problem is sumo specific?
from meta-intel-edison.
Thanks for testing. I will switch on Thud.
from meta-intel-edison.
I switched to Thud, but the problem is also here. I think I was not clear in my problem description so here it is:
- From your desktop or laptop PC, connect to edison through ssh:
ssh 192.168.1.xx
- From edison open a screen session:
screen
, then launchtop
orhtop
- From edison, detach from screen:
Ctrl A + D
- From edison, exit from ssh:
exit
- From laptop or desktop, reconnect to edison:
ssh 192.168.1.xx
- From edison,
screen -r
should reconnect you to your previous and you should seetop
still displaying data.
Unfortunately, this does not work.
Never mind, I will investigate and come back if I found the issue.
NB: Ochrin = Sideralis :)
from meta-intel-edison.
@sideralis no you were perfectly clear. I just tried again following exactly your steps (pressing crtl D
instead of typing exit
) and it just works (htop
).
Looks like you found an interesting bug. The only real difference I see is I connect ssh [email protected]
. Is is possible you created a user account, allowing you to connect ssh 192.168.1.xx
?
from meta-intel-edison.
Yes, I created some user accounts.
And I confirm your try: if I 'ssh' to root account (ssh [email protected]
) then screen session is not lost. If I 'ssh' to user account, screen session is lost.
I will try to investigate...
from meta-intel-edison.
I can reproduce your case. Also:
- if you have 2 terminals open to edison
- create screen and detach in one terminal as non-root
- reattach in 2nd terminal and then close first terminal
- screen in 2nd terminal terminates
No idea why.
from meta-intel-edison.
@sideralis it's a systemd thingy. Read more here and here (Orphaned processes).
Thanks @wdehoog!
What should work (but I didn't try): KillUserProcesses=no
in /etc/systemd/logind.conf
or
compile systemd
with --without-kill-user-processes
What certainly does work (I tested):
loginctl user-status
sudo loginctl enable-linger ferry
systemd-run --scope --user screen
So it seems to be intended behavior.
from meta-intel-edison.
If you are looking for a recipe that drops a config fragment to modify logind.conf have a look at the pwr-button-handler after this commit:
htot@e07328c
from meta-intel-edison.
Thanks for these details.
I modified /etc/systemd/logind.conf
on the target and screen is working as expected.
I will have a look at your commit.
Thanks again.
from meta-intel-edison.
You're welcome. Maybe we should add a topic to the documentation in combination with a patch to enable lingering? In the meanwhile I think we can close this issue?
from meta-intel-edison.
Yes, we can close.
I am not too familiar with Yocto but I will try to submit a patch for this issue (not right now but in a few weeks).
from meta-intel-edison.
Related Issues (20)
- Failed to fetch URL http://hisham.hm/htop/releases/2.2.0/htop-2.2.0.tar.gz HOT 4
- btrfs support issue HOT 5
- mraa crash on Yocto dunfell HOT 20
- BTRFS rebooted crash HOT 2
- boot failure HOT 12
- Preempt-RT support HOT 4
- ACPI table is not loaded HOT 8
- Integration with Azure HOT 1
- How to use PWM mode? HOT 5
- altering the partition table prevents subsequent dfu updates HOT 3
- requirement for sudo to use flashall.sh HOT 4
- `make debian` broken on master and dunfell HOT 4
- SD card does not work on dunfell branch HOT 69
- SD card not detected properly in U-Boot HOT 9
- Can't use "configure_edison --setup" HOT 9
- Intel Edison can't boot new flashed image HOT 3
- There is no issue with the network, but numactl cannot be downloaded. HOT 2
- Initramfs unpacking failed: invalid magic at start of compressed archive HOT 4
- Issue Building Sumo Branch HOT 1
- Expired gpg keys HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meta-intel-edison.