1

made a simple command to change my power mode to "balanced-performance" (lenovolegion power mode for custom mode), works fine in terminal and running the file, but when listing it as a script in power management for when AC power is plugged in, i get this.

org.kde.powerdevil: Failed to run "/home/bombyb/custom.sh" 

the contents of the script is this:

echo balanced-performance | sudo tee /sys/firmware/acpi/platform_profile 

not experienced at all with stuff like this so help would be greatly appreciated, thanks

1 Answer 1

0

If that's the whole script, then it is missing the #! header to make it runnable.

#!/usr/bin/bash echo this | sudo tee that 

When the kernel refuses to recognize it as a known format, an interactive shell will run it anyway (by assuming /bin/sh), but most other programs don't have this fallback and won't be able to run scripts that don't correctly indicate their interpreter.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.