After installing the LCD display drivers, I cannot start GUI on external monitor connected via HDMI.
A solution to this problem will probably be a solution to a more general issue I have.
So, is this an expected behavior? I think the install script overrides some system files and next time when I boot my Raspberry PI 2, the monitor receives signal from rpi, but I only have TTY access, not being able to start the GUI (startx
gives an error that it doesn't find the lcd module).
Here is what the driver install script does:
sudo cp -rf ./etc/modules-35 /etc/modules
sudo mkdir /etc/X11/xorg.conf.d
sudo cp -rf ./etc/X11/xorg.conf.d/99-calibration.conf-35 /etc/X11/xorg.conf.d/99-calibration.conf
sudo cp -rf ./usr/share/X11/xorg.conf.d/99-fbturbo.conf /usr/share/X11/xorg.conf.d/
sudo cp ./kernel.img /boot/kernel.img
sudo cp ./kernel7.img /boot/
sudo cp ./cmdline.txt /boot/
sudo cp ./inittab /etc/
sudo cp ./boot/config-35.txt /boot/config.txt
sudo cp -rf ./modules /lib/
sudo reboot
I was struggling to create a script to rollback these changes (create backups in this install script, but still no success).
xorg.conf
stuff in addition to the drivers? This may explain why X won't use the HDMI display anymore with the LCD attached. If the driver is loaded, it will use the functioning LCD. If the LCD driver isn't loaded, it will still try to use only that and, since it can't, it will then fail. If the LCD isn't attached, it may still not work since the screen X is configured to use is not there. Have a look at/var/log/Xorg.0.log
for details.rmmod
the modules necessary for the LCD, then trystartx
from the HDMI again. If that doesn't work, try it with the stock Raspbian kernel instead (looks like you will have to get that from an image, since the install may have erased them -- not very nice!).m
ov
ed/etc/X11/xorg.conf.d/*
into my tmp folder. Still the display is working./usr/share/X11/xorg.conf.d/99-fbturbo.conf
and my HDMI display works fine! :) Thanks a lot! Post an answer. You deserve the points. :)