I'm trying to setup a machine to autostart at a given time, do record something and then shutdown.
Autostarting works with:
echo `date -d 'YYYY-MM-DD hh:mm:ss ' '+%s'` > /sys/class/rtc/rtc0/wakealarm
but this seems to work only if I put the computer in suspend mode (if I shutdown the computer does not come back to life). However, when the computer starts from suspend, the session is locked... and I am not there to unlock it.
I've searched TDE's control panel without luck. Is there a way to remove the auto-lock feature?
Thierry
On Fri, 6 Apr 2018 19:23:29 +0200 Thierry de Coulon tcoulon@decoulon.ch wrote:
I'm trying to setup a machine to autostart at a given time, do record something and then shutdown.
Autostarting works with:
echo `date -d 'YYYY-MM-DD hh:mm:ss ' '+%s'`
/sys/class/rtc/rtc0/wakealarm
but this seems to work only if I put the computer in suspend mode (if I shutdown the computer does not come back to life). However, when the computer starts from suspend, the session is locked... and I am not there to unlock it.
I've searched TDE's control panel without luck. Is there a way to remove the auto-lock feature?
Delete/rename kdesktop_lock.As a side effect you wont be able to shutdown/suspend/hibernate using tde menu.
There should be way to disable this gracefully but there is not.
P.S. The wakeup is not the only thing where autolocking is undesirable. kdesktop_lock interferes with multiple xorg sessions/screens.
On Saturday 07 April 2018 11.43:16 Nick Koretsky wrote:
Delete/rename kdesktop_lock.As a side effect you wont be able to shutdown/suspend/hibernate using tde menu.
Actually the result of renaming kdesktop_lock to tdesktop_lock does not stop me from using the tde menu (or right click) to shutdown, but it sends me back to the login screen.
I would do it on my main computer, but it may solve my problem on the recording computer. Thanks for this information.
Thierry
Thierry de Coulon wrote:
I've searched TDE's control panel without luck. Is there a way to remove the auto-lock feature?
why would you need a gui for recording something without human intervention
on the screensaver setup screen there is a checkbox to ask for password or not. Doesn't this help
regards
On Saturday 07 April 2018 12.00:59 deloptes wrote:
Thierry de Coulon wrote:
I've searched TDE's control panel without luck. Is there a way to remove the auto-lock feature?
why would you need a gui for recording something without human intervention
Because the TDE program used to record uses the GUI. Which does make sense as watching videos at the command line seems difficult.
on the screensaver setup screen there is a checkbox to ask for password or not. Doesn't this help
I don't use the screensaver. Nik mentioned kdesktop_lock as the problem.
regards
Greetings,
Thierry
On Saturday 07 April 2018 23.18:24 deloptes wrote:
Thierry de Coulon wrote:
I don't use the screensaver. Nik mentioned kdesktop_lock as the problem.
isn't it related - lock yes|no - screensaver yes|no
neither are set, but suspend does lock
if it does not help kdesktop_lock shows following options
--forcelock --dontlock --securedialog --blank --internal
Interestingly:
/opt/trinity/bin/tdesktop_lock --forcelock
locks the desktop, which seems logic.
/opt/trinity/bin/tdesktop_lock --dontlock ....
also locks the desktop!
So it really looks like the only way is to rename kdesktop_lock. On wheezy it does make it impossible to shutdown from GUI (suspend works, though). On Stretch it sends me back to the login screen.
Thierry
Thierry de Coulon wrote:
On Saturday 07 April 2018 23.18:24 deloptes wrote:
Thierry de Coulon wrote:
I don't use the screensaver. Nik mentioned kdesktop_lock as the problem.
isn't it related - lock yes|no - screensaver yes|no
neither are set, but suspend does lock
It might be worth a bug request, to at least clarify.
if it does not help kdesktop_lock shows following options
--forcelock --dontlock --securedialog --blank --internal
Interestingly:
/opt/trinity/bin/tdesktop_lock --forcelock
locks the desktop, which seems logic.
/opt/trinity/bin/tdesktop_lock --dontlock ....
also locks the desktop!
So it really looks like the only way is to rename kdesktop_lock. On wheezy it does make it impossible to shutdown from GUI (suspend works, though). On Stretch it sends me back to the login screen.
What if you rename to tdesktop_lock and create an executable bash script with content
#!/bin/bash tdesktop_lock --dontlock
try then
killall -TERM tdesktop_lock killall -TERM kdesktop_lock
regards
On Friday 06 of April 2018 19:23:29 Thierry de Coulon wrote:
I'm trying to setup a machine to autostart at a given time, do record something and then shutdown.
Autostarting works with:
echo `date -d 'YYYY-MM-DD hh:mm:ss ' '+%s'` > /sys/class/rtc/rtc0/wakealarm
but this seems to work only if I put the computer in suspend mode (if I shutdown the computer does not come back to life). However, when the computer starts from suspend, the session is locked... and I am not there to unlock it.
I've searched TDE's control panel without luck. Is there a way to remove the auto-lock feature?
Thierry
You can create a configuration file called "power-managerrc" and enter the option lockOnResume = false in the General section.
Cheers