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

Install error on 16.04 #54

Closed
betolink opened this Issue Sep 27, 2016 · 8 comments

Comments

Projects
None yet
4 participants
@betolink

betolink commented Sep 27, 2016

I tried to install the driver on Ubuntu 16.04 (kernel 4.4.0-38-generic), after compiling I get

make -C /lib/modules/4.4.0-38-generic/build M=/home/beto/hacks/mba6x_bl modules_install
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-38-generic'
  INSTALL /home/beto/hacks/mba6x_bl/mba6x_bl.ko
At main.c:222:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  4.4.0-38-generic
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-38-generic'

and when I tried to load the module I get:

modprobe: FATAL: Module mba6x_bl not found in directory /lib/modules/4.4.0-38-generic

Is the driver supported for 16.04?

@patjak

This comment has been minimized.

Show comment
Hide comment
@patjak

patjak Sep 28, 2016

Owner

Try installing libssl, that should help.

Owner

patjak commented Sep 28, 2016

Try installing libssl, that should help.

@patjak

This comment has been minimized.

Show comment
Hide comment
@patjak

patjak Sep 28, 2016

Owner

Also, see issue #52

Owner

patjak commented Sep 28, 2016

Also, see issue #52

@patjak

This comment has been minimized.

Show comment
Hide comment
@patjak

patjak Sep 28, 2016

Owner

...and issue #46

Owner

patjak commented Sep 28, 2016

...and issue #46

@patjak patjak closed this Sep 28, 2016

@betolink

This comment has been minimized.

Show comment
Hide comment
@betolink

betolink Sep 28, 2016

I have ssl installed, looks like this error is related to signed modules on the linux kernel. i.e. Module signature verification issues on Ubuntu 16.04 LTS and Ubuntu 16.04, make install leads to ssl error

betolink commented Sep 28, 2016

I have ssl installed, looks like this error is related to signed modules on the linux kernel. i.e. Module signature verification issues on Ubuntu 16.04 LTS and Ubuntu 16.04, make install leads to ssl error

@patjak

This comment has been minimized.

Show comment
Hide comment
@patjak

patjak Sep 29, 2016

Owner

Did you install the development version of the package (libssl-dev on Ubuntu). Yes, you need it to be able to sign modules. Either way, this is not a fatal error so you should still be able to use the driver.

Owner

patjak commented Sep 29, 2016

Did you install the development version of the package (libssl-dev on Ubuntu). Yes, you need it to be able to sign modules. Either way, this is not a fatal error so you should still be able to use the driver.

@betolink

This comment has been minimized.

Show comment
Hide comment
@betolink

betolink Sep 29, 2016

Yes I have libssl-dev installed and when I tried to load the module I get the error I put on my first comment:

modprobe: FATAL: Module mba6x_bl not found in directory /lib/modules/4.4.0-38-generic

I finally g̶o̶t̶ ̶i̶t̶ ̶w̶o̶r̶k̶i̶n̶g̶ could load the module by following @luveti steps on #52,

  • sudo update-initramfs -u -k all
  • sudo insmod /lib/modules/linux-image-$(uname -r)/extra/mba6x_bl.ko

My guess is that modprob fails to verify the signature of the module and insmod does not require it? in any case I could load the module. Now my issues is that when it comes back from suspension the back-light is fixed (well at least it's not 100% like before)

betolink commented Sep 29, 2016

Yes I have libssl-dev installed and when I tried to load the module I get the error I put on my first comment:

modprobe: FATAL: Module mba6x_bl not found in directory /lib/modules/4.4.0-38-generic

I finally g̶o̶t̶ ̶i̶t̶ ̶w̶o̶r̶k̶i̶n̶g̶ could load the module by following @luveti steps on #52,

  • sudo update-initramfs -u -k all
  • sudo insmod /lib/modules/linux-image-$(uname -r)/extra/mba6x_bl.ko

My guess is that modprob fails to verify the signature of the module and insmod does not require it? in any case I could load the module. Now my issues is that when it comes back from suspension the back-light is fixed (well at least it's not 100% like before)

@tpcorrea

This comment has been minimized.

Show comment
Hide comment
@tpcorrea

tpcorrea Jan 4, 2017

Hi all,

sorry to comment a closed issue, but I have exactly this problem, except that when I use insmod, the screen dims, but when I re-start Ubuntu everything is as before, i.e., I can't control the backlight...

Could anyone help? Cheers.

tpcorrea commented Jan 4, 2017

Hi all,

sorry to comment a closed issue, but I have exactly this problem, except that when I use insmod, the screen dims, but when I re-start Ubuntu everything is as before, i.e., I can't control the backlight...

Could anyone help? Cheers.

@emily-xx

This comment has been minimized.

Show comment
Hide comment
@emily-xx

emily-xx Aug 14, 2017

@tpcorrea The way I got things to work all the time was by adding the insmod portion of things to /etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

echo 0 > /sys/module/hid_apple/parameters/iso_layout
insmod /lib/modules/$(uname -r)/extra/mba6x_bl.ko

exit 0

You need to do the update-initramfs -u -k all after installing the module for a new kernel, then do a reboot and that line will ensure that the module is loaded on each boot!

I use KDE Neon which is built atop an Ubuntu 16.04 base, so that command should work fine for you if using Ubuntu 16.04. If not, check out how your module directories are named in /lib/modules and adjust accordingly.

The echo 0 part of things fixes the issue where the tilde key produces ", as seen here: https://askubuntu.com/questions/530325/tilde-key-on-mac-air-with-ubuntu

emily-xx commented Aug 14, 2017

@tpcorrea The way I got things to work all the time was by adding the insmod portion of things to /etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

echo 0 > /sys/module/hid_apple/parameters/iso_layout
insmod /lib/modules/$(uname -r)/extra/mba6x_bl.ko

exit 0

You need to do the update-initramfs -u -k all after installing the module for a new kernel, then do a reboot and that line will ensure that the module is loaded on each boot!

I use KDE Neon which is built atop an Ubuntu 16.04 base, so that command should work fine for you if using Ubuntu 16.04. If not, check out how your module directories are named in /lib/modules and adjust accordingly.

The echo 0 part of things fixes the issue where the tilde key produces ", as seen here: https://askubuntu.com/questions/530325/tilde-key-on-mac-air-with-ubuntu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment