I am using Android 6 (Cyanogenmod) and I would like to have the following simple behaviour:
Hardware button X: Sleep AND lock the phone.
Hardware button Y: Sleep phone WITHOUT locking.
In addition I do not want ANY automatic locking/unlocking going on.
That seems to be impossible. If so, that's clearly a design fault.
Please enlighten me with your Android expertise.
TY