Gigabyte Aero 15X

Quick summary

Device or feature

Status

Min. FreeBSD version

Comments

Boot using BIOS

Not tested

Boot using UEFI

Works

Intel GPU (X.Org)

Works

12-CURRENT

Needs drm-next-kmod or drm-devel-kmod port

NVIDIA GPU (X.Org)

Works

Toshiba NVMe SSD

Works

Included with the laptop

Samsung 960 PRO NVMe SSD

Works

Added to the extra m.2 slot

Network: Ethernet

Works

Using re(4)

Network: Wifi

Works

Using iwm(4)

Sound

Works

Needs device.hints(5) configuration

Touchpad

Works

11.1-STABLE, 12-CURRENT

Suspend

Works

Only when using the Intel GPU

Resume

Works

Only when using the Intel GPU

Brightness ctrl. keys

Does not work

Hardware specifications

Summary

There are two display output connectors:

The internal display is connected to the Intel GPU through eDP. Both output connectors are connected to the NVIDIA GPU.

dmesg(8) and friends

JeanSébastienPédron's laptop:

Configuration and tweaks

Wifi

The driver to use is iwm(4). You can load the driver from /etc/rc.onf:

kld_list="iwm8265fw if_iwm"

Sound

Out-of-the-box, sound only goes to the headphones jack, even if there is nothing plugged into it, i.e. nothing comes out of the builtin speakers.

To enable the speakers, snd_hda(4) pins must be configured using device.hints(5):

# In /boot/device.hints or /boot/loader.conf.
hint.hdaa.0.nid20.config="as=1" # Speakers
hint.hdaa.0.nid33.config="as=1 seq=15" # Headphones

Node IDs nid20 and nid33 can be deduced from the output of sysctl dev.hdaa.0: look for e.g. device=Headphones conn=Jack and device=Speaker conn=Fixed in this output.

No sound on speakers after rebooting from Windows

After rebooting from Windows, there is no sound on the speakers, even with the correct pin reconfiguration. Only a cold boot fixes the issue.

Touchpad

This is an Elantech multitouch-capable clickpad supported by FreeBSD 11.1-STABLE+. To be specific, it needs the following patches to work properly:

The touchpad needs to be explicitely enabled, so add the following line to /boot/loader.conf:

# In /boot/loader.conf.
hw.psm.elantech_support="1"

X.Org configuration for Intel GPU

Two drivers are available: xf86-video-modesetting (built into xorg-server) and xf86-video-intel.

xf86-video-modesetting

  1. Install drm-next-kmod to get the Intel GPU kernel driver.

  2. Load it from /etc/rc.conf:

    kld_list="/boot/modules/i915kms.ko"
  3. Configure X.Org with the following snippet to put in /etc/X11/xorg.conf.d/i915.conf:

    Section "Device"
            Identifier  "Card0"
            Driver      "modesetting"
            BusID       "PCI:0:2:0"
    
            Option      "AccelMethod" "glamor"
    EndSection
    
    Section "Module"
           Load "dri2"
           Load "glamoregl"
    EndSection

Output from xrandr(1):

$ xrandr 
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.01*+
   1400x1050     59.98  
   1280x1024     60.02  
   1280x960      60.00  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   800x600       60.00    60.32    56.25  
   700x525       59.98  
   640x512       60.02  
   640x480       60.00    59.94  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
DP-1 disconnected (normal left inverted right x axis y axis)

xf86-video-intel

(to be described)

X.Org configuration for NVIDIA GPU

The NVIDIA GeForce GTX 1070 MaxQ GPU is supported by the x11/nvidia-driver port. This port provides a kernel module (nvidia-modeset.ko), an X.Org DDX driver (nvidia), an NVIDIA-specific proprietary OpenGL/EGL/GLES implementation and a VDPAU backend module.

X.Org input with libinput

To use libinput and xf86-input-libinput as the input driver on X.Org:

  1. Rebuild your kernel with EVDEV_SUPPORT.

  2. Enable evdev in /etc/sysctl.conf:

    # evdev support.
    #   bit 0: is set enables sysmouse
    #   bit 1: is set enables kbdmux
    #   bit 2: is set enables ums
    #   bit 3: is set enables atkbd, ukbd
    kern.evdev.rcpt_mask=12
  3. Make sure the patch from D13998 is committed.

  4. Use an X.Org configuration snippet such as /etc/X11/xorg.conf.d/inputs.conf. It is probably suboptimal (too many rules) but it works.

Battery life

JeanSébastienPédron says:

Enabling kernel core dump

Beside configuring dumpdev and enabling ddb_enable in /etc/rc.conf as usual, you need to set two sysctls in /etc/sysctl.conf:

debug.debugger_on_panic=0
dev.drm.skip_ddb=1

After rebooting or setting them manually, you can try to run the following command to verify it's working:

sysctl debug.kdb.panic=1

If everything is fine, you should have a core dump saved during the next boot.


CategoryLaptop

Laptops/Gigabyte_Aero_15X (last edited 2018-09-13 20:11:47 by JeanSébastienPédron)