#StackBounty: #16.04 #networking #wireless #intel-wireless #iwlwifi Wifi Extremely Slow in Ubuntu 16.04 with Intel Centrino Wireless N …

Bounty: 50

After perusing through several answers here and trying them out, I’m stumped as to what’s causing the slow wifi on my laptop.

For reference, I tested the wifi on my laptop both in Windows 7 and in Ubuntu 16.04 LTS. I clocked an average down speed of ~28 Mbps on Windows and ~9 Mbps in Ubuntu.

I tried this Ask Ubuntu answer which brought my Ubuntu down speed to ~22 Mbps but my speeds go back down after the laptop comes back from sleep.

I used the wireless-info script to post my wifi information here.

Please let me know if there’s any additional information needed and I’ll get right on it. Thanks for your help.


Get this bounty!!!

#StackBounty: #16.04 #vlc #dvd #drm How do I play DVDs in Ubuntu 16.04?

Bounty: 50

I need to watch a DVD for school, but when I try to watch it in VLC, I get this error:

Playback failure:
VLC cannot set the DVD's title. It possibly cannot decrypt the entire disc.
Playback failure:
VLC cannot set the DVD's title. It possibly cannot decrypt the entire disc.
Your input can't be opened:
VLC is unable to open the MRL 'dvd:///media/curticegough/PHYSICAL_DVD_3/VIDEO_TS/'. Check the log for details.

If I open it in nautiuls, I get this error:

This location could not be displayed

Sorry, could not display all the contents of “PHYSICAL_DVD_3”: Error 
when getting information for file 
'/media/curticegough/PHYSICAL_DVD_3/VIDEO_TS.IFO': Input/output error

I already know about DRM and what it is, but I don’t know how to get around it.

I also already have all of the usual codecs, including libdvdnav4, libdvdread4, gstreamer1.0-plugins-bad, gstreamer1.0-plugins-ugly, dvdcss2, ubuntu-restricted-extras and libdvd-pkg.

I also have regionset installed just in case I need to use it for some reason.

How do I play my DVD???


Get this bounty!!!

#StackBounty: #16.04 #suspend #password #lock-screen #lock Only require password when waking up from suspend when suspended for 10 minu…

Bounty: 50

I generally want my laptop to be locked when it’s suspended but not when I just suspended it because there is a use case in which entering my password after my laptop woke up from suspend is pretty cumbersome. A good compromise is to only require the login password if the laptop was suspended more than 10 minutes ago. How do I do this?

I use Ubuntu 16.04 with Unity.


Get this bounty!!!

#StackBounty: #mount #16.04 #samba #cifs pam_mount often unable to mount and hangs for minutes

Bounty: 100

I have some centrally managed Ubuntu workstations that authenticate users against Active Directory and mount user home folders on logon with pam_mount. This usually works as expected, but sometimes the home folders will not mount and for every volume to mount I get this in /var/log/auth.log:

(mount.c:72): Messages from underlying mount program:
(mount.c:76): mount error(115): Operation now in progress
(mount.c:76): Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
(pam_mount.c:522): mount of data/users/username/documents failed

It hangs for over 10 seconds on each volume, so logging in or doing su for instance can literally take minutes. When I open another terminal during this, I exceptionally get

I have no name!@VP-OH-01L:~$

I see this in syslog:

Jun 11 18:28:16 VP-OH-01L kernel: [35851.544770] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Jun 11 18:28:16 VP-OH-01L kernel: [35851.544787] cifs_vfs_err: 10 callbacks suppressed
Jun 11 18:28:16 VP-OH-01L kernel: [35851.544789] CIFS VFS: Send error in SessSetup = -13
Jun 11 18:28:16 VP-OH-01L kernel: [35851.544912] CIFS VFS: cifs_mount failed w/return code = -13
Jun 11 18:28:26 VP-OH-01L kernel: [35861.554651] CIFS VFS: Error connecting to socket. Aborting operation.
Jun 11 18:28:26 VP-OH-01L kernel: [35861.554822] CIFS VFS: cifs_mount failed w/return code = -115
Jun 11 18:28:36 VP-OH-01L kernel: [35871.564834] CIFS VFS: Error connecting to socket. Aborting operation.
Jun 11 18:28:36 VP-OH-01L kernel: [35871.565010] CIFS VFS: cifs_mount failed w/return code = -115

It still logs in (and does not warn about offline login that it does when there is no connection) so there is a connection between the workstation and the domain.

I’m going to dump all my related configs below; sorry about a wall of text! In /etc/security/pam_mount.conf.xml I have about 10 of configs like this:

<volume user="*" fstype="cifs" server="ou.domain.com" path="data/users/%(USER)/documents" mountpoint="~/Documents" options="uid=%(USER),gid=100,dir_mode=0700,file_mode=0700,nounix,iocharset=utf8,rw,sec=ntlmsspi" />

In /etc/pam.d/common-auth:

auth    [success=2 default=ignore]      pam_unix.so nullok_secure
auth    [success=1 default=ignore]      pam_winbind.so krb5_auth krb5_ccache_type=FILE cached_login try_first_pass
auth    requisite           pam_deny.so
auth    required            pam_permit.so
auth    optional            pam_mount.so disable_interactive

In /etc/pam.d/common-session:

session [default=1]         pam_permit.so
session requisite           pam_deny.so
session required            pam_permit.so
session optional            pam_umask.so
session required            pam_unix.so 
session optional            pam_winbind.so 
session optional            pam_mount.so disable_interactive
session optional            pam_systemd.so 

In /etc/hosts:

127.0.0.1   localhost
127.0.1.1   COMPUTER_FQDN   COMPUTER_HOSTNAME

In /etc/krb5.conf:

[libdefaults]
default_realm = OU.DOMAIN.COM
ticket_lifetime = 24000
default_tgs_enctypes = rc4-hmac des-cbc-md5
default_tkt_enctypes = rc4-hmac des-cbc-md5
permitted_enctypes = rc4-hmac des-cbc-md5
dns_lookup_realm = true
dns_lookup_kdc = true
dns_fallback = yes
krb4_config = /etc/krb.conf
krb4_realms = /etc/krb.realms
kdc_timesync = 1
ccache_type = 4
forwardable = true
proxiable = true

[realms]
OU.DOMAIN.COM = {
    kdc = ou.domain.com:88
    default_domain = ou.domain.com
}

[domain_realm]
.ou.domain.com = OU.DOMAIN.COM
ou.domain.com = OU.DOMAIN.COM

[login]
krb4_convert = true
krb4_get_tickets = false

In /etc/nsswitch.conf:

passwd:         compat winbind
group:          compat winbind
shadow:         compat
gshadow:        files
hosts:          files dns wins
networks:       files
protocols:      db files
services:       db files
ethers:         db files
rpc:            db files
netgroup:   nis

In /etc/security/pam_winbind.conf:

cached_login = yes

And finally, in /etc/samba/smb.conf:

[global]
netbios name                    = COMPUTER_HOSTNAME
security                        = ADS
workgroup                       = OU
realm                           = OU.DOMAIN.COM
encrypt passwords               = yes
idmap config *:backend          = rid
idmap config *:range            = 5000-100000
dedicated keytab file           = /etc/krb5.keytab
kerberos method                 = secrets and keytab
winbind refresh tickets         = yes
winbind trusted domains only    = no
winbind use default domain      = yes
winbind enum users              = yes
winbind enum groups             = yes
winbind offline logon           = yes
client ntlmv2 auth              = yes
client ldap sasl wrapping       = sign
template shell                  = /bin/bash
wins server                     = 192.168.0.70
name resolve order              = lmhosts host wins bcast

The workstations have Ubuntu 16.04. This happens very randomly when I start up the computer and login (or later su to another domain user) and I haven’t found a way to reproduce it. Sometimes it works like a charm. The workstations are connected to LAN via Ethernet and the DC is in the same LAN (good connection). I’m out of ideas and any help or suggestions will be much appreciated 🙂


Get this bounty!!!

#StackBounty: #16.04 #graphics #lubuntu #intel-graphics #tearing Screen tearing with Intel graphics

Bounty: 100

I’m running Lubuntu 16.04 on an old Dell Optiplex 780 with an E7500 and integragrated graphics (GMA 4500). When scrolling and during video playback I get this weird wave form tear in the middle of the screen. I first used the VGA out, then tried the DVI out from a PCI adapter and the issue persists.


Get this bounty!!!

#StackBounty: #boot #16.04 #xserver #startup-applications #synergy Start Synergy (or any application) BEFORE logging in Ubuntu 16.04.2 …

Bounty: 150

Using Ubuntu 16.04.2 (Xenial) on Intel x64:{Both Processor and Ubuntu install}

This question has been answered a million times, but none of the solutions work. So I don’t want to duplicate a question, but it hasn’t been answered.

When I fire up a terminal and sudo -i, the following command works just as expected.

`root@user-pc:~# /usr/bin/synergyc -f --no-tray --debug INFO --name 
 user-pc 192.168.xxx.xxx:24800
 [2017-05-23T09:20:44] NOTE: started client
 [2017-05-23T09:21:01] NOTE: connecting to '192.168.5.100': 
 192.168.5.100:24800
 [2017-05-23T09:21:01] NOTE: connected to server`

I am then able to utilize the program for it’s purpose. However, I want this to be done automatically before login so that I can utilize it’s purpose from the login screen. (Synergy allows you to use one keyboard and mouse across multiple computers, almost like a virtual KVM but instead of hitting switches, you just roll your mouse right onto the next screen as if they were all attached to one graphics card)

The first thing I tried was rc.local:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

exec /usr/bin/synergyc -f --no-tray --debug INFO --name user-pc 192.168.5.100:24800

exit 0

~~~ls /etc/rc.local -l:

-rwxr-xr-x 1 root root 390 May 22 20:56 /etc/rc.local

So it’s definitely executable, but upon rebooting the PC:

~~~ps aux | grep syner:

`root  990  0.0  0.0  63656  5372 ?  Ssl  09:33  0:00 
 /usr/bin/synergyc -f --no-tray --debug INFO --name user-pc 
 192.168.5.100:24800`

However it isn’t doing what it is supposed to, even unity dialogs are being called saying something went wrong, which only happens when this executes, so I can safely assume it’s that.

My safest assumption is that the program is being run just fine, the problem is that rc.local is run prior to the x session starting so any hooks to the keyboard and mouse are never established, which is also likely only done at the beginning of execution of synergyc and not attempted again beyond that point.

The second thing I tried was “Startup Applications”, it works, but not until after login, which is not what we want going on here.

If my assumption is correct:

What is a way to call execution of a process after the x server is up, but before any user has to login.

If my assumption is not correct:

Help


Get this bounty!!!

#StackBounty: #16.04 #sound #pulseaudio #hdmi Sound over HDMI only with mirrored screens? (except for test-sound)

Bounty: 50

Sound over HDMI used to work always, after selecting HDMI output.
Today, however, I changed the mode (from stereo to 5.1 surround) and since then I have the following:

  • I can’t change the ‘mode’ anymore
  • The ‘Test’ buttons in the sound settings do work
  • As soon as I start to play sth via Firefox, there is no sound
  • When I then use the Test buttons after half a second, the sound works again (I can hear “… right” the first time, after I can hear “front right”)

Anybody a clue what’s going on? Or what I can do to find the faulty?
I’m on 16.04 and https://help.ubuntu.com/community/SoundTroubleshootingProcedure Step 1 didn’t do anything.

EDIT 1: Just discovered that the sound over HDMI does work properly if displays are mirrored, whereas it doesn’t if the laptop screen is uncoupled from the TV (like, different resolutions, different windows), of if the laptop screen is off.

EDIT 2: Things are getting even weirder: I now have the screens not mirrored, in sound settings selected HDMI. When I play video a in Firefox does create sound, video b in Firefox doesn’t. Also: Playing an mp3 file with Videos (default programme in Ubuntu) doesn’t play on its own, but when the video a is running in Firefox (and thus I have sound on my TV) and I play the mp3 file again I can hear it mix in as expected through the sound of the video. Does this indicate some automatic switch/mute mechanism, which I might be able to disable?


Get this bounty!!!

#StackBounty: #16.04 #wireless #network-manager Unable to connect wireless networks requiring password

Bounty: 100

I am able to connect to wifi networks that don’t require password.
But when I try to connect to a network that requires password, the password is not asked, Network Manager just tries to connect and of course it fails.

This is the log from /var/log/syslog:

NetworkManager[936]: <info>  [1495625898.1943] device (wlp2s0): Activation: starting connection 'true_home2G_b68' (ea2f25dd-98bd-4e72-b660-5ac56c683519)
NetworkManager[936]: <info>  [1495625898.1944] audit: op="connection-activate" uuid="ea2f25dd-98bd-4e72-b660-5ac56c683519" name="true_home2G_b68" pid=2168 uid=1000 result="success"
NetworkManager[936]: <info>  [1495625898.1945] device (wlp2s0): state change: disconnected -> prepare (reason 'none') [30 40 0]
NetworkManager[936]: <info>  [1495625898.1946] manager: NetworkManager state is now CONNECTING
NetworkManager[936]: <info>  [1495625898.1951] device (wlp2s0): state change: prepare -> config (reason 'none') [40 50 0]
NetworkManager[936]: <info>  [1495625898.1953] device (wlp2s0): Activation: (wifi) access point 'true_home2G_b68' has security, but secrets are required.
NetworkManager[936]: <info>  [1495625898.1953] device (wlp2s0): state change: config -> need-auth (reason 'none') [50 60 0]
NetworkManager[936]: <warn>  [1495625923.2170] device (wlp2s0): No agents were available for this request.
NetworkManager[936]: <info>  [1495625923.2171] device (wlp2s0): state change: need-auth -> failed (reason 'no-secrets') [60 120 7]
gnome-session[1940]: (nm-applet:2168): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
NetworkManager[936]: <info>  [1495625923.2174] manager: NetworkManager state is now DISCONNECTED
NetworkManager[936]: <warn>  [1495625923.2184] device (wlp2s0): Activation: failed for connection 'true_home2G_b68'
NetworkManager[936]: <info>  [1495625923.2199] device (wlp2s0): state change: failed -> disconnected (reason 'none') [120 30 0]
kernel: [32456.473864] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready

I don’t know if it matters, I think this problem started after installation of anbox. After that, in ifconfig results, wlp2s0 was replaced by another entry (anboxlo if I remember correctly). Now I removed anbox and tried to put back the old settings, searched for the errors in output… but no success.

Please help me here. I will be available to give more information as required.


EDIT 1 to add information required by @George in comment:

Result of $ less /var/log/syslog | grep -i wpa:

May 28 15:11:25 dv-XPS-15-9550 dbus[888]: [system] Activating via systemd: service name='fi.w1.wpa_supplicant1' unit='wpa_supplicant.service'
May 28 15:11:25 dv-XPS-15-9550 systemd[1]: Starting WPA supplicant...
May 28 15:11:25 dv-XPS-15-9550 dbus[888]: [system] Successfully activated service 'fi.w1.wpa_supplicant1'
May 28 15:11:25 dv-XPS-15-9550 systemd[1]: Started WPA supplicant.
May 28 15:11:25 dv-XPS-15-9550 wpa_supplicant[2633]: Successfully initialized wpa_supplicant
May 28 15:11:25 dv-XPS-15-9550 NetworkManager[2619]: <info>  [1495977085.7349] supplicant: wpa_supplicant running
May 28 15:11:25 dv-XPS-15-9550 wpa_supplicant[2633]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none
May 28 15:11:25 dv-XPS-15-9550 wpa_supplicant[2633]: dbus: Failed to construct signal
May 28 15:11:25 dv-XPS-15-9550 wpa_supplicant[2633]: Could not read interface p2p-dev-wlp2s0 flags: No such device
May 28 15:11:33 dv-XPS-15-9550 wpa_supplicant[2633]: p2p-dev-wlp2s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
May 28 15:13:07 dv-XPS-15-9550 wpa_supplicant[2633]: nl80211: deinit ifname=p2p-dev-wlp2s0 disabled_11b_rates=0
May 28 15:13:07 dv-XPS-15-9550 wpa_supplicant[2633]: nl80211: deinit ifname=wlp2s0 disabled_11b_rates=0
May 28 15:13:24 dv-XPS-15-9550 NetworkManager[2755]: <info>  [1495977204.9381] supplicant: wpa_supplicant running
May 28 15:13:24 dv-XPS-15-9550 wpa_supplicant[2633]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none
May 28 15:13:24 dv-XPS-15-9550 wpa_supplicant[2633]: dbus: Failed to construct signal
May 28 15:13:24 dv-XPS-15-9550 wpa_supplicant[2633]: Failed to create interface p2p-dev-wlp2s0: -16 (Device or resource busy)
May 28 15:13:24 dv-XPS-15-9550 wpa_supplicant[2633]: nl80211: Failed to create a P2P Device interface p2p-dev-wlp2s0
May 28 15:13:24 dv-XPS-15-9550 wpa_supplicant[2633]: P2P: Failed to enable P2P Device interface

(Network Manager seems to not be running after system boot. I run these commands: $ sudo service network-manager restart at 15:11:25, $ sudo service network-manager stop at 15:13:07 and $ sudo service network-manager start at 15:13:24)


EDIT 2 for more requested information:

$ sudo systemctl list-unit-files --type=service | grep enabled

accounts-daemon.service                    enabled 
anacron-resume.service                     enabled 
anacron.service                            enabled 
autovt@.service                            enabled 
avahi-daemon.service                       enabled 
bluetooth.service                          enabled 
brltty.service                             enabled 
cron.service                               enabled 
cups-browsed.service                       enabled 
cups.service                               enabled 
dbus-org.bluez.service                     enabled 
dbus-org.freedesktop.Avahi.service         enabled 
dbus-org.freedesktop.ModemManager1.service enabled 
dbus-org.freedesktop.thermald.service      enabled 
display-manager.service                    enabled 
dns-clean.service                          enabled 
friendly-recovery.service                  enabled 
getty@.service                             enabled 
gpu-manager.service                        enabled 
lightdm.service                            enabled 
mariadb.service                            enabled 
ModemManager.service                       enabled 
mysql.service                              enabled 
mysqld.service                             enabled 
networking.service                         enabled 
NetworkManager-wait-online.service         enabled 
pppd-dns.service                           enabled 
resolvconf.service                         enabled 
rsyslog.service                            enabled 
snapd.autoimport.service                   enabled 
snapd.service                              enabled 
snapd.system-shutdown.service              enabled 
syslog.service                             enabled 
systemd-timesyncd.service                  enabled 
thermald.service                           enabled 
ufw.service                                enabled 
unattended-upgrades.service                enabled 
ureadahead.service                         enabled 
whoopsie.service                           enabled

$ iw list | grep -i p2p

 * P2P-client
 * P2P-GO
 * P2P-device
 * start_p2p_device
 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
 * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
 * P2P-client: 0x40 0xd0
 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
 * P2P-device: 0x40 0xd0
 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,

EDIT 3 after enabling Network Manager service:

$ sudo systemctl list-unit-files --type=service | grep enabled
accounts-daemon.service                    enabled 
anacron-resume.service                     enabled 
anacron.service                            enabled 
autovt@.service                            enabled 
avahi-daemon.service                       enabled 
bluetooth.service                          enabled 
brltty.service                             enabled 
cron.service                               enabled 
cups-browsed.service                       enabled 
cups.service                               enabled 
dbus-org.bluez.service                     enabled 
dbus-org.freedesktop.Avahi.service         enabled 
dbus-org.freedesktop.ModemManager1.service enabled 
dbus-org.freedesktop.nm-dispatcher.service enabled 
dbus-org.freedesktop.thermald.service      enabled 
display-manager.service                    enabled 
dns-clean.service                          enabled 
friendly-recovery.service                  enabled 
getty@.service                             enabled 
gpu-manager.service                        enabled 
lightdm.service                            enabled 
mariadb.service                            enabled 
ModemManager.service                       enabled 
mysql.service                              enabled 
mysqld.service                             enabled 
network-manager.service                    enabled 
networking.service                         enabled 
NetworkManager-dispatcher.service          enabled 
NetworkManager-wait-online.service         enabled 
NetworkManager.service                     enabled 
pppd-dns.service                           enabled 
resolvconf.service                         enabled 
rsyslog.service                            enabled 
snapd.autoimport.service                   enabled 
snapd.service                              enabled 
snapd.system-shutdown.service              enabled 
syslog.service                             enabled 
systemd-timesyncd.service                  enabled 
thermald.service                           enabled 
ufw.service                                enabled 
unattended-upgrades.service                enabled 
ureadahead.service                         enabled 
whoopsie.service                           enabled

$ iw list | grep -i p2p
(same)

Also let me add that now when I try to connect to a wifi with password I get this error message in popup:

Connection failure

Connection activation failed

(2) Active connection removed before it was initialized


Get this bounty!!!

#StackBounty: #16.04 #startup-applications #boot-time Startup Synergy (or any application) BEFORE logging in. Ubuntu 16.04.2

Bounty: 150

Using Ubuntu 16.04.2 (Xenial) on Intel x64:{Both Processor and Ubuntu install}

This question has been answered a million times, but none of the solutions work. So I don’t want to duplicate a question, but it hasn’t been answered…

When I fire up a terminal and sudo -i, the following command works just as expected…

root@user-pc:~# /usr/bin/synergyc -f --no-tray --debug INFO --name user-pc 192.168.xxx.xxx:24800
[2017-05-23T09:20:44] NOTE: started client
[2017-05-23T09:21:01] NOTE: connecting to '192.168.5.100': 192.168.5.100:24800
[2017-05-23T09:21:01] NOTE: connected to server

I am then able to utilize the program for it’s purpose. However, I want this to be done automatically BEFORE login so that I can utilize it’s purpose FROM the login screen. (Synergy allows you to use one keyboard and mouse across multiple computers, almost like a virtual KVM but instead of hitting switches, you just roll your mouse right onto the next screen as if they were all attached to one graphics card)

The first thing I tried was rc.local:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

exec /usr/bin/synergyc -f --no-tray --debug INFO --name user-pc 192.168.5.100:24800

exit 0

~~~ls /etc/rc.local -l:

-rwxr-xr-x 1 root root 390 May 22 20:56 /etc/rc.local

So it’s definitely executable, but upon rebooting the PC:

~~~ps aux | grep syner:

root 990 0.0 0.0 63656 5372 ? Ssl 09:33 0:00 /usr/bin/synergyc -f --no-tray --debug INFO --name user-pc 192.168.5.100:24800

However it isn’t doing what it is supposed to, even unity dialogs are being called saying something went wrong, which only happens when this executes, so I can safely assume it’s that.

My safest assumption is that the program is being run just fine, the problem is that rc.local is run prior to the x session starting so any hooks to the keyboard and mouse are never established, which is also likely only done at the beginning of execution of synergyc and not attempted again beyond that point.

The second thing I tried was “Startup Applications”, it works, but not until after login, which is not what we want going on here.

If my assumption is correct:

What is a way to call execution of a process after the x server is up, but before any user has to login.

If my assumption is not correct:

Help


Get this bounty!!!

#StackBounty: #boot #16.04 #nvidia Extremely long boot after installing Nvidia drivers

Bounty: 50

I’m using Ubuntu 16.04 and after some time (I guess this started to happen after I updated Nvidia drivers) my computers began to boot very slowly. I tried to deactivate some unneeded services but it didn’t help.
I ran dmesg and I noticed some really large gaps. Here is the full log:
https://pastebin.com/d4EVfi8r

I hope someone will help me with this.

EDIT:

systemd-analyze blame | head

2min 16.363s docker.service
23.442s rabbitmq-server.service
16.774s grub-common.service
15.149s postgresql@9.5-main.service
13.691s dev-sda1.device
11.113s NetworkManager-wait-online.service
9.852s ModemManager.service
9.278s accounts-daemon.service
8.372s iio-sensor-proxy.service
8.176s apparmor.service

lspci -k | grep -iEA3 '3D|VGA'

00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
    Subsystem: Acer Incorporated [ALI] 3rd Gen Core processor Graphics Controller
    Kernel driver in use: i915
    Kernel modules: i915
--
01:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 740M] (rev a1)
    Subsystem: Acer Incorporated [ALI] GK208M [GeForce GT 740M]
    Kernel driver in use: nvidia
    Kernel modules: nvidiafb, nouveau, nvidia_375_drm, nvidia_375

EDIT2:

After disabling some services, this is what systemd-analyze blame | head returns:

 13.900s dev-sda1.device
 12.040s NetworkManager-wait-online.service
 10.572s ModemManager.service
  9.424s accounts-daemon.service
  8.030s apparmor.service
  7.827s grub-common.service
  7.356s systemd-logind.service
  6.810s rsyslog.service
  6.769s avahi-daemon.service
  6.766s bluetooth.service


Get this bounty!!!