The Mate desktop is predicated on Gnome 2.X, which has been round for greater than ten years. Because it’s primarily based on such outdated expertise, it’s very dependable and infrequently runs into points. Nevertheless, “almost” isn’t a 100% success price, and sadly, generally points can come up and cease your workflow. When these issues come up, many Linux customers don’t know what to do to fix it. Right here’s how to fix a frozen Mate Linux desktop.

Refresh the Mate panel

More often than not when a crash or freeze occurs on the Mate desktop, the panel is at fault. Panel crashes, even amongst steady well-tested software program like Mate can happen, due to quite a few components, resembling operating out of reminiscence, third-party panel applets, and so forth. One of the simplest ways to fix this downside is to refresh the damaged panel.

Refreshing a non-working Mate panel is a little tricker than refreshing trendy desktop environments resembling Gnome Shell. The rationale? Mate is constructed on an older launch of the Gnome desktop, which by no means had a built-in “refresh” characteristic. As a end result, you’ll want to take issues into your personal palms utilizing the terminal.

To entry a terminal window in your Mate desktop, press Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. From right here, run the pidof command on “mate-panel,’ the identify of the method that handles the panel on Mate.

pidof mate-panel

Operating the pidof command will return a quantity output. This quantity output is the method ID for the panel program. From right here, you’ll give you the option to kill the frozen/damaged Mate panel with the kill command.

kill process-id-from-pidof

Alternatively, if killing this system with the kill command and pidof doesn’t give you the results you want, strive the killall command together with “mate-panel.”

killall mate-panel

When you’ve “killed” the panel, Mate ought to mechanically convey up a new, working panel instantaneously, and your issues must be solved. If the system doesn’t convey up a new panel, you may name it in manually with the command beneath.

mate-panel &

Refresh the Mate window supervisor

One more reason the Mate desktop atmosphere can lock up, freeze or crash is due to the Marco window supervisor. Often, these crashes are due to the age of the window supervisor, or bugs, or varied different components.

Refreshing the Mate window supervisor (Marco,) very like the Mate Panel wants to be performed within the command-line primarily as a result of there isn’t a built-in refresh choice for Marco in system settings.

Open up a terminal window by urgent Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. From there, run the marco –substitute command. Be certain to add within the & image to instruct the Bash shell to place this command within the background.

marco --replace &

As you run the above command within the terminal in your Mate PC, the Mate window supervisor ought to immediately refresh itself and ship the operating command into the background. Now, run the disown command to disconnect Marco out of your operating shell.

disown

As soon as the disown command is run, any issues with the Mate window administration system must be resolved!

Make a reset script

Refreshing the Mate desktop atmosphere with the instructions above is fairly helpful, because it allows you to save your self rapidly. Nevertheless, when you’re not a fan of remembering a number of instructions to fix your Mate session, you’ll be completely satisfied to know that this will all be solved with a fast reset script.

Step one in creating a reset script is to make a new, clean file in your house listing (~). Utilizing the contact command, make the clean “mate-reset” file.

contact mate-reset

With the brand new “mate-reset” file created, open it up within the Nano textual content editor for modifying functions.

nano -w mate-reset

Paste the primary line of code on the high of the script. This code is named a “shebang” and can let the Bash shell know what to do with the script file.

#!/bin/bash

Following the primary line of code, press the Enter key to make a new line. Then, add the second line of code which is able to reset the Mate panel.

killall mate-panel

After the panel reset command, press Enter to make one more new line. Then, add within the remaining line of code for the script, which is able to reset the Mate window supervisor.

marco --replace &

Save the edits to the script in Nano by urgent Ctrl + O, and shut it with Ctrl + X. From there, replace the permissions and set up “mate-reset” into the “/usr/bin/” listing.

sudo chmod +x mate-reset
sudo mv mate-reset /usr/bin/

As soon as the Mate reset script is within the “/usr/bin/” listing, you’ll give you the option to reset your Mate desktop by urgent Alt + F2, and coming into the command beneath.

mate-reset



Source link

Share.
Leave A Reply

Exit mobile version