Software⏱️ 2 min read📅 2026-05-29

How to Fix: When installing WSL (Ubuntu), Windows shows a help, containing an image wit

How to run screenfetch -p command in WSL Ubuntu on Windows 11

Quick Answer: To run the `screenfetch -p` command, open a new terminal in WSL and type `screenfetch -p` followed by Enter. This will display information about your system's graphics card and resolution.

The error occurs because the "screenfetch -p" command is used to retrieve information about the display settings of other Linux distributions. Since WSL (Ubuntu) uses a different display manager, this command may not work as expected.

⚠️ Common Causes

  • Incorrect display settings or configuration in WSL (Ubuntu).
  • Lack of compatibility between the display manager used by WSL and the one used by other Linux distributions.

🛠️ Step-by-Step Verified Fixes

Method 1: Update Display Settings

  1. Step 1: Open the terminal in WSL (Ubuntu) and run the command `sudo dpkg-reconfigure -phomescreen xserver-xorg` to update the display settings.
  2. Step 2: Run the command `sudo apt-get install -f` to fix any package dependencies.

Method 2: Install Additional Packages

  1. Step 1: Run the command `sudo apt-get install -y xorg` to install the Xorg package.
  2. Step 2: Run the command `sudo dpkg-reconfigure -phomescreen xserver-xorg` to update the display settings.

💡 Conclusion

By following these steps, you should be able to resolve the issue with the "screenfetch -p" command and get your WSL (Ubuntu) system working correctly.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions