Skip to content
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

Raspberry Pi 4B secondary monitor not working #125714

Closed
carlosneves0 opened this issue Jun 4, 2021 · 5 comments
Closed

Raspberry Pi 4B secondary monitor not working #125714

carlosneves0 opened this issue Jun 4, 2021 · 5 comments

Comments

@carlosneves0
Copy link

Issue description

xserver + dmesg + udev -> no one logs anything as I plug/unplug the secondary HDMI cable; but the secondary monitor shows some gradient image.

Technical details

  • system: "aarch64-linux"
  • host os: Linux 5.10.17, NixOS, 21.11pre292520.540dccb2aea (Porcupine)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.11
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
@nagy
Copy link
Member

nagy commented Jun 5, 2021

Maybe this can help you #63720 (comment)

@carlosneves0
Copy link
Author

Thanks for the tip! After searching, I came up with this configuration:

boot.loader = {
    grub.enable = false;
    generic-extlinux-compatible.enable = true;
    raspberryPi = {
      enable = true;
      uboot.enable = true;
      version = 4;
      firmwareConfig = ''
        max_framebuffers=2
      '';
    };
  };
# nixos-rebuild switch && reboot

It did not work.


This worked:

# mount /dev/disk/by-label/FIRMWARE /mnt
# printf '\nmax_framebuffers=2' >> /mnt/config.txt
# umount /mnt && reboot

Is there a way to make the declarative config work?

@stale
Copy link

stale bot commented May 2, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label May 2, 2022
@patka-123
Copy link
Contributor

Hello @carlosneves0 👋

It seems to me like your issue is solved. If so, would you be able to close this issue?

(I'm going through issues marked as stale to see what can be resolved. If this issue still exists then don't mind me)

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 24, 2023
@carlosneves0
Copy link
Author

I can't validate whether it has been solved for good as I went with alpine for the raspberry-pi.

If I come back to try nixos again I'll check, and if I find any issues I'll come back here.

Let's close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants