r/KeePass • u/Deepwithin777 • 1d ago
Screen saver triggers KeePassxc to lock database
I have been using Keepassxc for a few years, and this problem only started happening when I installed Ubuntu/Gnome.
Have tried a few different 'security' settings, all to no avail.
Previously I was using Kubuntu, no problems.
It seems to be a Gnome thing, is that correct ?
3
u/ethicalhumanbeing 22h ago
Isn’t that an option you can enable or disable?
1
u/Deepwithin777 10h ago
There is no option to stop the screensaver from triggering a database lock, unfortunately.
1
u/Deepwithin777 7h ago
Whilst I don't rely much on AI, interesting what Brave's AI mentioned. Note the part at the end, re KDE/Plasma. That is also my experience..
The cause is that KeePassXC on Linux/GNOME typically monitors the session idle state (via D-Bus signals like org.gnome.ScreenSaver) rather than the specific "screen lock" event. On many Ubuntu/GNOME configurations, the session is considered idle or the screensaver state changes when the screen blanks, triggering KeePassXC to lock the database immediately.
This creates a conflict when users set the "Blank Screen" delay to be shorter than the "Automatic Screen Lock" delay. Because KeePassXC reacts to the blank/idle signal rather than the actual password prompt appearing, it locks the database prematurely.
To resolve this, users often:
- Set the Blank Screen delay in GNOME settings to Never or a value longer than the lock delay.
- Use external tools like
xss-lockor custom scripts to decouple the screensaver/blanking event from the session lock signal. - Switch to a desktop environment like KDE Plasma, which handles these events more distinctly, or use a different password manager that respects the actual lock screen state.
1
u/Deepwithin777 7h ago edited 6h ago
PDF output of the Brave search engine - https://pdfhost.io/v/ZNatRjfBpK_Ask_Brave_screen_saver_triggers_KeePassxc_to_lock_database
3
u/0xKaishakunin 22h ago
Nope, it's a KeepassXC setting:
Go to Tools -> Settings -> Security and remove the check mark next to "Lock databases when session is locked or lid is closed".