Bug 96780 - Xorg server hangs if dedicated GPU is switched off
Summary: Xorg server hangs if dedicated GPU is switched off
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/Xorg (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-02 08:05 UTC by Roland
Modified: 2018-12-13 18:30 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Roland 2016-07-02 08:05:26 UTC
I am running Arch Linux with the latest 4.6 stable kernel and xorg-server 1.18.3. My laptop has two graphics cards: an integrated intel GPU and a dedicated GeForce GTX 970M Nvidia GPU. If the xorg server is started while the Nvidia card is switched off with bbswitch, then the complete system freezes. There are no log messages available and a hard reset is required. However if I switch on the dedicated Nvidia card before starting the xorg server everything works well. I am also able to successfully switch off the dedicated card after starting the xorg server. Under Wayland this problem does not exists.

I also tried to ignore the dedicated card with:
Section "Device"
    Identifier  "Nvidia"
    VendorName  "NVIDIA Corporation"
    Option      "Ignore" "true"
EndSection


Output of 'lspci | grep -E "VGA|3D"':
00:02.0 VGA compatible controller: Intel Corporation Skylake Integrated Graphics (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM204M [GeForce GTX 970M] (rev a1)

Hope we can get this fixed!
Comment 1 Roland 2016-07-02 10:51:11 UTC
I noticed following warning message:

xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

This warning is not displayed if the dedicated GPU is on and Xorg freezes the system...
Comment 2 Roland 2016-07-02 12:24:48 UTC
After hours of debugging I made following experience:

Xorg and Wayland both have problems when the dedicated GPU is switched off and no kernel module is loaded. However if the nouveau module with the proprietary firmware is loaded, then the problem seams to be fixed. The latest nouveau module handles powersaving and switches the GPU automatically off. This is a good workaround, but prevents from using the proprietary nvidia modules for bumblebee...
Comment 3 GitLab Migration User 2018-12-13 18:30:12 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/176.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.