acpi_call icon indicating copy to clipboard operation
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

Open sidenkov opened this issue 5 years ago • 2 comments

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)

sidenkov avatar Jan 24 '20 09:01 sidenkov

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

ssidharths avatar May 10 '21 08:05 ssidharths