1
0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-06-02 19:13:33 +02:00
Commit Graph

79 Commits

Author SHA1 Message Date
Andrew Kvalheim
bb846f8ed9 Add Dell XPS 13 9350
Reviewed on a Dell XPS 13 Developer Edition 9350.

No Skylake-specific configuration is necessary:

  - RC6 sleep is automatically detected configured by default, and
    `i915.enable_rc6` no longer exists.

  - Frame buffer compression (FBC) is automatically detected and enabled
    by default, so `i915.enable_fbc` is unnecessary.

  - Panel self refresh (PSR) is automatically detected and enabled by
    default, so `i915.enable_psr` is unnecessary.

Wireless card detection log:

    iwlwifi 0000:3a:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0x204

Touchpad detection log:

    psmouse serio1: synaptics: queried max coordinates: x [..5666], y [..4734]
    psmouse serio1: synaptics: queried min coordinates: x [1276..], y [1118..]
    psmouse serio1: synaptics: Your touchpad (PNP: DLL0704 PNP0f13) says it can support a different bus. If i2c-hid and hid-rmi are not used, you might want to try setting psmouse.synaptics_intertouch to 1 and report this to linux-input@vger.kernel.org.
    psmouse serio1: synaptics: Advanced gesture mode init failed: -5
    psmouse serio1: synaptics: Unable to initialize device.
    input: DLL0704:01 06CB:76AE Mouse as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-8/i2c-DLL0704:01/0018:06CB:76AE.0004/input/input26
    input: DLL0704:01 06CB:76AE Touchpad as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-8/i2c-DLL0704:01/0018:06CB:76AE.0004/input/input27
    hid-multitouch 0018:06CB:76AE.0004: input,hidraw3: I2C HID v1.00 Mouse [DLL0704:01 06CB:76AE] on i2c-DLL0704:01
    psmouse serio1: Failed to enable mouse on isa0060/serio1

i915 debug log:

    i915 device info: pciid=0x1926 rev=0x0a platform=SKYLAKE (subplatform=0x1) gen=9
    i915 device info: graphics version: 9
    i915 device info: media version: 9
    i915 device info: display version: 9
    i915 device info: gt: 3
    i915 device info: iommu: disabled
    i915 device info: memory-regions: 5
    i915 device info: page-sizes: 11000
    i915 device info: platform: SKYLAKE
    i915 device info: ppgtt-size: 48
    i915 device info: ppgtt-type: 2
    i915 device info: dma_mask_size: 39
    i915 device info: is_mobile: no
    i915 device info: is_lp: no
    i915 device info: require_force_probe: no
    i915 device info: is_dgfx: no
    i915 device info: has_64bit_reloc: yes
    i915 device info: gpu_reset_clobbers_display: no
    i915 device info: has_reset_engine: yes
    i915 device info: has_global_mocs: no
    i915 device info: has_gt_uc: yes
    i915 device info: has_l3_dpf: no
    i915 device info: has_llc: yes
    i915 device info: has_logical_ring_contexts: yes
    i915 device info: has_logical_ring_elsq: no
    i915 device info: has_mslices: no
    i915 device info: has_pooled_eu: no
    i915 device info: has_rc6: yes
    i915 device info: has_rc6p: no
    i915 device info: has_rps: yes
    i915 device info: has_runtime_pm: yes
    i915 device info: has_snoop: no
    i915 device info: has_coherent_ggtt: yes
    i915 device info: unfenced_needs_alignment: no
    i915 device info: hws_needs_physical: no
    i915 device info: cursor_needs_physical: no
    i915 device info: has_cdclk_crawl: no
    i915 device info: has_dmc: yes
    i915 device info: has_ddi: yes
    i915 device info: has_dp_mst: yes
    i915 device info: has_dsb: no
    i915 device info: has_dsc: no
    i915 device info: has_fbc: yes
    i915 device info: has_fpga_dbg: yes
    i915 device info: has_gmch: no
    i915 device info: has_hdcp: yes
    i915 device info: has_hotplug: yes
    i915 device info: has_hti: no
    i915 device info: has_ipc: yes
    i915 device info: has_modular_fia: no
    i915 device info: has_overlay: no
    i915 device info: has_psr: yes
    i915 device info: has_psr_hw_tracking: yes
    i915 device info: overlay_needs_physical: no
    i915 device info: supports_tv: no
    i915 device info: rawclk rate: 24000 kHz
    i915 device info: available engines: 40f
    i915 device info: slice total: 2, mask=0003
    i915 device info: subslice total: 6
    i915 device info: slice0: 3 subslices, mask=00000007
    i915 device info: slice1: 3 subslices, mask=00000007
    i915 device info: slice2: 0 subslices, mask=00000000
    i915 device info: EU total: 48
    i915 device info: EU per subslice: 8
    i915 device info: has slice power gating: yes
    i915 device info: has subslice power gating: no
    i915 device info: has EU power gating: yes
2022-08-03 11:07:04 -07:00
Shu Lin
169611d1d7
update readme: known issue 2022-05-23 21:46:43 +08: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
workflow
4a0cdc97c8 no longer ignore kernel config errors 2022-04-15 10:39:16 +01: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
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
Nelson Jeppesen
346c13e609 add xps 17 9710 2022-01-11 10:05:50 -08:00
mitchmindtree
1794de7d78 xps-9310: Remove upstreamed kernel patches with custom config
I've upstreamed these patches in NixOS/nixpkgs#144409, which means we no
longer have to build the kernel every time we update just to get
bluetooth working 🎉

While these changes have landed in master, they haven't been back-ported
to 21.05. They will be available via 21.11, which I'm currently testing
(along with this commit) by setting my `nixos` channel to the necessary
nixpkgs pre-release branch, e.g.

```bash
sudo nix-channel --remove nixos
sudo nix-channel --add https://github.com/NixOS/nixpkgs/archive/release-21.11.tar.gz nixos
sudo nix-channel --update nixos
```

*Note that if you use the above branch like I am, you might miss the
cache on some pkgs and spend even longer building those (looking at you
libreoffice).*

As of writing this PR, the current kernel is 5.15.4 and all seems to be
working well.
2021-11-25 09:58:43 +10:00
Konstantin vz'One Enchant
4cac4fbeef
Apply SSD optimization for Dell XPS 13 9310 2021-10-03 15:13:49 +03:00
Jörg Thalheim
d2d9a58a5c
remove systemd-boot from hardware profiles (#307)
- We should not enable canTouchEfiVariables by default as this
  wears out the EFI storage.
- We should not set systemd-boot as default. This is up to the user to
  decide. There are exceptions when hardware only supports specific
  bootloaders so.
2021-08-21 09:22:25 +01:00
Jörg Thalheim
22f1a185cf xps-13-9310: fix evaluation 2021-08-18 17:53:34 +02:00
Terin Stock
f22552c2e2 xps/13-9310: remove custom patches
The Linux kernel now has wireless patches upstreamed into the Linux
kernel. We can remove our custom build, but preserve enabling the
bluetooth drivers.
2021-07-26 16:33:44 -07:00
Andy Richardson
6392ffbafb
Update default.nix 2021-06-09 13:18:05 +01:00
Andy Richardson
d41711076e
Update default.nix 2021-06-09 12:51:33 +01:00
Andy Richardson
59a171c833
Fix 9500 wifi support 2021-06-09 12:46:01 +01:00
Jörg Thalheim
f7540d6c27
Merge pull request #251 from NixOS/dell
dell-xps-15-7590: remove 20.03 compat
2021-04-25 08:48:49 +01:00
Jörg Thalheim
09febc71c1
dell-xps-15-7590: remove 20.03 compat 2021-04-25 07:03:51 +02: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
mitchmindtree
f361f64db0 Remove no-longer-necessary modprobe config for audio. Fixes microphone.
It seems that `sof-firmware` has since been updated and the
`extraModprobeConfig` is no longer necessary! Microphone input also now
seems to work nicely.
2021-02-27 12:54:54 +01:00
mitchmindtree
d1e64db4c5 Enable QCA6390 bluetooth
Adds a patch for missing kernel configuration along with a list of
kernel modules that are missing by default.
2021-02-27 12:36:44 +01:00
mitchmindtree
0359644c22 Pin to Linux 5.10.18 for patches. Remove upstreamed wi-fi firmware.
Pin to the latest stable 5.10.18 release in order to ensure patches
don't unexpectedly conflict in newer linux versions.

The wi-fi firmware has since been upstreamed to the `linux-firmware`
repo, and as such is now available via `enableRedistributableFirmware`.
As a result we can remove the old expr that pulled the firmware from
kvalo's github.

Also removes two patches that have since been upstreamed.
2021-02-26 12:43:00 +01:00
mitchmindtree
cc5d84ccef Update to rebased patches for 5.10 release of kernel
Removes the old disable-mhi-2 patch file in favour of using the patch at
kernel.org.

Also adds fwupd to allow users to update their firmware via fwupdmgr.
2021-02-26 12:43:00 +01:00
mitchmindtree
08d1c4dd2b Add wink patch for disabling MHI M2 state. Rename firmware.
Disabling the MHI M2 state appears to completely resolve issues where
enabling the wifi firmware would cause the the whole system to freeze
quite frequently. The reason for why this fix works so well is still
unknown and under investigation. See some discussion here:

http://lists.infradead.org/pipermail/ath11k/2020-December/000876.html

Also renames the firmware package to clarify that it is for the wifi
driver. This is to avoid confusion with the bluetooth firmware which
will be added in an upcoming patch.
2021-02-26 12:43:00 +01:00
mitchmindtree
7f1da4009b Add wink patch for IRQ locking 2021-02-26 12:43:00 +01:00
mitchmindtree
154350aa04 Use fetchpatch. Fix kernel version. Add recent ath11k patches. 2021-02-26 12:43:00 +01:00
mitchmindtree
cdea79566b Use fetchFromGitHub to retrieve qca6390 fw more efficiently
Addresses @terinjokes comment [here][1].

[1]: 906cd8b20c (pullrequestreview-542698197)
2021-02-26 12:43:00 +01:00
mitchmindtree
b60b1f95eb Remove explicit sof-firmware as is already included
Previously, I'd added both the firmware and the `extraModprobeConfig`
that selects the DSP driver, however it seems only the latter is
necessary.

Addresses @terinjokes comment [here][1].

[1]: https://github.com/NixOS/nixos-hardware/pull/207/files#r534062750
2021-02-26 12:43:00 +01:00
mitchmindtree
f0486916bf Add a new suite of ath11k patches recommended by kvalo
Here's a link to kvalo's branch with the kernel patches:

https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/log/?h=ath11k-qca6390-bringup

> In this tag there's now a brand new implementation for suspend, which
> relies that the platform provides power to QCA6390 during suspend. Not
> all platforms do, but most of them should do that. ath11k also prints a
> warning whenever it notices that the firmware has crashed, but I'm not
> sure yet if it (the MHI subsystem to be exact) can detect every case.
>
> The MSI patch is mostly the same, it had just some refactoring since the
> last version. Unfortunately there's no solution still for the weird
> crashes some people are seeing.

The patches are based on version 5.10-rc4 of linux, so you'll want to
use `linuxPackages_testing`.
2021-02-26 12:43:00 +01:00
mitchmindtree
3345b81777 Install qca6390 firmware necessary for ax500 connectivity chip 2021-02-26 12:43:00 +01:00
mitchmindtree
bcbbd2bd72 Blacklist pmouse as trackpad works over i2c 2021-02-26 12:43:00 +01:00
mitchmindtree
631011a23c Add necessary fw and alsa conf for audio. Add patch for AX500. 2021-02-26 12:43:00 +01:00
mitchmindtree
86d77642bd Add xps 13 9310 with common intel and laptop imports 2021-02-26 12:43:00 +01:00
John Ericson
6484d285c5 Copy NVidia 9500 NVidia settings for 9550 2020-12-28 19:46:47 -05:00
Yorick van Pelt
1ea590a853
dell/xps/9360: drop <20.03 support 2020-12-21 16:10:28 +01:00
Yorick van Pelt
0a0e0a2e49
dell/xps/9360: drop qca6174 firmware
This was used because the firmware in linux-firmware was outdated.
It should not be after a year.
2020-12-21 16:04:41 +01:00
Jörg Thalheim
55f9eb6a73
Merge pull request #178 from bahaynes/master 2020-07-30 05:47:09 +01:00
bahaynes
cc72f59d5a
Removed tlp configuration.
Should be set correctly after https://github.com/NixOS/nixpkgs/pull/94064
is merged.
2020-07-29 20:51:08 -04:00
bahaynes
d56b2e96a6
Updated default (non-NVIDIA) config.
Removed xps-common, and migrated it to default.nix.
2020-07-27 13:00:20 -04:00
Ben
8e984dc856
Update dell/xps/15-9500/default.nix
Update intel drivers to default (Modesetting).

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2020-07-27 10:11:53 -04:00
afreakk
823f0bc77f
dell/xps/13-9360: conflicting font fix 2020-07-26 12:59:49 +02:00
bahaynes
b7a5f1188f
Moved NVIDIA config to common, and updated README. 2020-07-25 23:53:47 -04:00
bahaynes
6ffcdbacc5
Added dell xps 15-9500, with nvidia gpu. 2020-07-23 13:03:50 -04:00
Jörg Thalheim
62f453938f
Merge pull request #174 from bbigras/9343
add xps 13 (9343)
2020-07-06 14:28:22 +01:00
Bruno Bigras
1ab852b88e add xps 13 (9343) 2020-07-05 10:46:39 -04:00
Jörg Thalheim
5faf94b86f
dell/xps/13-7390: wifi fixes 2020-06-23 20:12:57 +01:00
Matthew Smith
69b9bdd53a dell/xps/13-9360: Stop using i18n.consoleFont
trace: warning: The option `i18n.consoleFont' defined in
`/nix/var/nix/profiles/per-user/root/channels/nixos-hardware/dell/xps/13-9360'
has been renamed to `console.font'.
2020-05-14 22:55:22 +01:00
Wout Mertens
bb1a8b78ba
wiki syntax 2020-04-23 10:53:17 +02:00
Wout Mertens
c8e3843b0a
7390: clarify intent 2020-04-23 10:52:16 +02:00
Jörg Thalheim
62a1812f3c
Update README.wiki 2020-03-03 17:31:54 +00:00
Daniel Rafaj
8b50556e2d Add xps 9560 with its own quirks, I added versions:
1 default one, with nvidia working and intel working, needs optirun to
run application with nvidia
2 intel only, I am using this as my daily driver for long time, only
intel is turned on and nvidia is turned off and doesn't drain any
power.
3 nvidia only, intel is dissabled and nvidia is picked as default gpu,
no need to fiddle with optirun etc, good for gpu heavy application.

All these settings needs to reboot to work properly
2020-02-18 13:25:25 +01:00