Report this

What is the reason for this report?

Changing Bit Depth on Debian 9 VPS

Posted on October 6, 2017

running LXDE… just wanted to change bit depth to 16 bit (now it shows 24 when type in /xwininfo -root | grep Depth:/), cause it’s 512mb ram, and while it runs perfectly seems like sometimes stick, and afaik difference between 16 and 24 enough to resolve it, as I do on old hi-loaded desktops. but this is VPS and it have no monitor itself, adding xorg.conf doesn’t matter at all - so would you help me))

and else question, as I running it in 256 color client mode (well even it takes 100mb/hour of quite expensive traffic on 1-3 mbps gate anyway not able to go 16-bit), does it have matter at all? but I’d like to try, cause suspect it anyway compute 24 bit before convert it to 256 color, which may cause even more cpu and other overload. and if you know how to change it even not 16 bit but 256 color itself should be even better solve.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

Just un update on this question

To change the bit depth of your LXDE session to 16-bit, you’ll need to modify your Xorg configuration. Here’s how you can do it:

  1. Create a backup of your current Xorg configuration file in case you need to revert the changes. You can do this by running the following command:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
  1. Open your Xorg configuration file using a text editor such as nano or vi. You can do this by running the following command:
sudo nano /etc/X11/xorg.conf
  1. Add the following lines to the “Screen” section of the Xorg configuration file:
DefaultDepth 16
SubSection "Display"
    Depth 16
EndSubSection

  1. Save and close the file.

  2. Restart your Xorg server by running the following command:

sudo service lightdm restart

This should change the bit depth of your LXDE session to 16-bit. If you’re still experiencing performance issues, you might want to consider increasing the amount of RAM allocated to your Droplet.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.