- Linux Mint Forums
- How to restart Cinnamon without closing running programs?
- How to restart Cinnamon without closing running programs?
- Re: How to restart Cinnamon without closing running programs
- Re: How to restart Cinnamon without closing running programs
- Re: How to restart Cinnamon without closing running programs
- Re: How to restart Cinnamon without closing running programs
- Re: How to restart Cinnamon without closing running programs
- Re: How to restart Cinnamon without closing running programs
- Re: How to restart Cinnamon without closing running programs
- How do I restart Cinnamon from the tty?
- 21 Answers 21
- How To: Quickly Restart The Cinnamon Desktop Environment
- Restart The Cinnamon Desktop Environment:
- Bonus:
- Closure:
Linux Mint Forums
How to restart Cinnamon without closing running programs?
Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.
How to restart Cinnamon without closing running programs?
Post by bernd.wechner » Mon Sep 14, 2015 6:52 am
I see this too quite regularly. It is the Window List Applet that suddenly loses all its Icons, and hard to pin a reason down. Sometimes they come back again, but not reliably. ALT+F2 then r don’t help reliably and cause a Wine System Tray window to appear which is impossible to close. Frustratingly bizarre. Would be nice to find a clean way to restart Cinnamon without losing my running window list.
Re: How to restart Cinnamon without closing running programs
Post by xenopeek » Mon Sep 14, 2015 11:38 am
Split from http://forums.linuxmint.com/viewtopic.php?f=208&t=93247. Don’t revive support topics older than 6 months; new questions deserve new topics. See the forum rules.
Didn’t Cinnamon inherit this from Gnome Shell? Press Alt+F2 to bring up the run dialog, type ‘r’ (single letter r), and press Enter. That should restart your Cinnamon session while preserving your running programs. At least that is how Gnome Shell handles it.
Re: How to restart Cinnamon without closing running programs
Post by Cosmo. » Mon Sep 14, 2015 11:51 am
I never have seen this problem. Create a new account to find out, if you can reproduce the problem.
Which version of Mint do you use (17 / 17.1 / 17.2)?
Re: How to restart Cinnamon without closing running programs
Post by MintBean » Mon Sep 14, 2015 4:57 pm
Re: How to restart Cinnamon without closing running programs
Post by bernd.wechner » Fri Oct 30, 2015 12:16 am
Apologies for not getting back sooner, I am using the latest so MINT 17.2 and Cinnamon 2.6.13.
I have since answered this question, and know how to restart Cinnamon without closing running programs but run into other problems in the process so openned:
I’m content that what should work is a simple:
cinnamon —replace —display=:0
from a tty, and it sort of does, but not quite. See the new thread for details.
Re: How to restart Cinnamon without closing running programs
Post by Cosmo. » Fri Oct 30, 2015 5:33 pm
Re: How to restart Cinnamon without closing running programs
Post by bernd.wechner » Fri Oct 30, 2015 9:02 pm
Well, I have since worked out why «cinnamon —replace —display=:0» wasn’t working. For some odd (and as usual undocumented or if so not easily findable documentation) this only works if the account logged in on display :0 issues the command not anyone else, no not even root! That solves the mysteries I had.
- it must be issues by the same account as the Cinnamon session has logged in. Not anyone else, not even root or it will fail (cryptically at that)
- It relies on Cinnamon starting on display :0 which empirically seems to be reliable but is not a guarantee and it’s kludgy that there is not command free of this assumption or knowing the display. If in down the w command will show the display id
Re: How to restart Cinnamon without closing running programs
Post by bo333 » Mon Nov 02, 2015 6:40 pm
My desktop freezes alot when I run too many things.
Is there any reason ctrl + alt +esc does not work for me.
I grubbed about awhile ago and found a long winded way that does work.
It’s this:
First make sure the sys rq is enabled.
Make the value 1.
When a freeze happens press alt + sysrq + r
Then press alt F2
That will take you to the terminal.
Log on as per usual.
Type w
Remember the value under ‘From’
Now type killall -HUP cinnamon
Press enter.
Then type export DISPLAY=:0; cinnamon &
(0 is the value under ‘From’—it may be different for you)
Press enter.
Then press alt F8 (it may be another F number;just find the right one)
That will take you to your gui desktop with everything still there!
- Important Notices
- ↳ Rules & Notices
- ↳ Releases & Announcements
- ↳ Main Edition Support
- ↳ Beginner Questions
- ↳ Installation & Boot
- ↳ Software & Applications
- ↳ Hardware Support
- ↳ Graphics Cards & Monitors
- ↳ Printers & Scanners
- ↳ Storage
- ↳ Sound
- ↳ Networking
- ↳ Virtual Machines
- ↳ Desktop & Window Managers
- ↳ Cinnamon
- ↳ MATE
- ↳ Xfce
- ↳ Other topics
- ↳ Non-technical Questions
- ↳ Tutorials
- Debian Edition Support
- ↳ LMDE Forums
- ↳ Beginner Questions
- ↳ Installation & Boot
- ↳ Software & Applications
- ↳ Hardware Support
- ↳ Networking
- ↳ Tutorials
- ↳ Other Topics & Open Discussion
- ↳ LMDE Archive
- Interests
- ↳ Gaming
- ↳ Scripts & Bash
- ↳ Programming & Development
- Customization
- ↳ Themes, Icons & Wallpaper
- ↳ Compiz, Conky, Docks & Widgets
- ↳ Screenshots
- ↳ Your Artwork
- Chat
- ↳ Introduce Yourself
- ↳ Chat about Linux Mint
- ↳ Chat about Linux
- ↳ Open Chat
- ↳ Suggestions & Feedback
- International
- ↳ Translations
- ↳ Deutsch — German
- ↳ Español — Spanish
- ↳ Français — French
- ↳ Italiano — Italian
- ↳ Nederlands — Dutch
- ↳ Português — Portuguese
- ↳ Русский — Russian
- ↳ Suomi — Finnish
- ↳ Other Languages
- ↳ Čeština-Slovenčina — Czech-Slovak
- ↳ Magyar — Hungarian
- ↳ 日本語 — Japanese
- ↳ Polski — Polish
- ↳ Svenska — Swedish
- ↳ Українська — Ukrainian
Powered by phpBB® Forum Software © phpBB Limited
How do I restart Cinnamon from the tty?
I installed Cinnamon on my Ubuntu 12.04, and it works well, but sometimes it just freezes for no reason. I can move my mouse but can’t click on anything. So I want to restart Cinnamon from tty, like I used to do with gnome shell. How do I do that? I tried killall cinnamon and nothing happened. Then I tried export DISPLAY=:0.0 , cinnamon —replace and still nothing. I guess the command cinnamon is not valid. I don’t want to restart the whole X server because then all of my windows will get closed. I just want to restart the window manager cause I believe it is causing the problem.
21 Answers 21
Hit Alt + F2 , type r and hit enter.
I completely agree with @Lucas here, but I’ll hold off on voting it down just because it’s a very useful shortcut to know, even if not from the tty as the OP describes. It might conceivably work while cinnamon is not properly functional though?
@kmarsh An update should solve that. Works on Mint 18 Cinnamon – and saves me from installing an extra applet just for that rarely used functionality. As some applets require a Cinnamon restart after being installed, it’s indeed a very useful shortcut – though I fully agree it’s not the answer the OP was after. First hit on a Google search for «restart Cinnamon», so +1 and let it stay 🙂
The cinnamon —replace process can be sent the HUP signal which will trigger it to restart, thus preserving your open window and running applications.
$ pkill -HUP -f "cinnamon --replace"
This will take care to send the HUP signal to a process that matches the pattern, «cinnamon —replace». The signal HUP (SIGHUP) tells the process to «Hang Up».
This is first solution that’s worked for me with no nasty side effects. For those who don’t know.. if you can’t start the terminal, press Alt+F2 to get to a TTY, login with an admin-capable account, become root, and then enter that command. You might have to Alt+F[n] to get back to your X TTY.
ah, so the process go stuck trying to replace the existing cinnamon instance, which was causing the freeze, which is why I needed to kill it?
@Seanny123 — cinnamon is hung up, the replace triggers a restart but leaves all the subsequent «child» bits alone.
This happens to me a lot, too, and this thread is one of the top results when googling for «restart cinnamon». Unfortunately, the instructions don’t work for me (only because the display number is wrong!). For future visitors, here’s what I do that always helps me.
- Cinnamon freezes
- Switch tty. I usually go to tty6, Ctrl + Alt + F6
- If you need to login first, do so.
- Type w (yes, just the letter) and press enter. This commands does a lot of different things, but you need it to figure out the number of the display you are using. The display number is in the column FROM . Mine is :0 (yes, including the colon).
- Assuming that cinnamon is already dead (which you would notice by the windows lacking titles and that you can’t move different windows around, and perhaps even not being able to use the keyboard), you type export DISPLAY=:0; cinnamon & , and don’t forget the colon. I add the ampersand (&) only not to keep that tty busy.
This always works for me, and I don’t lose open windows. Also, I keep these instructions in a file called restartcinnamon, which is just a text file. I keep the file in my Dropbox folder, so no matter what machine I am on I can just type cat ~/Dropbox/restartcinnamon if I need to be reminded of how to do it.
How To: Quickly Restart The Cinnamon Desktop Environment
Today’s article is going to be a pretty quick and easy article, where you learn how to quickly restart the Cinnamon desktop environment. It shouldn’t be a very long article, and I’d say it’s easy enough for a beginner to process. So, if you’re interested in restarting the Cinnamon DE, read on!
Obviously, this will only apply to those folks who are using the Cinnamon desktop environment. Well, no… I do believe it also works in the GNOME desktop environment. As I understand that it’s a holdover from GNOME, which is what Cinnamon is based on. Alas, I don’t have anything running GNOME right here in front of me, so I’m not going to test that.
On the off-chance that you don’t know what desktop environment you’re using, that’s easy enough to learn. You can just read this article:
If you want to skip reading that, just open the terminal and run the following command:
The output of that command will tell you what desktop environment you’re using. If the result is ‘cinnamon’, then this article applies to you!
Anyhow, if you leave your computer on for a long time, you might find that Cinnamon is eating up a bunch of RAM and CPU. You can clear that out by logging out or rebooting, but there’s a much easier way to restart the Cinnamon desktop environment. This article will show you how.
Restart The Cinnamon Desktop Environment:
This time around, you don’t even need to open a terminal!
With your keyboard, press ALT + F2 and you should have a new window open up on your screen. It looks like this:
Now, all you need to do to restart the Cinnamon desktop environment is press the letter R and then press the ENTER key.
That alone, that little shortcut, will restart your Cinnamon desktop environment, meaning it may free up some RAM and lower the amount of CPU that the desktop environment is using.
Bonus:
You can actually run other commands from there. I don’t know all of them, or at least I don’t know if I know all of them. I’ve been unable to find an exhaustive list and I only know of a few shortcuts you can use in this run screen.
There’s a shortcut, like ‘rt’ that will reload your theme (useful for theme creators). It just reloads the theme, and doesn’t actually restart Cinnamon, though it may kinda look similar.
This won’t apply to too many of my users, as my readers are generally beginners, but you can also enter ‘lg’ into the shortcut window.
If you were using GNOME instead of Cinnamon, it’ll open up “looking glass”, the GNOME debugger.
If you’re using Cinnamon, it opens up Melange – the Cinnamon debugger. Debuggers can be useful if you need it and know what you’re doing with it.
The goodness doesn’t stop there!
If you want, you can put ‘firefox’, ‘gedit’, ‘leafpad’ or other applications in there. So long as those applications exist in /usr/bin , they should load just fine from this run screen. You can use this shortcut to open pretty much any application that has been installed via the normal means.
If you want to load something that’s not installed from this screen, you can do that too. You just need to enter the path to the application you want to open. Something like, ~/Downloads/LibreWolf.AppImage will work, according to my testing.
Closure:
There you have it! You’ve learned how to use a hidden run menu to restart the Cinnamon desktop environment. On top of that, you’ve learned that it can be useful for all sorts of other tasks. It’s a pretty handy shortcut, one you can open without taking your hands off the keyboard to use a mouse. That right there is quite a bonus in and of itself!
Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.