Score:1

Run sudo commands on startup

ly flag

I need to run this command on startup, '''sudo modprobe apple_bce sudo modprobe apple_ib_tb sudo modprobe apple_ib_als''' and I can not have user input to activate it because it activates my laptop's speakers, track pad and keyboard drivers.

hr flag
It sounds like what you *really* should be asking is how to [Configure kernel modules to load at boot](https://manpages.ubuntu.com/manpages/jammy/man5/modules-load.d.5.html)
Raffa avatar
jp flag
... either that neat way or add the modules to the file `/etc/modules` each module on a single new line ... Just the module name with no `sudo` nor `modprobe`
Cyrus avatar
ly flag
Thank you @Raffa that worked
petep avatar
in flag
just ad commands to /etc/rc.local
waltinator avatar
it flag
Commands run at system startup are all run as `root` (`UID 0`), so using `sudo` is redundant, unless you're `sudo`ing to some other userid.
vidarlo avatar
om flag
Does this answer your question? [Loading a kernel module at boot](https://askubuntu.com/questions/1091379/loading-a-kernel-module-at-boot)
Score:0
ly flag

Just add new lines to /etc/modules/ without sudo or modprobe as @Raffa said

us flag
What are the new lines you need to add? Please edit and be more specific so that it helps other users in the future
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.