Have tried many configurations and eventually found one that allowed the other downstairs lights to work

and the wall lights switched on and off with one switch and the ceiling lights switched on and off with the other switch although although one switch swiched lights on in the on position and the other switch switched lights on in the off position - to get to this stage has taken hours - however when screwing switch to wall using metal ? screws the lights do not work again as they should .
Does the metal screw form part of a circuit when contacting switch and bit you screw it to.The switch is earthed