Skip to content

Commit

Permalink
Lenovo Legion 16achg6: Fix gpu configuration to work with both x11/wa…
Browse files Browse the repository at this point in the history
…yland (#802)

Co-authored-by: Alojzy Leszcz <[email protected]>
  • Loading branch information
bratfizyk and Alojzy Leszcz authored Dec 25, 2023
1 parent e4ded1e commit 51c532c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lenovo/legion/16achg6/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
I personally use my laptop with an external display attached. In `hybrid` config it works nice only with Wayland, while X11 can't detect the external monitor. Everything works as expected in `nvidia` mode, but battery life is reduced then.
I personally use my laptop with an external display attached and haven't observed any issues so far.

From my experience, it's better to use gdm, as sddm seems to have a problem detecting the external monitor (more details available [here](https://github.com/sddm/sddm/issues/1558)). Of course it's not a blocker, as it is still possible to log in using sddm. I personally find it annoying that my main display remains idle.

## Setup at the time of testing
```
Expand Down
4 changes: 3 additions & 1 deletion lenovo/legion/16achg6/hybrid/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
../../../../common/pc/laptop/ssd
];

services.xserver.videoDrivers = [ "nvidia" "amdgpu" ];
services.xserver.videoDrivers = [ "nvidia" ];
boot.initrd.kernelModules = [ "amdgpu" ];

hardware = {
nvidia = {
modesetting.enable = lib.mkDefault true;
powerManagement.enable = lib.mkDefault true;
open = lib.mkDefault false;

prime = {
amdgpuBusId = "PCI:5:0:0";
Expand Down

0 comments on commit 51c532c

Please sign in to comment.