Oh, for eink in K4, there is no "/sys/module/eink_fb_hal_broads/parameters/bs_orientation" anymore, so you we cannot read from it.
I added a new method "getOrientation" for einkfb.c to handle this for all models:
https://github.com/houqp/kindlepdfvi.../einkfb.c#L424
Use that for screen.lua should work