Skip to content

Cannot get Emulated Duplex Mode to work in docker compose/portainer on HP DeskJet 4530 #1663

Description

@Cytrus3927

Hello!
I am trying to use the emulated duplex feature via Docker Compose.
I tried using ADD_EMULATED_DUPLEX and ADD_EMULATED_DUPLEX=page-wise.
However, the second destination (with the "duplex" suffix) never appears on the printer's display. Only the main label "Paperless" is shown.

Other features works fine and plays nicely with paperless but this doesnt want to work on my printer.

Here's my docker-compose file:

services:
  broker:
    image: docker.io/valkey/valkey:9-alpine
    container_name: Valkey-redis-broker
    restart: unless-stopped
    volumes:
      - redis_data:/data

  db:
    image: docker.io/library/postgres:18
    container_name: Postgresql
    restart: unless-stopped
    volumes:
      - postgres_data:/var/lib/postgresql
    environment:
      POSTGRES_DB: paperless
      POSTGRES_USER: paperless
      POSTGRES_PASSWORD: XXXXX

  webserver:
    image: ghcr.io/paperless-ngx/paperless-ngx:latest
    container_name: Paperless-ngx
    restart: unless-stopped
    depends_on:
      - db
      - broker
    ports:
      - "8010:8000"
    volumes:
      - paperless_data:/usr/src/paperless/data
      - paperless_media:/usr/src/paperless/media
      - ./export:/usr/src/paperless/export
      - ./consume:/usr/src/paperless/consume
    environment:
      PAPERLESS_REDIS: redis://broker:6379
      PAPERLESS_DBHOST: db
      PAPERLESS_DBENGINE: postgresql
    env_file:
      - stack.env

  hp-scan-to:
    image: manuc66/node-hp-scan-to
    container_name: HP-scan-to
    restart: unless-stopped
    volumes:
      - ./consume:/scan
    environment:
      - IP=192.168.1.240
      - LABEL=Paperless
      - TZ=Europe/Warsaw
      - ADD_EMULATED_DUPLEX=page-wise
      - DIR=/scan
      - PUID=1000
      - PGID=1000
      - PATTERN="scan"_yyyy-mm-dd_HH-MM-ss

volumes:
  paperless_data:
  paperless_media:
  postgres_data:
  redis_data:

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions