Turn off laptop screen running Hassio

I want to go with this solution to programmatically turn off or dim my Laptop since recently there has been a massive advancement in using the laptop screen as a dashboard.

I’m running HAOS but whenever I try to run this automation via the call_service it responds with Event fired successfully but NOTHING happens. Trying from the Advanced SSH addon yields a similar result with an error:
tee: /sys/class/backlight/intel_backlight/brightness: Read-only file system

Plugging in a keyboard works, but that option kinda sucks. Any ideas as to why Home Assistant cannot run this as an automation? With the keyboard plugged in I’ve made sure to touch the file with a chmod, giving it maximum permissiveness.

UPDATE: I got it to work, it turns out call_service has been depreciated and replaced by perform action. Thank you, works like a charm!