Bug 44391
Summary: | After resume, Nvidia Optimus GPU is ON even when turned off with switcheroo | ||
---|---|---|---|
Product: | Drivers | Reporter: | Peter Wu (peter) |
Component: | Video(Other) | Assignee: | drivers_video-other |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | alan, alexpigna.dev, budinero, rockorequin, samsagax, santiago.mola, ulixes84 |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.6 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Peter Wu
2012-07-10 14:25:55 UTC
I can confirm this bug affects proto-optimus nvidia DSM machines: NVIDIA GT218 [GeForce 310M] The card is ON after resume, but switcheroo thinks it's OFF. If I issue # tee /sys/kernel/debug/vgaswitcheroo <<< OFF Nothing happens. Then If # tee /sys/kernel/debug/vgaswitcheroo <<< ON It hangs. Laptop still responsive from TTY, but X will hang (and will freeze laptop). 3.6-rc5 with X server 1.13 still hangs my laptop (i7-2630QM CPU with discrete nvidia 540M) if I try a suspend/resume cycle with nouveau loaded and if I have turned off the nvidia card via vgaswitcheroo. When I tried it, the laptop appeared to suspend properly, but on resume it came up with an unresponsive black screen (with the backlight on). The last message in Xorg.0.log was: [ 3920.996] (II) AIGLX: Suspending AIGLX clients for VT switch [ 3920.996] (II) NOUVEAU(G0): NVLeaveVT is called. and in syslog: Sep 9 18:28:54 sierra kernel: [ 3920.078844] PM: Syncing filesystems ... done. Sep 9 18:28:54 sierra kernel: [ 3920.311083] PM: Preparing system for mem sleep Adding one observation with the suspend/resume under Windows with my Optimus laptop: before suspend, the card is equally turned on (the LED indicator turns to "discrete"). On resume, the LED indicator is initially "integrated", but then jumps to "discrete" and back to "integrated". So my approach to turn the device on before suspend and disabling it on resume was not that bad. Not sure about ATI laptops though, I am very interested in laptops with ATI hybrid graphics. Could anyone with ATI hybrid graphics provide details on that? I have posted a patch for nouveau before: https://bugzilla.kernel.org/show_bug.cgi?id=15845#c7 Another duplicate bug, but for ATI hybrids: https://bugzilla.kernel.org/show_bug.cgi?id=45061 *** Bug 45061 has been marked as a duplicate of this bug. *** I confirm this bug for ATI-Intel hybrid graphics with Radeon 7670M. After resum discrete card can't be switched off. I can confirm this in a Sony VAIO with an ATI Radeon 7500 Series. Additionally, X server hang switching to any console or restarting X if discrete gpu is off. With nouveau runpm=1 (or runpm=-1 on an Optimus system), the card is properly disabled after suspend. The same applies to the radeon module. |