Software & AppsOperating SystemLinux

How To Fix Suspend Not Working in Ubuntu 18.04 and 19.04

Ubuntu 8

If you’re using Ubuntu 18.04 or 19.04 and are having trouble with the suspend feature, you’re not alone. Many users have reported issues with this feature, but luckily, there are several potential solutions to this problem. In this article, we will walk you through some of the most effective methods to resolve this issue.

Identifying Devices Causing Wake-Up

The first step in troubleshooting this issue is to identify if a specific device is causing your computer to wake up immediately from suspend. This can be done using the following commands in your terminal:

$ cat /sys/bus/usb/devices/*/power/wakeup
$ ll /sys/bus/usb/devices/*/power/wakeup

The first command will list all the devices and indicate whether they are enabled or disabled. The second command will provide the corresponding devices. If you find a device that is enabled and causing the issue, you can investigate it further using:

$ cat /sys/bus/usb/devices/1-4/idVendor
$ cat /sys/bus/usb/devices/1-4/idProduct

Replace “1-4” with the device number that you suspect is causing the issue. This will give you the vendor and product ID of the device. If you want to disable the device causing the issue, you can use the following command:

# echo "disabled" > /sys/bus/usb/devices/1-4/power/wakeup

This command will disable the power wakeup feature for the specified device, preventing it from waking up your computer.

Screen Lock Settings

Another potential solution involves the “Automatic screen lock” option in the Privacy settings. Some users have found that enabling this option resolves the issue. To do this, navigate to Settings -> Privacy -> Screen Lock and ensure that it is enabled.

Conversely, for some users, disabling the “Automatic screen lock” option has resolved the problem. If enabling this option doesn’t work, try disabling it instead.

Checking BIOS Settings

It’s also a good idea to check your BIOS settings. Look for options related to wake-up from network and make sure they are disabled. These settings can vary depending on your computer’s manufacturer, so refer to your user manual or manufacturer’s website for specific instructions.

Using dconf Editor

If you’re using Ubuntu Mate, you can try installing the dconf editor and changing a specific setting. Install the dconf editor using the following command:

$ sudo apt-get install dconf-editor

After installation, open the dconf editor and navigate to:

/org/mate/desktop/lockdown/disable-lock-screen

Change this setting to false. This has been reported to resolve the suspend issue for some users.

Conclusion

These are just a few potential solutions to the suspend not working issue in Ubuntu 18.04 and 19.04. Remember, these solutions are based on user experiences and may not work for everyone. It’s recommended to try each solution and see if it resolves your issue. If you’re still experiencing problems, consider reaching out to the Ubuntu community or a professional for further assistance.

How can I identify which device is causing my computer to wake up immediately from suspend?

You can identify the device causing the issue by using the following commands in your terminal:

$ cat /sys/bus/usb/devices/*/power/wakeup
$ ll /sys/bus/usb/devices/*/power/wakeup

The first command will list all the devices and indicate whether they are enabled or disabled. The second command will provide the corresponding devices. If you find a device that is enabled and causing the issue, you can investigate it further using:

$ cat /sys/bus/usb/devices/1-4/idVendor
$ cat /sys/bus/usb/devices/1-4/idProduct

Replace "1-4" with the device number that you suspect is causing the issue. This will give you the vendor and product ID of the device.

How can I disable the device causing the issue?

To disable the device causing the issue, you can use the following command in your terminal:

# echo "disabled" > /sys/bus/usb/devices/1-4/power/wakeup

Replace "1-4" with the device number of the device you want to disable. This command will disable the power wakeup feature for the specified device, preventing it from waking up your computer.

Can enabling or disabling the “Automatic screen lock” option resolve the suspend issue?

Yes, for some users, enabling the "Automatic screen lock" option in the Privacy settings has resolved the suspend issue. However, for others, disabling this option has worked. It’s recommended to try both enabling and disabling this option to see if it resolves your issue.

How can I check my BIOS settings for wake-up options?

To check your BIOS settings for wake-up options, you need to access your computer’s BIOS setup. Restart your computer and look for the key to enter BIOS setup during the boot process (often displayed on the screen). Once in the BIOS setup, look for options related to wake-up from network and make sure they are disabled. The specific options can vary depending on your computer’s manufacturer, so refer to your user manual or manufacturer’s website for specific instructions.

How can I install the dconf editor in Ubuntu Mate?

To install the dconf editor in Ubuntu Mate, you can use the following command in your terminal:

$ sudo apt-get install dconf-editor

This command will install the dconf editor. After installation, you can open the dconf editor and navigate to /org/mate/desktop/lockdown/disable-lock-screen. Change this setting to false, as it has been reported to resolve the suspend issue for some users.

What should I do if none of these solutions work for me?

If none of these solutions resolve your suspend issue, it’s recommended to reach out to the Ubuntu community or seek assistance from a professional. They may be able to provide further guidance or troubleshooting steps specific to your situation.

Leave a Comment

Your email address will not be published. Required fields are marked *