lxdm does not call the LoginReady script if automatic login is enabled. If a timeout is added, then LoginReady is called. Seems that LoginReady should always be called. Or could add another script, perhaps PostInit, PostBoot, or PostStart?
I am trying to run a command that needs X to be running, and root permission: xautolock -time 15 -locker 'pm-suspend' &