Can I turn on my Android phone from my computer? I have an Android phone (Moto Z) and for some reason the buttons stopped responding. This wasn't an actual issue until one night I let the battery die... the phone accepts the charger AND charges but since the buttons don't work I can't turn it on.

When I plug the phone into my computer, and I can see it as a USB device (lsblk). What now? Is there a way to issue a command to the device from my computer (Arch Linux) telling it to turn on?
I was in a similar situation where the button didnt work. I actually managed to clean the button and make it work again. It will require some patience, but in this state you got nothing much to lose.

The button consists of 2 layers of conductors where 1 layer is actually a sphere and when pressing it bends down, touches the other layer and its registered as a click.

What happened is that somehow dirt got between those layers causing the 2 layers never to touch. If you carefully open up your phone, and then open up the layers and clean the dirt, you can fix your phone yourself.

Ofc there is no guarantee that this is the actual problem or that the fix will fully work, but if you can't do anything else I think its worth a shot.