Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 9 of 9

Thread: Rotate Display

  1. #1
    Junior Member
    Join Date
    Jan 2022
    Posts
    4

    [Solved] Rotate Display

    Hello,
    I have a problem with the rotation of the screen.

    material: Pi3b
    Screen: Waveshare 3.5" TFT screen
    picoreplayer: 8.1.0 standard
    installation tutorial: w w w . pughx2 . com / picore3 . html

    I had no issues installing piCore and was putting the Pi one way.
    I moved my config and I need to flip the display 180░.

    I tested via the webserver in the Tweaks (check yes, backup, reboot) but it doesn't change.
    I also tested by modifying the config.txt (/mnt/mmcblk0p1). it doesn't change anything either.

    Can you help me?

    (thank you google translate because I speak french)
    Last edited by tazoube; 2022-03-07 at 07:41. Reason: Solved

  2. #2
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    3,013
    The rotate setting only works with the official rpi 7" screen.

    Try adding SDL_VIDEO_FBCON_ROTATION variable to your jivelite.sh script with the rotation type.

    For example one of
    Code:
    export SDL_VIDEO_FBCON_ROTATION=UD
    or
    export SDL_VIDEO_FBCON_ROTATION=CW
    or
    export SDL_VIDEO_FBCON_ROTATION=CCW
    
    Valid values are:
    o not set - Not rotating, no shadow.
    o "NONE" - Not rotating, but still using shadow.
    o "CW" - Rotating screen clockwise.
    o "UD" - Rotating screen upside down.
    o "CCW" - Rotating screen counter clockwise.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 2-UE Radio
    Squeezebox client builds donations always appreciated.

  3. #3
    Member
    Join Date
    Feb 2015
    Location
    Canada
    Posts
    58
    If the config has options for "flip horizontal" and "flip vertical" try turning both on. I found I had to do this for my screen on Squeezeamp, since rotate 180 had no effect.

  4. #4
    Junior Member
    Join Date
    Jan 2022
    Posts
    4
    Thank for help.

    it work.

    on the other hand, the touch works in reverse. the visual button at the top left corresponds to the location at the bottom right.

    How can I modify this?

  5. #5
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    3,013
    Quote Originally Posted by tazoube View Post
    Thank for help.

    it work.

    on the other hand, the touch works in reverse. the visual button at the top left corresponds to the location at the bottom right.

    How can I modify this?
    Change

    module linear
    to
    module linear xyswap

    in /usr/local/etc/ts.conf

    then add the line

    usr/local/etc/ts.conf

    to /opt/.filetool.lst

    and run

    pcp bu

    NB: There is NO slash (/) at the beginning of the line in /opt/.filetool.lst it's not a typo.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 2-UE Radio
    Squeezebox client builds donations always appreciated.

  6. #6
    This might be a dumb question. Has anyone figured out a vertical skin and rotation? Is it possible to rotate the official 7" screen 90 instead of 180 degrees? I tried looking this up and couldn't find anything.

  7. #7
    Junior Member
    Join Date
    Jan 2022
    Posts
    4
    Hello,

    Sorry for the late reply but I didn't know how to look first.

    thanks for the help.
    It worked to change the orientation of the touchscreen. But the buttons are still not in their place.

    I searched a bit by modifying: linear module -> linear module xyswap: KO

    linear rot module 1: KO

    linear rot 3 module: KO
    module linear rot 1 xyswap: KO

    can you help me?

  8. #8
    Quote Originally Posted by tazoube View Post
    Hello,

    Sorry for the late reply but I didn't know how to look first.

    thanks for the help.
    It worked to change the orientation of the touchscreen. But the buttons are still not in their place.

    I searched a bit by modifying: linear module -> linear module xyswap: KO

    linear rot module 1: KO

    linear rot 3 module: KO
    module linear rot 1 xyswap: KO

    can you help me?
    Guess i've figured it out...

    1. Add export SDL_VIDEO_FBCON_ROTATION=UD to jivelite.sh (see post #2)
    2. If you've followed post #5: Remove any changes you#ve made in "/usr/local/etc/ts.conf" and "/opt/.filetool.lst" and do a "pcp bu" afterwards
    3. Follow the steps in the tutorial to re-calibrate the touchscreen with one small change:
    3a. Now we use "ts_calibrate -r 2" to rotate screen 180░ -> sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event0 /usr/local/bin/ts_calibrate -r 2
    3b. [Optional] Check calibration: sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event0 /usr/local/bin/ts_test -r 2
    3c. Follow tutorial to the end
    Last edited by Rudi Rastelli; 2022-03-03 at 00:45.

  9. #9
    Junior Member
    Join Date
    Jan 2022
    Posts
    4
    thank you very much, it works

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •