mmhorda
Posts: 5
Joined: Sat Apr 08, 2017 2:25 pm

Re: [How To] Auto detect hdmi while having dsi display conne

Sat Apr 08, 2017 2:26 pm

Did anyone find a way to turn off LCD display while connectedvia HDMI with PINN?
Thanks

User avatar
procount
Posts: 1854
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: [How To] Auto detect hdmi while having dsi display conne

Sat Apr 08, 2017 8:20 pm

mmhorda wrote:Did anyone find a way to turn off LCD display while connected via HDMI with PINN?
Can you elaborate on exactly what you mean?

AFAIK, the DSI is configured by the GPU on boot only. After the Pi has booted up, it is not (currently) possible to switch between the DSI and HDMI. Without any specific display configuration, the Pi will use the DSI as the primary display if both DSI and HDMI are attached. This thread is about using PINN to invert that logic, so that it will use the HDMI as the primary display if it is fitted, and the DSI if the HDMI is not attached. It does this by switching the config.txt files to force a particular display on PINN's 2nd boot.

You can control the DSI backlight and brightness as per this thread: -> viewtopic.php?f=108&t=120296
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

mmhorda
Posts: 5
Joined: Sat Apr 08, 2017 2:25 pm

Re: [How To] Auto detect hdmi while having dsi display conne

Sun Apr 09, 2017 7:59 am

Ohh right. I was reading the manual between the lines and thought i knew what i was doing.
I missed the point that I should ignore LCD in PINN config.
I have finally made it work as it is in the manual. Thanks a lot for this and for PINN!
This Manual must be published somewhere in a more open space. I took me a while to find something like that. I've seen a lot of people are interested in this functionality!

By the way OSMC is broken if installed via PINN. to make it work you should install OSMC via PINN and then hook up CD card to a Linux PC and edit or create few files

1. add this to /etc/fstab in root partition - it is important to fix the updates.

Code: Select all

/dev/mmcblk0p6  /boot    vfat     defaults,noatime,noauto,x-systemd.automount    0   0
2. replace or createif missing /boot/cmdline.txt with this in boot partition - it has wrong (/dev/mmcblk0p2) partition by default (which is correct one if OSMC installed not via PINN but wrong if installed via PINN).

Code: Select all

root=/dev/mmcblk0p7 rootfstype=ext4 rootwait quiet osmcdev=rbp2

User avatar
procount
Posts: 1854
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: [How To] Auto detect hdmi while having dsi display conne

Sun Apr 09, 2017 6:31 pm

mmhorda wrote:This Manual must be published somewhere in a more open space
I'm not sure where...Github, sourceforge and Raspberrypi forum are all quite open and the links are in my signature of every post I make.
mmhorda wrote:By the way OSMC is broken
It is not PINN that is the problem as it is broken in NOOBS aswell. In fact it is the partition_setup.sh script that is written by OSMC that has become broken.

UPDATE: I have raised it as an issue with NOOBS and they will pass this info along to the OSMC team, so hopefully it will get fixed soon.
Last edited by procount on Sun Apr 09, 2017 7:09 pm, edited 2 times in total.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

mmhorda
Posts: 5
Joined: Sat Apr 08, 2017 2:25 pm

Re: [How To] Auto detect hdmi while having dsi display conne

Sun Apr 09, 2017 6:57 pm

Yes. I will try to pass it to OSMC community and support

UPDATE: I have passed it to OSMC support forum. Hopefully they will take a look at it asap.


User avatar
procount
Posts: 1854
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: [How To] Auto detect hdmi while having dsi display conne

Mon Apr 10, 2017 6:21 pm

OSMC installation is now fixed.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

Webmets
Posts: 2
Joined: Mon Aug 07, 2017 10:02 am

Re: [How To] Auto detect hdmi while having dsi display connected

Mon Aug 07, 2017 5:21 pm

Thanks for this great guide, works just fine for me :)

brandonm94
Posts: 1
Joined: Sat Dec 09, 2017 6:46 pm

Re: [How To] Auto detect hdmi while having dsi display connected

Sat Dec 09, 2017 6:54 pm

This is my second day using the RaspberryPi. I already feel like I am learning so much. I am running RetroPie, and I would like to add PINN's ability to do HDMI switching to RetroPie. How difficult would this be? Thank you for all of your work.

Owchita
Posts: 1
Joined: Thu May 30, 2019 1:15 pm

Re: [How To] Auto detect hdmi while having dsi display connected

Mon Jul 08, 2019 5:11 pm

There is a problem with this technique.
Some Network Interfaces that have been 'Enabled' by either Raspi-Config or the desktop Configuration tool are set 'Disabled' following a reboot. These are Camera, DPI, I2C, Serial Port, i-Wire.

User avatar
procount
Posts: 1854
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: [How To] Auto detect hdmi while having dsi display connected

Mon Jul 08, 2019 6:46 pm

This technique involves modifying config.txt by copying config.dsi or config.hdmi over the top of it. So if you add various other configurations to config.txt via raspi-config etc. they will potentially be lost the next time you reboot. Therefore it is essential to copy these additional configurations to config.hdmi and config.dsi appropriately. I think this may be detailed in the original instructions.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

karav
Posts: 1
Joined: Tue Nov 19, 2019 10:48 am

Re: [How To] Auto detect hdmi while having dsi display connected

Tue Nov 19, 2019 10:56 am

Hi everyone

Is this solution works for Raspberry Pi 4 ?
flowerdog wrote:
Wed Jun 08, 2016 9:11 pm
Hi guys,

the search is over. Here you will find an easy guide to autodetect hdmi on boot.

After following this guide you can use displays connected to hdmi, while the dsi display is connected.
If hdmi is connected on boot, it will use hdmi, otherwise it uses the integrated dsi display.

I have been searching the web already a whole day and know how painful and annoying it is.

So I share my solution:
I followed the guide on https://github.com/procount/pinn/blob/m ... ME_PINN.md . Scroll down there and you will find some instructions on autodetect hdmi. They are not so clear, so I write it more clearly down here.

I just tried it with rasbian, I don't know, if it works with other os
You need to use PINN and install rasbian with it, edit some files and then it works

In this instructions F:\ is the sd card

First of all:

1. Download PINN-Lite - https://sourceforge.net/projects/pinn/? ... p_redirect
- PINN is an extended NOOBS, which can detect hdmi on boot

2. Format your sd card with Formatter etc.- https://www.sdcard.org/downloads/formatter_4/

3. Copy the files from the PINN Lite zip file onto the formatted sd card

4. Download rasbian and copy it into the os-folder on the sd card e.g. F:\os\Rasbian

5. Mount sd card into raspberry pi and start installation

6. After Rasbarian starts and graphical user interface starts up, turn it off. Put the sd card back into windows computer.

7. Edit "recovery.cmdline" in F:\, add to the end of the line " dsi" , dont fortget the space-character, and save

8. Go to F:\ and create a config.txt and add the line "ignore_lcd=1" and save
- when starting, the output will be forced onto hdmi with this command. PINN menu will only be visible on hdmi source now
- this is important, so the dsi display does not blink, while using hdmi

9. Mount sd card back into raspberry pi and start into rasbian.

10.Open terminal and go to /boot/

11. Create file "config.dsi" in /boot/ - this config will be loaded, when hdmi is not connected
- dsi display loads automatically and does not need any commands, so the config.dsi can be empty
- you can add later, what usually would go into config.txt to configure your dsi display

12. Create file "config.hdmi" in /boot/ - this config will be loaded, when hdmi is connected
- add line "ignore_lcd=1" to config.hdmi, this forces to ignore the dsi display

13. Make sure all files are saved, reboot raspberry pi and READY ! :D

It's working for me without any problems.
Thanks to ProCount PINN!


I am looking for another solution, to turn off the dsi display backlight, while using hdmi, but this solutions works well.
I've done all the steps but the system stops at startup regardless of which display and regardless of the system (LibreElec, Volumio...)

Can anyone help me with this ?

Return to “Official Foundation Display”