Home › Forums › Forums › General discussion › Scrolling behavior
Tagged: scrolling
- This topic has 7 replies, 2 voices, and was last updated 8 years, 6 months ago by heatvent.
- AuthorPosts
- May 27, 2015 at 12:06 am #4046heatventParticipant
Hi,
I am using my Raspberry Pi to copy photos from a SD card to a USB drive using Gphoto2 via a script. Gphoto2 shows a progress bar similar to when you use wget to download a file that shows progress on each photo download. Similar to the following:
[———- ] 50%
I am noticing on the TFT display, that the screen scrolls each time the progress bar updates rather than holding its position and showing a bar completing from left to right. Something like the following:
[- ]
[– ]
[— ]
[—- ]
[—– ]
[—— ]
[——- ]
[——– ]
[——— ]
[———- ]
50%Not sure if this a a Gphoto2 issue or if it is something I can control on the TFT driver setup. My guess is this has something to do with how carriage returns are treated.
FYI, if I SSH into the Pi using Putty, the progress bar displays as it should.
Thanks in advance for any help!
Hi!
May 27, 2015 at 3:52 am #4050Mark WilliamsKeymasterStrange, I’ve never seen this before. I would definitely say a software issue.. and you are right, something to do with the new line. Maybe a terminal setting?
When you are using PiScreen, I assume you have a keyboard directly connected? And is it within a terminal that is running inside of X windows?
If you use HMDI, do you get the same issue on the HMDI output?
I would offer to try and replicate the problem myself, however I know nothing about Gphoto2.
Mark --OzzMaker.com --
May 27, 2015 at 8:52 am #4059heatventParticipantI am in the text console…no X. It may be that the displayed line is wider than the screen so the terminal is word wrapping perhaps. Not sure, otherwise things work fine, just the scrolling progress bar issue.
Hi!
May 29, 2015 at 2:00 am #4080heatventParticipantSo I changed the console font size using these instructions:
That fixed the issue which apparently related to text wrapping.
Not sure if this was the only/best way to change the font. Mark, in your tut on setting up the console on PiScreen you have the following as step 2:
2. Update cmdline.txt
pi@raspberrypi ~ $ sudo nano /boot/cmdline.txt
Add the text below to the end of the first line. Not on a new line as this will not work.
Rotate will rotate the console on PiScreen. Rotate can be 0, 1, 2 or 3.fbcon=map:10 fbcon=rotate:2 fbcon=font:ProFont6x11
I am wondering what is the purpose of the fbcon=font:ProFont6x11. Would I be able to select a different default font by changing this?
Thanks!
Hi!
May 29, 2015 at 11:36 am #4084Mark WilliamsKeymasterIn theory, you can change the font… but only if it is compiled into the driver.
And unfortunately, the diver used by PiScreen (FBTFT) has only one font installed ProFont6x11.Mark --OzzMaker.com --
May 30, 2015 at 12:22 am #4092heatventParticipantMark, that’s strange. In the link I posted it shows how to change the system font. I chose a font called Terminus 6×12. So I would think this is the same width as the ProFont6x11. Is there a way for me to check which font is being used/displayed on the TFT? A 6 pixel font is what I need which allows for 80 characters (gphoto2’s output is 79 characters).
Thanks
Hi!
May 30, 2015 at 2:16 am #4093Mark WilliamsKeymasterhttps://www.kernel.org/doc/Documentation/fb/fbcon.txt shows the possible fonts for fbcon.
Which lists these fonts
VGA8x16, 7×14, 10×18, VGA8x8, MINI4x6, RomanLarge, SUN8x16, SUN12x22, ProFont6x11, Acorn8x8, PEARL8x8.When you set it to Terminus.. did it actually change the font on the console within PiSCreen?
Mark --OzzMaker.com --
May 30, 2015 at 2:32 am #4094heatventParticipantIt does change although the bootup goes through various entries under the default font and then switches to the Terminus font maybe a third of the way through the boot process. I would assume this is when the settings are loaded. Not sure what it is defaulting to upon initial setup but the font is larger than when the Terminus 6×12 font loads, at which time the font gets considerably smaller. If I had to guess, the initial default font is probably 8 wide.
Hi!
- AuthorPosts
- You must be logged in to reply to this topic.