-
Notifications
You must be signed in to change notification settings - Fork 434
Added auto HDMI switching #606
Conversation
|
|
||
|
|
||
| CON2FBMAP_VERSION = 1.0 | ||
| CON2FBMAP_SITE = $(TOPDIR)/../con2fbmap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably makes sense to move the con2fbmap files down into this subdirectory, rather than adding an extra directory at the top-level? (but it's been a long time since I've messed around with Buildroot, so please accept my apologies if that wouldn't work!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put it at the same level as my rebootp package in PINN, keeping it separate from buildroot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough, I'll defer this decision to @maxnet / @XECDesign
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough, I'll defer this decision to @maxnet / @XECDesign
Not mine to make.
Just dropping by here as normal bystander, as someone mentioned my name :-)
Have not been involved with NOOBS in recent years.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just dropping by here as normal bystander, as someone mentioned my name :-)
🙂 👋
Have not been involved with NOOBS in recent years.
Ditto. I was only mentioning your name because you have more recent buildroot experience than me. Apologies if I gave the wrong impression.
|
I've not tested this, but if it works I guess it'd be super-useful for Pi400 owners, where the HDMI0 / HDMI1 distinction isn't labelled 🙂 |
It's up to @XECDesign , but it might be worth making that a separate PR? Personally, I always prefer separate PRs for seperate "things". For those of us with rusty PS1 knowledge, could you tell us what the shell prompt looks like before and after this change? 🐚 |
That's where the idea came from. I built and tested it in NOOBS with DSI touchscreen, HDMI0 and HDMI1 connection combinations. It's already in PINN and working nicely. I haven't tested it with my pinn_init script for configuring the pimoroni hyperpixels, but those drivers need looking at anyway.
I thought about that, and I remembered that thought again, just after I'd squashed the commits ;) But hey, I can separate it out again if necessary. Before this change the shell prompt is just a '#' symbol. Nothing else. |
|
Many thanks! |
This modification allows NOOBS to automatically switch to the correct HDMI port according to which is connected to a monitor.
The precedence is: DSI, HDMI0, HDMI1.
I'm not sure if line recovery/init#42 is absolutely necessary, but I left it in.
(I also included setting PS1 in the root/.profile file, which I think helps anyone who decides to use the shell, but delete if you want)