UCTRONICS / UCTRONICS_LCD35_RPI

This driver is used for UCTRONICS LCD35 with SPI interface
41 stars 16 forks source link

Switch back to HDMI? #4

Open nyxschaefer opened 6 years ago

nyxschaefer commented 6 years ago

I want to switch back over to HDMI how do i do this?

UCTRONICS commented 6 years ago

@gabes989 Just run sudo ./UCTRONICS_LCD_hdmi

nyxschaefer commented 6 years ago

That didn’t work

W5DMH commented 6 years ago

I thought that it didn't work either, but it was just really slow, like 3 minutes to execute and then it rebooted into hdmi.

nyxschaefer commented 6 years ago

It’s says “Sudo: ./UCTRONICDS_LCD_hdmi: not found”

W5DMH commented 6 years ago

You have a typo there, it should be : sudo ./UCTRONICS_LCD_hdmi

Are you running it while you are in the UCTRONICS folder?

nyxschaefer commented 6 years ago

The typo was was a mistake when I was commenting, what do you mean by “in the folder”

W5DMH commented 6 years ago

On my Pi the UCTRONICS files are in : /home/pi/UCTRONICS_LCD35_RPI/

you should go to that folder before executing the hdmi file :

cd /home/pi/UCTRONICS_LCD35_RPI/

then do : sudo ./UCTRONICS_LCD_hdmi

nescro147 commented 6 years ago

Is there a way to auto switch between the two upon startup if it detects an HDMI screen?

adipose commented 5 years ago

I ran this command successfully. But it still used the LCD on reboot. I tried 4 times, no dice.

adipose commented 5 years ago

I see--the script must be run from the UCTRONICS_LCD35_RPI folder. If you run it by absolute path, it isn't clever enough to run properly. It reboots so fast, though, you don't see that it's failing.

I suggest either preventing it from running by absolute path, or fixing the script to find it's home dir.