Cinnamon Crash on Resolution Change w/ NVIDIA Drivers

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
pumrum

Cinnamon Crash on Resolution Change w/ NVIDIA Drivers

Post by pumrum »

System:
Lenovo W540 20BH | i7-4900MQ | 32gb RAM | 512gb SSD | 2880x1620 3k Display | NVIDIA Quadro K1100M 2gb | Intel AC 7260 Wireless

I am having issues with CInnamon crashing when I change my screen resolution using the NVIDIA proprietary driver. Steps to reproduce:
  1. Fresh install of LM17 Cinnamon 64bit on the system above
  2. update all packages and kernel (3.13.0-24-generic) available 10 Jun 2014
  3. reboot
  4. change resolution from default 2880x1620 (16:9) to 1920x1080 (16:9) using Display, click Apply
  5. logout no issues, reboot no issues
  6. change resolution back to default 2880x1620 (16:9)
  7. reboot
  8. enable nvidia-331 (331.38) via Driver Manager
  9. reboot
  10. change resolution from default 2880x1620 (16:9) to 1920x1080 (16:9) using Display, click Apply
  11. kicks me to logon screen
  12. cinnamon crashes when I try to logon, even after reboot
  13. when I log back on, resolution is still at 2880x1620 but now lowDPI, no cinnamon, basic window manager
  14. If I try to change resolution, I get the following error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.cinnamon.SettingsDaemon was not provided by any .service files
  15. If I disable the NVIDIA driver using the NVIDIA X Server Settings utility and reboot, cinnamon starts working again
  16. once the Intel drivers are activated, I can change resolution down and back up without issue
  17. however, even if I switch back to default resolution and re-enable the NVIDIA driver, cinnamon continues to crash
I'm mostly interested in why I cannot change the resolution when using the NVIDIA driver. I can very easily reinstall and get cinnamon back up and running using the NVIDIA drivers, but I would really like to be able to dumb my resolution down a bit since I have some things that are not hiDPI (retina) ready yet. Apologies if I missed anything below. very long time ubuntu user (7 years), very new to linux mint and proprietary drivers, and a very long time since I've had to deal with anything xorg.

Code: Select all

$ uname -a
Linux mercury540 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

$ inxi -Gl
Graphics:  Card-1: Intel 4th Gen Core Processor Integrated Graphics Controller 
           Card-2: NVIDIA GK107GLM [Quadro K1100M] 
           X.Org: 1.15.1 driver: nvidia Resolution: 2880x1620@60.0hz 
           GLX Renderer: Quadro K1100M/PCIe/SSE2 GLX Version: 4.4.0 NVIDIA 331.38
Partition: ID: / size: 470G used: 4.4G (1%) fs: ext4 dev: /dev/mapper/sda3_crypt label: N/A 
           ID: /boot size: 119M used: 48M (43%) fs: ext2 dev: /dev/sda2 label: N/A 

Code: Select all

$ lspci -vnn
00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller [8086:0c04] (rev 06)
	Subsystem: Lenovo Device [17aa:2211]
	Flags: bus master, fast devsel, latency 0
	Capabilities: <access denied>

00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller [8086:0c01] (rev 06) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 00004000-00004fff
	Memory behind bridge: b0000000-b10fffff
	Prefetchable memory behind bridge: 0000000080000000-0000000091ffffff
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06) (prog-if 00 [VGA controller])
	Subsystem: Lenovo Device [17aa:2211]
	Flags: bus master, fast devsel, latency 0, IRQ 46
	Memory at b1400000 (64-bit, non-prefetchable) [size=4M]
	Memory at a0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 5000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: i915

00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
	Subsystem: Lenovo Device [17aa:2211]
	Flags: bus master, fast devsel, latency 0, IRQ 48
	Memory at b2a30000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

00:14.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI [8086:8c31] (rev 04) (prog-if 30 [XHCI])
	Subsystem: Lenovo Device [17aa:2211]
	Flags: bus master, medium devsel, latency 0, IRQ 43
	Memory at b2a20000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd

00:16.0 Communication controller [0780]: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 [8086:8c3a] (rev 04)
	Subsystem: Lenovo Device [17aa:2211]
	Flags: bus master, fast devsel, latency 0, IRQ 47
	Memory at b2a39000 (64-bit, non-prefetchable) [size=16]
	Capabilities: <access denied>
	Kernel driver in use: mei_me

00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection I217-LM [8086:153a] (rev 04)
	Subsystem: Lenovo Device [17aa:2210]
	Flags: bus master, fast devsel, latency 0, IRQ 45
	Memory at b2a00000 (32-bit, non-prefetchable) [size=128K]
	Memory at b2a3e000 (32-bit, non-prefetchable) [size=4K]
	I/O ports at 5080 [size=32]
	Capabilities: <access denied>
	Kernel driver in use: e1000e

00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 04)
	Subsystem: Lenovo Device [17aa:2211]
	Flags: bus master, fast devsel, latency 0, IRQ 49
	Memory at b2a34000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 [8086:8c10] (rev d4) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	Memory behind bridge: b2900000-b29fffff
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.1 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #2 [8086:8c12] (rev d4) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
	Memory behind bridge: b2800000-b28fffff
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.2 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 [8086:8c14] (rev d4) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=04, subordinate=05, sec-latency=0
	I/O behind bridge: 00003000-00003fff
	Memory behind bridge: b2000000-b27fffff
	Prefetchable memory behind bridge: 00000000b1800000-00000000b1ffffff
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.4 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 [8086:8c18] (rev d4) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=06, subordinate=3f, sec-latency=0
	I/O behind bridge: 00002000-00002fff
	Memory behind bridge: b8000000-ce0fffff
	Prefetchable memory behind bridge: 00000000d0000000-00000000f1ffffff
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1d.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 [8086:8c26] (rev 04) (prog-if 20 [EHCI])
	Subsystem: Lenovo Device [17aa:2211]
	Flags: bus master, medium devsel, latency 0, IRQ 23
	Memory at b2a3d000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: <access denied>
	Kernel driver in use: ehci-pci

00:1f.0 ISA bridge [0601]: Intel Corporation QM87 Express LPC Controller [8086:8c4f] (rev 04)
	Subsystem: Lenovo Device [17aa:2211]
	Flags: bus master, medium devsel, latency 0
	Capabilities: <access denied>
	Kernel driver in use: lpc_ich

00:1f.2 SATA controller [0106]: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] [8086:8c03] (rev 04) (prog-if 01 [AHCI 1.0])
	Subsystem: Lenovo Device [17aa:2211]
	Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 44
	I/O ports at 50a8 [size=8]
	I/O ports at 50b4 [size=4]
	I/O ports at 50a0 [size=8]
	I/O ports at 50b0 [size=4]
	I/O ports at 5060 [size=32]
	Memory at b2a3c000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: <access denied>
	Kernel driver in use: ahci

00:1f.3 SMBus [0c05]: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller [8086:8c22] (rev 04)
	Subsystem: Lenovo Device [17aa:2211]
	Flags: medium devsel, IRQ 255
	Memory at b2a38000 (64-bit, non-prefetchable) [size=256]
	I/O ports at efa0 [size=32]

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GLM [Quadro K1100M] [10de:0ff6] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Lenovo Device [17aa:2211]
	Flags: bus master, fast devsel, latency 0, IRQ 51
	Memory at b0000000 (32-bit, non-prefetchable) [size=16M]
	Memory at 80000000 (64-bit, prefetchable) [size=256M]
	Memory at 90000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 4000 [size=128]
	[virtual] Expansion ROM at b1000000 [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: nvidia

02:00.0 SD Host controller [0805]: O2 Micro, Inc. SD/MMC Card Reader Controller [1217:8520] (rev 01) (prog-if 01)
	Subsystem: Lenovo Device [17aa:2211]
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at b2901000 (32-bit, non-prefetchable) [size=4K]
	Memory at b2900000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: <access denied>
	Kernel driver in use: sdhci-pci

03:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b2] (rev 83)
	Subsystem: Intel Corporation Dual Band Wireless-AC 7260 [8086:c270]
	Flags: bus master, fast devsel, latency 0, IRQ 50
	Memory at b2800000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: <access denied>
	Kernel driver in use: iwlwifi
xorg.conf:

Code: Select all

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0@0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection
edit: forgot to attach xsession-errors:

Code: Select all

/etc/mdm/Xsession: Beginning session setup...
localuser:john being added to access control list
Script for none started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Script for none started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-dZmxFg
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-dZmxFg
GPG_AGENT_INFO=/run/user/1000/keyring-dZmxFg/gpg:0:1
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-dZmxFg
GPG_AGENT_INFO=/run/user/1000/keyring-dZmxFg/gpg:0:1
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-dZmxFg
GPG_AGENT_INFO=/run/user/1000/keyring-dZmxFg/gpg:0:1
SSH_AUTH_SOCK=/run/user/1000/keyring-dZmxFg/ssh

(cinnamon-settings-daemon:2782): Gdk-ERROR **: The program 'cinnamon-settings-daemon' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 324 error_code 8 request_code 140 (RANDR) minor_code 30)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
cinnamon-session[2551]: WARNING: Application 'cinnamon-settings-daemon.desktop' killed by signal 5
cinnamon-session[2551]: WARNING: Application 'cinnamon-settings-daemon.desktop' failed to register before timeout
cinnamon-session[2551]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Window manager warning: Log level 16: g_object_set_valist: object class 'ClutterSettings' has no property named 'window-scaling-factor'
      JS LOG: About to start Cinnamon

** (nemo:2826): WARNING **: Can not get _NET_WORKAREA

** (nemo:2826): WARNING **: Can not determine workarea, guessing at layout
nm-applet-Message: using fallback from indicator to GtkStatusIcon
Window manager warning: Trying to remove non-existent custom keybinding "magnifier-zoom-in".
Window manager warning: Trying to remove non-existent custom keybinding "magnifier-zoom-out".
      JS LOG: Cinnamon started at Wed Jun 11 2014 11:04:45 GMT-0400 (EDT)

(cinnamon:2817): St-CRITICAL **: st_widget_get_theme_node called on the widget [0x1c12780 StBoxLayout.menu-selected-app-box] which is not in the stage.

(nemo:2826): GLib-GIO-CRITICAL **: g_file_info_get_attribute_uint64: assertion 'G_IS_FILE_INFO (info)' failed

(nemo:2826): GLib-GIO-CRITICAL **: g_file_info_get_attribute_uint64: assertion 'G_IS_FILE_INFO (info)' failed

(nemo:2826): GLib-GIO-CRITICAL **: g_file_info_get_attribute_uint64: assertion 'G_IS_FILE_INFO (info)' failed
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
pumrum

Re: Cinnamon Crash on Resolution Change w/ NVIDIA Drivers

Post by pumrum »

tried the same thing on Ubuntu 14.04 64bit with same drivers, changing resolution works fine. sigh, back to ubuntu for now :(

If anyone has any ideas I am more than willing to troubleshoot so I can get myself onto Mint full time...
alexlm

Re: Cinnamon Crash on Resolution Change w/ NVIDIA Drivers

Post by alexlm »

I use an external monitor on HDMI at 1440x900 while the laptop one has 1920x1080. The external screen is not detected in the Nvidia control panel and the desktop background on the laptop screen is a picture in picture of the two resolution scales while the external monitor screen gets the 1920x1080 resolution, as the laptop one, so the desktop image is not porperly scaled. If i disconnect the external moitor, the laptop desktop background is shown properly. If i try to change the resolution using the System Settings controls, i get an error:

Code: Select all

GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.cinnamon.SettingsDaemon was not provided by any .service files
If i try to restart the mdm sevice, i get logged out of the session and i cannot log back in without it crashing again. All works fine again after i disable the 331.38 driver.

~/.xsession-errors:

Code: Select all

(cinnamon-settings-daemon:2077): media-keys-plugin-WARNING **: Grab failed for some keys, another application may already have access the them.

(cinnamon-settings-daemon:2077): color-plugin-WARNING **: failed to reset xrandr-Chimei Innolux Corporation gamma tables: gamma size is zero
Window manager warning: Log level 16: g_object_set_valist: object class 'ClutterSettings' has no property named 'window-scaling-factor'
nm-applet-Message: using fallback from indicator to GtkStatusIcon
      JS LOG: About to start Cinnamon

** (nemo:2543): WARNING **: Can not get _NET_WORKAREA

** (nemo:2543): WARNING **: Can not determine workarea, guessing at layout
Window manager warning: Trying to remove non-existent custom keybinding "magnifier-zoom-in".
Window manager warning: Trying to remove non-existent custom keybinding "magnifier-zoom-out".
      JS LOG: Cinnamon started at Thu Jun 26 2014 02:55:36 GMT+0300 (EEST)

(cinnamon:2517): St-CRITICAL **: st_widget_get_theme_node called on the widget [0x38c6bb0 StBoxLayout.menu-selected-app-box] which is not in the stage.
      JS LOG: network applet: Cannot find connection for active (or connection cannot be read)
      JS LOG: network applet: Found connection for active

(mintUpdate.py:2707): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(mintUpdate.py:2707): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(mintUpdate.py:2707): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(mintUpdate.py:2707): libglade-WARNING **: unknown attribute `swapped' for <signal>.
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x1400003 (Authentica)
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed

(cinnamon-settings-daemon:2077): Gtk-CRITICAL **: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(cinnamon-settings-daemon:2077): color-plugin-WARNING **: failed to reset xrandr-Chimei Innolux Corporation gamma tables: gamma size is zero

(cinnamon-settings-daemon:2077): color-plugin-WARNING **: failed to reset xrandr-Chimei Innolux Corporation gamma tables: gamma size is zero
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed
Window manager warning: Log level 8: meta_window_raise: assertion '!window->override_redirect' failed
Window manager warning: Log level 8: meta_window_focus: assertion '!window->override_redirect' failed
I have a Lenovo E540 laptop with Nvidia GF GT740M GPU; it could be an issue only with Lenovo TPs, i saw there are some other posts on the internet reporting issues with Lenovo laptops and Nvidia GPUs with Linux.
alexlm

Re: Cinnamon Crash on Resolution Change w/ NVIDIA Drivers

Post by alexlm »

You can still use the Nvidia GPU if you use the bumblebee/primus program combination - see https://wiki.archlinux.org/index.php/Bumblebee for more details on how it works. So don't use the LM Driver Manager to install the Nvidia driver, purge the nvidia package installation and use instead apt-get from the CLI or Synaptic to download the nvidia-331 along with bumblebee and priums packages (and some ather dependencies, you also need bbswitch, which is installed by default). With this configuration i cannot use the Nvidia X Server Settings configuration utility for the driver but i can lauch programs for which the DRM (see http://en.wikipedia.org/wiki/Direct_Rendering_Manager) would use the Nvidia GPU for graphics processing by running "optirun <application/program name>" from the CLI. I have not encountered any display issues by using this configuration. I also tried using the nvidia-prime package which is a similar mechanism, but this one didn't work.

Code: Select all

~$ optirun inxi -Gxx
Graphics:  Card: Intel 4th Gen Core Processor Integrated Graphics Controller bus-ID: 00:02.0 
           X.Org: 1.15.1 drivers: intel (unloaded: fbdev,vesa) Resolution: 1440x900@59.9hz 
           GLX Renderer: GeForce GT 740M/PCIe/SSE2 GLX Version: 4.4.0 NVIDIA 331.38 Direct Rendering: Yes
~$ inxi -Gxx
Graphics:  Card: Intel 4th Gen Core Processor Integrated Graphics Controller bus-ID: 00:02.0 
           X.Org: 1.15.1 drivers: intel (unloaded: fbdev,vesa) Resolution: 1440x900@59.9hz 
           GLX Renderer: Mesa DRI Intel Haswell Mobile GLX Version: 3.0 Mesa 10.1.3 Direct Rendering: Yes
stardancer

Re: Cinnamon Crash on Resolution Change w/ NVIDIA Drivers

Post by stardancer »

I had a similar error with Cinnamon and NVIDIA when I hooked up an external monitor and changed resolutions. Basically, a file is created that causes the problem and deleting or renaming the file fixes the issue.

Code: Select all

rm ~/.config/monitors.xml
My post: http://forums.linuxmint.com/viewtopic.p ... 8&t=174324

Hope this helps!
snorri

Re: Cinnamon Crash on Resolution Change w/ NVIDIA Drivers

Post by snorri »

This is NOT a Lenovo problem but a NVIDIA driver problem. I had the same problem on an Asus notebook with nvidia G740M.
Could not disable monitor mirroring and hardware FN7 and FN-6 buttons for brightness were disabled as well.
Error:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.cinnamon.SettingsDaemon was not provided by any .service files
Removing the monitors.xml did not solve the problem for me, the file is recreated on bootup anyway.
But I had installed the nvidia331 driver since it was marked as "recommended"... going back to nouveau driver solved all problems.
Nvidia sucks.
Locked

Return to “Cinnamon”