Bug 212640

Summary: FreeBSD 10.3-RELEASE does not resume after suspend with specific options set in /boot/loader.conf
Product: Base System Reporter: Slawomir Wojciech Wojtczak <vermaden>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Feedback Timeout    
Severity: Affects Some People CC: amd64
Priority: ---    
Version: 10.3-RELEASE   
Hardware: amd64   
OS: Any   

Description Slawomir Wojciech Wojtczak 2016-09-13 06:04:28 UTC
Hi,

the hardware is laptop ThinkPad W530 with two graphics cards:
 - NVIDIA QUADRO K2000M
 - INTEL HD 4000 (i7-3630QM CPU)

When I set DISCRETE (nvidia) card to be used in BIOS and have these settings in /boot/loader.conf, then FreeBSD freezes on resume:

----------------------------------------
/boot/loader.conf
========================================
# BOOT OPTIONS | INTEL ONLY
hw.vga.textmode=0
kern.vty=vt
kern.vt.kbd_reboot=1
kern.vt.fb.default_mode="1920x1080"

# MODULES | INTEL ONLY
i915kms_load=YES

# MODULES | NVIDIA ONLY
nvidia_load=YES
========================================

... but when I disable them (#) the resume works like a charm:

----------------------------------------
/boot/loader.conf
========================================
# BOOT OPTIONS | INTEL ONLY
# hw.vga.textmode=0
# kern.vty=vt
# kern.vt.kbd_reboot=1
# kern.vt.fb.default_mode="1920x1080"

# MODULES | INTEL ONLY
# i915kms_load=YES

# MODULES | NVIDIA ONLY
nvidia_load=YES
========================================

... also, when I set graphics card to INTEL in BIOS (Integrated) and these modules are loaded the suspend/resume works ok (in other words, loaded NVIDIA binary driver does not break anything):

----------------------------------------
/boot/loader.conf
========================================
# BOOT OPTIONS | INTEL ONLY
hw.vga.textmode=0
kern.vty=vt
kern.vt.kbd_reboot=1
kern.vt.fb.default_mode="1920x1080"

# MODULES | INTEL ONLY
i915kms_load=YES

# MODULES | NVIDIA ONLY
nvidia_load=YES
========================================

It just looks like the new VT breaks that suspend/resume but that is only a wild guess.

Regards,
vermaden