Losing session when screen is locked

Report Bugs, Issues and non- package Requests
Message
Author
sanskk
Posts: 12
Joined: Sun Apr 14, 2019 4:56 pm

Re: Losing session when screen is locked

#11 Post by sanskk »

xflock4 is what I use to lock my screen manually.
I disabled light locker for now. We'll see tomorrow.

User avatar
fehlix
Developer
Posts: 12886
Joined: Wed Apr 11, 2018 5:09 pm

Re: Losing session when screen is locked

#12 Post by fehlix »

sanskk wrote: Tue Apr 16, 2019 8:17 pm xflock4 is what I use to lock my screen manually.
I disabled light locker for now. We'll see tomorrow.
xflock4 is just a xfce4-wrapper script and calls light-locker. The command issued to lock is

Code: Select all

light-locker-command --lock

sanskk
Posts: 12
Joined: Sun Apr 14, 2019 4:56 pm

Re: Losing session when screen is locked

#13 Post by sanskk »

My bad, I meant I disabled the automatical lock of the session by Light Locker, see attached image.
You do not have the required permissions to view the files attached to this post.

sanskk
Posts: 12
Joined: Sun Apr 14, 2019 4:56 pm

Re: Losing session when screen is locked

#14 Post by sanskk »

12 hours in suspend – no new session.
Another hour in manually locked session – no new session.

I hope this time it'll stay this way. Thank you again for your help.
You do not have the required permissions to view the files attached to this post.

sanskk
Posts: 12
Joined: Sun Apr 14, 2019 4:56 pm

Re: Losing session when screen is locked

#15 Post by sanskk »

It is working flawlessly now. Thank you very much!
You do not have the required permissions to view the files attached to this post.

User avatar
oops
Posts: 2021
Joined: Tue Apr 10, 2018 5:07 pm

Re: Losing session when screen is locked

#16 Post by oops »

fehlix wrote: Sun Apr 14, 2019 8:18 pm I cannot see anything on that screenshots just some white blank.
Anyway. Would uninstalling xscreensaver change the situation, and potentially also clearing any saved sessions. Not sure whether the newer version xfce4-settings from mx test-repo would help.
If you have teamviewer as daemon running, I would probably also try to disable the teamviewer daemon, as I remember I had quite some issue with having it permanently running. I'm using teamviewer not very often, so it make no sense to me to have it permanently running, when it also makes some issue when shutting down or wake up.
:puppy:
FI: I'm using teamviewer not very often too, so:

Code: Select all

sudo teamviewer --daemon disable # disable teamviewer service
Manually:
sudo /opt/teamviewer/tv_bin/teamviewerd -d # to enable teamviewer service
...
Then to launch:
/opt/teamviewer/tv_bin/script/teamviewer

sudo killall teamviewerd # to kill
 
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils MX Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19-23_x64 & antiX23_x32 runit

User avatar
fehlix
Developer
Posts: 12886
Joined: Wed Apr 11, 2018 5:09 pm

Re: Losing session when screen is locked

#17 Post by fehlix »

oops wrote: Sun Apr 21, 2019 9:56 am FI: I'm using teamviewer not very often too, so:
If AnyDesk cannot be used I use the following teamviewer desktop starter,
while having disabled to start teamviewerd as service during boot:

Code: Select all

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Categories=Network;

Name=TeamViewer 12
#Name=TV12_initD
Comment=Remote Support with Teamviewer
#Exec=/opt/teamviewer/tv_bin/script/teamviewer
Exec=sh -c '( sudo /etc/init.d/teamviewerd status | grep -q running ) || sudo /etc/init.d/teamviewerd start ; /opt/teamviewer/tv_bin/script/teamviewer ; sudo /etc/init.d/teamviewerd stop'

# This icon might be overridden by other icon themes (e.g. breeze).
#Icon=teamviewer

# This icon should always be the default TeamViewer icon.
Icon=TeamViewer
Path=
Terminal=false
StartupNotify=true
Togethether with this teamviewer sudoers-file:

Code: Select all

# sudoers file for start/stop teamviewerd
 
%sudo ALL=(root) NOPASSWD: /etc/init.d/teamviewerd

:puppy:

User avatar
oops
Posts: 2021
Joined: Tue Apr 10, 2018 5:07 pm

Re: Losing session when screen is locked

#18 Post by oops »

fehlix wrote: Sun Apr 21, 2019 10:46 am
oops wrote: Sun Apr 21, 2019 9:56 am FI: I'm using teamviewer not very often too, so:
If AnyDesk cannot be used I use the following teamviewer desktop starter,
while having disabled to start teamviewerd as service during boot:

Code: Select all

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Categories=Network;

Name=TeamViewer 12
#Name=TV12_initD
Comment=Remote Support with Teamviewer
#Exec=/opt/teamviewer/tv_bin/script/teamviewer
Exec=sh -c '( sudo /etc/init.d/teamviewerd status | grep -q running ) || sudo /etc/init.d/teamviewerd start ; /opt/teamviewer/tv_bin/script/teamviewer ; sudo /etc/init.d/teamviewerd stop'

# This icon might be overridden by other icon themes (e.g. breeze).
#Icon=teamviewer

# This icon should always be the default TeamViewer icon.
Icon=TeamViewer
Path=
Terminal=false
StartupNotify=true
Togethether with this teamviewer sudoers-file:

Code: Select all

# sudoers file for start/stop teamviewerd
 
%sudo ALL=(root) NOPASSWD: /etc/init.d/teamviewerd

:puppy:
... Thank you Fehlix ... a good solution.
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils MX Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19-23_x64 & antiX23_x32 runit

User avatar
Buck Fankers
Posts: 770
Joined: Sat Mar 10, 2018 8:06 pm

Re: Losing session when screen is locked

#19 Post by Buck Fankers »

fehlix wrote: Sun Apr 21, 2019 10:46 am If AnyDesk cannot be used I use the following teamviewer desktop starter,

Togethether with this teamviewer sudoers-file:

Code: Select all

# sudoers file for start/stop teamviewerd
 
%sudo ALL=(root) NOPASSWD: /etc/init.d/teamviewerd

:puppy:
Allow two quick ninja questions: :grin:

1 - "AnyDesk" couldn't find it in MXIP or Synaptic. Are you guys using some different version/name or I missed it? Is this your preferred remote desktop software for MX?

2 - How do you run / what you do with sudoer file? Is this *.sh file that have execution right and you click on it upon demand? Or has to be run through cli? If so, how?

User avatar
fehlix
Developer
Posts: 12886
Joined: Wed Apr 11, 2018 5:09 pm

Re: Losing session when screen is locked

#20 Post by fehlix »

Buck Fankers wrote: Mon Apr 22, 2019 5:33 am 1 - "AnyDesk" couldn't find it in MXIP or Synaptic. Are you guys using some different version/name or I missed it? Is this your preferred remote desktop software for MX?
Probaly AnyDesk is not yet within MX Popular Apps, because nobody have yet requested it. That's it.
Buck Fankers wrote: Mon Apr 22, 2019 5:33 am 2 - How do you run / what you do with sudoer file? Is this *.sh file that have execution right and you click on it upon demand? Or has to be run through cli? If so, how?
Ahh, ok sorry. Thats an important part, which I missed to post:
To enabale a password-less start / stop of teamviewer using sudo,
the sudo-password policy need to be placed in a sudoers-file .
To create a file it is imortant to use a special sudoers-editor,
as otherwise any mistake with that policy can creat lot#s of issues.
So the safest way to apply this sudoers-policy is to use the sudoers-editor visudo.
To create this teamviewer sudoers-policy do this:
Within command line type:

Code: Select all

sudo visudo -f /etc/sudoers.d/teamviewer
You will probably see the default terminal editor nano get opened with an empty file.
Now paste the content of this:

Code: Select all

#
# sudoers file for start/stop teamviewerd passwordless
#
# filename : /etc/sudoers.d/teamviewer
#
%sudo ALL=(root) NOPASSWD: /etc/init.d/teamviewerd
Into the editor. To write and close: Press Ctrl+X , Type y ( for yes to save) and Enter
The policy becomes immediately active.
HTH
:puppy:

Post Reply

Return to “Bugs and Non-Package Requests Forum”