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

Install error on 16.04 #54

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

Install error on 16.04 #54

betolink opened this issue Sep 27, 2016 · 8 comments

Comments

@betolink
Copy link

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
Copy link
Owner

patjak commented Sep 28, 2016

Try installing libssl, that should help.

@patjak
Copy link
Owner

patjak commented Sep 28, 2016

Also, see issue #52

@patjak
Copy link
Owner

patjak commented Sep 28, 2016

...and issue #46

@patjak patjak closed this as completed Sep 28, 2016
@betolink
Copy link
Author

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
Copy link
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
Copy link
Author

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
Copy link

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
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants