Comments (12)
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.
@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.
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.
from brother_ql.
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.
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.
will continue on this tonight/ tomorrow...
from brother_ql.
Maybe you can share the file and the procedure how you did the capture.
from brother_ql.
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.
@pklaus Any chance we can get this?
from brother_ql.
"Auto" power on should be the state when plugging in the device (power)
from brother_ql.
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)
- pre-cut when printing label
- Installation on Ubuntu 18.04 failed
- It´s possible to print ZPL II codes? HOT 1
- [QL-700] Is it Possible to pass a TXT file path and print ? Could you please provide some example code on how to do this with python ?
- Multiple print jobs to brother QL-800
- Documentation improvements for linux
- Improve error message if label omitted
- usb.core.NoBackendError: No backend available
- Currently the printer can be specified either via an appropriate string or via an os.open() handle. HOT 2
- Raster image size error HOT 2
- Using 54x29 labels DK-3235 not present in label list HOT 3
- OSError: [Errno 22] Invalid argument When Sending Instructions HOT 1
- Installation fails on Linux (OpenSuse Leap 15.4 - current release) HOT 1
- Support for automated testing
- Project status HOT 6
- not working on a pi? HOT 8
- "brother_ql -b pyusb discover" doesn't find the printer HOT 3
- incompatible 'bytes' types in pyusb.py and reader.py (python 2.x exception after printing)
- Print Barcode HOT 2
- AttributeError exception due to backward incompatible change in Pillow 10.0.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brother_ql.