pobrn/qc71_laptop

"Error 2" when compiling the module via "make" command

mtg92 opened this issue · 5 comments

mtg92 commented

I was able to install the linux headers and dkms but when it comes time to compile the module via the "sudo make" command, I get the error below. Any idea how I could fix it? Thanks.

qc71_laptop_make_error

pobrn commented

You shouldn't use sudo make, just simply make.

mtg92 commented

You shouldn't use sudo make, just simply make.

Thanks for the quick reply. I've run 'make' and now the error is slightly different.

qc71_laptop_make_error2

Is this related to the linux-headers? Apologies for the 'noobness'!

pobrn commented

First please try purging, then reinstalling the linux-headers package.

mtg92 commented

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
bash: /sys/class/leds/qc71_laptop::lightbar/brightness: Permission denied
mtg92@pop-os:
/qc71_laptop$ sudo !!
sudo echo 1 > /sys/class/leds/qc71_laptop::lightbar/brightness
bash: /sys/class/leds/qc71_laptop::lightbar/brightness: Permission denied

pobrn commented

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