Skip to content

Commit

Permalink
chore(voron): add CPU affinity, remove bluetooth
Browse files Browse the repository at this point in the history
  • Loading branch information
truelecter committed Sep 19, 2024
1 parent a030b49 commit 1fad476
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 67 deletions.
48 changes: 0 additions & 48 deletions cells/nixos/hosts/voron/bluetooth.nix

This file was deleted.

10 changes: 5 additions & 5 deletions cells/nixos/hosts/voron/camera.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@
printer = {
settings = {
camera = {
path = "/dev/v4l/by-id/usb-046d_HD_Pro_Webcam_C920_89E7787F-video-index0";
path = "/dev/v4l/by-id/usb-3DO_3DO_4K_USB_CAMERA_US_3DO-video-index0";
width = 640;
height = 480;
fps = 30;
format = "MJPG";
force_active = true;
nbufs = 2;
options = {
whitebalanceautomatic = 0;
whitebalancetemperature = 5700;
};
# options = {
# whitebalanceautomatic = 0;
# whitebalancetemperature = 5700;
# };
};

http.port = 8081;
Expand Down
2 changes: 0 additions & 2 deletions cells/nixos/hosts/voron/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ in {
inputs.nixos-hardware.nixosModules.raspberry-pi-4

./hardware-configuration.nix
# ./wifi.nix
./camera.nix
./klipper
./bluetooth.nix
];

bee.system = system;
Expand Down
13 changes: 1 addition & 12 deletions cells/nixos/hosts/voron/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,7 @@
};
};

powerManagement.cpuFreqGovernor = "performance";

# hardware = {
# deviceTree.filter = "bcm2711-rpi-cm4.dtb";

# raspberry-pi."4".xhci.enable = true;
# };
powerManagement.cpuFreqGovernor = "powersave";

hardware.deviceTree.filter = "bcm2711-rpi-4-b.dtb";

# environment.systemPackages = with pkgs; [
# bluez
# bluez-tools
# ];
}
7 changes: 7 additions & 0 deletions cells/nixos/hosts/voron/klipper/klipper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ in {
};
};

systemd.extraConfig = ''
[Manager]
CPUAffinity=0-1
'';

systemd.services.klipper.serviceConfig.CPUAffinity = "2-3";

environment.systemPackages = [pkgs.katapult-flashtool];

services.mainsail = {
Expand Down

0 comments on commit 1fad476

Please sign in to comment.