How to hard reset an iphone 4 with a broken lock button?

Resently my iphone's lock button got stuck and i'm jailbroken and sometimes cydia freezes on me, forcing me to hard reset. But now I can't since my lock button is stuck, so how can I reboot my iphone if it freezes without a lock screen button?

Well, you can't do much. You would probably have to just let the battery die.

Hi, download a tweak call Activator in cydia, it allows you to set different things to other things, for example triple clicking of the home button could reboot your device!
Hope this helps

Shut it down/turn it off and restart it. It works on 1phone4s