What should I do if I cannot print?
First, make sure the cable connections are secure and the printer is powered on (the On button will be lit white). Check that the Attention light and Cartridge lights are not blinking, and verify the printer is connected to a network by checking the wireless status light. If problems persist, visit www.hp.com/go/tools to download free diagnostic utilities.
From the official HP Deskjet 2540 All-in-One Printer manual, page 3
Have a follow-up question?
Answers from the official manual.
Common questions