Scrolling behavior

Home Forums Forums General discussion Scrolling behavior

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4046
    heatvent
    Participant

    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!

    #4050
    Mark Williams
    Keymaster

    Strange, 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 --

    #4059
    heatvent
    Participant

    I 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!

    #4080
    heatvent
    Participant

    So I changed the console font size using these instructions:

    How To Change The Command Line Font Size

    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!

    #4084
    Mark Williams
    Keymaster

    In 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 --

    #4092
    heatvent
    Participant

    Mark, 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!

    #4093
    Mark Williams
    Keymaster

    https://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 --

    #4094
    heatvent
    Participant

    It 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!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Blip, blop, bloop…