Screen brightness issues with Lenovo laptop

I am having trouble with my Lenovo laptop’s display, as I can not change the brightness. It doesn’t change when I press Fn+f5/f6, even though the brightness bar comes up and shows it increasing/decreasing.

Update: it seems to be only when I use the dynamic graphics setting with intel’s built in gpu.