Restarting the computer or updating the software can fix problems with the software. The problem can be resolved by cleaning the buttons and the charging ports when they are dirty. Here are some troubleshooting steps that can help you fix an iPhone power button that doesn’t work. Read the full blog here: https://www.soldrit.com/blog/iphone-volume-button-not-working-try-these-fixes/