Skip to content

Commit

Permalink
hardware/16IMH9: add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alyraffauf committed Jan 19, 2025
1 parent 247b5c2 commit 4e6054d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions modules/hardware/lenovo/yoga/16IMH9/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Lenovo Yoga Pro 9i 16IMH9

Optimized hardware configuration for Lenovo Yoga Pro 9i (16IMH9).

______________________________________________________________________

## Audio

- **Workaround**: Bass speakers malfunction due to runtime power management bugs for TAS2781 amp (kernel 6.12.x+).
- Blacklists `snd_hda_scodec_tas2781_i2c` kernel module.
- Runs [`turn-on-speakers.sh`](turn-on-speakers.sh) to power on TAS2781 amp and bass speakers via I2C.
- Unmutes headphones with `amixer`.
- Further enhances sound quality with EasyEffects preset: [`16IMH9.json`](./16IMH9.json).

______________________________________________________________________

## Graphics

- Hybrid NVIDIA PRIME setup with Render Offload:
- Intel GPU: `intelBusId = "PCI:0:2:0"`.
- NVIDIA GPU: `nvidiaBusId = "PCI:1:0:0"`.
- Includes specialisation `nvidia-sync` to enable PRIME Synchronization.
- **Workaround**: High power usage while watching videos.
- Disables `hardware.nvidia.videoAcceleration` to allow NVIDIA GPU to sleep during video playback.
- Uses integrated Intel Arc GPU for WebRender.

______________________________________________________________________
1 change: 1 addition & 0 deletions modules/hardware/lenovo/yoga/16IMH9/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ in {

systemd = {
services.turn-on-speakers = {
# Due to bugs in the snd_hda_scodec_tas2781_i2c module, the best way to have functional speakers is to run a small script to turn the bass speakers on via i2c.
enable = true;

after = [
Expand Down

0 comments on commit 4e6054d

Please sign in to comment.