NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.88k stars 13.94k forks source link

asusctl: possibly missing dependencies after 6.0.X #312319

Closed ninelore closed 5 months ago

ninelore commented 5 months ago

Describe the bug

asusctl 6.0.X seems to be missing dependencies

Steps To Reproduce

Steps to reproduce the behavior:

  1. Update 
  2. nix-collect-garbage -d
  3. reboot
  4. try to change anime matrix

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

introduced in #309474 #310287

Mai 12 19:56:30 9l-zephyr asusd[2916]: INFO:     rog-anime v5.0.10
Mai 12 19:56:31 9l-zephyr asusd[2916]: INFO: Parsed RON for "asusd::ctrl_anime::config::AnimeConfig"
Mai 12 19:56:31 9l-zephyr asusd[2916]: INFO: Device has an AniMe Matrix display: GA402
Mai 14 19:17:08 9l-zephyr asusd[102790]: [INFO  asusd]     rog-anime v6.0.6
Mai 14 19:17:08 9l-zephyr asusd[102790]: [INFO  asusd::ctrl_anime] Anime using the USB interface
Mai 14 19:17:08 9l-zephyr asusd[102790]: [INFO  config_traits] Parsed RON for "asusd::ctrl_anime::config::AnimeConfig"
Mai 14 19:17:08 9l-zephyr asusd[102790]: [INFO  asusd::ctrl_anime] Device has an AniMe Matrix display: GA402
Mai 14 19:17:08 9l-zephyr asusd[102790]: [INFO  asusd] AniMe control: Slash error: No Slash device found
Mai 16 08:16:58 9l-zephyr asusd[2491]: [INFO  asusd]     rog-anime v6.0.6
Mai 16 08:16:58 9l-zephyr asusd[2491]: [INFO  asusd::ctrl_anime] Anime using the USB interface
Mai 16 08:16:58 9l-zephyr asusd[2491]: [INFO  config_traits] Parsed RON for "asusd::ctrl_anime::config::AnimeConfig"
Mai 16 08:16:58 9l-zephyr asusd[2491]: [INFO  asusd::ctrl_anime] Device has an AniMe Matrix display: GA402
Mai 16 08:16:58 9l-zephyr asusd[2491]: [INFO  asusd] AniMe control: Slash error: No Slash device found
# Garbage collected here
Mai 16 16:24:01 9l-zephyr asusd[2545]: [INFO  asusd]     rog-anime v6.0.6
Mai 16 16:24:01 9l-zephyr asusd[2545]: [INFO  asusd::ctrl_anime] Anime using the USB interface
Mai 16 16:24:01 9l-zephyr asusd[2545]: [INFO  config_traits] Parsed RON for "asusd::ctrl_anime::config::AnimeConfig"
Mai 16 16:24:01 9l-zephyr asusd[2545]: [INFO  asusd::ctrl_anime] Device has an AniMe Matrix display: GA402
Mai 16 16:24:01 9l-zephyr asusd[2545]: [INFO  asusd] AniMe control: AniMe Matrix error: Could not open: No such file or directory (os error 2)
Mai 16 16:24:01 9l-zephyr asusd[2545]: [INFO  asusd] AniMe control: Slash error: No Slash device found

note 2nd to last line

Notify maintainers

@K900 @aacebedo

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.9.0, NixOS, 24.05 (Uakari), 24.05.20240515.33d1e75`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.21.1`
 - channels(root): `"nixos, nixos-unstable-small, nixpkgs"`
 - nixpkgs: `/nix/store/0qd773b63yg8435w8hpm13zqz7iipcbs-source`

(note: flake config)


Add a :+1: reaction to issues you find important.

K900 commented 5 months ago

I unfortunately don't have a device to test this on. Can you try running it with RUST_LOG=debug? Maybe that will provide more information.

ninelore commented 5 months ago

I dont see many debug messages

Mai 17 08:31:09 9l-zephyr systemd[1]: Starting ASUS Notebook Control...
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd]        daemon v6.0.6
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd]     rog-anime v6.0.6
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd]     rog-slash v6.0.6
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd]      rog-aura v6.0.6
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd]  rog-profiles v6.0.6
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd] rog-platform v6.0.6
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  dmi_id] Found dmi ID info at "id"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd] Product family: ROG Zephyrus G14
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd] Board name: GA402RJ
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  config_traits] Parsed RON for "asusd::config::Config"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::platform] Found platform support at "asus-nb-wmi"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_fancurves] Device has profile control available
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_fancurves] Device has fan curves available
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  config_traits] Parsed RON for "asusd::ctrl_fancurves::FanCurveConfig"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_fancurves] Fan curves previously stored, loading...
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  config_traits] Parsed RON for "asusd::ctrl_fancurves::FanCurveConfig"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [DEBUG rog_profiles] write_profile_curve_to_platform: writing profile:Balanced, CurveData { fan: CPU, pwm: [20, 43, 56, 66, 86, 104, 122, 175], temp: [58, 61, 64, 68, 72, 77, 81, 98], enabled: false }
Mai 17 08:31:10 9l-zephyr asusd[12878]: [DEBUG rog_profiles] write_profile_curve_to_platform: writing profile:Balanced, CurveData { fan: GPU, pwm: [30, 56, 73, 79, 96, 114, 132, 188], temp: [58, 61, 64, 68, 72, 77, 81, 98], enabled: false }
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::platform] Found platform support at "asus-nb-wmi"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::power] Power: Checking "/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:4b/PNP0C09:00/PNP0C0A:00/power_supply/BAT0"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::power] Found a battery
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::power] Checking battery attributes
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::power] Found battery power at "BAT0", matched charge_control_end_threshold. Current level: "100"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::power] Power: Checking "/sys/devices/pci0000:00/0000:00:14.3/PNP0C09:00/ACPI0003:00/power_supply/AC0"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::power] Found mains power at "AC0"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Found CPU support at "cpu0", checking supported items
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] cpufreq/scaling_available_governors: "performance powersave"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] cpufreq/scaling_governor: "powersave"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] cpufreq/energy_performance_available_preferences: "default performance balance_performance balance_power power "
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] cpufreq/energy_performance_preference: "balance_power"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu0"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu1"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu10"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu11"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu12"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu13"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu14"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu15"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu2"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu3"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu4"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu5"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu6"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu7"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu8"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::cpu] Adding: "/sys/devices/system/cpu/cpu9"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_platform] Begin Platform settings restore
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_platform] Starting inotify watch for asusd config file
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_platform] reloading charge_control_end_threshold to 100
Mai 17 08:31:10 9l-zephyr asusd[12878]: [WARN  asusd] Controller error: Asus Platform error: ppt_pl1_spl Invalid argument (os error 22)
Mai 17 08:31:10 9l-zephyr asusd[12878]: [WARN  asusd::ctrl_platform] ppt_pl1_spl: Attribute not found: ppt_pl1_spl
Mai 17 08:31:10 9l-zephyr asusd[12878]: [WARN  asusd::ctrl_platform] ppt_pl2_sppt: Attribute not found: ppt_pl2_sppt
Mai 17 08:31:10 9l-zephyr asusd[12878]: [WARN  asusd::ctrl_platform] ppt_fppt: Attribute not found: ppt_fppt
Mai 17 08:31:10 9l-zephyr asusd[12878]: [WARN  asusd::ctrl_platform] ppt_apu_sppt: Attribute not found: ppt_apu_sppt
Mai 17 08:31:10 9l-zephyr asusd[12878]: [WARN  asusd::ctrl_platform] ppt_platform_sppt: Attribute not found: ppt_platform_sppt
Mai 17 08:31:10 9l-zephyr asusd[12878]: [WARN  asusd::ctrl_platform] nv_temp_target: Attribute not found: nv_temp_target
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_platform] inotify watch failed: Attribute not found: mini_led_mode. You can ignore this if your device does not support the feature
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_platform] inotify watch failed: Attribute not found: egpu_enable. You can ignore this if your device does not support the feature
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_platform] inotify watch failed: Attribute not found: boot_sound. You can ignore this if your device does not support the feature
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_platform] inotify watch failed: Attribute not found: nv_dynamic_boost. You can ignore this if your device does not support the feature
Mai 17 08:31:10 9l-zephyr kernel: usb 1-4: reset full-speed USB device number 3 using xhci_hcd
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_anime] Anime using the USB interface
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  config_traits] Parsed RON for "asusd::ctrl_anime::config::AnimeConfig"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  dmi_id] Found dmi ID info at "id"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_anime] Device has an AniMe Matrix display: GA402
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd] AniMe control: AniMe Matrix error: Could not open: No such file or directory (os error 2)
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  dmi_id] Found dmi ID info at "id"
Mai 17 08:31:10 9l-zephyr kernel: hid-generic 0003:0B05:193B.0009: hiddev97,hidraw4: USB HID v1.10 Device [ITE Tech. Inc. ITE Device(8910)] on usb-0000:07:00.3-4/input0
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd] AniMe control: Slash error: No Slash device found
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_aura::controller] Searching for all Aura devices
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_aura::controller] AuraControl found device at: "/dev/bus/usb/001/002"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::keyboard_led] Found keyboard LED controls at "asus::kbd_backlight"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  dmi_id] Found dmi ID info at "id"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_aura::aura_detection] Loaded default LED support data from /nix/store/ssfk1g3r55961a74jqmh750gidah74wh-asusctl-6.0.6/share/asusd/aura_support.ron
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_aura::aura_detection] Matched to GA402R
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_aura::config] Setting up AuraConfig for "19b6"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  dmi_id] Found dmi ID info at "id"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_aura::aura_detection] Loaded default LED support data from /nix/store/ssfk1g3r55961a74jqmh750gidah74wh-asusctl-6.0.6/share/asusd/aura_support.ron
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_aura::aura_detection] Matched to GA402R
Mai 17 08:31:10 9l-zephyr asusd[12878]: [DEBUG asusd::ctrl_aura::config] creating default for Static
Mai 17 08:31:10 9l-zephyr asusd[12878]: [DEBUG asusd::ctrl_aura::config] creating default for Breathe
Mai 17 08:31:10 9l-zephyr asusd[12878]: [DEBUG asusd::ctrl_aura::config] creating default for Pulse
Mai 17 08:31:10 9l-zephyr asusd[12878]: [DEBUG asusd::ctrl_aura::config] creating default for Rainbow
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  config_traits] Parsed RON for "asusd::ctrl_aura::config::AuraConfig"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [DEBUG asusd::ctrl_aura::controller] Already a ctrl at OwnedObjectPath(ObjectPath("/org/asuslinux/19b6_2_3")), ignoring this end-point
Mai 17 08:31:10 9l-zephyr asusd[12878]: [DEBUG asusd::ctrl_aura::controller] Already a ctrl at OwnedObjectPath(ObjectPath("/org/asuslinux/19b6_2_3")), ignoring this end-point
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  rog_platform::keyboard_led] Found keyboard LED controls at "asus::kbd_backlight"
Mai 17 08:31:10 9l-zephyr asusd[12878]: [INFO  asusd::ctrl_aura::controller] Found 1 Aura devices
Mai 17 08:31:10 9l-zephyr asusd[12878]: [DEBUG asusd::ctrl_aura::trait_impls] reloading keyboard mode
Mai 17 08:31:10 9l-zephyr asusd[12878]: [DEBUG asusd::ctrl_aura::trait_impls] reloading power states
Mai 17 08:31:11 9l-zephyr systemd[1]: Started ASUS Notebook Control.
K900 commented 5 months ago

Well, that's unhelpful. Can you try running it under strace to see what files it's trying to access?

ninelore commented 5 months ago

strace.log

K900 commented 5 months ago

It seems to me like your config still has a reference to the old store path: 21149 09:03:15.669172 openat(AT_FDCWD, "/nix/store/n8awq0hbwd8f3bgkpm635574lh2qfyp1-asusctl-5.0.10/share/asusd/anime/custom/sonic-run.gif", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

ninelore commented 5 months ago

Twas the issue

Created Upstream Issue: https://gitlab.com/asus-linux/asusctl/-/issues/505

Thanks for the help