"Error 2" when compiling the module via "make" command
mtg92 opened this issue · 5 comments
You shouldn't use sudo make
, just simply make
.
First please try purging, then reinstalling the linux-headers package.
First please try purging, then reinstalling the linux-headers package.
Thanks a lot, reinstalling the linux-headers package did the trick. I'll close this now :)
One other issue I'm seeing is that trying to change the lightbar parameters returns a "Permissions Denied" message, even if run with sudo.
mtg92@pop-os:/qc71_laptop$ echo 1 > /sys/class/leds/qc71_laptop::lightbar/brightness/qc71_laptop$ sudo !!
bash: /sys/class/leds/qc71_laptop::lightbar/brightness: Permission denied
mtg92@pop-os:
sudo echo 1 > /sys/class/leds/qc71_laptop::lightbar/brightness
bash: /sys/class/leds/qc71_laptop::lightbar/brightness: Permission denied
The reason for that is that only the echo
is run as root
. The redirection (>
) is done by the shell, which runs as your user, and the file is not writable by any ordinary account, thus you get the permission denied error. You can do this instead:
$ echo 1 | sudo tee /sys/class/leds/qc71_laptop::lightbar/brightness