Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find out what happens when paper runs out/printer is disconnected #1

Open
fonsp opened this issue Nov 29, 2018 · 2 comments
Open

Find out what happens when paper runs out/printer is disconnected #1

fonsp opened this issue Nov 29, 2018 · 2 comments
Labels

Comments

@fonsp
Copy link
Owner

fonsp commented Nov 29, 2018

https://github.com/klirichek/zj-58 suggests that the TERM signal is sent to the program, but this might only be the case when the filter is run by CUPS.

@fonsp fonsp added the enhancement New feature or request label Nov 29, 2018
@fonsp
Copy link
Owner Author

fonsp commented Dec 3, 2018

The /dev/usb/lp0 device remains, but writing to it blocks execution. Currently needs the Omega to reboot after replacing paper to fix buffer issues (resulting in misaligned images, and probably won't print text properly). I suspect python will throw an exception when the printer is disconnected.
This behaviour is probably fine (since no images are taken from the printi queue when the paper runs out), but the buffer issue should be solved.
This might be fixable with hardware (i.e. turn the omega off when there is no paper).

@fonsp fonsp added the hardware label Dec 3, 2018
@fonsp
Copy link
Owner Author

fonsp commented Dec 3, 2018

Could be fixed by running PrintiClient in a daemon that restarts automatically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant