-
Notifications
You must be signed in to change notification settings - Fork 2k
Touch display changes #3121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Touch display changes #3121
Conversation
|
@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? |
|
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. 🤷 😕
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which pins?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarified.
|
|
||
| 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 |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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? 🤷♂️
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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" ?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
|
More changes made, some open comments/questions/acceptances still. |
aallan
left a comment
There was a problem hiding this 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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a ribbon cable.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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" ? 🤔
|
This PR doesn't have a directly-associated Bookworm issue, but I'm labelling this as |
No description provided.