Losing session when screen is locked
Re: Losing session when screen is locked
xflock4 is what I use to lock my screen manually.
I disabled light locker for now. We'll see tomorrow.
I disabled light locker for now. We'll see tomorrow.
Re: Losing session when screen is locked
xflock4 is just a xfce4-wrapper script and calls light-locker. The command issued to lock issanskk 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.
Code: Select all
light-locker-command --lock
Re: Losing session when screen is locked
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.
Re: Losing session when screen is locked
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.
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.
Re: Losing session when screen is locked
It is working flawlessly now. Thank you very much!
You do not have the required permissions to view the files attached to this post.
Re: Losing session when screen is locked
FI: I'm using teamviewer not very often too, so: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.
![]()
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
Re: Losing session when screen is locked
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
Code: Select all
# sudoers file for start/stop teamviewerd
%sudo ALL=(root) NOPASSWD: /etc/init.d/teamviewerd

Re: Losing session when screen is locked
... Thank you Fehlix ... a good solution.fehlix wrote: Sun Apr 21, 2019 10:46 amIf AnyDesk cannot be used I use the following teamviewer desktop starter,
while having disabled to start teamviewerd as service during boot:Togethether with this teamviewer sudoers-file: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
Code: Select all
# sudoers file for start/stop teamviewerd %sudo ALL=(root) NOPASSWD: /etc/init.d/teamviewerd
![]()
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
- Buck Fankers
- Posts: 770
- Joined: Sat Mar 10, 2018 8:06 pm
Re: Losing session when screen is locked
Allow two quick ninja questions: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
![]()

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?
Re: Losing session when screen is locked
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 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?
Ahh, ok sorry. Thats an important part, which I missed to post: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?
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
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
The policy becomes immediately active.
HTH
