I haven’t tried this myself, but I think in order to get the lid to fire traditional events, you’ll need to check out this post first: [GUIDE] Turn LID GPIO 27 into a standard input device sending lid switch events
If you get it to work, let us know!