Sorry, last time I was reading your post at 2 am and didn't understand well;)
Those parameters in logind.conf are related to power buttons actions.
HandleLidSwitch parameter only controls how the laptop's screen will react to lid close.
Did you try HandleLidSwitchDocked parameter?
Someone marked my topic as resolved but it isn't. I only found a workaround for my problem by disabling sleep action when I close the laptop's lid.
But stil unresolved is: how to set screen timeout?