Get LineageOS for the Sony Xperia M
Special boot modes
Recovery: With the device powered off, boot the device and press Volume Up when the notification light is pink.
Bootloader/Fastboot/Download: With the device powered off, hold Volume Up and connect the USB cable. The notification light should turn blue.