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

Added a poor mans version of DKMS #184

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

LarryTheMagicDragon
Copy link
Contributor

I've made it create a script for the service. It stores the kernel version the module was compiled for in this script, on boot if they don't match it will recompile the module, and update the kernel version stored in the script.

@LarryTheMagicDragon
Copy link
Contributor Author

I forgot to mention I'm pretty sure this covers #113 and #137

@mmsaeed509
Copy link
Collaborator

it's gives an error

Traceback (most recent call last):
  File "/home/o0xwolf/.config/bspwm/bin/facer_rgb.py", line 203, in <module>
    with open(CHARACTER_DEVICE, 'wb') as cd:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/dev/acer-gkbbl-0'

@LarryTheMagicDragon
Copy link
Contributor Author

I don't have a "/home/o0xwolf/.config/bspwm/bin/facer_rgb.py" file. The only files affected by this that should be in /opt/turbofan. Can you tell me more about where you got this error from, and what you did to get it?

@mmsaeed509
Copy link
Collaborator

/home/o0xwolf/.config/bspwm/bin/facer_rgb.py is the same script /opt/turbo-fan/facer_rgb.py

/opt/turbo-fan/facer_rgb.py gives the same error

/opt/turbo-fan/facer_rgb.py
Traceback (most recent call last):
  File "/opt/turbo-fan/facer_rgb.py", line 205, in <module>
    with open(CHARACTER_DEVICE, 'wb') as cd:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/dev/acer-gkbbl-0'

@LarryTheMagicDragon
Copy link
Contributor Author

I believe this is a problem in upstream, I installed the base version, restarted my computer, and then ran install_service.sh again after restarting my computer, and got the same problem. I will attempt to fix my branch so that it can be installed repeatedly without restarting, but as far as I can tell this problem exists independent of the changes that I have made.

@LarryTheMagicDragon
Copy link
Contributor Author

I believe I have fixed the issue. As far as I can tell it is caused by calling insmod on the facer module while having a version of the facer module loaded. the install script, and service script remove /dev/acer-gkbbl-0 and /dev/acer-gkbbl-static-0, if the module cannot be reloaded it will fail to recreate them. on my system the problem seems to be fixed, I am now waiting for feedback from others

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

Successfully merging this pull request may close these issues.

3 participants