udoschneider

udoschneider

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?

First 10 of 12 Posts Switch mode

udoschneider

udoschneider OP

I’m giving up for now. I tried a whole lot of different config.txt/cmdline.txt settings without any success. The only thing remaining might be the Linux kernel version, which might explain why it did work out of the box previously (2 years ago). I’m not going down this route for now, however.

lawik

lawik

Nerves Core Team

I haven’t tried the official 7" in ages.
I hope @fhunleth can weigh in with what the default expectation should be.

I believe you would usually get iex or something when you plug in HDMI.

udoschneider

udoschneider OP

I am trying HDMI next.

The strange thing is that according to dmesg, the display itself, framebuffer (at the correct size), and even touchscreen are detected … it’s just black (regardless of the brightness and bl_power settings).

LostKobrakai

LostKobrakai

Connecting to a Nerves Target — nerves v1.14.3 these should be the relevant docs around configuring where the iex terminal will be accessible at.

jjcarstens

jjcarstens

Nerves Core Team

@udoschneider have you tried any 1.27.x or 1.26.x rpi3 system versions? Helping narrow down where the behavior change is could be helpful if able. It will be a bit before I’m around a 7” screen again to play around with this, but I believe the default was to show the console

udoschneider

udoschneider OP

That was it! Thank you very much!!

Forcing nerves to use a 1.27.1 system shows the console on the touchscreen as expected. I noticed though, that this also requires a downgrade to OTP26 (26.2.5.3 in my case).

  • PASS: erlang 26.2.5.3, elixir 1.17.3-otp-26 and nerves_system_rpi3 1.27.1
  • FAIL: erlang 27.0.1, elixir 1.17.2-otp-27 and nerves_system_rpi3 1.28.1 (Erlang/Elixir version from the nerves install docs)
  • FAIL: erlang 27.1.1, elixir 1.17.3-otp-27 and nerves_system_rpi3 1.28.1 (Erlang/Elixir version updated)

I’m not sure if it’s the system update or the OTP update. Unfortunately, as far as I can see, the systems are bound to the OTP version. So, simply changing one without changing the other (which might make deciding which is the “culprit” easier) is not possible.

udoschneider

udoschneider OP

1.28.0 fails as well. Backtracking commits from 1.28.0 to 1.27.1 now. My money is on “Update to Linux 6.6, DRM, and libcamera” … :slight_smile:

udoschneider

udoschneider OP

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.

udoschneider

udoschneider OP

It sounded too good to be true. This option is set by default in the new kernel, so I’m out of ideas now about a possible root cause.

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.

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
roeland
Kia ora, We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
rahultumpala
Hello, I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New

We're in Beta

About us Mission Statement