You can customize the Power button, controlling what happens when you press it twice and when you press & hold it.
You can also choose to open the side bar when you tap the Power button twice.
Adjust settings:
To start voice command with Google Assistant, turn Hold for Assistant on
.
Use the slider to adjust how long you need to press & hold before Google Assistant opens.
To see the Power menu for turning off and restarting, you'll need to press the Power + Volume up buttons simultaneously.