link - arch linux execute command before or after suspend/hybernate Posted by artodeto on Sunday, January 13. 2013 So my task was to execute 'slock' when my notebook suspends. Since it depends on how your system is configured, i only can give you two links where find the answers. systemd hooks pm-utils hooks Trackbacks Trackback specific URI for this entry No Trackbacks Comments Display comments as Linear | Threaded No comments Add Comment Name* Email Homepage Comment* In reply to [ Top level ] E-Mail addresses will not be displayed and will only be used for E-Mail notifications.To leave a comment you must approve it via e-mail, which will be sent to your address after submission. To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.Enter the string from the spam-prevention image above: Markdown format allowed Form options Remember Information?