Physical power button not working on lock screen

hey so little context, my computer locks itself after about 10 minutes of inactivity, and when i go to put it into hibernation mode via my computers power button (i have it set to hibernate instead of power off) it just doesnt do anything, if its a logon screen or just logged in it works fine i just press it once and it works, and yes the power buttons on the lock screen also work, but i prefer pressing the button if possible, minor QoL change am aware, but essentially what do i need to edit and how so that when i press the power button on the lock screen it executes whatever the hibernate button on the lock screen does.

I did do a little digging and found this
which looks promising but its 3 years out of date and its for sleep mode not hibernate but could be a good starting point, any helps appreciated thanks