I’m asking what source you had because I suspect you’re trying to do somthing impossible. As I wrote before, kernel objects may not be modifiable at all. ‘/sys/’ contains only kernel objects.
Granted, Linux could be more descriptive about errors, but what you’re trying to do is not exactly noob level.
Either way, I can help you only if you cooperate.