nix-community / hardware-mnt-reform

NixOS overrides for the MNT Reform laptop [maintainer=@jollheef]
https://mntre.com
17 stars 2 forks source link

HMDI output? #9

Open dmorn opened 2 years ago

dmorn commented 2 years ago

It looks like connecting an external monitor using HDMI does not produce any effect on the machine: dmesg & journalctl are silent, sway does not detect any external monitor. Is it the same for you as well?

jollheef commented 2 years ago

Hello,

I haven't tried it before. Yes, it's the same.

From FAQ (for the original Debian-based image):

A: You can use reform-display-config as the root user to switch between single and dual display configs. Note that single currently gives a higher refresh rate for the internal display. In dual display mode, the internal display is currently run with ~42Hz.

In the MNT Reform repositories, they have two device tree files. One is for internal display only and another is with HDMI support. I've added the latter one (ae0d10a83b09fab04476e4cf8540b584cb381515) to the kernel build. So after the update, you can replace one with another:

sed -i '0,/imx8mq-mnt-reform2.dtb/{s/imx8mq-mnt-reform2.dtb/imx8mq-mnt-reform2-hdmi.dtb/}' /boot/extlinux/extlinux.conf

It boots correctly and I see HDMI-related stuff in dmesg. However, sway still does not detect external monitors.

jollheef commented 2 years ago

I've tested it again with the latest kernel (v5.18.3) and imx8mq-mnt-reform2-hdmi.dtb, and it seems it's not a sway issue.

kmscube -D /dev/dri/by-path/platform-32e00000.display-controlled-card
no connected connector!
failed to initialize legacy DRM