Commit graph

1312 commits

Author SHA1 Message Date
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
Ulrik Strid 9ec5f52ea2 Add lenovo legion 7 16ITHg6 2022-06-23 09:30:05 +02:00
Jörg Thalheim f9d8dff4e6
Merge pull request #425 from Moredread/common
flake.nix: add common-gpu-intel
2022-06-21 06:35:51 +01:00
André-Patrick Bubel 26291dec5b flake.nix: add common-gpu-intel 2022-06-21 06:12:29 +02:00
Jörg Thalheim 0cab18a48d
Merge pull request #422 from NixOS/msi-gl62-ini
msi/gl62: reworked
2022-06-01 05:29:57 +01:00
Jörg Thalheim 03fd7b6bd0
msi/gl62: also include basic README 2022-06-01 06:27:46 +02:00
Raphiel Rollerscaperers 0543980bd6
msi/gl62: init
This commit initialize support for MS-16J61 (Laptop) Motherboard
with unified BIOS of E16J6IMS, which includes:

  - MSI GL62 6QD
  - MSI GL62 6QC
  - MSI CX62 6QD
  - MSI CR62 6M
2022-06-01 06:25:02 +02:00
Sandro 8252035d61
Merge pull request #421 from sbruder/p14s-rtw89
p14s: ensure rtw89 driver is available
2022-05-31 22:49:55 +02:00
Simon Bruder 07e5049f8f
p14s: ensure rtw89 driver is available 2022-05-31 13:38:23 +02:00
Jörg Thalheim 39a7bfc496
Merge pull request #418 from sauricat/master
update readme: known issue of disability waking from suspend
2022-05-25 08:20:24 +01:00
Jörg Thalheim fb4213bf01
Merge pull request #419 from Emiller88/framework-firmware
docs(framework): Add notes about updating firmware
2022-05-25 08:19:23 +01:00
Edmund Miller 0f00877343
docs(framework): Add notes about updating firmware
https://github.com/NixOS/nixos-hardware/pull/406#issuecomment-1132577510
2022-05-23 10:28:22 -05:00
Shu Lin 169611d1d7
update readme: known issue 2022-05-23 21:46:43 +08:00
Jörg Thalheim 8b5e1bf2fd
Merge pull request #412 from j-steinbach/dell-latitude-5520
Add Dell Latitude 5520
2022-05-21 16:01:52 +01:00
JSteinbach e850604127 Add Dell Latitude 5520 2022-05-21 15:10:54 +02:00
Jörg Thalheim be2b338c6a
Merge pull request #416 from reedriley/framework
framework: add nvme.noacpi=1 and make fprintd optional
2022-05-20 17:55:54 +01:00
Reed Riley 4a8259f0e2 framework: add nvme.noacpi=1 2022-05-20 11:21:11 -04:00
Reed Riley de8271f760 framework: make it possible to disable fprintd if desired 2022-05-20 11:07:10 -04:00
Jörg Thalheim b49fe0e96e
Merge pull request #405 from anthonyroussel/fix-xps_9560-primus_deprecations
dell-xps-15-9560-nvidia: switch to Nvidia Offload mode to save battery power
2022-05-20 07:57:41 +01:00
Jörg Thalheim 31e258c27d
Merge pull request #408 from koalp/master
Add acpi_call for lenovo thinkpad x270
2022-05-20 07:57:23 +01:00
Jörg Thalheim ca4e0ca186
Merge pull request #415 from NixOS/framework
framework: acpilight should be used
2022-05-20 07:55:53 +01:00
Irene Knapp 162fb7a987
framework: acpilight should be used 2022-05-20 08:49:38 +02:00
Jörg Thalheim 36daf08049
Merge pull request #414 from amarshall/fw-udev
framework: Fix headphone noise when on powersave
2022-05-20 07:47:51 +01:00
Jörg Thalheim ae5047bcd0
Merge pull request #413 from amarshall/fw-mic
framework: Fix TRRS headphones missing a mic
2022-05-20 07:47:02 +01:00
Andrew Marshall 34485f1807 framework: Fix TRRS headphones missing a mic
As in the below forum post, this is not perhaps the most ideal solution
to the problem, but it is the simplest.

https://community.frame.work/t/headset-microphone-on-linux/12387/3
2022-05-19 15:56:34 -04:00
Andrew Marshall f3dfd30170 framework: Fix headphone noise when on powersave
https://community.frame.work/t/headphone-jack-intermittent-noise/5246/55
2022-05-19 15:51:19 -04:00
koalp b750b56a20
feat: add acpi_call and ssd for thinkpad x270
acpi_call is required to use tlp on lenovo thinkpad x270 and some x270
have an ssd.

Therefor, acpi_call and ssd have been added to the lenovo thinkpad x270
hardware config.
2022-04-24 12:47:42 +02:00
Jörg Thalheim 6b4ebea909
Merge pull request #401 from workflow/dell-xps-17-9700
Add Dell XPS 17 9700
2022-04-21 07:34:06 +01:00
Jörg Thalheim 7b0845d8c1
Merge pull request #389 from bbigras/intel-gpu
extract GPU stuff from common/cpu/intel to common/gpu/intel.nix
2022-04-21 07:32:14 +01:00
workflow 4a0cdc97c8 no longer ignore kernel config errors 2022-04-15 10:39:16 +01:00
Jörg Thalheim 1a0ccdbf45
Merge pull request #407 from aciceri/master
Missing `brcmfmac43456-sdio.clm_blob` for Pinebook Pro's AP6256 firmware
2022-04-13 12:31:54 +01:00
Jörg Thalheim 5c95599061
framework: bump kernel version (#406)
* framework: bump kernel version
2022-04-13 10:27:33 +01:00
Andrea Ciceri 3849fd9598
Merge remote-tracking branch 'upstream/master' 2022-04-12 22:25:21 +02:00
Bruno Bigras bb8b3f19e0
Update flake.nix
Co-authored-by: amesgen <amesgen@amesgen.de>
2022-04-12 11:17:21 -04:00
Bruno Bigras 53b470587f split CPU and GPU from common/cpu/intel
fix #388
2022-04-12 11:08:50 -04:00
Andrea Ciceri ad125d3cc8
Merge branch 'master' of github.com:aciceri/nixos-hardware 2022-04-12 11:28:03 +02:00
Andrea Ciceri 32e12dbc20
Missing clm blob for Pinebook's AP6256 firmware 2022-04-12 11:27:54 +02:00
Anthony Roussel 68c87edeb9
dell-xps-15-9560-nvidia: use Nvidia Offload mode to save battery power
Also rename deprecated `hardware.nvidia.optimus_prime.*' to `hardware.nvidia.prime.*' since NixOS 20.09.

> The hardware.nvidia.optimus_prime.enable service has been renamed to
> hardware.nvidia.prime.sync.enable and has many new enhancements.
> Related nvidia prime settings may have also changed.

See https://nixos.org/manual/nixos/stable/release-notes.html#sec-release-20.09
2022-04-11 16:44:32 +02:00
dependabot[bot] f4160a629b
build(deps): bump cachix/install-nix-action from 16 to 17 (#404)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 16 to 17.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v16...v17)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 08:07:30 +01:00
Andrea Ciceri 850308db3e
Add: pinebook-pro @aciceri
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2022-04-09 08:10:42 +01:00
Jörg Thalheim 710e33cb93
pine64/pinebook-pro: typos in README 2022-04-09 09:02:56 +02:00
Andrea Ciceri cb8db9e1bb
New source for ap6256-firmware and removed unstable kernel 2022-04-08 11:14:06 +02:00
Andrea Ciceri be88ca8b75
Update pine64/pinebook-pro/README.md
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2022-04-08 10:41:13 +02:00
Jörg Thalheim ddeb6a0aa4
Merge pull request #402 from twoolie/patch-1
Remove `intel_iommu=on` by default for all X1 models.
2022-04-08 08:00:45 +01:00
Jörg Thalheim 6c6e161b10
Merge pull request #400 from vroad/remove-swappiness
Remove swappiness config
2022-04-08 08:00:24 +01:00
Andrea Ciceri 6d1bd5bc2e
Custom patched kernel is not the default anymore 2022-04-01 19:59:27 +02:00
Thomas Woolford 08cf55e7b6
Remove intel_iommu=on by default for all X1 models.
IOMMU still breaks suspend/resume on multiple Lenovo models including X1.
Currently broken on at least Gen4 which I'm testing on. Hard locks the system during suspend.

This thread claims it works on Gen4 with kernel 5.16.1 but it doesn't work on my hardware, firmware fully updated.
https://bugzilla.kernel.org/show_bug.cgi?id=197029

This should probably be turned on individually for models known to work until it can be more thoroughly tested.
2022-04-01 23:06:12 +10:30
workflow 638263b724 Add Dell XPS 17 9700
Co-authored-by: Ivan Malison <IvanMalison@gmail.com>
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2022-04-01 10:10:15 +01:00
vroad ae3ac92431 Remove swappiness config 2022-03-31 10:44:20 +09:00
Andrea Ciceri e1b2cf65a7
add: pinebook-pro 2022-03-29 23:31:55 +02:00