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

mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
earth10
Hi, I’m just starting to build a side-project with Elixir and Phoenix and doing some basic test with Elixir alone. What strikes me is th...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
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
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

Other popular topics Top

lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 41539 114
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
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
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement