AndrewFromMelbourne / raspi2raspi

Program to copy from one Raspberry Pi display to another Raspberry Pi display
MIT License
34 stars 15 forks source link

Feature Request: service start on boot only if display is on #2

Open T3CHKOMMIE opened 7 years ago

T3CHKOMMIE commented 7 years ago

hey andrew!

I love what you have done with raspi2raspi. its an awesome way to get the displays mirrored.

I was wondering if I could suggest another feature, or maybe you can point me to the source code where I could implement such a thing for you.

Id like to get full 1080p through my HDMI if my RPI display is off. it appears that on boot, the service still starts and replicates nothing to the HDMI out since my RPI desplay was off.

is there a way we can get the service to check for the smaller screen before starting? maybelooking to see if source 0 is up before replicating to dest 5?

like, if display width = 800 and display height = 480 then start, else dont send out HDMI and just let the raspian OS mount and drive the IO?

what might also be nice is to have a "mirror" mode button you could turn on and off the service. Those business laptops usually have some sort of function key that lets to toggle output from mirror to second display or blank. Its usually for projector output.

AndrewFromMelbourne commented 7 years ago

Hi, I will try and get some time to have a look.

Andrew

T3CHKOMMIE commented 7 years ago

I added sh script that is in the middle of service and daemon, it does a fbset -s and checks resolution to make the decision.

Works well but feels like a hack. Let me know if you wanna see the code.

Jules

On Jun 9, 2017 17:24, "Andrew Duncan" notifications@github.com wrote:

Hi, I will try and get some time to have a look.

Andrew

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AndrewFromMelbourne/raspi2raspi/issues/2#issuecomment-307503525, or mute the thread https://github.com/notifications/unsubscribe-auth/ABU8dOayu1tKnfzQZkHRzqOqSH3B00tAks5sCbgZgaJpZM4N1tu4 .

thediveo commented 7 years ago

What does "the RPi display is off" mean? (Assuming that the RPi display here is the official 7" Touch LCD) Do you start your RPi with the 7" Touch LCD powered off?

T3CHKOMMIE commented 7 years ago

I've got an inline toggle switch on the 5v line between pi GPIO and 5v in pin on display. When off, the pi boots with HDMI and I use my tablet with the external monitor only. I also do this to save some battery of I'm just using the pi has a headless ssh client.

I'd like to do it with soft switch, but I don't think the pi hardware will do that in on the fly?

On Jun 11, 2017 02:42, "TheDiveO" notifications@github.com wrote:

What does "the RPi display is off" mean? (Assuming that the RPi display here is the official 7" Touch LCD) Do you start your RPi with the 7" Touch LCD powered off?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AndrewFromMelbourne/raspi2raspi/issues/2#issuecomment-307610231, or mute the thread https://github.com/notifications/unsubscribe-auth/ABU8dGW1kok4xZpN6jt9X_M_JppX-2gHks5sC4xvgaJpZM4N1tu4 .