HP DeskJet 2540 Manual — Setup, Troubleshooting & WiFi Guide

The HP DeskJet 2540 is a compact all-in-one inkjet printer offering wireless printing, copying, and scanning for everyday home use. It supports Wi-Fi Direct and WPS wireless setup, making it easy to print from laptops, smartphones, and tablets without a router. This page covers setup instructions, WiFi connection methods, troubleshooting tips, cartridge maintenance, and full technical specifications.

Wireless 802.11b/g/n (2.4GHz) Color Inkjet All-in-One USB 2.0 Hi-Speed
download Download PDF Manual
1

Unbox and Power On

Remove all packing materials and tape from the printer. Plug in the power cord and press the On button to power on the HP DeskJet 2540. Wait for the printer to complete its initialization sequence before proceeding.

2

Install Ink Cartridges

Open the cartridge access door and wait for the print carriage to move to the center. Remove the pink protective tape from the HP 61 tri-color and black ink cartridges, then insert each cartridge into the correct color-coded slot and press until it snaps into place.

3

Load Paper and Install Software

Load plain white letter or A4 paper into the input tray and open the output tray. Insert the printer software CD into your computer and follow the on-screen instructions, or download the latest driver from hp.com/support to complete software installation.

4

Align Ink Cartridges

After installation, align the ink cartridges for best print quality. In the printer software, click Print & Scan, then Maintain Your Printer, and select Align Ink Cartridges. Place the printed alignment sheet face-down on the scanner glass and press Start Copy Black to complete alignment.

info

Pro-Tip: Do not touch the copper-colored contacts or the ink nozzles. Touching these parts can result in clogs, ink failure, and bad electrical connections.

router

WPS Push Button Setup

Press and hold the Wireless button on the HP DeskJet 2540 for more than 3 seconds until the wireless light begins blinking, then press the WPS button on your router within 2 minutes. The printer will automatically connect to your 2.4GHz wireless network and the wireless light will stop blinking once connected successfully.

wifi_tethering

HP Wireless Direct (No Router Required)

Press the Wireless Direct button on the printer control panel to enable HP Wireless Direct, which allows smartphones, tablets, and computers to connect and print directly to the DeskJet 2540 without a wireless router. Security is enabled by default — press and hold the Wireless Direct button for more than 3 seconds to print the information page containing the password.

How do I improve poor print quality?expand_more
First, confirm you are using genuine HP 61 or HP 61XL ink cartridges and check estimated ink levels in the printer software. Open the printer software, click Print & Scan, then Maintain Your Printer, and run Align Ink Cartridges. If streaks persist, click Print Diagnostic Information under Device Reports, then use Clean Ink Cartridges on the Device Services tab to run an automatic cleaning cycle.
How do I clear a paper jam?expand_more
Press the Cancel button first to attempt an automatic jam clear. If that fails, gently pull the jammed paper from the input tray, output tray, or cartridge access area depending on where the jam occurred. For internal jams, open the cleanout door on the bottom of the printer by pressing both tabs, remove the jammed paper, then close the door until both latches snap into place. Press Start Copy Black or Start Copy Color to resume printing.
My HP DeskJet 2540 won't print — what should I do?expand_more
Ensure the printer is powered on and paper is loaded in the input tray. Check that the printer is not set to Paused or Offline via Devices and Printers in Control Panel. Verify the HP DeskJet 2540 is set as the default printer, then restart the Print Spooler service under Administrative Tools > Services. Clear the print queue if documents are stuck, and restart both the printer and computer. You can also download the HP Print and Scan Doctor tool for automatic diagnosis.
How do I fix an ink cartridge problem or error?expand_more
Start by removing and reinserting the HP 61 or HP 61XL cartridges to reseat them. If the error persists, clean the gold-colored electrical contacts on the cartridge with a dry lint-free cloth, then also wipe the corresponding contacts inside the printer. Reinstall the cartridge and close the access door. If both cartridge lights are blinking, check that the pink protective tape has been fully removed from both cartridges. If one cartridge is defective, remove the black cartridge — if the On button blinks rapidly, replace the tri-color cartridge; if it does not blink, replace the black cartridge.
How do I resolve copy and scan issues?expand_more
Download and run the HP Print and Scan Doctor (Windows only) for automatic diagnosis of common scan and copy problems. Ensure the cartridge access door is fully closed and the output tray is open before attempting to copy or scan. For scanner glass issues, ensure the alignment sheet or document is placed face-down on the right front corner of the scanner glass. Visit hp.com/support for additional online copy and scan troubleshooting resources.
warning

Important Safety Instructions

  • Always turn off the HP DeskJet 2540 using the On button and wait for the On button light to go out before unplugging — this prevents cartridges from drying out.
  • Do not open or remove tape from HP 61 or HP 61XL cartridges until you are ready to install them, as leaving the tape on reduces ink evaporation and extends cartridge shelf life.
  • If you remove a cartridge from the printer for any reason, reinstall it as soon as possible — cartridges left unprotected outside the printer for more than 30 minutes risk printhead damage.
  • Monitor estimated ink levels regularly through the printer software and replace HP 61 or HP 61XL cartridges before print quality becomes unacceptable to avoid printing interruptions.

The HP DeskJet 2540 printer uses genuine HP 61 / HP 61XL ink cartridges. Select your cartridge below to purchase replacement cartridges on Amazon:

Feature Specification
Printer TypeAll-in-One Color Inkjet (Print, Copy, Scan)
Compatible CartridgesHP 61 / HP 61XL (Black and Tri-Color)
Wireless ConnectivityWi-Fi 802.11b/g/n (2.4GHz only), WPS, HP Wireless Direct
USB ConnectivityUSB 2.0 Hi-Speed (cable recommended 3m / 10 feet or less)
Print SpeedVaries by document complexity; Draft mode available for faster output
Maximum Print ResolutionUp to 4800 x 1200 optimized dpi (Color); 1200 x 1200 dpi (Black)
Supported Operating SystemsWindows XP, Vista, 7, 8; compatible Mac OS versions
Related ModelsHP DeskJet 2541, HP DeskJet 2542
Network FeaturesWireless printing, HP Wireless Direct (no router required), WPS PIN and Push Button methods
Phone Support1 year phone support (North America, Asia Pacific, Latin America); extended plans available at hp.com/support