Jump to content

Recommended Posts

Posted

Hey @amazingfate, :)

 

I have an issue with the build-in IR receiver on my OPI5+:
 

   ##O#O##          OS: Armbian 25.8.1 noble aarch64 
       #######          Host: Orange Pi 5 Plus 
     ###########        Kernel: 6.1.115-vendor-rk35xx 
    #############       Uptime: 2 mins 
   ###############      Packages: 1934 (dpkg), 5 (snap) 
   ################     Shell: bash 5.2.21 
  #################     Resolution: 3840x2160 
#####################   DE: GNOME 46.0 
#####################   WM: Mutter 
  #################     WM Theme: Adwaita 
                        Theme: Adwaita [GTK2/3] 
                        Icons: Adwaita [GTK2/3] 
                        Terminal: x-terminal-emul 
                        CPU: (8) @ 1.800GHz 
                        Memory: 2585MiB / 15957MiB 

 

After a reboot it works just fine, but once I suspend/resume it stops working. Logs look clear of errors.

I have tried to troubleshoot with ChatGPT but goin' in circles and gave up. Lastly ended up with some speculations from it like:
 

Quote

The driver at drivers/input/remotectl/rockchip_pwm_remotectl.c is missing pm_ops callbacks, which are used to restore hardware state after resume.

It needs something like this added:

 

static int rockchip_pwm_remotectl_resume(struct device *dev)
{
    struct remotectl_dev *rc_dev = dev_get_drvdata(dev);

    // Re-init or restart the device
    if (rc_dev && rc_dev->restart)
        rc_dev->restart(rc_dev);

    return 0;
}

static const struct dev_pm_ops rockchip_pwm_remotectl_pm_ops = {
    .resume = rockchip_pwm_remotectl_resume,
};

 

Quote

And then linked to the platform driver:

 

static struct platform_driver rockchip_pwm_remotectl_driver = {
    .probe = rockchip_pwm_remotectl_probe,
    .driver = {
        .name = "rockchip_pwm_remotectl",
        .pm = &rockchip_pwm_remotectl_pm_ops,
    },
};

 

 

Do you think this is the problem, or if not can I share some details so you can try to find it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines