Skip to content

Instantly share code, notes, and snippets.

@fleaplus
Last active December 20, 2019 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fleaplus/6d9396076a6b275f0a4389a7bf3cedad to your computer and use it in GitHub Desktop.
Save fleaplus/6d9396076a6b275f0a4389a7bf3cedad to your computer and use it in GitHub Desktop.

Installation

18.04.3 was used, no kernel params needed for initial bootup and installation to succeed.

Disabling the Nvidia GPU

bbswitch works if the following udev rules, /lib/udev/rules.d/80-nvidia-pm.rules are created:

# Remove NVIDIA USB xHCI Host Controller devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{remove}="1"

# Remove NVIDIA USB Type-C UCSI devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", ATTR{remove}="1"

# Remove NVIDIA Audio devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{remove}="1"

Blacklist nouveau and i2_nvidia_gpu modules.

Display backlight

The kernel param i915.enable_dpcd_backlight=1 is required for brightness control to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment