Feature #755

idle.sh: Check for logins and windows

Added by chael almost 14 years ago. Updated over 13 years ago.

Status:Closed Start date:01/30/2011
Priority:Normal Due date:08/31/2011
Assignee:- % Done:

100%

Category:Other Spent time: 1.00 hour
Target version:7.1 Estimated time:0.50 hour

Description

As recommended at [[http://www.mythtv.org/wiki/ACPI_Wakeup]], it would be helpful for the idle.sh script to also check for logins. I made the necessary modifications to idle.sh (attached) and also added a check for common windows (xterm and Firefox) as examples for individuals to tailor.

An additional script (xwin_find.sh, attached) is required to locate the windows.

These changes allow the machine to prevent shutdown if the user is actively using the machine outside of MythTV. Are there any maintenance activities that depend on idle.sh which might be prevented from running? I checked mythbackup and it's fine.

idle.sh - Updated idle.sh script (3.2 kB) chael, 01/30/2011 09:57 am

xwin_find.sh - xwin_find utility required by idle.sh (2 kB) chael, 01/30/2011 09:57 am

Associated revisions

Revision 9d95d601
Added by mihanson over 13 years ago

linhes-scripts: Add login check to idle.sh. Ref #755

Revision 8abd1b15
Added by mihanson over 13 years ago

linhes-scripts: Fix typo in idle.sh Ref #755

Revision 631f3dc4
Added by mihanson over 13 years ago

linhes-scripts: Add the window check to idle.sh. Closes #755

History

Updated by mihanson over 13 years ago

  • Due date changed from 01/10/2011 to 08/31/2011
  • Estimated time set to 0.50
  • Status changed from New to In Progress

Updated by mihanson over 13 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

Also available in: Atom PDF