• Official touchscreen settings query

    From Mike W@3:770/3 to All on Monday, August 15, 2022 04:13:47
    Hi,
    I'm trying to set-up a Raspberry Pi with the Official 7" TouchScreen to run an LCD set-up on reboot.
    I need to rotate the screen, easily done in the config.txt and the doings are documented but I also need to scale the screen so that the application fits the screen. This is my problem and I cannot determine how to accomplish it.

    The command to scale the display from the console is
    PI@RPi :~ S xrandr --output DSI-1 --scale 2x2
    but I need to somehow run this at reboot.

    Is there a command to do the same in the /boot/config.txt file ?
    thanks, Mike

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Henri Derksen@2:280/1208 to Mike W on Thursday, August 18, 2022 03:55:00
    Hello Mike,

    I'm trying to set-up a Raspberry Pi with the Official 7" TouchScreen to
    run an LCD set-up on reboot.
    I need to rotate the screen, easily done in the config.txt and the
    doings are documented but I also need to scale the screen so that the application fits the screen. This is my problem and I cannot determine
    how to accomplish it.

    The command to scale the display from the console is
    PI@RPi :~ S xrandr --output DSI-1 --scale 2x2
    but I need to somehow run this at reboot.

    Is there a command to do the same in the /boot/config.txt file ?
    thanks, Mike

    See below what I found in several years:

    Rotate screen:
    Modify: config.txt
    <http://elinux.org/R-Pi_configuration_file>
    <http://elinux.org/RPiconfig>
    Add: display_rotate=1
    for 90 degrees
    or add: display_rotate=3
    for 270 degrees

    For TouchScreen getting working: <https://fmirkes.github.io/articles/20190827.html>
    C-Library: 'evdev-right-click-emulation'
    Install and follow their instructions.
    Then the right mouse click also works.

    Other solution: <https://youtu.be/BDmuI-x02BQ>

    You can organize AutoStart here:
    sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
    Add what you wanted to start automatic after every boot.
    In my case I added:
    @/usr/bin/opencpn
    For AIS+ECDIS viewing charts and ships when sailing.

    Good luck with this.

    Henri.

    ---
    * Origin: Connectivity is the Future; 77:174:89:46 (2:280/1208)