I've recently installed Ubuntu 18.04 in a dual-boot configuration with Windows 10. I noticed today that, when trying to open system settings, Ubuntu seems to log me out to the lock screen. When I log back in, all previously-running applications are now closed. Very unsure what to do from here, any help much appreciated.
Ubuntu – Ubuntu 18.04 Opening System Setting Logs Me Out
crashlocklock-screenlogoutsystem-settings
Related Solutions
It is likely that your lock screen has been disabled. You can enable the lock screen with the following command in the terminal.
gsettings set org.gnome.desktop.lockdown disable-lock-screen false
If you want to enable the lock screen with a GUI you can do this with dconf-editor
. You can install dconf-editor
in the terminal with the following command.
apt install dconf-editor
Once you have dconf-editor
installed enable the lock screen with the following steps.
- Open
dconf-editor
. - Browse to
/org/gnome/desktop/lockdown/
. - Find
disable-lock-screen
. - Toggle option from On to Off.
Thanks to jugs for providing this solution at https://bbs.archlinux.org/viewtopic.php?id=227258
Okay, it seems installing a newer version of Mesa helped me. (I followed the instruction here but just in case I repeat the steps in this answer, in case the original post disappears).
Adding
ppa:ubuntu-x-swat/updates
:sudo add-apt-repository ppa:ubuntu-x-swat/updates
After that, the following packages are upgradable:
$ sudo apt list --upgradable Listing... Done libegl-mesa0/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1] libegl1-mesa/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1] libgbm1/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1] libgl1-mesa-dri/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1] libglapi-mesa/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1] libglx-mesa0/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1] libosmesa6/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1] libxatracker2/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1] mesa-va-drivers/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1] mesa-vdpau-drivers/cosmic 18.2.8-0ubuntu0~18.10.1~ppa1 amd64 [upgradable from: 18.2.2-0ubuntu1]
Do upgrade:
$ sudo apt dist-upgrade
Checking the version:
$ glxinfo | grep "OpenGL version" OpenGL version string: 3.0 Mesa 18.2.8
Log out and log in again. Everything seems to work fine and I can open Settings without any problem.
After this, the output of inxi -SCG
is as follows.
System:
Host: mypc Kernel: 4.18.0-13-generic x86_64 bits: 64
Desktop: Gnome 3.30.1 Distro: Ubuntu 18.10 (Cosmic Cuttlefish)
CPU:
Topology: 6-Core model: Intel Core i5-9600K bits: 64 type: MCP
L2 cache: 9216 KiB
Speed: 800 MHz min/max: 800/4600 MHz Core speeds (MHz): 1: 800 2: 800
3: 800 4: 800 5: 800 6: 800
Graphics:
Device-1: Intel driver: i915 v: kernel
Display: x11 server: X.Org 1.20.1 driver: i915 resolution: 3840x2160~30Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics (Coffeelake 3x8 GT2)
v: 4.5 Mesa 18.2.8
P.S. Uninstallation (although for me it brought the problem with Settings back, hence, it seems this is indeed the solution for my problem):
$ sudo apt install ppa-purge && sudo ppa-purge ppa:ubuntu-x-swat/updates
Best Answer
I had a look in
/var/log/kern.log
and noticed nouveau was crashing about the time I tried to opengnome-control-center
.So I installed the latest stable nvidia drivers (I'm using an nvidia graphics card), rebooted and now it works.