-
Notifications
You must be signed in to change notification settings - Fork 104
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
How to install / run PaperTTY? #80
Comments
A little update: |
Sorry about the confusing state of the docs, I still haven't had the time/energy to overhaul them. You might also try adding The way the command line works in PaperTTY is that there's a few "top-level" options such as the driver selection, and these would come before a "subcommand" (ie. Regarding Please let me know if this helps or if it doesn't, interested to hear if the 13.3" works. |
Thanks for your answer. I just made it working, turned out I was pretty blind while reading through the readme. It works with the 13.3" too, which is pretty amazing. The only problem is the refresh rate, it only updates every 5 seconds, so if I input something it takes about 5 seconds to even start the screen refresh. Is there any way to speed this up? I'm using it with X11VNC. |
Good to hear it works! Which RPi are you using it with? The lower end ones will be pretty slow, something like RPi4 should be a lot faster dealing with any overhead, but in the end the SPI transfer will take majority of the time. You can however try to tweak this https://github.com/joukos/PaperTTY/blob/master/papertty/drivers/driver_it8951.py#L183 to, say, To make things as fast as possible, using B/W instead of grayscale should be faster, but there's not a nice switch for that either at the moment, but is somewhat described in another comment here #32 (comment). |
I'm using a Pi 3 A+, since I'll build an e-reader out of it. (Less tall) |
Setting the maximum frequency to 20000000 didn't really change anything... Even though it's 10x than the standard setting more. Setting ist to 12000000 or 16000000 neither did. Are you sure this is the limiting parameter? |
Hmm, did you make the edit in the "pip installed" files, ie. in |
Hi, Cumps, |
I actually changed the driver in papertty master. But changing it in papertty_venv didn't do much more. |
So far, everything is working with the 13.3" display. But it is really slow. Big updates take at least 5 seconds, sometimes even longer. For my use, a black and white mode would be perflectly fine if it speeds up the data transfer over SPI (which seems to be the bottleneck). However, editing papertty.py (in papertty_master or papertty_venv) doesn't change anything. Even after renaming those files it still works as before. Which files do I have to edit? Or is there another way to edit the image before it's being sent do IT8951? Are there other options to speed it up? Edit: I've fount the files to edit (I wasn't in .local). The changes also seem to apply. I've speeded up the SPI frequency by 10 times and changed a parameter in the IT8951 driver to reduce the amount of full refreshes. Both had an influence on the speed, it takes now about 3.6 seconds to turn a page. Are there more parameters I could change? |
Hello! I got the waveshare eink 6" display and I cannot run it with vnc. I did a clean setup of the Pi from scratch, just to make sure it's not interacting with other modules. I'm using a Pi4 4GB with the latest raspbian installed. I followed the installation from front page: $ sudo apt install python3-venv python3-pip libopenjp2-7 libtiff5 I wanted to make sure the driver works, so I tried the following command: $ sudo papertty --driver IT8951 image --image "/home/pi/Downloads/test.jpg" It worked fine. I'm using realvnc server and I typed the following to test it: $ vncserver -geometry 400x300 :1 Got a flash on the screen and after a while this: "Timeout to server localhost:1" Tried with different password (raspberry), with no password, with tightvnc (which gives a lot of errors back when running papertty). The vnc is running because I can see it on my pc side and I can connect to it with 192.168.1.9:1. Thank you in advance, any help will be really appreciated |
@DieBe probably forcing the B/W mode would help, just need to hack the code a bit to do that. Also using @Molerat89 you may want to check out #72 and if that applies to your case. RealVNC seems to have issues there and I've only tested with tightvncserver. |
@joukos So far I have downgraded vncdotool to version 0.13.0 in virtualenv, pip and pip3. ` $ sudo papertty --driver IT8951 vnc --display 2 --password raspberry --sleep 0.1 --rotate 90 Unhandled Error Timeout to server localhost:2` I'm fairly new to python, so I saw something about editing the requirements.txt on #72 ,but I don't know the location of it and how to edit it. Ps= When I reinstalled vncdotool version 0.13.0, I got a message that papertty is not supporting it and it needs version 1.0.0 Thank you for your suggestions! |
Sorry for the late answer (was on vacation etc. and missed this).
This is a dead giveaway that you're not actually using the 0.13.0 with the PaperTTY that runs, ie. if you check https://github.com/sibson/vncdotool/blob/v0.13.0/vncdotool/rfb.py , there is no line 835 in that version. Similar issue was here #72 (comment) so you might want to check that the virtualenv you run it in has the correct version, and if you tell pip to install a particular version, it must be the pip that's inside that environment. |
I assume this has been resolved, also the README has been updated slightly with regard to installation steps. |
Maybe it's obvious and I'm just being very blind, but as a very inexperienced user, I don't know how to install PaperTTY.
sudo apt install python3-venv python3-pip libopenjp2-7 libtiff5
python3 -m venv papertty_venv
source papertty_venv/bin/activate
pip3 install papertty
Is running this enough? I'm using the Waveshare 13.3" display, it's using the IT8951 so I'm hoping this might acutally work, even though it's not officially supported.
When I runthis, everything seems to be installed correctly, but the screen doesn't do anything. Do I have to runa startup file or something like that?
In addition: Running the start.sh doesn't change anything, if that should be the solution.
Sorry for my propably unnecessary question.
Thanks for any help,
DieBe
The text was updated successfully, but these errors were encountered: