I'd barely switched on my desk lamp when the whole room went dark.

What does I'd barely switched on my desk lamp when the whole room went dark. mean?

I'd barely switched on my desk lamp when the whole room went dark.

I'd barely switched on my desk lamp when the whole room went dark. in other languages