acpi_call
acpi_call copied to clipboard
Fix for `line 39: warning: command substitution: ignored null byte in input` in `turn_off_gpu.sh` on Manjaro 18.1.5
On Manjaro 18.1.5 turn_off_gpu.sh script returns line 39: warning: command substitution: ignored null byte in input warning instead of saying "failed" or "works"
I fixed it by replacing line 39
result=$(cat /proc/acpi/call)
with
result=$(tr -d '\0' </proc/acpi/call)
Hello there! I could remove the LIne 39 error but still I am not getting Trying _SB.PCI0.PEG0.PEGP._OFF: works! in output Please see me output: output