Hot answers tagged

29

sudo apt-get install deborphan sudo apt-get autoremove --purge libx11-.* lxde-.* raspberrypi-artwork xkb-data omxplayer penguinspuzzle sgml-base xml-core alsa-.* cifs-.* samba-.* fonts-.* desktop-* gnome-.* sudo apt-get autoremove --purge $(deborphan) sudo apt-get autoremove --purge sudo apt-get autoclean The first line installs deborphan which will remove ...


28

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


24

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


16

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. Run systemctl get-default Will show you graphical.target You could change it with sudo systemctl set-default multi-user.target I could recommend this article to ...


16

lscpu shows that it is little endian.


15

Accepted answer didn't work for me in "Jessie" version, I ended up using: sudo systemctl set-default multi-user.target Reference: Trying to turn off X11 in Jessie


15

You can apply hildred's suggestion permanently by creating a ~/.xinitrc file: #!/bin/sh 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.


14

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


14

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 @xset s off @xset -dpms Possibly also comment out the line that says @xscreensaver -no-splash, so the complete file should look something like this: @lxpanel --...


14

startx chromium --kiosk -- startx is a wrapper for xinit which starts an xserver and one client program. It should do exactly what you want.


12

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


10

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


9

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... deborphan -sz 3/. Then I removed all orphaned files... sudo ...


9

Working cmdline for me (this way I display image on HDMI-monitor while connected to Rpi by ssh): sudo fbi -T 2 img.jpg


9

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


9

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


7

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


7

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


6

Alternatively, you can try this Raspbian minimal image: http://www.linuxsystems.it/raspbian-wheezy-armhf-raspberry-pi-minimal-image/


6

Non-GUI script 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 ...


5

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


5

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 Section "InputClass" Identifier "calibration" MatchProduct "ADS7846 ...


5

I had the same issue. My root cause was that I forgot to update: /etc/apt/sources.list.d/raspi.list 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-...


5

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


4

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 #@xscreensaver -no-splash You might also need to add one or both of these lines to disable the power management:...


4

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


4

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.


4

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


4

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


3

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


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