Re: Losing session when screen is locked
Posted: 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.
I disabled light locker for now. We'll see tomorrow.
Support for MX and antiX Linux distros
https://www.forum.mxlinux.org/
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
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
If AnyDesk cannot be used I use the following teamviewer desktop starter,
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
... 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
![]()
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
![]()
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?
Code: Select all
sudo visudo -f /etc/sudoers.d/teamviewer
Code: Select all
#
# sudoers file for start/stop teamviewerd passwordless
#
# filename : /etc/sudoers.d/teamviewer
#
%sudo ALL=(root) NOPASSWD: /etc/init.d/teamviewerd