MacOS – While Screensaver is on, login window keeps appearing. How to prevent this

keyboardmacosmousescreensaver

I have a desktop with two computers. On one side I have a Windows PC, and on the other side is a Macbook running OS X Mavericks that is plugged into a Thunderbolt display.

I use a wireless keyboard and a magic mouse. Today, I've been working on my Windows PC, and though my Macbook is booted up, I've left the screensaver running and I haven't touched any of my Mac devices.

Off and on, all throughout the day, the login window keeps popping up on my screensaver. It appears, time's out, disappears and within 10 seconds it appears again.

I've double-checked and nothing is resting on my keyboard and no cables are touching the magic mouse. I know the mouse isn't being bumped or jostled.

Would anyone happen to know if this is an OS X bug or, possibly, a bug with the mouse, sending in micro-movement data to the Bluetooth listener? If so, is there a fix?

I really like my Thunderbolt display. I'd rather not have screen burn-in from the login window constantly overlaying the screensaver, if I can avoid this.

Also, I am not looking to disable the login prompt from the screensaver. I work in an office and it is general practice to always lock your computer(s) when you step away from your desk. I need the login window to pop-up when I need to log into my Mac.

Best Answer

I have the same problem, and it turns out it is being caused by Firefox. This seems unlikely, so I'll lay out the facts below.

At first, I assumed it was mplayer, VLC, or QuickTime player, all of which will disable the screensaver while they are doing their magic. Especially the first, which is installed via Homebrew and isn't properly written for OSX. However, much playing with these indicated they're not the problem.

Later, I guessed it was my attached bluetooth devices. So I've performed two experiments:

  1. I turned on my screensaver then powered off both the keyboard and trackpad, which are the only two input devices attached to bluetooth, yet the problem persists.
  2. I plugged in a USB mouse/keyboard then turned bluetooth off entirely from the OSX menu bar item. The problem persist even with bluetooth turned off entirely.

After some time, I guessed it was a USB device. I have several USB items plugged in, including several hard drives, a vape pen, and Android device. Unplugging these made no difference.

Finally, after the problem had been going on for several days, Firefox needed a security update and a restart. After restarting it, the screensaver/display sleep worked properly.

Now, whenever I have the problem, if I quit Firefox, the problem goes away. If I restart Firefox, sometimes the problem goes away, but sometimes it persists.

I have NO IDEA why Firefox would be triggering this, and if it weren't for the above facts, I wouldn't really believe it myself. If anyone else has this problem and uses Firefox, please try to corroborate?