15

Icons and application indicators in the dropdown settings sometimes disappear.

enter image description here

This happens after waking up from sleep, and can be fixed until waking up from sleep again by pressing Alt+F2 and typing r.

Does anyone know how to permanently fix this?

Ubuntu 16.04 gnome 3.18.4

5
  • 4
    I'm having the same problem. May 14, 2016 at 11:21
  • What is your graphics hardware and driver? Same thing here on a Intel GMA 4500MHD (in GS45 chipset), for me a new problem since Ubuntu 16.04.
    – tanius
    Aug 20, 2016 at 18:50
  • I havn't installed any drivers, but my processor is an intel i3 4005u. Aug 21, 2016 at 19:53
  • I will say that i've never had this problem since switching to fedora. Feb 2, 2019 at 9:06
  • Same problem. Ubuntu 18.04.3 LTS, Intel UHD Graphics 630 (Coffeelake 3x8 GT2).
    – Gustave
    Jan 4, 2020 at 9:31

3 Answers 3

8

Press Alt + F2, and then type r in the pop-up Run a Command window and press Enter to restart GNOME Shell without interfering with any already opened windows.


Alternatively you can restart the GNOME shell without interfering with any already opened windows by replacing the running window manager, and the missing Panel icons will reappear.

setsid gnome-shell --replace 

Press Enter again before closing the terminal.

In case you need to run setsid gnome-shell --replace every time you boot to the desktop, you can automate the command by creating an alias for it. An alias declaration starts with the alias keyword followed by the alias name, an equal sign and the command you want to run when you type the alias. For more information see How do I create a permanent Bash alias?.

5
  • is there a way how to fix this permanently? this is a problem also on ubuntu 18.04
    – Mi Ro
    Nov 26, 2020 at 21:38
  • @MiRo Thanks for commenting. In fact I do have an improvement for this answer and your comment prompted me to edit my answer and add the improvement to it.
    – karel
    Nov 26, 2020 at 23:41
  • On Ubuntu 22.04 the setsid gnome-shell --replace command broke my Gnome session, forced me to log out and back in. Oct 30, 2022 at 18:18
  • 1
    FYI, a better way to replace the gnome shell (when possible) is to hit Alt + F2, and then type 'restart' (or just 'r') in the pop-up command window and press Enter. Doing it through the Gnome "Run a Command" function will likely avoid the issue of crashing your whole Gnome session and logging you out, which can happen when run from a terminal window.
    – Foogod
    Oct 13, 2023 at 3:16
  • @Foogod Yes, it is a better way to replace the gnome shell. I remember that I tried it in Ubuntu 18.04, but it didn't work because Alt + F2 didn't work in my Ubuntu 18.04, but it does work now in my Ubuntu 22.04 which is running on a newer computer.
    – karel
    Oct 13, 2023 at 3:34
4

Sounds a lot like this bug: Bug #1573959 "On-screen text disappears after suspend"

The suggested solution is to upgrade the kernel from 4.4 to 4.8:

sudo apt install linux-generic-hwe-16.04

I did that today, but since I only had the problem a few times in the last months, I can't testify to the effectiveness of this solution. However, others in the bug comments confirm that it solved the problem for them.

3

This seems to be a bug in the graphics driver, so it should be reported once we know what triggers it (hardware, driver).

That said, there have been lots of similar bugs and people came up with workarounds there which you can also try for this one.

In case you have an Intel graphics card, here are some workarounds to try:

  • Reserve memory for the graphics adapter. In the Intel graphics driver (i915), pixmap caching issues like yours are often connected to the fact that the graphic card's shared memory is dynamically allocated from system memory, so also takes part in swapping, read-back from disk etc. where things can go wrong. So one workaround is to use the mem boot parameter to leave enough RAM unallocated by Linux that is then used exclusively by the graphics card. See the detailed instructions. But note that on x86 systems (32 and 64 bit), the mem parameter is actually a maximum address [source], so has to be set higher (determined by experiment) than the amount of RAM to leave for Linux.

  • Disable swap. Again for Intel graphics, not including the shared graphics memory in swapping can be a workaround. Especially promising if the problem mostly does not appear after a fresh reboot, only after prolonged and memory-intensive work. So if you have enough RAM, you can just disable swapping completely by adding swapoff -a to /etc/rc.local [source].

  • Try UXA acceleration. It's an option for the X config file, details here.

  • Try framebuffer BLIT mode. Again for Intel graphics, you can try sudo echo COGL_ATLAS_DEFAULT_BLIT_MODE=framebuffer >> /etc/environment and then reboot. [source]

  • Try to reset Compiz to default settings. Reported here (but quite some time ago) to have helped with similar issues. Or while we're at it, try a non-compositing desktop manager instead of Compiz.

2
  • 2
    The tip about COGL_ATLAS_DEFAULT_BLIT_MODE did it for me! It also resolved an issue I've been having where the screen would take about 5 seconds to turn on when waking up from sleep; now it activates instantaneously!
    – BingsF
    Sep 19, 2016 at 0:47
  • 1
    COGL_ATLAS_DEFAULT_BLIT_MODE seem to work also for me on xubuntu 16, after logging out and in again, without restart. Aug 13, 2018 at 21:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .