Skip to content

Feature: Disable printer auto power-off, and enable power-on when plugged in #1

@rubin110

Description

@rubin110

Noticed that the printer occasionally turns itself off. It also doesn't turn itself back on when power is restored. A user must turn the printer back on, which isn't intuitive. Annoyingly these are settings exposed through their Windows driver. However digging around the brother_ql project, I found the following two commands which should do the trick...

Enable restore power after power loss:

echo -n -e '\x1b\x69\x55\x70\x00\x01' > /dev/usb/lp0

Disable auto power-off after timeout:

echo -n -e '\x1b\x69\x55\x41\x00\x00' > /dev/usb/lp0

The internet says once these are set they should persist through restarts. Unfortunately I don't have a way to read the settings back, so no idea if it sets after given the commands. Regardless it would be good to toss this into some sort of post start up script, maybe after the rpi has been online for ~15 minutes (given enough time for someone to plug in the printer if needed.

I don't know when I'll get to this, so I'm posting the task up here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions