Find the answer to your Linux question:
Page 1 of 4 1 2 3 4 LastLast
Results 1 to 10 of 34

Thread: modules.conf

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319

    modules.conf


    The following modules are needed for my joystick to work.
    joydev, gameport, emu10k1-gp, and sidewinder. I noticed that when I modprobe sidewinder, gameport is loaded automatically. I'm assuming I can add this to /etc/modules.conf
    Code:
    alias char-major-13-0 sidewinder
    NOTE: /dev/input/js0 defaults to major 13 and minor 0

    Now, this will load sidewinder and gamport but how can I load the other two modules automatically?
    The best things in life are free.

  2. #2
    Linux User
    Join Date
    Feb 2003
    Location
    Norway, Asker
    Posts
    267
    in slackware, you can put those modules that will be modprobed in booting in /etc/rc.d/rc.modules But I don't know what distro you are running

  3. #3
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Interesting. I'm assuming that it just loads the modules that you put into that file during init. Debian has /etc/modules which is also just a file that loads any modules listed.
    /etc/modules.conf is a smarter way to do this and I believe all distro's support this method. What generally happens is a module is loaded only when it is needed. It can also be freed when it's not being used. This is why I'd like to edit /etc/modules.conf to support the modules that I discussed.
    The best things in life are free.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Try pulling them in with "add above" otherwise. Ie. something like this:
    Code:
    add above sidewinder emu10k1-gp
    If I'm not incorrect, emu10k1-gp depends on joydev, so joydev should be loaded that way.

  6. #5
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Actually, LKM emu10k1-gp loads gameport.
    The best things in life are free.

  7. #6
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    What does joydev do? Does it just provide the actual device interface? In that case, I'd suggest this:
    Code:
    add above sidewinder joydev

  8. #7
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Well, I know that all four modules MUST be loaded in order for the joystick to work. With that line you provided, how can I load emu10k1-gp as well as joydev? Where can I read about this?
    The best things in life are free.

  9. #8
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Just add both lines:
    Code:
    add above sidewinder joydev
    add above sidewinder emu10k1-gp
    Check the man page for modules.conf.

  10. #9
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Code:
    alias char-major-13-0 sidewinder
    add above sidewinder joydev
    add above sidewinder emu10k1-gp
    Does this look correct? It did absolutely nothing to load the modules when I tried using the joystick.
    The best things in life are free.

  11. #10
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    The add above lines look alright, but I don't know why I didn't react to the char-major-13-0 alias before. I don't think you can use that, because by default the kernel only requests a new module by major number. Requests by minor numbers have to be done explicitly by the drivers themselves. I'll check the kernel source and get back to this post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •