webosbrew / hyperhdr-webos-loader

39 stars 34 forks source link

[DRIVER] Add an option to pre-load specified kernel module (specified by path to .ko file) before starting HyperHDR main daemon #18

Closed S-trace closed 8 months ago

S-trace commented 9 months ago

Hi.

I have a TV which require to load specified driver (the sideloaded but working on the TV the ch341.ko in my case) to let wired LED controller to work on my TV. Now I need to manually load the ch341.ko via SSH and then manually restart HyperHDR to make it work.

Is it possible to add an option to insmod the specified .ko module before starting HyperHDR main process?

Thanks.

throwaway96 commented 9 months ago

You can create a script in /var/lib/webosbrew/init.d to load the kernel module at boot. Note that it must be executable, and its filename must comply with the requirements imposed by run-parts.

tuxuser commented 8 months ago

yep, loading custom drivers shouldn't be the job of this loader application.