Verdin Suspend/Resume - resume to previous state

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


To address the issues you’re experiencing with the Verdin iMX8MP system, here are some suggestions based on the context provided:

  1. Backlight Control on Resume:

    • The issue with the backlight turning on automatically upon resume suggests that the backlight control logic during the suspend/resume process might not be correctly handling the previous state. You may need to investigate the kernel’s backlight driver or the power management scripts to ensure they restore the backlight state correctly. This might involve modifying the resume script to check the backlight state before suspend and restore it after resume.
  2. Preferred Method for WiFi Module Management:

    • To automate the unloading and reloading of the WiFi kernel module during suspend/resume, you can use systemd services or scripts. Create a systemd service that executes a script to unload the module before suspend and reload it after resume. This ensures the WiFi module is managed automatically without manual intervention.
  3. Wake Signal Configuration:

    • To configure the system to wake only on a rising edge of the wake1 signal, you will need to adjust the device tree or GPIO settings. This involves setting the GPIO edge detection to rising edge only. You can modify the device tree source (DTS) file to specify the desired edge detection for the wake1 signal.
  4. GPIO Wake Signals:

    • To configure GPIO1 and GPIO2 as wake signals that trigger only on a rising edge, similar modifications in the device tree or kernel configuration are required. Ensure that these GPIOs are set up with the correct edge detection settings in the DTS file.

By addressing these areas, you should be able to achieve the desired behavior for the backlight and manage the WiFi module and wake signals effectively.

Please, also check if these links can help you solve your problem:

Verdin imx8mm: suspend/resume of panel-simple failed.