Ubuntu-desktop not working when suspend/resume or connecting an external monitor -after upgrade this week (14.04)

Bug #1426751 reported by Milton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-meta (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I was happily using 14.04 with my Lenovo Y50. When I installed it, I had some troubles making my NVIDIA GeForce GTX 860M 2GB works with hardware acceleration, etc, but at the end everything was OK.

THIS WEEK (around 02/25/2015) an update destroyed this beautiful equilibrium: I can't resume after suspend and I can't plug or unplug my external monitor without having a weird problem:

a) Desktop "moves" half of it size to the right.

b) Mouse works, but I can't click on anything. The only workaround is killing the Xorg, and loosing the session.

What I tried, without success:

1) Downgrade Compiz (the first suspect, it was upgraded this week). Nothing.

2) Install ALL possible NVIDIA drivers:

2.a) Nouveau

2.b) Nvidia 304 & Nvidia 304 updates (blacklisting and purging nouveau)

2.c) Nvidia 331 & Nvidia 331 updates (both from repository and NVidea website). (blacklisting and purging nouveau)

2.d) Nvidia 340 (from Xorg-edgers ppa). (blacklisting and purging nouveau)

2.e) In every case, I purged previous drivers before, reconfigure Xorg, etc, etc,etc.

3) Reinstalling Unity and Ubuntu-desktop

I honestly don't know what else to do, but this situation it's very annoying.

Any ideas? Please?

THANK YOU

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ubuntu-desktop 1.325
ProcVersionSignature: Ubuntu 3.13.0-46.76-generic 3.13.11-ckt15
Uname: Linux 3.13.0-46-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.7
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Feb 28 14:21:26 2015
InstallationDate: Installed on 2014-11-19 (101 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
ProcEnviron:
 LANGUAGE=en_US
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-meta
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Milton (miltonlaufer) wrote :
Revision history for this message
Milton (miltonlaufer) wrote :

A follow up: someone suggested to install the NVidia 346. Same result, the problem is still there.

Revision history for this message
Milton (miltonlaufer) wrote :

Someone has an answer? I'm starting to consider going back to Windows... My laptop is like a brick if I can't suspend it :(

Revision history for this message
Milton (miltonlaufer) wrote :

I found a workaround.

I created two scripts (one of them I found it on this website, but now I lost the link).

Let's called the first script: "discover_session_bus_address.sh"

#!/bin/bash

# Remember to run this script using the command "source ./filename.sh"

# Search these processes for the session variable
# (they are run as the current user and have the DBUS session variable set)
compatiblePrograms=( nautilus kdeinit kded4 pulseaudio trackerd )

# Attempt to get a program pid
for index in ${compatiblePrograms[@]}; do
   PID=$(pidof -s ${index})
    if [[ "${PID}" != "" ]]; then
        break
    fi
done
if [[ "${PID}" == "" ]]; then
    echo "Could not detect active login session"
    return 1
fi

QUERY_ENVIRON="$(tr '\0' '\n' < /proc/${PID}/environ | grep "DBUS_SESSION_BUS_ADDRESS" | cut -d "=" -f 2-)"
if [[ "${QUERY_ENVIRON}" != "" ]]; then
    export DBUS_SESSION_BUS_ADDRESS="${QUERY_ENVIRON}"
    echo "Connected to session:"
    echo "DBUS_SESSION_BUS_ADDRESS=${DBUS_SESSION_BUS_ADDRESS}"
else
    echo "Could not find dbus session ID in user environment."
    return 1
fi

return 0
Save it an then, in the same folder, create another script called "recover_unity.sh".

Code:

#!/bin/bash

export DISPLAY=:0
source ./discover_session_bus_address.sh unity
unity &
save it and give both script execution permissions: chmod +x discover_session_bus_address.sh chmod +x recover_unity.sh

Now, every time unity freezes, use CTRL+ALT+F1, login and, within the folder where those scripts were saved, type

source recover_unity.sh

Revision history for this message
Milton (miltonlaufer) wrote :

On thing is worth mentioning: if I disable all the Compiz effects, plugging or unplugging an external monitor does not turn the desktop and windows unresponsive, but unity panel and launcher, and also window decoration (with the close and minimize buttons) disappear. Does this give any clue? (particularly taking into account that Compiz was upgraded last week, when the problem started).

Revision history for this message
Milton (miltonlaufer) wrote :

I posted the same problem on askubuntu and there are more people with this problem:

http://askubuntu.com/questions/591146/ubuntu-desktop-not-working-when-suspend-resume-or-connecting-an-external-monitor

Revision history for this message
Brian Murray (brian-murray) wrote :

Please add your dpkg log file /var/log/apt/history.log so we can have a look at what packages were updated.

Revision history for this message
Milton (miltonlaufer) wrote :

Thank you. Here's attached my history.log

Revision history for this message
Milton (miltonlaufer) wrote :

Sorry, that history log does not contain the information about the updates that caused the problem (it started around 2/25)

Here's the previous one.

Revision history for this message
Brian Murray (brian-murray) wrote :

I'd guess it is something to do with this upgrade:

Start-Date: 2015-02-26 03:27:34
Commandline: aptdaemon role='role-commit-packages' sender=':1.156'
Upgrade: firefox-locale-en:amd64 (35.0.1+build1-0ubuntu0.14.04.1, 36.0+build2-0ubuntu0.14.04.4), nvidia-settings:amd64 (346.35-0ubuntu1~xedgers14.04.1, 346.47-0ubuntu1~xedgers14.04.1), libdrm-intel1:amd64 (2.4.59+git20150125.0c5aaeef-0ubuntu0ricotz~trusty, 2.4.59+git20150225.1f73578d-0ubuntu0ricotz~trusty), libdrm-intel1:i386 (2.4.59+git20150125.0c5aaeef-0ubuntu0ricotz~trusty, 2.4.59+git20150225.1f73578d-0ubuntu0ricotz~trusty), firefox:amd64 (35.0.1+build1-0ubuntu0.14.04.1, 36.0+build2-0ubuntu0.14.04.4), libdrm-radeon1:amd64 (2.4.59+git20150125.0c5aaeef-0ubuntu0ricotz~trusty, 2.4.59+git20150225.1f73578d-0ubuntu0ricotz~trusty), libdrm-radeon1:i386 (2.4.59+git20150125.0c5aaeef-0ubuntu0ricotz~trusty, 2.4.59+git20150225.1f73578d-0ubuntu0ricotz~trusty), libwayland-server0:amd64 (1.4.0-1ubuntu1, 1.7.0-0ubuntu1~trusty1), libwayland-cursor0:amd64 (1.4.0-1ubuntu1, 1.7.0-0ubuntu1~trusty1), xserver-xorg-video-intel:amd64 (2.99.917+git20150212.147e190d-0ubuntu0sarvatt~trusty, 2.99.917+git20150225.2b978c71-0ubuntu0sarvatt~trusty), libdrm-nouveau2:amd64 (2.4.59+git20150125.0c5aaeef-0ubuntu0ricotz~trusty, 2.4.59+git20150225.1f73578d-0ubuntu0ricotz~trusty), libdrm-nouveau2:i386 (2.4.59+git20150125.0c5aaeef-0ubuntu0ricotz~trusty, 2.4.59+git20150225.1f73578d-0ubuntu0ricotz~trusty), libwayland-client0:amd64 (1.4.0-1ubuntu1, 1.7.0-0ubuntu1~trusty1), libdrm2:amd64 (2.4.59+git20150125.0c5aaeef-0ubuntu0ricotz~trusty, 2.4.59+git20150225.1f73578d-0ubuntu0ricotz~trusty), libdrm2:i386 (2.4.59+git20150125.0c5aaeef-0ubuntu0ricotz~trusty, 2.4.59+git20150225.1f73578d-0ubuntu0ricotz~trusty)
End-Date: 2015-02-26 03:28:09

Almost all of the packages updated come from a PPA, not the official Ubuntu archive, and you should try the official versions of the Ubuntu package to see if it is a bug with package in the Ubuntu archive. If it is not then you should take up this issue with the maintainers of the PPA from which you are installing packages.

Revision history for this message
Milton (miltonlaufer) wrote :

Thank you Brian.
I removed all the suspicious PPAs using ppa-purge (sudo apt-get install ppa-purge)

sudo add-apt-repository ppa:xorg-edgers/ppa (just in case you had disabled the ppa before(
sudo apt-ges

Revision history for this message
Milton (miltonlaufer) wrote :

(Sorry, the message was sent unintentionally)

Thank you Brian.
I removed all the suspicious PPAs using ppa-purge (sudo apt-get install ppa-purge)

sudo add-apt-repository ppa:xorg-edgers/ppa (just in case you had disabled the ppa before(
sudo apt-get update (idem)
sudo ppa-purge ppa:xorg-edgers/ppa
sudo add-apt-repository --remove ppa:xorg-edgers/ppa (I don't remember if this is necessary or if ppa-purge already does this)

 the same with ppa ppa:bumblebee/stable

then
sudo apt-get purge xserver-xorg*
sudo apt-get purge nvidia*

then
sudo apt-get install nvidia-331
sudo reboot

after reboot, not only everything works perfectly (plugin or unplugging the external monitor, suspending, etc) but the hardware graphic acceleration is faster than ever! (running glxspheres )

THANK YOU!!

Revision history for this message
Brian Murray (brian-murray) wrote :

Okay great! I'm setting the bug status to Invalid then.

Changed in ubuntu-meta (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.