If your doorknob is broken and you don't want to replace it, there are a few potential solutions you can try to fix it:
Tighten loose screws: Check if any screws on the doorknob or latch mechanism are loose. Use a screwdriver to tighten them, as loose screws can cause the knob to wobble or become difficult to turn.
Lubricate the mechanism: Over time, the inner workings of a doorknob can become dry or dirty, causing it to stick or malfunction. Try applying a lubricant, such as WD-40 or a silicone-based spray, to the keyhole, latch, or moving parts of the knob. Follow the product instructions and operate the knob to distribute the lubricant evenly.
Clean the mechanism: Dust, debris, or rust may accumulate inside the doorknob, hindering its functionality. Clean the internal mechanism by spraying compressed air or using a cotton swab soaked in a mild cleaning solution (e.g., soapy water or vinegar) to remove any buildup. Ensure the knob is dry before reassembling it.
Realign the latch: If the latch doesn't fully engage or is misaligned with the strike plate on the door frame, it can prevent the doorknob from functioning correctly. Loosen the screws holding the strike plate, and carefully adjust its position so that the latch aligns smoothly. Tighten the screws securely afterward.
Replace the spring: If the doorknob has a spring mechanism and it's causing the issue, you might be able to replace the spring itself. Disassemble the doorknob and identify the broken or worn-out spring. Take it to a hardware store to find a matching replacement, and follow any instructions provided to install the new spring.
Remember, these solutions may not work in all cases, and it's possible that a broken doorknob may need to be replaced. If your attempts to fix it are unsuccessful or if the doorknob is severely damaged, it may be best to consult a professional locksmith or replace the doorknob altogether.