Ok.
So, for a pi4 I managed to get PIR waking up MM screen with these steps:
- Install latest Lubuntu with gdm3 environment
- Edit /etd/gdm3/custom.conf. This will set autologin so that desktop environment loads every reboot
# Enabling automatic login
AutomaticLoginEnable = true
AutomaticLogin = yourusername
[Desktop Entry]
Name=motion
Exec=sudo gpio-watch -e rising 4
- Set screensaver blank screen to desired timeout, 1min in my case. Lubutu knows how to handle pi4 blanking and puts to sleep my hdmi monitor
This way I got pi4 waking up with PIR sensing. Not ideal setup but it works.
I spent too much time trying to get pi4 work properly with Rapsberian, I simply had too many issues with it.
At the end I am using pi3 for my first production MM and the pi4 is waiting for the next project.