2022 Developer Survey is open! Take survey.

Hot answers tagged

32 votes
Accepted

Adjusting the Brightness of the Official Touchscreen Display

The driver for the screen provides an interface through /sys/. To turn the screen on you can use the command: echo 0 > /sys/class/backlight/rpi_backlight/bl_power and to turn it off: echo 1 > ...
user avatar
  • 11.7k
28 votes

How do I prevent the screen from going blank?

The other solutions here did not work for me (fresh Raspbian, boot to GUI). Instead, this worked: Open up /etc/lightdm/lightdm.conf using your favorite text editor (I prefer nano). Look for the line #...
user avatar
  • 7,008
25 votes
Accepted

Can I run a terminal command from ssh to open the browser on X server?

Presuming you are logged in as the same user that's running the X display, this is fairly easy. First you need to know the display identifier; if there is only one running instance, it is probably :0....
user avatar
  • 55.6k
23 votes

Keep HDMI off on boot

There is a few things you can try: 1) Edit /etc/rc.local and add the following lines above exit 0: # Disable HDMI /usr/bin/tvservice -o this will turn off the display, but only somewhere during the ...
user avatar
  • 468
21 votes
Accepted

How to permanently hide mouse pointer or cursor on Raspberry PI?

I simply added a nocursor option as follows in the file (/etc/lightdm/lightdm.conf) xserver-command = X -nocursor and it worked as it should. No cursor is displayed whatsoever. You can still put your ...
user avatar
  • 1,022
19 votes
Accepted

conflicting dtoverlays

As it turns out several overlays can be loaded by adding multiple dtoverlay variables: In this case: dtoverlay=4dpi-3x dtoverlay=w1-gpio
user avatar
18 votes
Accepted

Using Pi 3 for wireless display/miracast

I have developed lazycast that is designed to work on Raspberry Pi 3. lazycast follows (most of) the wifi display specification (commercially known as Miracast) and uses wifi p2p (commercially known ...
user avatar
  • 196
16 votes
Accepted

Is it possible to connect to a display port?

That cable is most likely a DisplayPort-to-HDMI cable not a HDMI-to-DisplayPort cable (mind the direction). While there are DP ports able to support HMDI signals (DisplayPort Dual-mode) HDMI does not ...
user avatar
  • 15.5k
14 votes

How do I prevent the screen from going blank?

I think @Jivings answer may be better, but I have it in my notes to do this: Install apt-get install x11-xserver-utils Edit /etc/xdg/lxsession/LXDE/autostart Append these lines: @xset s noblank @...
user avatar
  • 318
12 votes

Raspberry Pi DPI only works over short distances. Why?

All cables have a length limit. When you exceed that length limit, the signals in the cable attenuate due to resistance of the cable, get deformed due to capacitance and inductance in the cable, and ...
user avatar
  • 738
11 votes

Adjusting the Brightness of the Official Touchscreen Display

I've made a Python package for this: github.com/linusg/rpi-backlight. Now you don't need to implement this yourself anymore. (GIF is outdated because API was changed quite a bit in v2, sorry... Below ...
user avatar
  • 432
10 votes

How do I prevent the screen from going blank?

To prevent the screen from going blank try adding consoleblank=0 to the end of the first line of /boot/cmdline.txt Source
user avatar
9 votes
Accepted

How do I connect Raspberry Pi to my TV?

Following answer from reddit was helpful: The yellow-white-red ports are for composite video (yellow) and stereo audio (red and white). These plugs typically use RCA connectors. The Pi has an RCA ...
user avatar
  • 513
9 votes
Accepted

Multiple Display Screens

The Raspberry Pi Foundation claims unambiguously that a VGA adapter on the GPIO header "means you can use it as a secondary monitor alongside HDMI" (from here). You should certainly be able to do ...
user avatar
  • 55.6k
9 votes

Can I run a terminal command from ssh to open the browser on X server?

As an addition to Goldilocks' answer, for epiphany you can set the display using the --display option: epiphany --display=:0 http://example.com &
user avatar
  • 323
8 votes

Screen Flashing

In /boot/config.txt, uncomment the line with config_hdmi_boost and change its value to =6. The suggested value of 4 was still too low for a Samsung 205BW monitor connected to a Raspberry Pi 3.
user avatar
8 votes
Accepted

Black frame around 1080p screen

In your /boot/config.txt file try changing disable_overscan=1 and see what that does for the borders. If that does not help, leave disable_overscan=1 and then try changing these values as well. ...
user avatar
7 votes

How to Wake the Raspbery Pi Display Without Disabling The Screensaver

You have to define which display to use first : export DISPLAY=:0 xset s reset Hope this helps
user avatar
7 votes

How do I display an image file (PNG) in a simple window?

Wand has a display module/method. In the terminal $ python -m wand.display wandtests/assets/mona-lisa.jpg In a Python script import wand with Image(blob=file_data) as image: wand.display....
user avatar
  • 1,374
7 votes

Screen Flashing

I'm not sure this will help, but had this similar problem on my Raspberry (old 1 Model B) also yesterday. I had not noticed it before because I only recently started using it with X and a monitor. ...
user avatar
7 votes
Accepted

White screen on touchscreen display

Indeed, it was a problem with the drivers. I switched to use Raspbian and then I installed the drivers, like explained here. Dowloaded the driver Extracted the files (tar xvf LCD-show.tar.gz) cd LCD-...
user avatar
7 votes

# symbol not on my keyboard

The problem is that your keyboard is using the default UK mapping. Assuming you are using Raspbian you can use the raspi-config utility to change the keyboard layout. From the command line type sudo ...
user avatar
7 votes
Accepted

Why can't you connect Raspberry Pi to a Laptop via HDMI

Most laptop hdmi ports are output not input. They are designed to connect a laptop to a monitor. There are a few that have hdmi input. You could use VNC Viewer on your laptop to view the Pi screen (by ...
user avatar
  • 6,136
6 votes
Accepted

How do I display an image file (PNG) in a simple window?

If you're using an X11 Desktop Environment such as LXDE, then you can accomplish this using the basic logic shown in this article. Here's what I came up with to switch displaying two images waiting ...
user avatar
  • 3,050
5 votes

Larger Touch Screen Displays

HP's L2105tm is a 21.5 inch 1080x1920 touch monitor that works flawlessly with the Raspberry Pi. It isn't resistive, so the response is slower than what you will be used to if you have used a ...
user avatar
  • 161
5 votes
Accepted

Disabling rainbow splash screen does not work

You have edited the wrong file; disable_splash=1 should be in /boot/config.txt.
user avatar
5 votes
Accepted

Use laptop screen without dismantling the screen

What you want isn't possible. Laptop/netbooks aren't configured to accept video directly from a port to the screen. The hardware simply doesn't support it. Any solution that could make this work ...
user avatar
  • 11.7k
5 votes
Accepted

Can I use usb port for display purposes?

There are varying adapters available that you can use on the Pi: HDMI → DVI DVI → VGA HMDI → VGA composite → VGA composite → SCART You can get a list of verified peripherals here - these include and ...
user avatar
  • 2,463
5 votes

Error when attempting to create Python GUI using Tkinter: "no display name and no $DISPLAY environment variable"

I solved it with these two commands: export DISPLAY=0.0 xhost +
user avatar
  • 51
5 votes

Error when attempting to create Python GUI using Tkinter: "no display name and no $DISPLAY environment variable"

Here is my solution. This works for SSH terminal, or crontab: import Tkinter import sys import os if os.environ.get('DISPLAY','') == '': print('no display found. Using :0.0') os.environ....
user avatar
  • 51

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