Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for line 39: warning: command substitution: ignored null byte in input in turn_off_gpu.sh on Manjaro 18.1.5 #87

Open
sidenkov opened this issue Jan 24, 2020 · 1 comment

Comments

@sidenkov
Copy link

sidenkov commented Jan 24, 2020

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 sidenkov changed the title Fix for line 39: warning: command substitution: ignored null byte in input on Manjaro 18.1.5 Fix for line 39: warning: command substitution: ignored null byte in input in turn_off_gpu.sh on Manjaro 18.1.5 Jan 24, 2020
@itzzmesid
Copy link

itzzmesid commented May 10, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants