3

With Cinnamon 2.6 and two monitors stacked up vertically, I configure the panel (task bar?) to be at the top of the upper window. Now, when I shut down the laptop, disconnect the 2nd monitor, the top one, and reboot, I am left without the panel.

Is it possible to get the panel back in this situation, possibly some dconf-editor magic or other command line tweak?

  • This is nasty indeed. Should be reported as a bug imo. – donquixote Jun 16 '16 at 15:00
  • Do you think this is cinnamon special or rather gnomish. – Harald Jun 17 '16 at 6:09
  • Somewhere I was told the correct thing is to report things in the respective distro first (the one where the problem was observed), and they discuss what's next. E.g. Mint. – donquixote Jun 17 '16 at 17:34
4

After searching for all things related to panel with in dconf-editor I figured it out. Here is the command line with gsettings:

gsettings set org.cinnamon panels-enabled "['1:0:top']"

As far as I guess the syntax, the value means the following:

  • brackets denote a list, although I did not manage to enter more than one value
  • single quotes surround the value
  • the first 1 seems to be an ID or just a number of the panel, since adding a second panel puts a 2 in this position
  • the second digit was 1 before denoting the disconnected monitor, using 0 selected the laptop screen
  • top may also be bottom and defines where the panel ends up

For completeness, here is a small script that I run when the panel is either missing from the single screen or on the wrong screen when I connect the big monitor again. Works for me:

#!/bin/bash
screens=$(xrandr | grep -c ' connected ')
echo "found $screens displays"

if [ "$screens" = 1 ]; then
  gsettings set org.cinnamon panels-enabled "['1:0:top']"
else 
  gsettings set org.cinnamon panels-enabled "['1:1:top']"
fi
  • 1
    If anyone else has the problem that this script removes the bottom panel, just add , '2:0:bottom' to the list. Like this: gsettings set org.cinnamon panels-enabled "['1:0:top', '2:0:bottom']". Apparently the space after the , is important. – arne.z Jun 12 '17 at 20:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.