HP Pavilion 15-au624tx

From Gentoo Wiki
Jump to:navigation Jump to:search

Information about how to install/configure Gentoo GNU/Linux in HP Pavillion au624tx Notebook

lscpu

user $lscpu

lspci

root #lspci

lsusb

user $lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 8087:0aa7 Intel Corp. 
Bus 001 Device 002: ID 0408:5090 Quanta Computer, Inc. HP Wide version HD
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Installation

Firmware

WiFi and BLuetooth

The Linux firmware package is needed for wifi adapter to work.

It can be obtained by installing the Linux firmware package: sys-firmware/linux-firmware. For more info see iwlwifi.


Microcode

Intel released microcode updates that fixes fault on processors. Install the officially published microcode package sys-firmware/intel-microcode. For more info see Intel microcode.


Kernel

Recommended kernel config for sys-linux/gentoo-sources. More info at Kernel.

Note
This config is last tested on Linux Kernel sys-linux/gentoo-sources 5.4.60


Kernel config being maintained at au624tx_defconfig

Configuration

Compiler settings

More info is available at:

FILE /etc/portage/make.conf
# O2 for super-safe output
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# Dual-core with enabled Hyper-Threading technology - 4 logical processors
MAKEOPTS="-j4"
# AMD64 architecture
CHOST="x86_64-pc-linux-gnu"


Packages settings

For more info: CPU_FLAGS_X86

FILE /etc/portage/package.use/00cpu-flags
*/* CPU_FLAGS_X86: aes avx2 mmx popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 mmxext avx
USE flags

With Intel Modesetting DDX as video driver and libinput as input driver add the USE flags glamor and libinput.

FILE /etc/portage/package.use/00video
*/* VIDEO_CARDS: -* intel i965
## only if you are going to configure dedicated gpu
*/* VIDEO_CARDS: -* nouveau
FILE /etc/portage/package.use/00input
*/* INPUT_DEVICES: libinput

Utils and Extras

Enabling Mute LED light

Create the following file:-

FILE /etc/modprobe.d/snd-hda-intel.conf
## Enabling Mute LED for Hp Pavillion Notebooks Containing Realtek ALC295 Audio Card
options snd-hda-intel model=alc295-hp-x360

Optimize system

Use app-laptop/laptop-mode-tools, For more info check Power_management

Extra notes on Uefi settings

Do not disable "Fan Always ON" from UEFI settings, since Operating Systems (Other than Windows) are not able to disable ACPI fan, causing battery drain even after shutting down.