Back/World camera working after suspend - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone Pro (https://forum.pine64.org/forumdisplay.php?fid=177) +--- Forum: PinePhone Pro Software (https://forum.pine64.org/forumdisplay.php?fid=179) +--- Thread: Back/World camera working after suspend (/showthread.php?tid=18863) |
Back/World camera working after suspend - DrYak - 11-13-2023 Some people might be affected by some driver bug where the camera:
The following trick forces reinitialising the hardware (as if the kernel is populating from device tree during a boot): Code: echo ff920000.isp1 | sudo tee /sys/bus/platform/drivers/rkisp1/{unbind,bind} RE: Back/World camera working after suspend - u-kidjp - 11-14-2023 (11-13-2023, 11:01 AM)DrYak Wrote: Some people might be affected by some driver bug where the camera: Thank you. I added script /lib/systemd/system-sleep/90-restore-cam.sleep on mobian. It seems to work well. Code: #!/bin/sh RE: Back/World camera working after suspend - DrYak - 11-14-2023 (11-14-2023, 02:25 AM)u-kidjp Wrote: I added script That's a very cool solution! ? (Sadly in the case of SailfishOS that doesn't work. Apparently the solution for suspend used there doesn't run those scripts ). @megous : Is there a way that you could do this in a "cannocial" way in the driver code ? |