Commit graph

1018 commits

Author SHA1 Message Date
ChaosAttractor ab165ab191 Add standalone hybrid only and nvidia only modules 2022-12-19 23:10:28 +08:00
ChaosAttractor b53fc0a785 Add specialisation for “DDG" mode is enabled 2022-12-19 14:36:29 +08:00
ChaosAttractor dea6ef85a1 Enable hardware.nvidia.modesetting 2022-12-19 13:02:28 +08:00
ChaosAttractor dc8f1fd6a8 Enable hardware.nvidia.powerManagement
Update default.nix
2022-12-17 18:38:06 +08:00
ChaosAttractor 262146dc76 Override edid of built-in display
Fix the problem that the edid of the built-in display only provided 60hz mode when use Hybrid Graphics

It appears to be a Lenovo firmware issue and i try to fix it. This issue still reproducible on BIOS version GKCN58WW(22/12/16)
Lenovo Legion 5 Pro is a laptop which support a technology called "DDG" that can allow you switch between discrete graphics mode and hybrid mode (optiums).
In discrete graphics mode, the firmware provides the correct edid and anything works fine, the built-in display work well at 165hz.
But if switch to hybrid mode, the firmware provides a different edid, causing the built-in display only can work at 60hz.
So I extracted the edid file of discrete graphics mode and override the edid that built-in display provide to solve this problem.

Co-Authored-By: Jörg Thalheim <Mic92@users.noreply.github.com>
2022-12-17 18:38:06 +08:00
bors[bot] 1f60672721
Merge #508
508: Add support for GA402 r=Mic92 a=aacebedo



Co-authored-by: Alexandre Acebedo <alexandre@acebedo.fr>
2022-12-15 12:19:56 +00:00
bors[bot] 0fbf27af51
Merge #511
511: Kernel 6.0.11 for Microsoft Surface devices r=Mic92 a=mexisme



Co-authored-by: mexisme <wildjim+dev@kiwinet.org>
2022-12-13 19:29:37 +00:00
mexisme cd76050824 Update for code refactor 2022-12-05 17:51:33 +13:00
mexisme 560e4f2ecf Merge branch 'microsoft/surface/refactor-kernel-code' into microsoft/surface/kernel-6.0.11 2022-12-05 17:44:37 +13:00
mexisme be728899cf Tidy-up 2022-12-05 17:42:40 +13:00
mexisme e84ab22523 Extract the kernel patches out 2022-12-05 17:38:21 +13:00
mexisme e37520e48b Rearrange the kernels to make them self-defining 2022-12-05 17:32:25 +13:00
mexisme f99c9d5b1f Tidy-up 2022-12-05 16:04:11 +13:00
mexisme d2b7a0fb9a Kernel 6.0.11 for MS Surface Devices 2022-12-05 14:40:24 +13:00
mexisme 76c6688e86 Merge branch 'microsoft/surface/refactor-kernel-code' into microsoft/surface/kernel-6.0.11 2022-12-05 13:41:07 +13:00
mexisme b01a6d58df Remove obsolete file 2022-12-05 13:38:14 +13:00
mexisme 87597ab307 Remove obsolete files 2022-12-05 13:37:20 +13:00
mexisme 33d17074a3 Merge branch 'microsoft/surface/refactor-kernel-code' into microsoft/surface/kernel-6.0.11 2022-12-05 13:36:23 +13:00
mexisme 52dd282ee3 Merge branch 'up/master' into microsoft/surface/refactor-kernel-code 2022-12-05 12:18:27 +13:00
mexisme 3ad53f12b1 Merge branch 'up/master' into microsoft/surface/kernel-6.0.11 2022-12-05 12:00:56 +13:00
bors[bot] 9d87bc030a
Merge #509
509: surface/kernel: 5.16.11 -> 5.19.17 r=Mic92 a=christophcharles



Co-authored-by: Christoph Charles <23055925+christophcharles@users.noreply.github.com>
2022-12-04 17:28:39 +00:00
Christoph Charles 250d6991c9 surface/kernel: 5.16.11 -> 5.19.17 2022-12-04 17:34:44 +01:00
Alexandre Acebedo f17316259f fixup! Add support for GA402 2022-12-03 17:41:33 +01:00
Alexandre Acebedo 56566dc47f fixup! Add support for GA402 2022-12-03 17:38:26 +01:00
Alexandre Acebedo e18b759b1b Add support for GA402 2022-12-03 17:19:05 +01:00
bors[bot] 7883883d13
Merge #506
506: Add Lenovo Legion 5 Pro Gen 6 r=Mic92 a=4JX



Co-authored-by: 4JX <79868816+4JX@users.noreply.github.com>
2022-11-28 15:56:34 +00:00
mexisme 87adbffa11 Fix-ups 2022-11-29 00:00:31 +13:00
mexisme a51973c994 Add linux-surface patches for 5.19.2 2022-11-28 23:43:50 +13:00
mexisme d93d29bdc9 Add-back linux-surface/linux-surface repo, for easy access to the kernel patches 2022-11-28 23:42:41 +13:00
mexisme 5d0ade6958 Add-back linux-surface/linux-surface repo, for easy access to the kernel patches 2022-11-28 23:21:34 +13:00
mexisme 50ce82cc84 Fix for unexpected recursion error
Might be related to how these packages access "pkgs" ?
2022-11-28 22:26:47 +13:00
mexisme 3de7b6e0c5 Use the newly refactored code 2022-11-28 20:37:07 +13:00
mexisme 158f86bb32 DRY the MS Surface kernel module 2022-11-28 20:37:07 +13:00
mexisme 35e317a280 Use new repos.linux-surface-kernel function 2022-11-28 20:37:07 +13:00
mexisme b32b188154 Convert the repos.linux-surface-kernel set to a function 2022-11-28 20:37:07 +13:00
4JX b441875a50 Apply suggestion 2022-11-24 16:39:20 +01:00
4JX 776287c483 Add some data about the device used 2022-11-24 00:12:24 +01:00
4JX 56bb7c93b3 Add Lenovo Legion 5 Pro Gen 6 2022-11-23 20:47:27 +01:00
bors[bot] 0099253ad0
Merge #502
502: common/gpu/nvidia*: Migrate to common/gpu/nvidia/* and add non-prime r=Mic92 a=TLATER



Co-authored-by: Tristan Daniël Maat <tristan.maat@codethink.co.uk>
2022-11-22 19:43:54 +00:00
bors[bot] 1108c1b861
Merge #505
505: Add Ethernet Support on Framework r=Mic92 a=dasnessie



Co-authored-by: dasNessie <mail@dasnessie.de>
2022-11-20 19:51:13 +00:00
dasNessie bf212c4ef5 Add Ethernet Support on Framework
Add Ethernet Expansion Card support for the framework laptop.
Due to automatic USB device suspension,
the Ethernet Expansion Card was not working.
Adding a udev rule to only suspend the card after 20 seconds
fixes the problem.
The framework support confirmed via email
that all current Ethernet Expansion Cards share the same Product ID.
2022-11-19 14:33:56 +01:00
bors[bot] e0452b33ab
Merge #501
501: Add support for ssd to Lenovo ThinkPad T480 r=Mic92 a=MatthewCroughan



Co-authored-by: matthewcroughan <matt@croughan.sh>
2022-11-13 10:22:26 +00:00
Tristan Daniël Maat cdd049a353
treewide: Migrate to new nvidia modules 2022-11-13 01:55:13 +00:00
Tristan Daniël Maat 7e60458d86
common/gpu/nvidia*: Migrate to common/gpu/nvidia/* and add non-prime
Fixes #338
2022-11-13 01:41:03 +00:00
matthewcroughan 435a9c6526 Add support for ssd to Lenovo ThinkPad T480 2022-11-11 13:43:35 +00:00
bors[bot] 062c3cca46
Merge #500
500: Latitude 3340: init r=Mic92 a=Mic92



Co-authored-by: Quinn Dougherty <quinnd@riseup.net>
2022-11-11 09:05:55 +00:00
Quinn Dougherty d43d5ad52a Latitude 3340: init 2022-11-11 10:04:17 +01:00
bors[bot] 11a42a580d
Merge #499
499: kobol/helios4: update kernel patches r=Mic92 a=yu-re-ka



Co-authored-by: Yureka <yuka@yuka.dev>
2022-11-10 12:52:37 +00:00
Yureka 17fbd802fb kobol/helios4: update kernel patches 2022-11-10 13:30:29 +01:00
bors[bot] 909f025947
Merge #498
498: Changed asus battery script to work with multiple battery names. r=Mic92 a=jeiang



Co-authored-by: Aidan Pinard <aidan@aidanpinard.co>
2022-11-09 14:46:16 +00:00