1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-23 10:09:44 +01:00

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.
This commit is contained in:
dasNessie 2022-11-19 14:33:56 +01:00
parent e0452b33ab
commit bf212c4ef5
2 changed files with 10 additions and 4 deletions

View file

@ -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

View file

@ -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