Hot answers tagged

4

If you have a virgin Raspbian image that was never booted before you will find a script that is executed on first boot up. Look at a fresh flashed CD Card with mounted boot partition for example at /mnt/p1: laptop ~$ sudo cat /mnt/p1/cmdline.txt dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=c1dc39e5-02 rootfstype=ext4 elevator=...


4

You shouldn't need to configure anything. Because you said you have a HDMI to DVI adapter, I am assuming your monitor is DVI. So just plug the pi's HDMI into the monitor (using the adapter) before turning the pi on and then turn on the monitor and then the pi and it should work. If it doesn't you may need to force the HDMI connection. Put the SD card in ...


3

I had the exact same problem. Solutions are: Turn on the screen first. I give it 4 seconds. Slower SD cards won't have this problem, since the Pi waits longer before checking for a monitor. Add/uncomment hdmi_force_hotplug=1 in /boot/config.txt. Turn off OpenGL. sudo raspi-config --> Advanced Options --> GL Driver --> G1 Legacy. Get a HDMI screen.


3

You can always use ssh if it is enabled on the RasPi, no matter if the RasPi is connected to a TV or not. How to enable ssh look at SSH (Secure Shell) and SSH using Linux or Mac OS. If you want to have a full graphical user interface with windows you can use VNC. How to do it look at VNC (Virtual Network Computing).


2

The above answer (goldilocks) is correct. I just wanted to add the steps without having to navigate to another site. In the Pi terminal: wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/adafruit-pitft.sh chmod +x adafruit-pitft.sh sudo ./adafruit-pitft.sh Choose your correct screen size Choose rotation (this can be ...


2

Sorry about digging up an old thread, but I came across it while looking for ideas on setting up my own ILI9488 on a Pi, and I've got a solid hunch on this problem. I have not tried this, but have seen this issue with other display controllers (ILI9341). There is an BGR/RGB parameter which sets the colour order. It looks like you have a blue/red swap issue (...


2

To work with any X server (I'm using the stretch version), Edit the /usr/bin/startx file and change the defaultserverargs line to: defaultserverargs="-nocursor"


2

For Raspberry PI 4 B and Ubuntu 19.10, if you have black borders above and below: vi /boot/firmware/usercfg.txt Add the following line: disable_overscan=1 Reboot.


2

The Pi Zero-W has a mini HDMI port. HDMI is somewhat intercompatible with DVI. Buy the appropriate adapter and/or cable and connect the Pi to the DVI input on your monitor. You will need either a Mini-HDMI to HDMI adapter (which you might already have) and an HDMI to DVI cable, or a Mini HDMI to DVI cable.


2

XPT2046 (not XTP) is not a LCD display designation, it's just resistive touch screen controller chip, which is used in several different LCD modules. That's why you can't find any distro for it. You should find some other designation on it, e.g. ILI9341 or something similar. Or please post images of both sides of your LCD module here. UPDATE It looks like ...


2

Well, now the Raspberry Pi 4 model B has come out with two Micro HDMI ports, so I think that gives the best solution to the problem? If you don't want a Pi 4, it seems that buying two Pis may still be the next best option. But I would use x2x instead of Synergy to connect them, because it is free software. For additional displays, I noticed that there are ...


2

Almost seven years after this question was asked, Raspberry Pi 4 includes support for dual displays. From Raspberry Pi 4 product page: with Raspberry Pi 4, you can run two monitors at once — and in 4K, too! From official specs page: 2 × micro-HDMI ports (up to 4kp60 supported)


2

I have written a plugin which displays the hostname, which could be adapted. http://binnie.id.au/Downloads/hostname.tgz You don't actually need to know the IP address hostname.local works in most circumstances. See https://raspberrypi.stackexchange.com/a/92797/8697 hostname -I will return the IP address as a string. If you replace the 2 lines in the ...


2

There are a few things I would watch out for: You want something that uses HDMI for video and USB for touch data. This will ensure that you can plug the display directly into the Pi without needing any sort of adapters. The harder part is making sure that the software is compatible with the Pi. See if the spec sheet or manufacturer's website says anything ...


2

It turns out I was using the wrong Library. The device I have is a SH1106, not a SSD1306. When using the proper library (Like this one) It works fine.


2

I have reached a partial solution for each of my original points. Mouse pointer jittering/bouncing/jumping/flickering: No known solution, but some /boot/config.txt flags make it more noticeable. More RAM used: Well too bad, turn on swap if necessary. Entire screen freezing: turns out it was related to low voltage, but only occurred when GL was turned on. ...


2

in the bashrc file i was sourcing multiple other files. and it turned out to be an xkeymap call that caused the message. Turns out the x in xkeymap is for... -x You can test whether a console login is via SSH or not like this if [[ $(who -m) =~ \([-a-zA-Z0-9\.]+\)$ ]] ; then echo "SSH session" else echo "not SSH session" fi (note - who -m ...


1

Framebuffer color depth can be changed by fbset fbset -fb /dev/fb0 -depth 16 ... Writing the desired framebuffer configuration in /etc/fb.modes could help making the change permanent, but I never tried that personally.


1

Use screen configuration utility from preferences menu.


1

Question ST77355 based LCD working with raspberry pi? Not able to find any documentation How to connect the pins. Answer Well, most ST7735 LCD are for Arduino and STM32. It is just SPI, so you can use Rpi to talk to it, but you might need to build your own kernel module - LCD TFT screen 2.8" ILI9341 SPI connect Errata - ...


1

That looks similar to this display breakout from Adafruit, and uses a driver chip with almost the same model number. I notice doing a quick search that there are a lot of such things using an ST7735S driver; the Adafruit one is ST7735R, and I did find one on AliExpress with ST77355. Unfortunately that one is in Polish, but spotting things like 5V or 3.3V ...


1

Please download the latest version of the driver, I tried different versions, and finally only the latest official driver version works (http://kedei.net/raspberry/raspberry.html). I uploaded it to Droplr, you can download it from here: https://d.pr/f/kh5JbR


1

AFAIK there is no wiringSerial library; everything is included in one of the standard libraries. I use the following in all my Makefiles LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm PS It is recommended you use /dev/serial0 serialPuts(fd,0xff); makes no sense "0xff" is NOT a "nul-terminated string" but it is unclear what you are trying to send (or ...


1

It appears the problem lies somewhere between the setup of X on the Pi and adding a new user to the Pi. The new user does not seem to have full access to the X server so can't launch GUI applications from the command line but can use su to login as the pi user and run the desired applications. Not exactly an answer but more of a workaround, I'm afraid. If ...


1

@MarkSmith made a good suggestion. To help your troubleshooting, ask cron to redirect its error messages (stderr) to a file so that you can see it: 0 8 * * * echo "on 0" | /usr/bin/cec-client -s >> /home/pi/cronjoblog 2>&1 Assuming that you are logged in as user pi, this will put any error message generated in the file cronjoblog in your ...


1

The rapsberry pi is remotely connectable from any device. Unfortunately, due to the way bluetooth works, you can not have very large streams of data being passed over it which is a live feed of what you raspberry pi is outputting. The best way to connect to a pi and get a similar experience with GUI is to use VNC server on the Pi and connect to the Pi with ...


1

If you don't have monitor available then you can try to configure your Pi Zero W as Ethernet gadget and connect it to you PC via USB without setting up WiFi. I was doing it myself a couple of years ago and it was relatively easy to get response via SSH. If you have Windows machine then you can try this great tutorial. It's written for Pi Zero, but with ...


1

You can get information about xdotool with: rpi ~$ apt show xdotool Package: xdotool Version: 1:3.20160805.1-3 Priority: extra Section: x11 Maintainer: Daniel Kahn Gillmor <dkg@fifthhorseman.net> Installed-Size: 104 kB Depends: libc6 (>= 2.15), libx11-6, libxdo3 (>= 1:3.20150503.1) Homepage: https://www.semicomplete.com/blog/projects/xdotool/ ...


1

I was able to solve the issue by adding #Set DPI overlay mode dtoverlay=dpi18 Now both versions of the Pi work the same.


Only top voted, non community-wiki answers of a minimum length are eligible