Skip to content

platform/x86: asus-armoury: fix sysfs_notify() and pending_reboot for grouped attributes - #9

Closed
Ghoul4500 wants to merge 2 commits into
OpenGamingCollective:masterfrom
Ghoul4500:ghoul/armoury-grouped-attr-fixes
Closed

platform/x86: asus-armoury: fix sysfs_notify() and pending_reboot for grouped attributes#9
Ghoul4500 wants to merge 2 commits into
OpenGamingCollective:masterfrom
Ghoul4500:ghoul/armoury-grouped-attr-fixes

Conversation

@Ghoul4500

@Ghoul4500 Ghoul4500 commented Aug 28, 2026

Copy link
Copy Markdown
Member

Fixes the issue where pending_reboot was not correctly applied when changing some attributes

The store handlers call sysfs_notify(kobj, NULL, attr->attr.name), but
kobj is the "attributes" directory and the name is always
"current_value". Named groups get no kobject of their own, so the
lookup finds nothing and the notify quietly does nothing: a poll() on
<attribute>/current_value never wakes up.

Pass the group name down so the notify resolves
attributes/<group>/current_value. armoury_attr_uint_store() takes a new
fsname argument, threaded through __WMI_STORE_INT() and
__ROG_TUNABLE_RW(); the hand-written stores pass their own group names.

Fixes: f99eb09 ("platform/x86: asus-armoury: move existing tunings to asus-armoury module")
Signed-off-by: Ahmed Yaseen <yaseen@ghoul.dev>
asus_bios_requires_reboot() matches attr->attr.name against
"gpu_mux_mode" and "panel_hd_mode", but callers hand it a current_value
attribute, and that name is always "current_value". The match never
hits, so panel_hd_mode never sets pending_reboot or emits the
KOBJ_CHANGE uevent. gpu_mux_mode gets away with it because its
hand-written store signals the event itself.

Match on the group name instead, which armoury_attr_uint_store() now
has at hand.

Fixes: f99eb09 ("platform/x86: asus-armoury: move existing tunings to asus-armoury module")
Signed-off-by: Ahmed Yaseen <yaseen@ghoul.dev>
@Ghoul4500 Ghoul4500 self-assigned this Aug 28, 2026
@Ghoul4500
Ghoul4500 requested a review from NeroReflex August 28, 2026 15:59
@Ghoul4500
Ghoul4500 marked this pull request as ready for review August 28, 2026 15:59
@Ghoul4500 Ghoul4500 closed this Aug 31, 2026
@Ghoul4500
Ghoul4500 deleted the ghoul/armoury-grouped-attr-fixes branch August 31, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant