Showing posts with label raspberry pi display. Show all posts
Showing posts with label raspberry pi display. Show all posts

Monday, May 4, 2026

Raspberry Pi display 7" install

The display orientation needs to be rotated for the display port attached display on the pi os.

This is done thru a preference setting with the pi os.


Rotate screen without a desktop

To set the screen orientation on a device that lacks a desktop environment, edit the /boot/firmware/cmdline.txt configuration file to pass an orientation to the system. Add the following line to cmdline.txt:

video=DSI-1:800x480@60,rotate=<rotation-value>

Replace the <rotation-value> placeholder with one of the following values, which correspond to the degree of rotation relative to the default on your display:

  • 0

  • 90

  • 180

  • 270

For example, a rotation value of 90 rotates the display 90 degrees to the right. 180 rotates the display 180 degrees, or upside-down.

Note
It is not possible to rotate the DSI display separately from the HDMI display with cmdline.txt. When you use DSI and HDMI simultaneously, they share the same rotation value.

Rotate touch input

Warning
Rotating touch input via device tree can cause conflicts with your input library. Whenever possible, configure touch event rotation in your input library or desktop.

Rotation of touch input is independent of the orientation of the display itself. To change this you need to manually add a dtoverlay instruction in /boot/firmware/config.txt. Add the following line at the end of config.txt:

dtoverlay=vc4-kms-dsi-7inch,invx,invy

Then, disable automatic display detection by removing the following line from config.txt, if it exists:

display_auto_detect=1

Touch Display device tree option reference

The vc4-kms-dsi-7inch overlay supports the following options:

DT parameterAction

sizex

Sets X resolution (default 800)

sizey

Sets Y resolution (default 480)

invx

Invert X coordinates

invy

Invert Y coordinates

swapxy

Swap X and Y coordinates

disable_touch

Disables the touch overlay totally

To specify these options, add them, separated by commas, to your dtoverlay line in /boot/firmware/config.txt. Boolean values default to true when present, but you can set them to false using the suffix "=0". Integer values require a value, e.g. sizey=240. For instance, to set the X resolution to 400 pixels and invert both X and Y coordinates, use the following line:

dtoverlay=vc4-kms-dsi-7inch,sizex=400,invx,invy

Installation on Compute Module based devices.

All Raspberry Pi SBCs auto-detect the official Touch Displays as the circuitry connected to the DSI connector on the Raspberry Pi board is fixed; this autodetection ensures the correct Device Tree entries are passed to the kernel. However, Compute Modules are intended for industrial applications where the integrator can use any and all GPIOs and interfaces for whatever purposes they require. Autodetection is therefore not feasible, and hence is disabled on Compute Module devices. This means that the Device Tree fragments required to set up the display need to be loaded via some other mechanism, which can be either with a dtoverlay entry in config.txt as described above, via a custom base DT file, or if present, a HAT EEPROM.



--30-- 

Wednesday, July 3, 2024

raspberry pi 7 inch display notes (pimoroni version)

7 inch display notes

this cleaned up the 3" display mess

sudo apt-get update
sudo apt-get install --reinstall libraspberrypi0 libraspberrypi-{bin,dev,doc} raspberrypi-bootloader
sudo reboot

install (or use) raspi-config to set console login
apt-get raspi-config installs if missing.

--30--

Saturday, June 23, 2018

Add On Screen Keyboard to Raspberry Pi 7' or other screen


if a touch screen rpi is large enough to use an on screen keyboard, this is how to install and enable it.

https://www.raspberrypi.org/forums/viewtopic.php?t=14719

The discussion above mentions the matchbox keyboard, and doesn't mention installing it.

As of the April 2018 raspbian, the matchbox keyboard is not included in the installed goods.  And for good reason, since it is only useful for touch screens.  It could be used with a mouse only system, but would of course be a bit painful.

to install it:
sudo apt-get -y install matchbox-keyboard

to execute it:
sudo matchbox-keyboard

To add it to a desktop

create a file on the Desktop called keyboard.sh

write in the file
#!/bin/bash
matchbox-keyboard

Then open a terminal and
write :
cd Desktop
chmod +x keyboard.sh

Now you can double click the file and your keyboard will appear.

-30-

Thursday, January 4, 2018

raspberry pi display 7" official info



https://forums.pimoroni.com/t/official-7-raspberry-pi-touch-screen-faq/959

Note: An update has been pushed to Raspbian to flip the screen ( rotate it by 180 degrees ) for a better desktop viewing angle. This makes it upside-down in our stand and the official Pi stand, so you’ll need to change a setting to flip it back.
To do this, open /boot/config.txt in your favourite editor and add the line:
lcd_rotate=2
This will rotate both the LCD and the touch coordinates back to the right rotation for our display stand.
Don’t use the documented display_rotate, it performs a performance expensive rotation of the screen and does not rotate the touch input.