Skip to content

Any way to ignore/suppress monitor hotplug events? #5619

@MaxMotovilov

Description

@MaxMotovilov

After upgrading to a dual-4K monitor setup, I found myself suffering from the infamous "false hotplug event" when monitors go to standby mode. As far as I can tell, my particular monitors (Samsung U28E510) do drop the HPD pin of the DisplayPort when in standby which is interpreted by the nvidia driver as monitor disconnect. They do reconnect properly when coming back from standby, however I am encountering an intermittent issue with Cinnamon (on about 50% of standby re-awakenings):

  • all windows are piled up in one of the monitors (usually, but not necessarily, the primary aka "left" one)
  • the Cinnamon applets reset their configurations (they don't load the ones from .cinnamon/configs/* but overwrite them with the default versions from applets' source code in .local/share/cinnamon/applets)

It appears that there's presently no way to tell the nvidia driver to ignore hotplug events, or at least I didn't manage to find one. For my purposes, it would be quite sufficient to suppress the monitor disconnect/connect events at Cinnamon level so that it doesn't attempt to re-arrange or reset anything. Any advice on how to approach this? I don't imagine there's a setting per se, but perhaps I can patch the JS code to have a dummy event handler at desktop level? Or are [some of] those things happening way before JS level, say in mdm?

Any suggestions are heartily appreciated.

My setup:
Mint 17.3 / Cinnamon 2.8.8
Nvidia GTX 960 (EVGA), driver version 367.44 (official nvidia)
2xSamsung U28E510 connected via DisplayPort 1.2, 4K @ 60Hz

Edit: looks like I was able to do that by
gsettings set org.cinnamon.settings-daemon.plugins.xrandr active false

Will try to live with it and see what else this setting might break...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions