Code Monkey home page Code Monkey logo

Comments (12)

meirg avatar meirg commented on May 17, 2024 7

Here are the codes for setting from the command line in Linux, sniffed from QL-800:

# Disable Auto Power-Off
echo -n -e '\x1b\x69\x55\x41\x00\x00' | brother_ql send -
# Auto Power-Off After 10 Minutes
echo -n -e '\x1b\x69\x55\x41\x00\x01' | brother_ql send -
# Auto Power-Off After 20 Minutes
echo -n -e '\x1b\x69\x55\x41\x00\x02' | brother_ql send -
# Auto Power-Off After 30 Minutes
echo -n -e '\x1b\x69\x55\x41\x00\x03' | brother_ql send -
# Auto Power-Off After 40 Minutes
echo -n -e '\x1b\x69\x55\x41\x00\x04' | brother_ql send -
# Auto Power-Off After 50 Minutes
echo -n -e '\x1b\x69\x55\x41\x00\x05' | brother_ql send -
# Auto Power-Off After 60 Minutes
echo -n -e '\x1b\x69\x55\x41\x00\x06' | brother_ql send -

For auto power-on (not sure what this actually does)

# Enable Auto Power-On
echo -n -e '\x1b\x69\x55\x70\x00\x01' | brother_ql send -
# Disable Auto Power-On
echo -n -e '\x1b\x69\x55\x70\x00\x00' | brother_ql send -

from brother_ql.

kosmic247 avatar kosmic247 commented on May 17, 2024 4

@meirg Solution works for QL-700 model, too. Thank you so much 👍

On linux systems the codes can be also set by a simple echo to the device without using brother_ql send:

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

To make this settings persistent, we used a simple udev rule that gets triggered whenever the device is added by the kernel (boot, hotplug, etc.):

# /etc/udev/rules.d/99-brotherql.rules

ACTION=="add", SUBSYSTEMS=="usb", KERNEL=="lp0", RUN+="/usr/bin/disable_poweroff.sh /dev/usb/lp0"

Custom disable power-off script

# /usr/bin/disable_poweroff.sh

#!/bin/bash
echo -n -e '\x1b\x69\x55\x41\x00\x00' > $1

Make it executable

chmod +x /usr/bin/disable_poweroff.sh

Reload the rules

udevadm control --reload-rules && udevadm trigger

from brother_ql.

kornpow avatar kornpow commented on May 17, 2024 2

I was able to create a USB bus capture by installing the windows drivers, installing "Device Monitoring Studio" by HHD software, and then using the Printer Settings Tool to update the printer.

I enabled "Auto Turn On", which so far doesn't actually turn it on once plugging it in. Also I set Auto-Poweroff to None. We'll see if it stays on indefinitely. Could be a good workaround if this setting stays somewhere in the device memory so I dont have to keep booting into Windows.

from brother_ql.

pklaus avatar pklaus commented on May 17, 2024

from brother_ql.

obeone avatar obeone commented on May 17, 2024

Hi Philipp,

Thanks for you reply.
Ok about that, I will see if we can do something, and which solution the project manager will choose (we are not 100% sure at this time to use Brother printer)

from brother_ql.

raat1979 avatar raat1979 commented on May 17, 2024

Actually raster commands for this do exist, did a usb capture under windows last night using the brother tools to change these settings of a ql-800. I still need to try some of the functions but for now I have the auto power off timeout settings figured out. Still need to write some code to strip unneeded sequences (the tool always does the full init: esc @, status information request, switch to raster etc, etc, ) and check if it works,
don't have any python knowlege though...

from brother_ql.

raat1979 avatar raat1979 commented on May 17, 2024

will continue on this tonight/ tomorrow...

from brother_ql.

hydroid7 avatar hydroid7 commented on May 17, 2024

Maybe you can share the file and the procedure how you did the capture.

from brother_ql.

kornpow avatar kornpow commented on May 17, 2024

Curious about this on this QL-800. My big problem currently is once the printer auto-shuts off, once I turn it back on manually I continually get usb.core.USBError: [Errno 19] No such device (it may have been disconnected) errors. Even when unplugging the usb, and restarting the program. A reboot is required for me.

from brother_ql.

Abhi0725 avatar Abhi0725 commented on May 17, 2024

@pklaus Any chance we can get this?

from brother_ql.

raat1979 avatar raat1979 commented on May 17, 2024

"Auto" power on should be the state when plugging in the device (power)

from brother_ql.

caish5 avatar caish5 commented on May 17, 2024

Thanks so very much.
You have no idea how many QL-700s I've temporarily install in Windows VMs
just to get rid of the 60 min poweroff.

On the subject of persistence.
I don't actually think you need to do anything, just set it and then they've always been fine
on Raspberry Pis.

from brother_ql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.