mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-26 21:09:42 +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:
parent
e0452b33ab
commit
bf212c4ef5
2 changed files with 10 additions and 4 deletions
|
@ -34,10 +34,13 @@
|
||||||
# For fingerprint support
|
# For fingerprint support
|
||||||
services.fprintd.enable = lib.mkDefault true;
|
services.fprintd.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
# Custom udev rules
|
||||||
|
services.udev.extraRules = ''
|
||||||
# Fix headphone noise when on powersave
|
# Fix headphone noise when on powersave
|
||||||
# https://community.frame.work/t/headphone-jack-intermittent-noise/5246/55
|
# https://community.frame.work/t/headphone-jack-intermittent-noise/5246/55
|
||||||
services.udev.extraRules = ''
|
|
||||||
SUBSYSTEM=="pci", ATTR{vendor}=="0x8086", ATTR{device}=="0xa0e0", ATTR{power/control}="on"
|
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
|
# Mis-detected by nixos-generate-config
|
||||||
|
|
|
@ -27,10 +27,13 @@
|
||||||
# For fingerprint support
|
# For fingerprint support
|
||||||
services.fprintd.enable = lib.mkDefault true;
|
services.fprintd.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
# Custom udev rules
|
||||||
|
services.udev.extraRules = ''
|
||||||
# Fix headphone noise when on powersave
|
# Fix headphone noise when on powersave
|
||||||
# https://community.frame.work/t/headphone-jack-intermittent-noise/5246/55
|
# https://community.frame.work/t/headphone-jack-intermittent-noise/5246/55
|
||||||
services.udev.extraRules = ''
|
|
||||||
SUBSYSTEM=="pci", ATTR{vendor}=="0x8086", ATTR{device}=="0xa0e0", ATTR{power/control}="on"
|
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
|
# Mis-detected by nixos-generate-config
|
||||||
|
|
Loading…
Reference in a new issue