What's the systemd equivalent of "HIBERNATE_MODE"?

So my laptop hangs when going into hibernating (Lenovo x120e). The page on it in the Arch Wiki says to get around this, in pm-utils I would have to set the following at
/etc/pm/config.d/hibernate_mode
HIBERNATE_MODE="shutdown"
However, this article is a little outdated, and the cool new thing is to use systemd to handle all this. Unfortunately though, I'm having trouble finding exactly what exactly would be the equivalent to this.
My first guess would be a service file that specifically tells the computer to power-off after initiating hibernate, but I'm not sure.
Anyone have any insight on this?

You can configure the actions for suspend, hibernate and hybrid-sleep using /etc/systemd/sleep.conf, see systemd-sleep.conf (5) for details.
The defaults are (taken from code):
* suspend:
... no mode
... state: try mem then standby then freeze
* hibernate:
... mode: try platform then shutdown
... state: disk
* hybrid-sleep:
... mode: try suspend then platform then shutdown
... state: disk
source:
http://cgit.freedesktop.org/systemd/sys … p-config.c
explanations for state and mode:
https://www.kernel.org/doc/Documentatio … states.txt
https://www.kernel.org/doc/Documentatio … swsusp.txt
PS: If you want to use uswsusp or tuxonice, you'll have to create a custom executable similar to systemd-sleep, then disable e.g. the systemd-hibernate.service and replace it with a service that calls your custom handler instead.
Last edited by progandy (2013-08-24 00:59:25)

Similar Messages

  • What is the Oracle equivalent of the Microsoft Access FIRST function?

    Using: Oracle 10gR2 RAC on SUSE Linux 9 (10.2.0.3)
    In the process of converting a Microsoft Access database to Oracle, an Access query is using the FIRST function.
    What is the Oracle equivalent of the Microsoft Access FIRST function?
    In the attempt to convert, the Oracle FIRST_VALUE function was used. However, the same results was not achieved.
    Thanks,
    (BLL)
    Query:
    h2. ACCESS:
    SELECT
         TRE.GCUSNO,
         UCASE([DCUSNO]) AS DCUSNO_STD,
         *FIRST(UCASE([DNAME])) AS DNAME_STD*,
         *FIRST(UCASE([DADDR])) AS DADDR_STD*,
         *FIRST(UCASE([DCITY])) AS DCITY_STD*,
         TRE.DSTATE,
         FIRST(TRE.DZIP) AS DZIP,
         TRE.DREGN,
         TRE.DDIST,
         TRE.DSLSMN,
         TRE.DCHAIN,
         TRE.MARKET,
         TRE.MKTPGM,
         TRE.EUMKT
    FROM
         TRE
    GROUP BY
         TRE.GCUSNO,
         UCASE([DCUSNO]),
         TRE.DSTATE,
         TRE.DREGN,
         TRE.DDIST,
         TRE.DSLSMN,
         TRE.DCHAIN,
         TRE.MARKET,
         TRE.MKTPGM,
         TRE.EUMKT;
    h2. ORACLE:
    SELECT DISTINCT
    TRE.GCUSNO,
    UPPER(TRIM(TRE.DCUSNO)) AS DCUSNO_STD,
    UPPER(TRIM(TRE.DNAME)) AS DNAME_STD,
    UPPER(TRIM(TRE.DADDR)) AS DADDR_STD,
         FIRST_VALUE(UPPER(TRIM(TRE.DNAME)) IGNORE NULLS) OVER (ORDER BY TRE.GCUSNO) AS DNAME_STD,
         FIRST_VALUE(UPPER(TRIM(TRE.DADDR)) IGNORE NULLS) OVER (ORDER BY TRE.GCUSNO) AS DADDR_STD,
         FIRST_VALUE(UPPER(TRIM(TRE.DCITY)) IGNORE NULLS) OVER (ORDER BY TRE.GCUSNO) AS DCITY_STD,
    TRE.DSTATE,
    TRE.DZIP,
    FIRST_VALUE(UPPER(TRIM(TRE.DZIP)) IGNORE NULLS) OVER (ORDER BY TRE.DZIP ASC) AS DZIP,
    TRE.DREGN,
    TRE.DDIST,
    TRE.DSLSMN,
    TRE.DCHAIN,
    TRE.MARKET,
    TRE.MKTPGM,
    TRE.EUMKT
    FROM CRM.TREUP100R TRE
    GROUP BY
    TRE.GCUSNO,
    UPPER(TRIM(TRE.DCUSNO)),
    TRE.DNAME,
    TRE.DADDR,
    TRE.DCITY,
    TRE.DSTATE,
    TRE.DZIP,
    TRE.DREGN,
    TRE.DDIST,
    TRE.DSLSMN,
    TRE.DCHAIN,
    TRE.MARKET,
    TRE.MKTPGM,
    TRE.EUMKT;

    A slight correction to odie's post. I think you want min not max to replicate the Access first function, but see below to be sure. So:
    min(upper(trim(tre.dname))) keep (dense_rank first order by tre.gcusno) as dname_std
    user10860953 wrote:How does one ignore null values?The min and max functions will ignore nulls automatically, so if there is a null value in tre.dname, it will not be be returned, unless all of the values are null. For example:
    SQL> WITH t AS (
      2     SELECT 65 id, 'ABCD' col FROM dual UNION ALL
      3     SELECT 37, 'DEFG' FROM dual UNION ALL
      4     SELECT 65, 'DEFG' FROM dual UNION ALL
      5     SELECT 65, null FROM dual UNION ALL
      6     SELECT 70, null FROM dual UNION ALL
      7     SELECT 70, null FROM dual UNION ALL
      8     SELECT 37, 'ABC' from dual)
      9  SELECT id,
    10         MIN(col) keep (DENSE_RANK FIRST ORDER BY id) min_dname_std,
    11         MAX(col) keep (DENSE_RANK FIRST ORDER BY id) max_dname_std
    12  FROM t
    13  GROUP BY id;
            ID MIN_ MAX_
            37 ABC  DEFG
            65 ABCD DEFG
            70John

  • What is the mac equivalent to adobe acrobat?

    what is the mac equivalent to adobe acrobat?

    Adobe Acrobat. http://www.adobe.com/products/acrobatpro/tech-specs.html
    Stedman

  • OT: What's the Mac equivalent of Microsoft Paint?

    What's the Mac equivalent of Microsoft Paint?
    It used to be MacPaint, but isn't that long gone?
    Is it iLife? If so, in the specs I don't see any mention of
    basic paint functions although maybe it has them.
    Obviously I don't have a current Mac or I'd know the answer
    to this.
    Thanks.

    http://en.wikipedia.org/wiki/MacPaint
    http://en.wikipedia.org/wiki/QuickDraw
    http://www.pixelpoppin.com/dorena/
    http://sarwat.net/painting/

  • What is the mac equivalent to a right clic on a windows machine

    What is the Mac equivalent to a right click?  I installed Office for Mac 2011 on my macbook pro and I need to right click over a file from an ealier version of Office to make Office 2011 the default version of office.  This is all in preparation to install Lion (Lion won't support Office 2004 and I can't afford to lose access to these files).

    CTRL+click
    CTRL=control (in between the fn and alt/option keys).
    You can also go into System Preferences --> Trackpad and ensure "Secondary Click" is checked so that a two finger tap will act as a "right-click."

  • I'm on a  Mac and I need to know how to go one step back in Lightroom 5.   In other words, what is the Lightroom equivalent of Command Z in Photoshop?

    I'm on a  Mac and I need to know how to go one step back in Lightroom 5.   In other words, what is the Lightroom equivalent of Command Z in Photoshop?

    Command Z works for me on Lightroom - always has.
    Edit>Undo is the Menu command

  • What is the WinRT equivalent of MediaPlayerLauncher

    WP8 has MediaPlayerLauncher, so what is the WinRT equivalent of MediaPlayerLauncher for WP8.1?
    Hong

    Thanks, Rob. That is what I was looking for. This is a universal apps project. I tested this with the Windows version and it launched the default video player as expected.
    Hong

  • What is the Mac equivalent of the command "ctrl shift  I"  for a PC

    HI
    what is the Mac equivalent of the command "ctrl+shift + I"  for a PC to get to the cookies and delete them

    It varies depending on which browser you're using. In Safari, choose Preferences from the Safari menu, click on the Privacy tab, and then on Details.
    (101212)

  • HT2486 What is the Apple equivalent of an address label L7160 ? (21 PER SHEET)

    What is the Apple equivalent of an address label sheet L7160 (21 PER SHEET) ?

    Many thanks for your reply but my problem is that I have sheets of labels already  ........... however on the Apple address Book there seems to be no equivalent of a 3 column x 7rows sheet.
    Any ideas?
    Alan

  • What is the mac equivalent of the windows run command

    I am a mac virgin, always used windows based pc's. I am finding it a bit of a struggle. What is the equivalent run command on a mac?

    To launch a program, double-click its icon or CONTROL-click it and select open. In the Terminal.app (CLI program), it's open <path to application>.
    Since you're a newcomer to the Mac, peruse Switching from Windows to Mac OS X and Basic Tutorials on using a Mac
    G4 450 MP Gigabit   Mac OS X (10.4.9)  

  • What is the JSp equivalent method for PHP isset function

    Hai guys,
    can u tell me the JSP equivalent method for PHP isset function.

    isset checks what? parameters?
    if(request.getParameter("paramname") != null) {                                                                                                                                                                               

  • What is the numbers equivalent of excel "freeze pane"?

    I work with detailed spreadsheets where it is most helpful to keep a few rows at the top and a few columns to the left stationary while I scroll through the rest of the data. Can you tell me what the Numbers equivalent of that is?

    Thanks. I'm new to Mac (20 years of IBM thinkpads) so I definitely appreciate the help. Could you tell me how to provide feedback to Apple in the best way to get their attention? Thanks again.

  • What is the 2014 equivalent of quicktime pro

    I wanted to use Quicktime Pro. My computer only has Quicktime Player. I think an OS update disabled Pro?
    Anyway, what is the replacement for Pro? I guess its free for my previous version to be treated so sadly...
    Thanks
    Simon

    It didn't disable QuickTime Pro, but you'll need to have the QuickTime 7 player installed to use the key. If needed, click here.
    (118009)

  • Sony MDR-EX90LP Earbud Stereo Bass - What is the newest equivalent model?

    What is the most recent Sony Earbud model that is closest to the Sony MDR-EX90LP Earbud Stereo Bass Earphones?
    Solved!
    Go to Solution.

    Hi CedricKlein,
    Please check the link below for further assistance.
    http://store.sony.com/search?SearchTerm=earbud+headphones
    Thanks,
    >Joffrey
    If my post answers your question, please mark it as "Accept as Solution"

  • What's the iTouch Equivalent of Disk Mode and how can I Obtain a copy?

    Apparently iPhones and iTouches have no Disk Mode. However, I am sure that there must be some way to get an iPhone equivalent. Does anyone have any idea what that might be?

    Hi There
    There are apps on the app store which allow you to store files in them. Air Sharing and wifi HD are two that I know of.
    Hope this helps
    J.C

Maybe you are looking for

  • BI Admin Cockpit for InfoPackage

    Hi SAP Gurus, I have installed BI Admin Cockpit on BI 7.0 using SP13. I executed one Info Package for testing purpose.  I am comparing the data populated in 0TCT_MC23 that with the monitor tab.  I observed that the data doesn't get populated in 0TCT_

  • Change color of data in a column

    Hello experts, i am trying to change the color of data being displayed in a column based on the condition that it the value is 0 then it should be in red i have tried the following but it does not work. when-validate-item trigger on data block level

  • Populating Varibale depending what is in the query

    Probably having a bit of a mind blank, but here goes. I have a query that returns two kf's Actual Sales and Mark Down Week. Style........Actual Sales.........Markdown Week 123..............200..................200437 I wan to display the Pre Markdown

  • ADF Email Validation using Regular Expression

    Hi, Wanted to add Email Validation VO search. It is working if i put <af:validateRegExp pattern="[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}"                                          messageDetailNoMatch="The value {1} is not a valid email address:"/>Howe

  • My iPad appears to be stuck in 'headphones' mode ie I can't use the speaker  any ideas ?

    Anyone know how I can extricate my device from 'headphone' mode I can't get sound from my speaker