From bf212c4ef57b100c97735a210a3895d3dcc69aa9 Mon Sep 17 00:00:00 2001 From: dasNessie Date: Sat, 19 Nov 2022 14:33:56 +0100 Subject: [PATCH] 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. --- framework/12th-gen-intel/default.nix | 7 +++++-- framework/default.nix | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/framework/12th-gen-intel/default.nix b/framework/12th-gen-intel/default.nix index e855a70..8d9bf67 100644 --- a/framework/12th-gen-intel/default.nix +++ b/framework/12th-gen-intel/default.nix @@ -34,10 +34,13 @@ # For fingerprint support services.fprintd.enable = lib.mkDefault true; - # Fix headphone noise when on powersave - # https://community.frame.work/t/headphone-jack-intermittent-noise/5246/55 + # Custom udev rules services.udev.extraRules = '' + # Fix headphone noise when on powersave + # https://community.frame.work/t/headphone-jack-intermittent-noise/5246/55 SUBSYSTEM=="pci", ATTR{vendor}=="0x8086", ATTR{device}=="0xa0e0", ATTR{power/control}="on" + # Ethernet expansion card support + ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20" ''; # Mis-detected by nixos-generate-config diff --git a/framework/default.nix b/framework/default.nix index 4ce0f58..2c07ff4 100644 --- a/framework/default.nix +++ b/framework/default.nix @@ -27,10 +27,13 @@ # For fingerprint support services.fprintd.enable = lib.mkDefault true; - # Fix headphone noise when on powersave - # https://community.frame.work/t/headphone-jack-intermittent-noise/5246/55 + # Custom udev rules services.udev.extraRules = '' + # Fix headphone noise when on powersave + # https://community.frame.work/t/headphone-jack-intermittent-noise/5246/55 SUBSYSTEM=="pci", ATTR{vendor}=="0x8086", ATTR{device}=="0xa0e0", ATTR{power/control}="on" + # Ethernet expansion card support + ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20" ''; # Mis-detected by nixos-generate-config