@antidroid said in Readonly Filesystem (Nexus 5) and broken power button:
Have you simply tried to put the file where you expect it to be even if it doesn't already exist? It may be that it looks in multiple locations for the file and it will work from where you expect it to be?
Yes i did adb push gpio-keys.kl /system/usr/keylayout/
It created the different directories and pushed the file but after a reboot on UT, the /system was exactly the same.
I wonder if there is a /system used by TWRP and a /system used by UT.
I don't know, I may not fully understand what I've done through these 4 days.
Anyways I learnt a lot of things playing with ROMS and recovery imgs. And the result is ... I 'm giving up Ubuntu touch for now but I have a fully fonctionning e/OS where I can lock / unlock the screen with my volume buttons. I did not reach my original goal but I am already satisfied with what I have done
This is thanks to you guys.