Automatically suspend when all users are idle

Hello,
I have not been able to find a way of checking if *all* users on the system are idle, and then suspending if they've been idle for a certain amount of time.  Of course individual users might have the ability to set up sleep if they want, but I was looking for a way to set this up as the root user on the machine.
Can anyone recommend a way to do this?
Thank you very much

Welcome to the forums.
It all depends on your definition of idle.
For me it means that there is no user input from the keyboard and no movement of the mouse for a certain time. Therefore i use xautolock for suspending the system when it is idle using this command:
xautolock -time 20 -corners -000 -detectsleep -locker "systemctl suspend"
The corners argument provides a quick way to inhibit the automatic suspend by moving the mouse into the left upper corner. Time is in minutes.
On a home server a script checking for connected users is suited better:
http://wiki.ubuntuusers.de/Skripte/Auto … Das-Skript
(This link leads to a page written in german, however the script is written in bash and commented in english.)

Similar Messages

  • Can we change log_buffer parameter online e.g. when all users are working..

    Hi,
    Can we change log_buffer parameter online e.g. when all users are working.. ???
    What is relation between redo buffer in sga and log_buffer parameter ?
    SQL> show sga
    Total System Global Area 3758096384 bytes
    Fixed Size 1983152 bytes
    Variable Size 553655632 bytes
    Database Buffers 3187671040 bytes
    Redo Buffers 14786560 bytes
    SQL>
    SQL> show parameter log_buffer
    NAME TYPE VALUE
    log_buffer integer 14338048
    SQL>
    SQL>
    If the log_buffer parameter is 14 MB then why redo buffer is no as same size e.g.
    14 MB
    SSM

    I am hoping your Oracle Consultant know what he's talking about.
    According to Oracle Performance Guide,
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14211/memory.htm#sthref654
    "On most systems, sizing the log buffer larger than 1M does not provide any performance benefit. Increasing the log buffer size does not have any negative implications on performance or recoverability. It merely uses extra memory.
    The best method to determine if bigger redo buffer is needed is
    SELECT NAME, VALUE
    FROM V$SYSSTAT
    WHERE NAME = 'redo buffer allocation retries';
    The value of redo buffer allocation retries should be near zero over an interval. If this value increments consistently, then processes have had to wait for space in the redo log buffer. The wait can be caused by the log buffer being too small or by checkpointing. Increase the size of the redo log buffer, if necessary, by changing the value of the initialization parameter LOG_BUFFER. The value of this parameter is expressed in bytes. Alternatively, improve the checkpointing or archiving process.
    Other than that, hight log file sync event indicate you need faster disk for your redo logfiles. However, please also post your commits per second and redo per second from your AWR report.
    100M redo logs might be small for your environment.

  • The kerberos PAC verification failure when all users of only one RODC Site, trying to get access iis webpage of different site using Integrated Windows Authentication

    The kerberos PAC verification failure when all users of only one Site which having only one RODC server(A), trying to get access iis webpage of different site which having WDC server(B) using Integrated Windows Authentication. But when they accessing the
    website using IP address, it is not asking for credentials as I think it is using NTLM Authentication at that time which is less secure than Kerberos.
    Note that:- All user accounts and Computers of the RODC has been allowed cache password on the RODC. Nearest WDC for the RODC (A) is the WDC (B).
    The website is hosted on a windows server 2003 R2 and generating below system event log for those users of the RODC site :-
    Event Type: Error
    Event Source: Kerberos
    Event Category: None
    Event ID: 7
    Date:
    <var style="color:#333333;font-family:'Segoe UI', Arial, Verdana, Tahoma, sans-serif;font-size:13px;line-height:normal;">date</var>
    Time:
    <var style="color:#333333;font-family:'Segoe UI', Arial, Verdana, Tahoma, sans-serif;font-size:13px;line-height:normal;">time</var>
    User: N/A
    Computer:
    <var style="color:#333333;font-family:'Segoe UI', Arial, Verdana, Tahoma, sans-serif;font-size:13px;line-height:normal;">computer_name (the 2003 server)</var>
    Description: The kerberos subsystem encountered a PAC verification failure. This indicates that the PAC from the client<var style="color:#333333;font-family:'Segoe
    UI', Arial, Verdana, Tahoma, sans-serif;font-size:13px;line-height:normal;">computer_name</var> in realm <var
    style="color:#333333;font-family:'Segoe UI', Arial, Verdana, Tahoma, sans-serif;font-size:13px;line-height:normal;">realm_name</var> had
    a PAC which failed to verify or was modified. Contact your system administrator.
    This issue has been raised for last one week. Before that everything was fine. No Group Policy changed, Time also same.
    In this situation do I need to do Demotion of the RODC and re-promote it as RODC again  or is there any other troubleshooting to resolve it.
    Thanks in Advanced
    Souvik

     Hi Amy,
    Thanks for your response
    I noticed that Logon server could become incorrect again after user re-login or restart of a workstation.
    It seems root cause is different.  Need a permanent solution.
    The Workstations of the RODC site are getting IP from a DHCP server by automatic distribution of IP from a specific subnet for the site only.  The RODC is
    the Primary DNS server for the site.
    I have checked the subnet and it is properly bound with only with that AD site. The group of users and workstations are in the same site AD organisational Unit.
    Sometime I restarted the NET LOGON service and DNS server service on ther RODC server and sometime rebooted the server. But the Logon server issue has not fixed permanently.
    The internal network bandwidth of the site is better than the bandwidth to communicate with other site.  
    The server is Windows server 2008 R2 standard and hosting the below roles
    RODC
    DNS
    File server
    The server performance is Healthy in core times when maximum users usually logins. 
    Any further support would be much appreciated Amy
    Thanks
    Souvik

  • Black only error message when all inks are full

    My printer ran out of a color some time ago and popped up the black only message box. I have since replaced all of the colored inks and it still gives me the black only message when I go to print and says I need to replace magenta. I just replaced it! My printer is the photosmart C6280. Thank you

    Hello Sudharshan,
    "Status can only be set when all originals are stored" Also I see that the model is not having Status in CAD VIEW.
    This is error is indicating that your original CAD model is not checked in and as per your configuration you require the original to be checked in before moving to next status.
    Please:
    1. Check your document status network.
    2. ensure that you have proper set up for the fields "check in" in the current status. This indicator should be set. This ensures that the document is automatically checked in before moving to the next status. This will solve your problem.
    When I double click on that object in CAD VIEW, it takes me to DIR creation screen with Document Type DES. Can someone help me in this ?
    Because of the above set up missing the original DIR is missing the original document and hence the system assumes you are creating a new DIR when you click on the object in CAD view.
    regards,
    N K

  • CAD VIEW Error : "Status can only be set when all originals are stored"

    Hi Friends,
    I have Proe to SAP integrated and when I open Proe model in CAD VIEW and try to create a document it shows an error "Status can only be set when all originals are stored" Also I see that the model is not having Status in CAD VIEW.
    When I double click on that object in CAD VIEW, it takes me to DIR creation screen with Document Type DES. Can someone help me in this  ?
    Rgds,
    SM

    Hello Sudharshan,
    "Status can only be set when all originals are stored" Also I see that the model is not having Status in CAD VIEW.
    This is error is indicating that your original CAD model is not checked in and as per your configuration you require the original to be checked in before moving to next status.
    Please:
    1. Check your document status network.
    2. ensure that you have proper set up for the fields "check in" in the current status. This indicator should be set. This ensures that the document is automatically checked in before moving to the next status. This will solve your problem.
    When I double click on that object in CAD VIEW, it takes me to DIR creation screen with Document Type DES. Can someone help me in this ?
    Because of the above set up missing the original DIR is missing the original document and hence the system assumes you are creating a new DIR when you click on the object in CAD view.
    regards,
    N K

  • After upgraded 9.2 DB, all users are not able to login (Except Guest).

    After completed the DB upgrade from 8.1.7.4 to 9.2.0, all users are not able to login the oraclemypage.home. This is except the Guest account.For example, I use the sysadmin account to login the oraclemypage.home. It shows "Your login is invalid. Please login again."
    Moreover, I do the following query.
    SQL> select fnd_web_sec.validate_login('SYSADMIN','SYSADMIN') from
    dual;
    FND_WEB_SEC.VALIDATE_LOGIN('SYSADMIN','SYSADMIN')
    N
    If I guery the Guest account, the result is "Y".
    Also, all users can access via dev60cgi/f60cgi to open E-business 11.5.7 application. Are there any missing script / process I need to do?
    Thanks,
    Matthew

    Hi Arun,
    What message u get on the apache logs / jserv logs when u get the error ?
    Since the log cumulate a giga byte, I clean up the log and test again. It seems no error message.Whats your platform?
    HP-UX 11.11To which version (5 digit) u upgraded DB ?
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    I found a note 225074.1 that talks of a similar issue where users are ablt to login to forms but not php. this is for AIX. review the note.
    I had checked this previously. Part of this document already tried which suggested by Oracle Support.what is the end_date for all of these users in fnd_user table ? if all users for some reason is end_dated , then fnd_web_sec will show 'N"
    All users are normal. For those I tested without end_dated, I can access via f60cgi too.whats the session_cookie_domain set to in icx_parameters table? Set to NULL and try bouncing apache once.
    This set to ".mycompany.com". You mean that I set the session_cookie_domain to NULL and restart Apache, right? Why I need to set it NULL?

  • WRT160n v3 has slow connection when multiple users are connected

    As of last night my router has been producing slow connectivity when multiple users are connected to it, but it's perfectly fine when only one user is connected.
    I am on a laptop myself, but we also have a second laptop and a desktop where the modem and router are set up.
    I have upgraded the firmware so that is up to date.
    We have Comcast Fiber Optics so my internet speed is normally quite fast even when all of my computers are connected.
    Some settings that I have that might help resolve the issue:
    I am using DHCP Configuration.
    My Channel Width is set to 20 MHz and I am using Channel 11.
    The Security Mode is set to WPA Personal. I had it on WPA2 Personal but I read that changing to WPA Personal might help and so far it doesn't seem to have done anything.
    I set the Beacon Interval to 50, Fragmentation Threshold to 2304, and RTS Threshold to 2304.
    Everything else is set to the default factory configuration.
    Just today I received a notice that said "Windows has detected an IP Address Conflict", but ever since I reinstalled the Firmware it hasn't come back. I've rebooted both my laptop and the desktop to confirm it hasn't come back as well.
    I consider myself to be computer savy, but I just can't figure out what the problem is as I've tried everything that I could think of including reconfiguring my router and restarting my modem as well. This problem has presented itself in the past before but unfortunately I cannot remember what I did to fix it.

    Try using inSSIDer to help you find the best channel.
    http://www.metageek.net/products/inssider/
    If that doesn't help, you can try disabling WMM.
    Edit:  You should use WPA2 AES security for best performance.

  • My menu bar does not appear at the top of my homepage on a brand new 27" iMac only when i pull up an app. this does not allow me to shut down my mac when all apps are closed nor does it all me to use finder. any help would be awesome

    My menu bar does not appear at the top of my homepage on a brand new 27" iMac only when i pull up an app. this does not allow me to shut down my mac when all apps are closed nor does it all me to use finder. any help would be awesome

    Press the escape (esc) key to exit full-screen mode.

  • HT1198 If I share an iPhoto library between multiple users, will the Faces, Events, and Places be automatically usable by all users, or will each user have to tag all the photos (e.g. if a user tags a face, will a different user have to do it in their own

    If I share an iPhoto library between multiple users, will the Faces, Events, and Places be automatically usable by all users, or will each user have to tag all the photos (e.g. if a user tags a face, will a different user have to do it in their own iPhoto application??

    Have you read this Apple document regarding sharing a library with multiple users: iPhoto: Sharing libraries among multiple users?
    OT

  • Not all users are displayed for log on after a reboot or startup...

    Problem summary: Not all users are displayed for log on after a reboot or startup...
    This problem only occurs after a fresh start-up or restart. The only users displayed are the initial (admin user) and "Guest". Two other (non-admin) users are not shown for log on.
    To work around this problem and get them to log on we have to log on as the admin user, then we can see the other users in the Fast User Switching menu (top right-hand corner of the screen), listed under the current logged on user. After selecting the non-admin user we can log in and use the laptop as normal.
    If we lock the screen, use fast user switching or log out all users; all users are available for log in, until a reboot is done; at which point the non-admin users disappear again and we have to log in as the admin user and use fast user switching again.
    The laptops are both brand new MacBook Airs. The initial configuration of Mac OS X Yosemite was done using the Apple ID of the purchaser (parent) and then the OS was patched, immediately, through the App store (no further updates available as of the date of this posting). After this Family Sharing was activated and new users set up for the two children who will be using these laptops.
    Has anybody else experienced this problem with Yosemite?
    Cheers,
    David.

    David,
    Users not enabled for FileVault unlock are only able to log into the computer after an unlock-enabled user has started or unlocked the drive. Once unlocked, the drive remains unlocked and available to all users, until the computer is restarted.
    FileVault has to be On.
    To Enable the users to be able to unlock FileVault Go to:
    System Preferences > Security & Privacy > FileVault ( Tab ) > Click the Lock in the bottom left > Put in your administrator password > Should see an option to Enable Users > Enable User.
    Hope that helps,
    Weston
    Supporting Articles,
    OS X: About FileVault 2 - Apple Support

  • Message no. 26269 : Status can only be set when all originals are stored

    Hi,
    While changing status in cv02n, i am getting the below message no-Message no. 26269 : Status can only be set when all originals are stored. I am not getting the message solution in google. please guide me how to come over from this message.
    Regards,
    Mastan.

    Collegues! Have you any idea?
    Found this - [recommendation|http://help.sap.com/saphelp_47x200/helpdata/en/0c/b98e3c90347b17e10000000a114084/content.htm] - how to, but there so simple scenario without details about standart functionality.
    Check In
    You can check in originals, which are saved in the local network, into a storage system. The following originals are indicated by the  icon:
    Originals that are to be checked in for the first time.
    Originals that have already been checked in, and loaded into the local network for changing.
    To do this start WebDocuments. Process the document info record in the change mode.
    Select the original in the Originals dataset.
    Choose Check In. The system determines the storage system based on the system settings, and checks in the original.
    You return to the data sheet. The original application file is indicated by the Checked In  icon.
    Save the document.
    Very simple, but not work, and no details. Castle icon are not locked. DELETE, CANCEL - work, but not CNANGE.
    Maybe my storage system cannot determine the storage system? If it is right, so where can i maintain this option?

  • Still print picking list when ALL items are blocked. Is this possible.

    You know what warehouse people are like. When a delivery has all items blocked the picking list isn't printed, and the warehouse guys are wondering why nothing has printed. Of course a list is printed when there is at least one item that is not blocked on a picking list.
    My question is whether it's possible to print the picking list when all items are blocked?. I would expect no items to be printed for picking, but at the bottom of the report I would expect to see a list of items blocked.
    Anyone?.
    Jason

    HI
    1.Kindly chekc the routine in the t code V/27
    2.Against the routine against rthe condition type in the be.lwo path
          Logistics Execution
              Shipping
                 Output Control
                      Output Determination
                         Maintain Output Determination for Outbound Deliveries
                                Maintain Output Determination Procedure
    3.if it is in warehouse management then check in the tocde OMLV
    REgards
    Damu

  • My new mags won't download even though my subscription is up to date. After 2 weeks of frustration I still am clueless. Can anyone help? I am set to automatic uploads when new mags are available and still nothing. So frustrating when I have paid for them.

    My new mags won't download even though my subscriptions are up to date. After 2 weeks of frustration I still am clueless. Can anyone help? I am set to automatic uploads when new mags are available and still nothing. So frustrating when I have paid for them.

    Maybe you do not have enough space on iPad.

  • Order Output should be supressed when all items are rejected

    We have a requirement, where when all schedule lines in a sales order are rejected the order confirmation output should be suppressed.
    This is what we did to achieve it.
    Using the customer modification structure KOMKBZ3, add a new field ZZ_ALL_SL_REJ . This field is an indicator that will be set if all all items in a sales order are rejected.
    Call function KOMKBV1_FILL to populate the communication structure KOMKBV1. The function calls USEREXIT_KOMKBV1_FILL, which is the header level user exit routine.
    In this user exit, through a select statement read table J_3AVBUE, and check for all schedule lines if 'ABSTA' equals C, if this is true the ZZ_ALL_SL_REJ  indicator is set to ‘X’.
    Then in the output requirement routine 900, see if KOMKBV1-ZZ_ALL_SL_REJ is set to 'X', if so set the return code to be 4.
    However when we reject items in sales order and save it, we have to go back in again and save it for the second time for the output determination to be carried out again.
    Could someone help with this...
    Thanks.
    Anne

    I believe an easier method would be to check KOMKBV1-ABSTK in the output requirement. If it's 'C', then all items have been rejected.
    Cheers, Paul.

  • TFS 2013 TfsReports on SQL Server 2014 - rsAccessDenied Error even though all users are granted ALL Roles

    We have granted everyone all roles on our TfsReports site. However, all users (except for 2 who are TFS Admins) still get the following errors when attempting to manage the reports:
    The permissions granted to user Domain\UserName are insufficient for performing this operation. (rsAccessDenied)
    These are the roles we've granted to all "Domain Users": Browser, Content Manager, My Reports, Publisher, Report Builder, Team Foundation Content Manager.
    We can't seem to figure out what else might be missing.
    Please help.

    The issue was reported by one of the Application Support team stating that they have problems with accessing reports in Reporting Services from Team Foundation Server (TFS)
    side. By default certain users are part of local domain group having LOCAL ADMINISTRATOR privileges on TFS server, which is by default no issues for those users. Somehow there was a change in the role of certain users where ADMIN access was revoked. However
    the users are still part of SYSADMIN group, they were reported the error as follows:
    “The
    permissions granted to user ''DOMAIN\UserName'' are insufficient for performing this operation. (rsAccessDenied)”
    By default the text clarifies that no permission to access the reports and further we have set of roles defined on the Reporting
    Services, as follows: 
    http ://servername/Reports/
    Root
    BUILTIN\Administrators                  No
    access
    DOMAIN\TfsAdmins                        Content
    Manager
    DOMAIN\ReportAdmins
         Content Manager
    More
    details
    Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/

Maybe you are looking for