testsAndMisc/linux_configuration/fixes
Krzysztof kuhy Rudnicki 3ae53499e6 g29 shifter: detect PS4 mode (046D:C260) instead of failing silently
On the 2026-09-15 and 2026-09-17 boots the wheel enumerated as 046D:C260
(PS3/PS4 selector in PS4 position, bound by hid-generic). The BPF udev
rule, the ensure unit and its hotplug rule all keyed on C24F, so the unit
failed once with "no G29 found" and nothing was said; 1st/3rd stayed on
the firmware's bad decode until the selector was flipped a day later.

- fixes/g29_wheel_mode.sh (new, sourced): classify the HID bus as
  native/ps4/compat/absent; root-safe desktop notification via
  /run/user/*/bus + sudo -u.
- --ensure: absent -> exit 0; ps4/compat -> exit 1 + critical
  notification; native -> attach. --status prints the mode first.
- g29-shifter-bpf.service: Restart=on-failure, RestartSec=5min so a
  notification lost before the session bus exists at boot is re-sent.
- 99-g29-shifter-ensure.rules: also fires on C260.
- tests/test_fix_g29_shifter.bats: 13 tests against a fake sysfs tree.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVfC2T6DyvCFqse9A99zef
2026-09-18 10:47:18 +02:00
..
lib Read the load average through LOADAVG_FILE so the probe tests are host-independent 2026-09-14 21:55:06 +02:00
systemd g29 shifter: detect PS4 mode (046D:C260) instead of failing silently 2026-09-18 10:47:18 +02:00
diagnose_arch_performance.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
diagnose_pacman_hook_stall.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
fix_anki.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
fix_arch_performance.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
fix_bluetooth.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
fix_controller.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
fix_flutter_git_env.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
fix_g29_shifter.sh g29 shifter: detect PS4 mode (046D:C260) instead of failing silently 2026-09-18 10:47:18 +02:00
fix_stepmania.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
fix_systemctl.sh Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 20:50:19 +02:00
fix_thorium.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
fix_ubuntu_performance.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
fix_virtualbox.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
fix_waifu2x.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
fix_yay_aur_database.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
g29_shifter_capture.py Add the G29 shifter HID-BPF fix (1st/3rd engage reliably) 2026-09-14 22:12:31 +02:00
g29_shifter.bpf.c Add the G29 shifter HID-BPF fix (1st/3rd engage reliably) 2026-09-14 22:12:31 +02:00
g29_wheel_mode.sh g29 shifter: detect PS4 mode (046D:C260) instead of failing silently 2026-09-18 10:47:18 +02:00
install_new_lg4ff.sh install_new_lg4ff: regenerate the initramfs only when it carries the other copy 2026-09-14 22:15:43 +02:00
migrate_hosts_guard_to_guard_lib.sh Extract the hosts blocker into its own repo 2026-08-23 20:30:18 +02:00
nvidia_troubleshoot.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
optimize_arch_desktop.sh Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00