udoschneider

udoschneider

Missing console on RasPi3 7" Touchscreen?

Before I start debugging, I have a quick question: Is the current RPi3 system (v1.28.1) supposed to display a console on the RPi 7" Touchscreen? Raspbian uses the screen without any problem, so the screen is fine.

I flashed a new barebones Nerves (v1.10) app, but the screen remains black. It seems like not even the backlight turns on. However, the screen itself is detected by Linux. I can even set the brightness in /sys/ without any effect, though.

Do you have any pointers on how to address this issue?

Most Liked

fhunleth

fhunleth

Co-author of Nerves

It’s the Linux kernel update. From the [nerves_system_rpi3/CHANGELOG.md at main · nerves-project/nerves_system_rpi3 · GitHub]:

  • Switch from the Raspberry Pi’s deprecated MMAL media support to DRM and libcamera. This is a big change if you use the display or camera that has been a long time coming. Please plan some time to make the upgrade.

In theory, you could backport the OTP 27 update to the nerves_system_rpi3 v1.27.1. It’s not that complicated, but not worth the time.

Could you create an issue to track the console for the touchscreen?

I took a quick look. I only use the RPi3 headless, but if I were to take a first guess, I’d modify the config.txt (just manually do it by mounting the boot partition of the MicroSD card on your build machine) and add this:

# Automatically load overlays for detected DSI displays
display_auto_detect=1

and also copy vc4-kms-dsi-7inch.dtbo into the overlays directory. It’s probably going to take a couple iterations and starting a GitHub issue seems like a better place to iterate. If that doesn’t work, try copying all of the dtbo files into the overlays directory. If that doesn’t work, then I’d run Raspberry Pi OS and run lsmod to see what kernel drivers are loaded and then run lsmod on Nerves and compare. It won’t be the same, but I’d expect a difference in vc4 drivers.

Sorry to give so many instructions. I think a lot of the Nerves core team is traveling or prepping for travel right now with out Raspberry Pi 3’s on hand. It definitely looks like something was missed on the big MMAL->DRM update for RPi3, though.

udoschneider

udoschneider

GH Issue for reference:
https://github.com/nerves-project/nerves_system_rpi3/issues/336

udoschneider

udoschneider

Got it!

The display stops working between commits 1712c7c6ea4ed0ece8a560a6daf7087d5b86f70c "Only trim serial number for hostname" and e0c89818e4192b469a502ee7e9cb480756ffef16 "Update to Linux 6.6, DRM, and libcamera".

The most obvious culprit is a linux defconfig change with the working commit having CONFIG_FRAMEBUFFER_CONSOLE=y set and the later commit having this option removed.

I’ll build a new custom system based on 1.8.1 with this option set tomorrow to verify.

I’m still wondering, though, if this change was intentional. From my understanding, this should also apply to HDMI output.

Where Next?

Popular in Questions Top

siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

Other popular topics Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29377 241
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 52341 488
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New

We're in Beta

About us Mission Statement