Alessandro Lorenzo

Q: iMac asking firmware password after waking up from sleep

Two days ago i rebooted my iMac after installing the lastest 10.8.5 update. Now sometimes, when i wake up the iMac i got the same screen asking me for the password, that i have when i power on the pc for the first time (my disk is cyphered so i'm asked for the password at the power on), and one second after i put the password, i've to enter it again to enter on my local account. At the same time all the bluetooth connections with keyboard and trackpad are lost, and all the connected hard drive result in a cold disconnection telling me to unmount the disks before removing them.

It's like i have unpluged the power cord, but the iMac behave like it was just on sleep, as the wake up is immediate, except for the fact that i also have to enter the firmware password and all the connections are gone. Sometimes i must press the power button to wake it up because the bluetooth is gone, other time i can wake it up from the keyboard and the issue is just there.

Any idea? I've tried to repair permissions and disk without success.

iMac, OS X Mountain Lion (10.8.5), early 2013 model

Posted on Sep 21, 2013 4:37 PM

Close

Q: iMac asking firmware password after waking up from sleep

  • All replies
  • Helpful answers

  • by Linc Davis,

    Linc Davis Linc Davis Sep 21, 2013 8:55 PM in response to Alessandro Lorenzo
    Level 10 (208,000 points)
    Applications
    Sep 21, 2013 8:55 PM in response to Alessandro Lorenzo

    I think you mean the login password, not the firmware password. Please confirm.

  • by Alessandro Lorenzo,

    Alessandro Lorenzo Alessandro Lorenzo Sep 22, 2013 3:12 AM in response to Linc Davis
    Level 1 (16 points)
    Sep 22, 2013 3:12 AM in response to Linc Davis

    Yes, the login password sorry. But the one you need to enter after you enable the filevault, with the white background. That's the one that is asked to me when i wake up the mac and soon after it ask me my local account password like it do normally. It did it today again, i had to wake it up from the rear button.

    Yesterday i tried to reset the pram and i ran an hardware test but everything was ok...

  • by Linc Davis,

    Linc Davis Linc Davis Sep 22, 2013 8:05 AM in response to Alessandro Lorenzo
    Level 10 (208,000 points)
    Applications
    Sep 22, 2013 8:05 AM in response to Alessandro Lorenzo
  • by Alessandro Lorenzo,

    Alessandro Lorenzo Alessandro Lorenzo Sep 22, 2013 8:18 AM in response to Linc Davis
    Level 1 (16 points)
    Sep 22, 2013 8:18 AM in response to Linc Davis

    I don't see the progress bar, i just see a white screen after a few seconds i wake up the pc asking me for the password. What i found out is that this happens only if i wake it up after some ours it was sleeping, not after minutes and the frustrating thing is that all my bluetooth with the input devices are gone and i have to press the side button of the keyboard and trackpad different time to be able to entre any password.

     

    Maybe this is what happen when safe sleep works with filevault activated? My question is why this never worked till two days ago and anyway, is working very badly.

  • by Alessandro Lorenzo,

    Alessandro Lorenzo Alessandro Lorenzo Sep 22, 2013 8:37 AM in response to Alessandro Lorenzo
    Level 1 (16 points)
    Sep 22, 2013 8:37 AM in response to Alessandro Lorenzo

    I think i've found a clue. Seems to me that after few hours, the mac destroy the filevault key. I've found out this thread:

     

    https://discussions.apple.com/thread/4934852?start=0&tstart=0

     

    but only when playing with the pmset command from terminal, i've discover the "destroyfvkeyonstandby" option that is described also here:

     

    https://discussions.apple.com/thread/3508926?start=0&tstart=0

     

    now i'm trying to understand how to postpone the key destruction to at least 24 hours and see if it works.

  • by Linc Davis,

    Linc Davis Linc Davis Sep 22, 2013 8:54 AM in response to Alessandro Lorenzo
    Level 10 (208,000 points)
    Applications
    Sep 22, 2013 8:54 AM in response to Alessandro Lorenzo

    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.

      

    Triple-click anywhere in the line below on this page to select it:

    pmset -g | open -ef

      

    Copy the selected text to the Clipboard (command-C).

     

    Launch the Terminal application in any of the following ways:

     

    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

     

    ☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

     

    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.

     

    Paste into the Terminal window (command-V).

     

    A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. The title of the window doesn't matter, and you don't need to post that.

  • by Alessandro Lorenzo,

    Alessandro Lorenzo Alessandro Lorenzo Sep 22, 2013 8:56 AM in response to Linc Davis
    Level 1 (16 points)
    Sep 22, 2013 8:56 AM in response to Linc Davis

    here it is:

     

    Active Profiles:

    AC Power                    -1*

    Currently in use:

    standby              1

    powerbutton          1

    womp                 1

    halfdim              1

    hibernatefile        /var/vm/sleepimage

    autorestart          0

    networkoversleep     0

    disksleep            10

    sleep                15 (sleep prevented by 9248)

    autopoweroffdelay    14400

    hibernatemode        0

    autopoweroff         1

    ttyskeepawake        1

    displaysleep         10

    standbydelay         4200

  • by Alessandro Lorenzo,

    Alessandro Lorenzo Alessandro Lorenzo Sep 22, 2013 10:02 AM in response to Alessandro Lorenzo
    Level 1 (16 points)
    Sep 22, 2013 10:02 AM in response to Alessandro Lorenzo

    After i few test, i found out that the command DestroyFVKeyOnStandby has no effect, whatever i put it in state 1 or 0, after the wake up from sleep, i'm always asked for the filevault password. So the only option i have is to delay the "standbydelay" parameter to 24 hours, so i put it at 86400. I wonder how it was in the past, since it's the first time i see all this happening on this iMac.

     

    Also the pmset man page state this:

     

    "standby only works if hibernation is turned on to hibernatemode 3 or 25."

     

    but i have that set to 0, and the standby works anyway like it is set to 25, considering the slowness of the wake up.

  • by Linc Davis,

    Linc Davis Linc Davis Sep 22, 2013 10:39 AM in response to Alessandro Lorenzo
    Level 10 (208,000 points)
    Applications
    Sep 22, 2013 10:39 AM in response to Alessandro Lorenzo

    The destroyfvkey property is not set, and you're not going into standby mode anyway, so it would have no effect even if it were set.

     

    The only solution that I've found to strange problems with FileVault is to deactivate it and then re-activate. Core Storage has bugs and its internals are completely undocumented.

  • by Alessandro Lorenzo,

    Alessandro Lorenzo Alessandro Lorenzo Sep 22, 2013 10:51 AM in response to Linc Davis
    Level 1 (16 points)
    Sep 22, 2013 10:51 AM in response to Linc Davis

    the deactivate and reactivate test was in my mind but i didn't yet because it would took time. However, i tried to set the destroyfvkey both 1 and 0 and put the standbydelay to 30 seconds so i could check immediately and there is no effect, the password is always asked on standby whatever you set the destroykey. Maybe it's another bug or they choose to set it permanently to 1 with the lastest update...

     

    Thanks for your support!