summaryrefslogtreecommitdiffstats
path: root/core/modules/idleaction
Commit message (Collapse)AuthorAgeFilesLines
* [*] cd <...> || perror --> cde <...>Simon Rettberg2019-11-261-1/+1
|
* [idleaction] Remove leading zeros in secsToTimeSimon Rettberg2019-11-191-4/+5
| | | | Accidental octal values...
* [idleaction] .no-saver is not available yet in Xession.dSimon Rettberg2019-11-182-2/+3
| | | | | Generate .xscreensaver as if saver is allowed, then when we check what the user selected in vmchooser, patch .xscreensaver if necessary.
* [xscreensaver/idleaction] Let xscreensaver manage standby again...Simon Rettberg2019-11-182-9/+46
|
* [idleaction] Stop logind from killing user processes on logoutSimon Rettberg2019-10-181-2/+1Star
| | | | | | | This turned out to be a little too agressive; We run some async jobs on session close that were killed by logind. Defer the process cleanup until idle-daemon sees that the user doesn't have any more open sessions.
* [idleaction] Pass --kill-user-processes by defaultSimon Rettberg2019-10-181-0/+3
|
* [*] Use logind.conf to kill user processesSimon Rettberg2019-05-241-0/+7
| | | | | Get rid of old, brittle script in pam session close that would do wonky stuff to kill stray user processes.
* [idleaction] Write screensaver hint file on vmchooser session startSimon Rettberg2019-05-141-0/+12
| | | | | | vmchooser's sessionstart sets an environment var to tell us whether we should enable the screen saver for a particular user. Honor this var and write or delete the flag file idle-daemon depends on.
* [xscreensaver/idleaction] DPMS handled by idle-daemonSimon Rettberg2019-05-143-0/+63
|
* [idleaction] Refine exam mode shutdown/reboot timingSimon Rettberg2019-05-131-9/+10
| | | | | | | | | | Keep existing schedule entries (we have --min-idle 7200) but add entries for 23:00 and 4:00 to non-empty schedules. We might skip a tightly scheduled entry due to --min-idle, e.g. an exam lasts until 19:30 and the schedule says poweroff at 20:00. We'll miss that entry if the user didn't log out before, since two hours didn't pass yet. If the schedule was empty however, do nothing, since it might be desired that the machines keep running until they die.
* [idleaction] Fix .service fileSimon Rettberg2019-05-131-1/+1
|
* [xscreensaver/idleaction] Use idle-daemonSimon Rettberg2019-05-139-385/+121Star
|
* [idleaction] Allow root access to displaySimon Rettberg2019-04-301-0/+6
|
* [idleaction] Force screen on; sanity check for shutdownDeadlineSimon Rettberg2018-10-182-1/+5
|
* [idlescript] Insanity ensues, slowlySimon Rettberg2018-10-171-6/+6
|
* [xscreensaver/vmware12] Support ungrab hooks, work around idletime resetSimon Rettberg2018-10-172-3/+19
| | | | | | vmware ungrab code has to fake mouse cursor movement, resetting PC idle time :-( - Now we can't record the PC idle time the moment the screen saver turned on anymore, since it will be reset at that point.
* [idleaction] Update shutdown timestamp on scheduled actionSimon Rettberg2018-10-121-0/+15
| | | | | | | In case a shutdown/reboot/... is manually triggered (i.e. via web interface), the according timestamp won't be in the idleaction hint file for the xscreensaver hack. Update the timestamp in case a reboot is imminent, so the screeensaver can update the countdown.
* [idleaction] Move idle-file to /run/openslx/...Simon Rettberg2018-10-121-1/+2
|
* [idleaction/kiosk] Don't wait 5 minutes for demo to logoutSimon Rettberg2018-10-121-1/+5
|
* [idleaction] Remember lock time and reset idletime if changedSimon Rettberg2018-10-121-10/+18
| | | | | | If a user unlocks the session and locks it again within two minutes, the idle timeout will not be reset. Even worse, this also happens when you manage to logout and in (as a different user) within two mins.
* [idleaction] Account for 5 minute delay when calculating shutdownSimon Rettberg2018-10-121-1/+6
| | | | | | | The screensaver info is off by 5 minutes for reboot/shutdown, since there's an additional delay of 5 minutes if someone's logged in. Always add those 5 minutes, since the message will only ever be seen if someone is actually logged in.
* [idleaction] Delete $RUNFILE on session killSimon Rettberg2018-10-121-0/+2
|
* [idleaction] Lower cron interval from 5 to 2 minutesSimon Rettberg2018-10-111-1/+1
| | | | | This should qield more accurate feedback, especially now that we have the xscreensaver hack giving user feedback.
* [xscreensaver] Build bwlp-screensaverSimon Rettberg2018-10-111-8/+58
|
* [idleaction] Add xprintlocktimeSimon Rettberg2018-10-053-1/+206
| | | | | Utility similar to xprintidle. If xscreensaver is currently active and locked, it will print the unix timestamp of when the lock was activated.
* [mgmt-sshd] Don't use PAM stackSimon Rettberg2018-05-141-1/+3
| | | | Closes #3364
* [idleaction] Add kexec-reboot supportSimon Rettberg2018-04-251-3/+3
|
* Forgot fith fcriptSimon Rettberg2018-03-221-0/+2
|
* Fix UID/USER ambiguity in several placesSimon Rettberg2018-01-181-1/+3
|
* [idleaction] Fix detection of X sessions for warningsSimon Rettberg2017-12-011-1/+1
|
* [idleaction] Timing fixesSimon Rettberg2017-11-292-1/+3
|
* [idleaction] Fix shutdown after wakeup when cron tries to catch upSimon Rettberg2017-11-273-8/+36
|
* [idleaction] Fix active user countingSimon Rettberg2017-11-271-4/+17
|
* [idleaction] Log to slx-admin if standby is not supportedSimon Rettberg2017-11-271-1/+4
|
* [idleaction] Rely on busybox providing rtcwakeSimon Rettberg2017-11-271-1/+0Star
|
* [idleaction] Set wakeup alarm two minutes early to prevent raceSimon Rettberg2017-11-261-2/+8
| | | | | | | | | If the wakeup is scheduled exactly at the time a scheduled shutdown is, the cronjob for the shutdown would not run, as the client is still about to wake up at that time. If we wake up two minutes early, the cron daemon should have enough time to fully wake up, notice the clock jump, and then finally trigger the scheduled shutdown.
* [idleaction] Support suspendSimon Rettberg2017-11-268-26/+125
|
* [idleaction] Support detached and delayed operationSimon Rettberg2017-04-111-57/+94
|
* [idleaction] *FACEPALM*Simon Rettberg2017-03-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | ............................................________ ....................................,.-‘”...................``~., .............................,.-”...................................“-., .........................,/...............................................”:, .....................,?......................................................\, .................../...........................................................,} ................./......................................................,:`^`..} .............../...................................................,:”........./ ..............?.....__.........................................:`.........../ ............./__.(.....“~-,_..............................,:`........../ .........../(_....”~,_........“~,_....................,:`........_/ ..........{.._$;_......”=,_.......“-,_.......,.-~-,},.~”;/....} ...........((.....*~_.......”=-._......“;,,./`..../”............../ ...,,,___.\`~,......“~.,....................`.....}............../ ............(....`=-,,.......`........................(......;_,,-” ............/.`~,......`-...............................\....../\ .............\`~.*-,.....................................|,./.....\,__ ,,_..........}.>-._\...................................|..............`=~-, .....`=~-,_\_......`\,.................................\ ...................`=~-,,.\,...............................\ ................................`:,,...........................`\..............__ .....................................`=-,...................,%`>--==`` ........................................_\..........._,-%.......`\ ...................................,<`.._|_,-&``................`\
* [idleaction] Patch xprintidle to not use the creepy workaround anymoreSimon Rettberg2017-03-021-3/+12
| | | | | | | | This used to work around a bug in the xserver where it would always reset the idle time whenever the screen goes to standby or suspend. This does not happen anymore on a recent system, so xprintidle would erroneously add the timeout values to the idletime, resulting in incorrect high results when the screen is turned off.
* Add bash shebangs to all our includes:Simon Rettberg2017-02-287-0/+7
| | | | | | | github misidentifies lots of includes in its code stats and syntax highlighting. Try to make it a nicer place by giving it a hint via that shebang. It's actually useless in files that are being sourced, but it doesn't hurt either.
* merge with latest dev versionSebastian2016-04-2511-0/+408