Clevo P650HS-G

From Gentoo Wiki
Jump to:navigation Jump to:search
Resources

This is a Laptop model made by OEM manufacturer Clevo and sold under many different brands as various brand-specific models.

Hardware

Standard

Device Make/model Status Vendor ID / Product ID Kernel driver(s) Kernel version Notes
CPU Intel(R) Core(TM) i7-7820hk / i7-7700HQ Works N/A N/A 4.14.16 Thermal throttles under heavy load.
Video card 0 NVIDIA Corporation GP104M [GeForce GTX 1070 Mobile] Functions limited 10de:1be1 nouveau / nvidia 4.14.16 Can use Nouveau or Nvidia when integrated graphics is turned off. Can only use Nvidia with Bumblebee when in hybrid mode. Can be passed using KVM and VFIO to virtual machines running Linux with Nouveau.
Video card 1 Intel Gen9.5 Integrated Graphics [HD Graphics 630] Works 8086:591b i915 4.14.16 Can be turned off in bios.

Installation

The dual graphics cards setup would cause problems during installation. To install the system, either

  • turn integrated graphics off in UEFI mode (switch to DISCRETE mode in bios) and then boot into UEFI enabled live media (X works with the current live DVD). Integrated graphics can be properly setup and turned back on for later use.

or

  • boot into live media in bios mode for installation (integrated graphics may still need to be turned off to boot properly into a live environment).

General graphics kernel options for hybrid mode

  • To set up the system for use in hybrid mode, kernel options should be set up properly for Intel graphics. Refer to Intel
  • To prevent freeze, leave all frame buffer devices unselected.
  • To use Bumblebee, Nouveau should not be selected.

Here is a list of options that should work for kernel 4.14.16

KERNEL Enable support for these hardware drivers
Device Drivers  --->
    Generic Driver Options  --->
        -*- Userspace firmware loading support
        [*] Include in-kernel firmware blobs in kernel binary
            (i915/kbl_dmc_ver1_01.bin) External firmware blobs to build into the kernel binary
            (/lib/firmware) Firmware blobs root directory
    Graphics support  --->
        <M> /dev/agpgart (AGP Support)  --->
            -*-   Intel 440LX/BX/GX, I8xx and E7x05 chipset support
            [*]   Enable legacy fbdev support for your modesetting driver
        <M> Intel 8xx/9xx/G3x/G4x/HD Graphics
        -*- Backlight & LCD device support  --->
        [*] Bootup logo  --->
  • Turn on integrated graphics by switching to MSHYBRID mode in bios and the system should boot without freezing if initramfs and grub is configured properly. To use X, extra setups are needed.

Configuration

Xorg

To use X in Hybrid mode, you might need to specify modesetting driver options. Example:

FILE /etc/X11/xorg.conf.d/modesetting.confxorg conf example for hybrid mode
Section "Module"
  Load "modesetting"
EndSection

Section "Device"
  Identifier    "Intel HD630"
  Driver        "modesetting"
  BusID         "00:02:0"
  Option        "AccelMethod"   "glamor"
  Option        "DRI"           "3"
EndSection

Bumblebee

To use the Nvidia card, set up Bumblebee.

VGA passthrough

The Nvidia card can function properly when passed suing VFIO and KVM to linux virtual machines using Nouveau (extra setup required). However, as Nouveau support for Nvidia's 10-series card is currently severely limited[1], being able to do so does not provide much benefit other than the ability to use external displays. The possibility of using proprietary Nvidia drivers in VM (including running Windows) is yet to be explored.

Keyboard backlight

Clevo-xsm-wmi can be used for keyboard backlight control.