Jörg Thalheim
4677bf5e89
gpu/intel: remove outdated libvdpau-va-gl driver
...
the existing drivers should provide video accelerations since broadwell.
This driver also caused a crash in the past in VLC:
https://github.com/NixOS/nixpkgs/issues/283083
2024-06-26 14:50:27 +00:00
Jörg Thalheim
4e59e4c9e9
common/gpu/24.05-compat: don't create conflicts with user configuration
...
fixes https://github.com/NixOS/nixos-hardware/issues/1000
2024-06-22 13:22:07 +02:00
Jörg Thalheim
584a5e5518
fix 24.05 evaluation
2024-06-21 23:50:11 +02:00
toastal
cc634b69c8
remove driSupport, opengl → graphics
2024-06-21 16:38:07 +00:00
Jörg Thalheim
083823b790
gpu/amd: drop hardware.amdgpu.opencl option
...
This now conflicts with nixpkgs.
2024-06-20 14:48:13 +00:00
Jörg Thalheim
144f53f534
common: remove deprecated modules
2024-06-20 15:51:13 +02:00
Jörg Thalheim
56e370b342
deprecate commons/hdd module
...
We havent't had anything meaningful configuration in this module for a while.
So let's deprecate it.
2024-06-20 12:09:44 +02:00
John Titor
0cd5621572
amd/cpu/raphael-igpu: enable scatter/gather for kernel 6.6+
...
Scatter/gather was introduced in 6.2 kernel and caused flickering
and various issues when running iGPU on Ryzen 7000-series CPUs.
This issue is not observed in kernel 6.6 or newer versions
so we can enable it for kernel 6.6 and newer versions.
2024-06-15 13:46:28 +00:00
K900
291c3ee610
treewide: drop hardware.amdgpu.amdvlk option
...
This is now provided in nixpkgs (see https://github.com/NixOS/nixpkgs/pull/318175 ).
2024-06-13 09:51:03 +03:00
Jörg Thalheim
057a7996d0
hidpi: drop legacy options
2024-06-08 06:29:16 +00:00
fidgetingbits
2e7d6c5680
asus/zenbook/ux371: init
2024-05-26 09:23:05 +00:00
Quinn X. J.
f0cf568780
common/gpu/intel: add extraPackages32
2024-05-19 18:00:23 +00:00
Mingye Wang
9fe6b53cf0
cpu/amd/zenpower: new
...
The zenpower module provides much more detailed data than k10temp on Zen CPUs. Use it.
2024-05-11 14:29:46 +08:00
Jörg Thalheim
5c0b7f47f4
common-gpu-nvidia-sync: fix typos
2024-04-30 08:19:58 +00:00
Emre Cebi
0cbc36e245
ASUS TUF FA507NV added.
2024-04-30 08:19:58 +00:00
Sebastian Sellmeier
0335d1a093
common/gpu/intel: Make initrd - i915 an option
2024-04-23 15:44:17 +02:00
K900
79a20e2ac0
common/pc: remove libinput.enable
...
Has been default in nixpkgs for a long time now.
2024-04-10 14:22:23 +00:00
Matei Dibu
823a82200c
common/cpu/intel/comet-lake: init
2024-03-25 12:24:34 +02:00
Luflosi
a377fb23dc
cpu/amd/igpu: change condition to check actually used kernel version
...
Change condition to check actually used kernel version instead of which kernel version is the default.
Without this change, if a user changes the kernel version to a newer version, the kernel parameter will not actually be added.
2024-02-16 13:49:10 +00:00
Will Lucas
c2f991b91e
Added support for Lenovo Legion Slim 5 (16APH8)
...
Added PPD after researching the Framework laptops with AMD 7000 series
2024-01-02 20:44:50 +00:00
Jörg Thalheim
b7747f0f60
remove unused variables with deadnix
2023-12-25 20:25:23 +00:00
Bernardo Meurer
fb6af288f6
fix(common/gpu/amd): use new rocmPackages
2023-10-12 08:54:10 +00:00
Guanran928
d53069def4
fix: enable enableOffloadCmd in prime.nix only when offload is enabled
2023-09-18 10:02:00 +00:00
Guanran928
504893e091
chore: replace writeShellScriptBin in prime.nix with enableOffloadCmd
...
introduced in this commit:
2a7130d13a
2023-09-18 10:02:00 +00:00
Yannick Mayeur
19cf623e48
feat: add common config for intel elhart-lake and jasper-lake
...
The option added is based on this ticket: https://gitlab.freedesktop.org/drm/intel/-/issues/8080
Other relevant documentation: https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#known-issues-and-limitations
2023-09-03 07:20:32 +02:00
Lyndon Sanche
1b3c128388
common/nvidia disable: Remove lib.mkDefault
2023-08-09 08:42:35 +01:00
bors[bot]
47dca15d86
Merge #630 #649 #650 #652 #654 #656 #657
...
630: starfive visionfive2: update kernel to 6.4.0 r=Mic92 a=NickCao
649: macbook-air-6: remove mba6x_bl kernel module r=Mic92 a=DanielSiepmann
650: apple/t2: init r=Mic92 a=networkException
652: build(deps): bump cachix/install-nix-action from 21 to 22 r=Mic92 a=dependabot[bot]
654: fixing iptsd not able to find DEVICE r=Mic92 a=buttergrillcorn
656: treewide: avoid alias usage for intel-vaapi-driver based on nixos version r=Mic92 a=lilyinstarlight
657: Added more blocked Nvidia kernel modules to fix the dGPU not being disabled r=Mic92 a=spacebanana420
Co-authored-by: Nick Cao <nickcao@nichi.co>
Co-authored-by: Daniel Siepmann <coding@daniel-siepmann.de>
Co-authored-by: kekrby <kekrby@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: buttergrillcorn <126628446+buttergrillcorn@users.noreply.github.com>
Co-authored-by: Lily Foster <lily@lily.flowers>
Co-authored-by: Space Banana <tomasbessa@protonmail.com>
2023-07-08 06:38:34 +00:00
Space Banana
289a5af77e
Additional blocked nvidia kernel modules
2023-06-28 00:55:39 +01:00
Lily Foster
1d0b3cf27b
treewide: avoid alias usage for intel-vaapi-driver based on nixos version
2023-06-23 07:38:13 -04:00
Alexandre Acebedo
c256df3312
cpu/amd/pstate: change the pstate mode to active
2023-05-13 10:59:49 +02:00
bors[bot]
3006d2860a
Merge #598
...
598: Add settings for AMD Raphael iGPU r=Mic92 a=stffffn
Co-authored-by: Steffen Weitz <weitz.steffen@gmail.com>
2023-04-07 14:01:24 +00:00
Konrad Borowski
d28d2a2494
Load acpi_call module only if tlp is being used
...
power-profiles-daemon cannot use acpi_call. This avoids taining
the kernel by installing an unnecessary kernel module.
2023-04-03 09:18:09 +02:00
Steffen Weitz
9dbe8dea5f
Add condition for kernel version 6.2 and above
2023-03-29 11:32:52 +02:00
Steffen Weitz
5d47553381
Remove unnecessary mkMerge
2023-03-27 10:34:07 +02:00
Steffen Weitz
70a8ff0a25
Add settings for AMD Raphael iGPU
2023-03-26 23:53:18 +02:00
K900
739fd62a50
treewide: move hidpi settings to another module, make conditional on nixos version
2023-03-23 16:58:35 +03:00
K900
630a8e3e4e
common/gpu/amd: use modesetting driver by default
...
Follows upstream nixpkgs
2023-03-06 12:08:52 +03:00
c3r5b8
defc8e4677
Fix disabling Nvidia dGPU
2023-03-04 18:39:37 +02:00
Kiskae
d7a5d6a29a
common/gpu/intel*: Migrate to common/gpu/intel/* and add disable
2023-02-27 14:04:53 +01:00
Martino Fontana
b4bf2550b3
AMD: don't install OpenCL by enabling amdvlk
2023-02-17 15:30:02 +01:00
Martino Fontana
1156f4d66e
AMD: disable amdvlk install by default
...
Nobody recommends using amdvlk over RADV.
Also don't set environment variable that sets the use of RADV when installing amdvlk
2023-02-17 15:29:55 +01:00
bors[bot]
44ae00e02e
Merge #550
...
550: Add amdvlk and opencl options to amdgpu & Fix proton crash when Dual-Direct GFX enabled for lenovo legion 16ach6h r=Mic92 a=LostAttractor
Co-authored-by: ChaosAttractor <46527539+LostAttractor@users.noreply.github.com>
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2023-02-09 09:06:46 +00:00
ChaosAttractor
b45bd0353a
Change lib.mkDefault to lib.mkOverride 990 for hardware.nvidia.prime.offload.enable
...
Fix conflict to 2a7130d13a
2023-02-09 12:41:39 +08:00
ChaosAttractor
5af4dc5d52
Add the option of whether to install the opencl environment and whether to use amdvlk for amdgpu
2023-01-30 15:23:11 +08:00
Jörg Thalheim
03c6d15152
treewide: apply deadnix and statix
2022-12-31 11:57:44 +01:00
bors[bot]
e462a4baf7
Merge #517
...
517: cpu/amd/pstate: enable correctly on kernel 6.1+ r=Mic92 a=K900
Co-authored-by: K900 <me@0upti.me>
2022-12-16 22:01:05 +00:00
ChaosAttractor
a1a8723bf9
Add a option to add(or disadd) amdgpu to kernelModule
...
Add a option to add(or disadd) amdgpu to boot.initrd.kernelModule
2022-12-17 00:04:46 +08:00
K900
b67160bb7f
cpu/amd/pstate: enable correctly on kernel 6.1+
...
There is no separate module now, and a clean option to enable it.
2022-12-16 17:43:40 +03:00
ChaosAttractor
b35c93e8a2
Add mkDefault to services.xserver.videoDrivers = [ "amdgpu" ];
2022-12-16 06:58:12 +08: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
Jörg Thalheim
a01a1095e4
amd pstate: small typo
2022-08-01 14:14:12 +02:00
pasqui23
68a27c2b00
Clarify kernel version condition
...
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-08-01 12:03:29 +02:00
paki23
8732fa9eb5
clarify amd pstate
2022-07-31 20:13:42 +02:00
paki23
5e9934fa07
pstate:init
...
fixup pstate
2022-07-31 13:57:38 +02:00
SuperSamus
0efe78c51a
AMD: Add lib.mkDefault to AMD_VULKAN_ICD
2022-07-02 23:39:55 +02:00
Thiago Kenji Okada
9194b8e949
nvidia: remove -a flag from exec
...
The `-a` from exec sets the `$0` from the process. So `exec -a "$0"`
would set the name of the new process to `nvidia-offload` (the name of
the script), however this is causing issues with a few programs that try
to interpret `$0` in a special way. For example, see `wine`:
```
$ nvidia-offload /nix/store/zhv91s26gsrl1w8yn9800xd03a31r3wj-wine-osu-7.0/bin/wine .osu/drive_c/osu/osu\!.exe
/nix/store/zhv91s26gsrl1w8yn9800xd03a31r3wj-wine-osu-7.0/bin/nvidia-offload: could not open
```
What I think `wine` is doing here is trying to re-exec `wine` again, but
to do so it tries to figure out the original call of wine by readind `$0`,
and will fail in this case because the `$0` was changed because of the
`nvidia-offload` script using `-a` flag, as explained above.
Instead, let's simplify this. There is no good reason to rename the `$0`
from the script anyway (it just sets a few environment variables), so let's
just remove it. We may lose the ability to know if the command is being
offloaded, but I think having more commands to work is a good trade-off.
2022-06-24 23:45:31 +01:00
Bruno Bigras
53b470587f
split CPU and GPU from common/cpu/intel
...
fix #388
2022-04-12 11:08:50 -04:00
vroad
ae3ac92431
Remove swappiness config
2022-03-31 10:44:20 +09:00
Martino Fontana
abd470874b
AMD: Prefer RADV
2022-03-16 17:09:08 +01:00
Nicholas Sielicki
478cc4aa6e
make comment more clear that it applies to all igpus, not just intel
2022-03-06 19:25:42 +00:00
ilkecan
1da3ba110c
common/cpu/intel: define VDPAU_DRIVER env variable
...
`libvdpau-va-gl` is a wrapper around VAAPI to have a VDPAU driver, which
is required for Intel GPU's. `VDPAU_DRIVER` environment variable is set
to "va_gl", since it defaults to "nvidia".
2022-02-26 03:01:01 +00:00
DavHau
15e8b81487
Revert "Merge pull request #333 from bobvanderlinden/pr-intel-32bit"
...
This reverts commit ad0b7c5a95 , reversing
changes made to 4045d5f43a .
2021-11-18 10:11:58 +07:00
Bob van der Linden
5190a9b4f2
fix(intel): add opengl packages for 32bit
2021-11-15 22:14:15 +01:00
Johannes Arnold
a57fc74bc3
AMD: include 32-bit driver for Vulkan
2021-09-28 20:14:53 +02:00
Thiago Kenji Okada
b0f31689ac
Remove intel drivers from nvidia-disable
...
Two reasons for this change:
- `intel` drivers are not updated from quite a long time (since ~2019),
and `modesetting` is the preferred one for Intel iGPUs.
- Technically you may want to disable NVIDIA GPUs on laptops with AMD
processors too.
We don't want to pin `modesetting` here because it is already the default
since PR: https://github.com/NixOS/nixpkgs/pull/111551 .
2021-06-11 17:04:10 -03:00
Jörg Thalheim
3fc630f84c
pc/laptop: fix evaluation on 20.09 ( #270 )
2021-05-30 21:10:22 +01:00
Jörg Thalheim
ca33f586e7
fix evaluation
2021-05-29 10:19:00 +02:00
Bryan Honof
1fe5b7686d
Update common/pc/laptop/default.nix
...
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-05-27 00:15:49 +02:00
Bryan Honof
2bc26b3c5c
Add lib.mkDefault to the statement
2021-05-26 19:00:01 +02:00
Bryan Honof
e4ce746d5b
Add check for power-profiles-daemon.enable
...
Gnome 40 now uses power-profile-daemon
https://gitlab.freedesktop.org/hadess/power-profiles-daemon ,
which clashes with tlp. This check will disable tlp whenever it finds
that the power-profiles-daemon is activated.
2021-05-26 18:54:50 +02:00
Johannes Arnold
40ddf363c2
Document driver choice
2021-04-14 16:18:05 +02:00
Johannes Arnold
f2b2ae018d
AMD: add configurations for graphics cards
2021-03-24 02:18:03 +01:00
Thiago Kenji Okada
36094450fd
Add nvidia-disable profile
...
This is already used in XPS 15-9560, but instead of defining it in XPS
15-9560 let's create a separate profile and expose it for those who want
to disable their NVIDIA GPU.
2021-02-28 13:51:46 -03:00
Jörg Thalheim
e8c5f886b0
Merge pull request #86 from yegortimoshenko/201810/ath3k
...
common/pc: disable ath3k if non-free firmware is not available
2020-10-20 06:37:54 +02:00
bahaynes
b7a5f1188f
Moved NVIDIA config to common, and updated README.
2020-07-25 23:53:47 -04:00
Erik Arvstedt
90868c67e8
pc/laptop: remove redundant cpuFreqGovernor setting
...
This setting has been part of NixOS since version 16.09
2020-05-20 16:29:50 +02:00
Lorenzo Manacorda
19b4d5cede
intel: add intel-media-driver
...
Provides hardware accelerated video playback from Broadwell onwards.
2019-11-11 20:39:59 +01:00
Michael Peyton Jones
2bf94227c1
Replace ad hoc throttling fix with throttled
...
`throttled` is a service designed to fix the same CPU throttling bug,
but it's an actively maintainted upstream project that we can use.
2019-10-16 22:31:05 +01:00
Jörg Thalheim
e1a10b1536
enable fstrim on SSDs
...
This will run TRIM once a week using a systemd timer. Running TRIM regularly
will improves the performance and increases the SSDs lifespan. Since it is based
on the utillinux no additional package is required.
2019-07-23 09:04:03 +01:00
Victor Nawothnig
1d9358a8cf
Specify a correct unit description
2019-07-04 16:59:11 +02:00
Yegor Timoshenko
3d337906f5
common/pc: disable ath3k if non-free firmware is not available
2018-10-30 19:40:51 +00:00
Yegor Timoshenko
1d254aceda
common/cpu: default microcode updates to enableRedistributableFirmware
2018-10-30 18:16:36 +00:00
André-Patrick Bubel
941fbef86f
move acpi_call.nix and cpu-throttling-bug.nix to common folder
2018-10-23 09:28:07 +01:00
Yegor Timoshenko
2526dcbe61
cpu/intel: early KMS
2018-08-25 13:55:35 +03:00
Yegor Timoshenko
d534770be7
intel: videoDrivers: intel -> modesetting ( #57 )
2018-08-04 16:59:08 +01:00
Yorick
dd576672e7
common/cpu/intel/kaby-lake: fix kernelParams -> boot.kernelParams
2018-05-23 14:47:58 +02:00
Yegor Timoshenko
0794564c45
dell/xps/13-9360: review
2018-05-15 19:54:45 +03:00
Yegor Timoshenko
19c0c04f61
apple/macbook-air/4: enable RC6p, RC6pp GPU sleep states
2017-12-27 21:39:31 +00:00
Yegor Timoshenko
5a00ea423a
common/pc/laptop: drop explicit vm.laptop_mode
...
This is handled by TLP, so we don't need to set that explicitly.
2017-12-27 07:46:06 +00:00
Yegor Timoshenko
b1304963c8
common/cpu/intel: add vaapi/vdpau drivers
...
I've tested this to work on MacBookAir4,1 and I'm going to deploy it
to MacBookAir6,2 today and Lenovo ThinkPad X230 in a week from now.
Also, cleaned up Lenovo ThinkPad X230 profile.
2017-12-27 07:31:18 +00:00
Yegor Timoshenko
f9a1ac6297
common/pc/laptop: disable cpuFreqGovernor
2017-12-25 04:46:15 +00:00
Yegor Timoshenko
1c54b711e5
common: drop notice
...
I didn't mean to commit that. I'm pretty sure common/ is a good name,
and basic layout is unlikely to change.
2017-12-24 23:23:39 +00:00
Yegor Timoshenko
5407ba7a52
treewide: abstract away common configs into common/
2017-12-24 23:21:05 +00:00