trying to fix reauth on fprint
This commit is contained in:
1 parent
3c244541cb
commit
b0da186ed3
5 files changed
+76
-35
No files matched your search
@@ -28,6 +28,7 @@
|
|||||||
printers.enable = true;
|
printers.enable = true;
|
||||||
fixes = {
|
fixes = {
|
||||||
airpod-bluetooth.enabled = true;
|
airpod-bluetooth.enabled = true;
|
||||||
|
fingerprint-autosuspend.enabled = true;
|
||||||
};
|
};
|
||||||
tiler = {
|
tiler = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ Various workarounds and fixes for desktop/workstation issues.
|
|||||||
|
|
||||||
```
|
```
|
||||||
fixes/
|
fixes/
|
||||||
└── default.nix # skyg.nixos.desktop.fixes.airpod-bluetooth.enabled — AirPods HFP mic
|
├── default.nix # skyg.nixos.desktop.fixes.airpod-bluetooth.enabled — AirPods HFP mic
|
||||||
|
└── fingerprint-autosuspend.nix
|
||||||
|
# skyg.nixos.desktop.fixes.fingerprint-autosuspend.enabled — keep fingerprint reader awake
|
||||||
```
|
```
|
||||||
|
|
||||||
## Behaviour
|
## Behaviour
|
||||||
@@ -18,3 +20,13 @@ When `skyg.nixos.desktop.fixes.airpod-bluetooth.enabled` is set to `true`:
|
|||||||
- WirePlumber auto-switches AirPods from A2DP to HFP when an app opens a mic.
|
- WirePlumber auto-switches AirPods from A2DP to HFP when an app opens a mic.
|
||||||
- Enables native HFP plus mSBC so the AirPods mic shows as an input.
|
- Enables native HFP plus mSBC so the AirPods mic shows as an input.
|
||||||
- Call audio is headset quality (mSBC if the buds support it), not A2DP.
|
- Call audio is headset quality (mSBC if the buds support it), not A2DP.
|
||||||
|
|
||||||
|
### Fingerprint Reader Autosuspend Fix
|
||||||
|
|
||||||
|
When `skyg.nixos.desktop.fixes.fingerprint-autosuspend.enabled` is set to `true`:
|
||||||
|
|
||||||
|
- Adds a udev rule keeping the Goodix MOC fingerprint reader (`27c6:609c`)
|
||||||
|
out of USB autosuspend (`power/control=on`, `autosuspend_delay_ms=-1`).
|
||||||
|
- Prevents the recurring `usb 1-4: reset full-speed USB device` resets and the
|
||||||
|
intermittent fprintd failure `Device reported an error during identify:
|
||||||
|
Cannot run while suspended` caused by probing the reader while it is asleep.
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.desktop.fixes.airpod-bluetooth;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
skyg.nixos.desktop.fixes.airpod-bluetooth = {
|
||||||
|
enabled = lib.mkEnableOption "AirPods Bluetooth mic via HFP (lower call quality)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf (cfg.enabled && config.skyg.nixos.desktop.enable) {
|
||||||
|
# Switch AirPods to HFP when a mic is needed so the AirPods mic
|
||||||
|
# shows as an input. Call audio is HFP (mSBC if supported), not A2DP.
|
||||||
|
services.pipewire.wireplumber.extraConfig = {
|
||||||
|
"51-airpods-bluetooth" = {
|
||||||
|
"monitor.bluez.properties" = {
|
||||||
|
"bluez5.enable-msbc" = true;
|
||||||
|
"bluez5.msbc-support" = true;
|
||||||
|
"bluez5.hfphsp-backend" = "native";
|
||||||
|
"bluez5.roles" = [
|
||||||
|
"a2dp_sink"
|
||||||
|
"a2dp_source"
|
||||||
|
"hsp_hs"
|
||||||
|
"hsp_ag"
|
||||||
|
"hfp_hf"
|
||||||
|
"hfp_ag"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
"wireplumber.settings" = {
|
||||||
|
"bluetooth.autoswitch-to-headset-profile" = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,36 +1,7 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ ... }:
|
||||||
let
|
|
||||||
cfg = config.skyg.nixos.desktop.fixes.airpod-bluetooth;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
options = {
|
imports = [
|
||||||
skyg.nixos.desktop.fixes.airpod-bluetooth = {
|
./airpod-bluetooth.nix
|
||||||
enabled = lib.mkEnableOption "AirPods Bluetooth mic via HFP (lower call quality)";
|
./fingerprint-autosuspend.nix
|
||||||
};
|
];
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf (cfg.enabled && config.skyg.nixos.desktop.enable) {
|
|
||||||
# Switch AirPods to HFP when a mic is needed so the AirPods mic
|
|
||||||
# shows as an input. Call audio is HFP (mSBC if supported), not A2DP.
|
|
||||||
services.pipewire.wireplumber.extraConfig = {
|
|
||||||
"51-airpods-bluetooth" = {
|
|
||||||
"monitor.bluez.properties" = {
|
|
||||||
"bluez5.enable-msbc" = true;
|
|
||||||
"bluez5.msbc-support" = true;
|
|
||||||
"bluez5.hfphsp-backend" = "native";
|
|
||||||
"bluez5.roles" = [
|
|
||||||
"a2dp_sink"
|
|
||||||
"a2dp_source"
|
|
||||||
"hsp_hs"
|
|
||||||
"hsp_ag"
|
|
||||||
"hfp_hf"
|
|
||||||
"hfp_ag"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"wireplumber.settings" = {
|
|
||||||
"bluetooth.autoswitch-to-headset-profile" = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.desktop.fixes.fingerprint-autosuspend;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
skyg.nixos.desktop.fixes.fingerprint-autosuspend = {
|
||||||
|
enabled = lib.mkEnableOption "Keep the Goodix MOC fingerprint reader out of USB autosuspend";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf (cfg.enabled && config.skyg.nixos.desktop.enable) {
|
||||||
|
# Framework Goodix MOC fingerprint reader (27c6:609c) resets whenever it is
|
||||||
|
# probed while in USB autosuspend ("usb 1-4: reset full-speed USB device"),
|
||||||
|
# and fprintd intermittently fails with "Cannot run while suspended".
|
||||||
|
# Keep it powered so it responds reliably and stops the reset churn.
|
||||||
|
services.udev.extraRules = ''
|
||||||
|
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="27c6", ATTRS{idProduct}=="609c", ATTR{power/control}="on", ATTR{power/autosuspend_delay_ms}="-1"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in new issue
Block a user