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 #xserver-command=X. Change it to xserver-command=X -s 0 dpms
It should be at line 87 if things don't change.
Save and reboot.
Linux uses a heterogeneous GUI stack, meaning it's arranged in layers but there's different layers you can arrange.
The bottom of the stack is relatively homogeneous, meaning it's almost always the same. This is the Xorg server joan has indicated.
However, while X all by itself does provide you with a graphical desktop, it doesn't look like much -- plain ...
Systemd users "service bunlde" named target, to achieve different system states while booting the system. You need to change the desired state of the system, from graphical to multi-user.
Will show you
You could change it with
sudo systemctl set-default multi-user.target
I could recommend this article to ...
You can apply hildred's suggestion permanently by creating a ~/.xinitrc file:
exec chromium --kiosk
This will then be applied if you are using a graphical login, so that you do not have to boot to console. To test it from the console, try startx with no arguments.
$ sudo apt-get --purge remove "x11-*"
This will remove all the packages that are under x11 which is the library with all the graphical packages. the option --purge allow you to delete all the config file related.
$ sudo apt-get --purge autoremove
autoremove removes all the unused packages. There are a lot of unused packages after the first command.
I think @Jivings answer may be better, but I have it in my notes to do this:
Install apt-get install x11-xserver-utils
Append these lines:
@xset s noblank
@xset s off
Possibly also comment out the line that says @xscreensaver -no-splash, so the complete file should look something like this:
For the past month or so I've been working on basically the exact same thing, so I've researched how to do this a lot and know how to do it with the latest version of Raspbian (PIXEL).
nodm is a minimal display manager that bypasses loading LXDE, and openbox (which is already installed on the Pi) provides a minimal session manager and works with the X ...
1/. To remove all desktops I just did (go make a pot of coffee. Take a walk this will take a while)...
apt-get remove --auto-remove --purge libx11-.*
2/. Then I installed deborphan to get rid of orphaned files...
sudo apt-get install deborphan
If you want to see what has been orphaned do this...
3/. Then I removed all orphaned files...
If you're running something that needs interaction you may want to consider using VNC.
sudo apt-get install tightvncserver
vncserver -geometry 1024x768 :1
DISPLAY=:1 lxsession &
And then from your remote system use a VNC client (what one you needs depends on your other system) to access and monitor the application. You can use SSH forwarding of port ...
I had this problem as well and got around it by manually building and installing the fbturbo module from source after which I had my desktops back
When I tried to to the install the missing package via the command line:
sudo apt-get install xserver-xorg-video-fbturbo
This blew up due to the dependency on xorg-video-abi-23. Looking around with apt-cache I ...
There is now also an X-less image by the foundation named Raspbian Jessie Lite: https://www.raspberrypi.org/downloads/raspbian/
And if you want an installer which installs only a minimal system, there's also the Raspbian UnAttended Netinstaller
If I want to start any non GUI script, I prefer putting it in rc.local as by the time rc.local gets executed, everything is up by then (network, mysql and any other services like apache etc).
To do that,
sudo nano /etc/rc.local
Add your command before exit 0 line :
like python /path/to/script.py >> /dev/null 2>&1 & where ...
Jessie Raspbian took a different but similar path as other answers here.
# First the jre needs X (boo!) so switch that out to a headless version
sudo apt-get install -y openjdk-7-jre-headless
# Next x11 won't go because libice6 is installed
# but this seems to trigger the same result
sudo apt-get remove -y libice6
# Finally clean up
sudo apt-get ...
Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1" worked for me too!
after 2 afternoons of work it finally worked out
Im using the 3.5 TFT GPIO verison - ADS7846 Touchscreen
here is my file
pi@octopi:~ $ sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
MatchProduct "ADS7846 ...
I had the same issue. My root cause was that I forgot to update:
from stretch to buster
sudo apt update
reported an additional ~ 200 packages that could be upgraded.
sudo apt full-upgrade
completed without error, but alas, still no X server, still no display found in the Xorg.0.log.
But I was now able to install xserver-...
The syntax for HDMI related settings in config.txt on a Raspberry Pi 4B appears to have changed, likely because the Pi4B has two HDMI outputs (numbered 0 and 1 in technical documentation, and somewhat confusingly 1 & 2 otherwise).
Every time I would run the Pi4B headlessly(?), the RealVNC session would use a low resolution filling just a small part of ...
What worked for me was editing ~/.config/lxsession/LXDE-pi/autostart and commenting out the screensaver, all the other xset commands didn't seem to affect it when it is started here:
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
You might also need to add one or both of these lines to disable the power management:...
Eric Anholt has been working on completely overhauling the Raspberry Graphics Stack since July 2014. This means it was done "properly" - everything is opensource and directly in upstream: kernel.org, mesa3d.org, x.org etc. This also means everything using OpenGL inside X (GLX) automatically started working as soon his efforts flowed down into Raspbian !
The closed source graphics driver doesn't expose gamma ramps, which are what redshift relies on. To get gamma ramps, you'll need to switch to the open source graphics driver.
Using raspi-config (assuming you're using Raspbian), enable the experimental OpenGL driver (in native mode, not "firmware KMS") and reboot, at which point redshift should work.
ssh's -X sets the DISPLAY environment variable such that all X requests are sent to the host. EGL has no X11 wire protocol, so EGL can't be forwarded to your host's X Server. For EGL, you'd need to run the application on an X Server on the Pi, then use something like lightpipe to scrape the pixels on the Pi's X Server and forward them to your host. It'll ...
After enabling ssh, I could figure out that the xserver did not start.
startx said "no screens found".
So I tried out all the ways to config the pi in headless mode
Editing the config.txt for fixed hdmi modes (see here), fiddeling with raspi-config, updating the firmware - nothing worked.
Eventuall a look into the Xorg.0.log (in /var/log/) showed ...
That's happening because your monitor turns off after 10 minutes as well by default. And even if you reset by xset s reset, screensaver won't be effective as it assumes that your monitor is already off. You can confirm this behaviour by xset q
So solution ? : here : xset s reset && xset dpms force on
This should work effectively.
For more ...