4

I am running Ubuntu 16.04 LTS and it was working fine. There was not any issue with the display. But today morning when I turned on the laptop from sleep, it has started to display a white grainy background around the dialog boxes and the corner buttons (close, minimise, and maximise buttons) are not visible. I can see some sort of change in the grain pattern in the position of the buttons when I place the mouse over the buttons. The buttons are working though.

The display around it is fine, as you can see.

2

1 Answer 1

1

This issue is present in 375 and 378 drivers...

Given that simply killing compiz process fixes the bad border problem, I have tested a solution that works on my Ubuntu 16.04 system every time after the system wakes.

Step 1:

I created a script called fixbadborders in the directory /lib/systemd/system-sleep. It contained the following:

#!/bin/sh
## This file (or a link to it) must be in the folder /lib/systemd/system-sleep/
## Purpose: Kill compiz after system wakes up from sleep.
## This will fix bad window borders caused by Nvidia driver 375.39.
kill $(ps -C compiz -o pid=)

Step 2:

Allowed the script to have execute permission with:

sudo chmod +x fixbadborders

To remove this script:

sudo rm /lib/systemd/system-sleep/fixbadborders

All credits go to Sun Bear who created this script comment 13

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