Skip to content

Conversation

@jehlers42
Copy link
Contributor

No description provided.

@jehlers42
Copy link
Contributor Author

@aallan Continued from #3119...

I've expanded on sections and did my best to incorporate most of the troubleshooting and tips into the main page. Didn't modify the troubleshooting page itself yet.

It doesn't feel like every item in the troubleshooting section can have a new home, but I'm also not sure those items are entirely necessary? I'm also not sure the new "X11" section I added is the best way to handle those specific items. I thought about adding them to the Legacy section instead. Thoughts?

@jehlers42 jehlers42 marked this pull request as ready for review September 19, 2023 00:55
@jehlers42
Copy link
Contributor Author

Okay, ready for review on this one. Still not 100% sure on the best way to handle explaining the X11-only features (if we even need to at all).

| Swap X and Y coordinates
|===

=== X11-only features
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should explain why you might be running X11. Either older Pi hardware — although in time Bookworm should be moving to Wayland for all Pi hardware — or an older version of the OS.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if labelling these as "X11-only features" is the angle we want to go for here (but this is obviously a decision for @aallan to make). IIRC these are features which we also want to see in Wayland (in future), but which simply haven't been implemented yet. 🤷 😕

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For stuff that only works in X11 or differently in X11 and not in Wayland, or only in a previous version of the OS, as I mentioned before, I want these hared off into a separate NOTE block. Preferably a short standalone, minimally documented one with just the incantations not masses of explanatory text around it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After throwing it in a note block I didn't like its current location. Moved it to the front of the Legacy section instead. Let me know if that works better.

===== Provide power with Raspberry Pi

=== Physical Installation
To power the Touch Display using a Raspberry Pi, you need to connect two jumper wires between the xref::/../../computers/raspberry-pi.adoc#gpio-and-the-40-pin-header[Raspberry Pi's GPIO] and the GPIO pins on the display's PCB.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which pins?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarified.

@aallan aallan added waiting for revisions Waiting for the OP to make revisions and removed needs discussion labels Sep 19, 2023

There are two options available to provide power to the Touch Display: using the Raspberry Pi's GPIO, or a separate power supply and micro USB cable.

===== Provide power with Raspberry Pi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Provide power with Raspberry Pi" -> "Provide power from the Raspberry Pi" ?
(perhaps it's just me, but "with" sounds strange here)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to "Provide power through the Raspberry Pi"


==== Powering the Touch Display

There are two options available to provide power to the Touch Display: using the Raspberry Pi's GPIO, or a separate power supply and micro USB cable.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC powering the Display from the Pi (via the GPIO pins) is considered the preferred option, so perhaps that should be mentioned here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a sentence saying we recommend that method. Let me know if it looks okay.

== Legacy Support

NOTE: These instructions are for the original Raspberry Pi 1 Model A and B boards only. You can identify an original board as it is the only model with a 26-pin GPIO header, all other models have the now-standard 40-pin connector.
[NOTE]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a big NOTE block, should probably be at the end rather than right at the start of the section.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OTOH, if this was moved to the end of the Legacy section, people might think that the "are for the original Raspberry Pi 1 Model A and B boards only" disclaimer applies too? 🤷‍♂️

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my thinking on it, @lurch. Otherwise it'd likely need a heading to separate it from the old hardware instructions and, well, that sort of negates the idea of a note block.

sudo apt install matchbox-keyboard
----
Add the following to `/etc/X11/xorg.conf` enable right click emulation:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing "to" before "enable".
@aallan Should "right click emulation" be "right-click emulation" ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aallan Should "right click emulation" be "right-click emulation" ?

Yes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay so this brings up something I've noticed where "right-click" hasn't been properly hyphenated in a handful of other pages. With your permission, I can do a mass find-and-replace to take care of those and make it part of this PR since, admittedly, it's been bothering me quite a bit.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jehlers42 https://github.com/raspberrypi/style-guide/blob/master/style-guide.md says right-click, so that's probably the green-light you need 🚦 😃
(although probably "cleaner" to do it as a separate PR, rather than bundling it into this PR)

@jehlers42
Copy link
Contributor Author

More changes made, some open comments/questions/acceptances still.

Copy link
Contributor

@aallan aallan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not there yet.

The Touch Display will function with all models of Raspberry Pi. Although, the earliest Raspberry Pi models, which lack appropriate mounting holes, require additional mounting hardware to fit the stand-offs on the display PCB.

The DSI display is designed to work with all models of Raspberry Pi, however early models that do not have mounting holes (the Raspberry Pi 1 Model A and B) will require additional mounting hardware to fit the HAT-dimensioned stand-offs on the display PCB.
You can mount a Raspberry Pi to the back of the Touch Display using its stand-offs and then connect the appropriate cables between each device, depending on your use case. You can also mount the Touch Display in a separate chassis if you have one available. The connections remain the same, though you may need longer cables depending on the chassis you use.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"appropriate"? There are in-appropriate cables? What cables?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used it in the sense to imply different cables. Data and power cables would be appropriate, in this case. Will reword though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to reword it in the latest commits, but still plan on doing so. There was just...a lot to get through.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps "appropriate" -> "necessary"? 🤷‍♂️

image::images/GPIO_power-500x333.jpg[Image of Raspberry Pi connected to the Touch Display, width="70%"]

Connect one end of the ribbon cable to the `RPI-DISPLAY` port on the Touch Display PCB so the side with the silver or gold pins faces away from the display. Then connect the other end of the ribbon cable to the `DISPLAY` port on the Raspberry Pi. The pins should face inward, towards the Raspberry Pi.
Connect one end of the ribbon cable to the `RPI-DISPLAY` port on the Touch Display PCB. The silver or gold contacts should face away from the display. Then connect the other end of the ribbon cable to the `DISPLAY` port on the Raspberry Pi. The contacts on this end should face inward, towards the Raspberry Pi.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a ribbon cable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current docs refer to it as such:
"how to connect both the data (ribbon cable)"
"take extra care when attaching the ribbon cable to ensure it is the correct way round"

What else would we call it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saw comment from earlier. Will update this article, but should we double-check all our references to ribbon cables since I'm pretty sure the camera docs use that terminology as well.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wikipedia says "FFC is a miniaturized form of ribbon cable, which is also flat and flexible." which probably explains why the terms are sometimes used interchangeably.

=== Touchscreen orientation

`dtoverlay=rpi-ft5406,touchscreen-swapped-x-y=1,touchscreen-inverted-x=1`
You also have the option to change the rotation of the active touchscreen area independently of the display itself by adding a `dtoverlay` instruction in the xref:../computers/config_txt.adoc[`/boot/firmware/config.txt`] file, as in the following example:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small niggle, but does "active touchscreen area" imply that there's also an "inactive touchscreen area" ? 🤔

@lurch lurch added the bookworm 🐛 Issue with Bookworm label Sep 21, 2023
@lurch
Copy link
Contributor

lurch commented Sep 21, 2023

This PR doesn't have a directly-associated Bookworm issue, but I'm labelling this as bookworm as that's the branch that it's modifying.

@aallan aallan merged commit 0fa704b into bookworm Sep 23, 2023
@aallan aallan deleted the display branch September 23, 2023 04:20
@aallan aallan removed the waiting for revisions Waiting for the OP to make revisions label Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Touch Display installation needs better instructions Ambiguity about powering the Touch Display

4 participants