The three-second delay in the Ubuntu 22.04 login screen after updating to NVIDIA driver version 555 is caused by a mouse gesture feature known as "sleep-shake." This issue is resolved by disabling the sleep-shake setting within your desktop environment's accessibility or mouse configuration menu, which immediately restores normal boot times without requiring system reboots or driver downgrades.
Understanding the Delay Trigger
When users upgrade to newer graphics drivers, such as nvidia-driver-555 on Ubuntu 22.04, they may encounter unexpected behavior at the display manager stage. The most common symptom is a distinct pause lasting approximately three seconds before the password prompt appears. This is not a graphics rendering lag or a driver initialization failure, but rather a specific input handling routine triggered by the system. The root cause lies in a feature often referred to as "sleep-shake." In many Linux desktop environments, particularly those using GNOME or compatible interfaces, there is an accessibility feature designed to wake the screen from sleep mode when the mouse is moved or shaken. During the login process, the system checks for this gesture. If the configuration is set to wait for a shake event or if the check itself introduces latency due to the new driver interaction, it results in the observed delay. This behavior is increasingly reported following major driver updates because the handshake between the display server and the input devices changes slightly. The driver update does not break the system; it merely exposes or alters the timing of how these gestures are processed. Recognizing that this is an input feature rather than a hardware fault is crucial for troubleshooting, as it prevents users from unnecessarily reinstalling drivers or modifying kernel parameters.Disabling the Sleep-Shake Feature
To eliminate the three-second delay, you must disable the sleep-shake functionality. Since the exact location of this setting can vary depending on whether you are using GNOME, KDE Plasma, or another desktop environment, the following steps cover the most common scenarios found in Ubuntu 22.04. For GNOME-based systems, which are the default for Ubuntu, follow these steps:- Open the Settings application from the application launcher.
- Navigate to the Accessibility section in the left-hand sidebar.
- Look for options related to Motion, Mouse, or Pointing Devices.
- Find the toggle labeled Shake to Confirm Window Close or Wake Screen on Mouse Movement. Note that terminology may vary slightly between versions.
- If you find a specific setting for Sleep Shake or Screen Wake Gesture, turn it off.
Alternative Configuration Methods
In some cases, the sleep-shake feature might be controlled by a daemon or a background service. If the GUI toggle does not resolve the issue, ensure that no third-party utilities likesynergy or autokey are intercepting mouse events during the login phase. These tools can sometimes mimic or interfere with system-level shake gestures, causing additional latency.
It is also worth noting that this issue is specific to the interaction between the display manager (GDM) and the input stack. Other applications running in the background should not affect the login screen delay once the shake gesture is disabled. If you are using a custom window manager, consult its documentation for gesture-related settings, as the term "sleep-shake" is most commonly associated with standard desktop environments.
Verifying the Fix
After disabling the relevant setting, perform a test reboot or logout/login cycle. The system should now proceed directly to the password prompt without the three-second pause. If the delay persists, double-check that you have applied the changes to the correct user profile. System-wide settings in Settings apply to all users, while individual user preferences might override them in some configurations. For more information on managing system updates and potential side effects, you might find Ubuntu Desktop VNC Connection Failing After Nvidia Driver Update helpful, as it discusses other post-update issues. Additionally, understanding how to manage system resources can prevent similar delays in other contexts, as outlined in How to Update Ubuntu 20.04.6 LTS Using Command Prompt.Frequently Asked Questions
Will disabling sleep-shake affect my ability to wake the screen?
No, disabling the sleep-shake gesture does not prevent the screen from waking up. You can still wake the monitor by pressing any key on the keyboard or moving the mouse normally. The feature only removes the specific requirement to shake the mouse to confirm wake actions or close windows.
Is this issue specific to NVIDIA driver 555?
While heavily reported with driver 555, this delay can occur with other driver versions if the underlying input stack changes. It is primarily a configuration issue within the desktop environment rather than a bug exclusive to one NVIDIA driver release.
Can I fix this using terminal commands instead of Settings?
Yes, advanced users can use dconf-editor to navigate to the appropriate schema and disable the gesture key. However, using the graphical Settings menu is the recommended method for most users as it ensures the change is applied correctly across all services.
Does this delay happen on other Linux distributions?
This issue is most commonly reported on Ubuntu and Debian-based systems using GNOME. Other distributions with different desktop environments like KDE or XFCE may have similar features but typically label them differently, such as "shake to minimize" or "wake on motion."
Should I downgrade my NVIDIA driver if this happens?
Downgrading the driver is unnecessary and not recommended. The delay is caused by a software configuration setting, not a driver incompatibility. Disabling the sleep-shake feature resolves the problem while allowing you to keep the latest driver benefits.