A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged


No the display can only be configured at boot. The exception is Pi4. The Pi4 does not support the display_hdmi_rotate parameter by default but you can make it operate the same as previous models. See https://raspberrypi.stackexchange.com/a/106375/8697 You could write a script that modifies config.txt and reboots, which I have done in the past. The Pi4 has ...


I was struggling with this also. You can toggle power to the hdmi display by using vcgencmd display_power 1 # on vcgencmd display_power 0 # off and you can query the power status by just using vcgencmd display_power # will return 1 or 0 Cheers


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 ...


Possibly there is something in the remote user's .bashrc file that tries to start something that wants to use the X display? That is what the message usually means. If you can't find anything, what happens if you edit the logged in user's .bashrc and make the last line to be the clear command and then log in again? Also, try looking in /var/log/syslog for ...


Given directory $d where new images are being created, for displaying the images as they appear, starting from the freshest one, I'm using feh -S mtime --reverse -D 1 -R 1 --on-last-slide hold --start-at $(ls -1tr "$d" | tail -n 1) "$d" (I'm not sure how it performs for huge amount of images, as it is short-periodically reloading the list)


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.__setitem__('DISPLAY', ':0.0') #create main window master = Tkinter.Tk() master.title("tester") master.geometry("300x100") #make a label for the window label1 = ...


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).

Top 50 recent answers are included