13

Since the update to 20.04 from 16.04, I see top bar with date and time and volume control --- but only on the primary screen of my computer. On the other screens, the top bar is not shown.

I've searched with duckgo and google but didn't find a solution.

This was asked before, but without an answer.

To be clear, I'm looking for something in a package manager or official channel, and not a custom script I can sideload.

b264
  • 339
  • 1
  • 3
  • 16
  • Have you tried this extension? https://extensions.gnome.org/extension/921/multi-monitors-add-on/ – PRATAP Mar 23 '21 at 07:44
  • I looked for it in the Software Center but it was absent. – b264 Mar 23 '21 at 08:00
  • Dont you want to download it n install?? – PRATAP Mar 23 '21 at 08:11
  • No, I want something through the official package management systems that can also offer updates if needed. This is a pretty basic function of an operating system that should be supported. – b264 Mar 23 '21 at 23:16
  • Why not use Unity in 20.04 like you used in 16.04? – WinEunuuchs2Unix Mar 28 '21 at 00:45
  • 1
    I considered it, but I wanted to use Gnome since it's the new default. You're talking about going to straight to the nuke option because there's a pebble in the street LOL – b264 Mar 28 '21 at 06:43

2 Answers2

7

For a solution based on an official package: make sure that you have "Universe" enabled in your repositories:

sudo add-apt-repository universe

and that you're using the GNOME desktop or a derivative.

Search Synaptic (or via apt) for the package:

gnome-shell-extension-multi-monitors

Install it, along with the GNOME tweak tool (package "gnome-tweaks", not "gnome-tweak-tool" - the latter is to access some additional settings):

sudo apt-get install gnome-shell-extension-multi-monitors gnome-tweaks

You’ll have to log out and back in (sometimes just reboot your system). After that, search for the Tweak Tool in GNOME menu and launch it. Select "Extensions" on the left-hand side, and scroll till you see multi-monitors-add-on. Activate the slider.

You should see a dual monitor symbol on your taskbar. Click it and select "Preferences". This prefs page will let you tweak all sorts of options... including "Show panel on additional monitors", which is the setting that you are looking for.

sarlacii
  • 519
  • 2
  • 11
  • `sudo add-apt-repository universe` to enable "Universe" in the repositories – b264 Mar 30 '21 at 03:52
  • 1
    This seems like it could be the correct answer, except it's not working. https://i.imgur.com/As4aQfU.png There is no multimonitor extension there despite completing these steps successfully. – b264 Mar 30 '21 at 04:05
  • @b264: Wait, that's the wrong extensions list. I have edited my answer! So sorry. You want gnome-tweaks package, not gnome-tweak-tool! See https://imgur.com/a/yJiLyEE. – sarlacii Mar 31 '21 at 08:19
  • This is so close to the correct answer! Unfortunately, it just doesn't work :sob: because "error loading extension" https://imgur.com/jLqy9ug https://pastebin.com/RJV3spmh – b264 Apr 01 '21 at 09:19
  • It appears those 3 lines of code are not in the main branch on github https://github.com/spin83/multi-monitors-add-on/blob/master/multi-monitors-add-on%40spin83/mmpanel.js#L384 – b264 Apr 01 '21 at 09:28
  • Curiously, the code throwing the error is not in the main branch of the extension. Maybe the package manger copy is out of date? https://pastebin.com/yv4FVbqj https://github.com/spin83/multi-monitors-add-on/blob/master/multi-monitors-add-on%40spin83/mmpanel.js#L384 the offending lines were removed in this commit: https://github.com/spin83/multi-monitors-add-on/commit/15a0d3ceea6a601d4c4b709a0fd655ff7d6d27ea#diff-a90eb6aeed84b64a03b86f59cbf3d134dd1037ed6f29bdb6eb389530f32dd435 – b264 Apr 01 '21 at 09:47
  • 1
    Ah, the official packages is behind... so you are stuck with installation from github, unless you can wait. Effectively then, this is the right answer, but unfortunately the official package has a bug... perhaps log it? https://help.ubuntu.com/community/ReportingBugs – sarlacii Apr 01 '21 at 14:23
  • 1
    https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-multi-monitors/+bug/1922318 – b264 Apr 02 '21 at 03:59
  • This is working, but I am able to see only the time and activities button in the second monitor's top bar. How can I have the other icons like battery, sound, wifi on the second monitor as well? – spharish Nov 02 '21 at 09:00
  • @spharish: you can just right-click the new toolbar and edit it to add whatever you want. The panel starts out as a vanilla panel only, not as a copy of the original, so will be missing all the extras. – sarlacii Nov 08 '21 at 08:50
  • 1
    On Ubuntu 22 I get this error: E: Package 'gnome-shell-extension-multi-monitors' has no installation candidate – Raleigh L. Aug 19 '22 at 01:46
1

Multi Monitors Add-On can do the trick.

As per Installation from git:

git clone git://github.com/spin83/multi-monitors-add-on.git
cd multi-monitors-add-on
cp -r multi-monitors-add-on@spin83 ~/.local/share/gnome-shell/extensions/

Restart the shell and then enable the extension.