[SOLVED] how to disable loading of certain modules?

After the system has booted, i do "lsmod" and see all kinds of modules i don't need, i.e. xfs, jfs, all kinds or raid and scsi stuff. I'm sure they kan be removed since "rmmod" can remove them.
I tried to add those to MOD_BLACKLIST in /etc/rc.conf but it didn't help. Where is the correct place to put modules whihch must not be loaded?
This way boot time and memory usage both can be improved.. Or am i wrong here?

mpie wrote:those are from your initrd, follow the wiki guide to recompiling your own, if you want to omit some modules
Thanks a lot, exactly what i needed! 
http://wiki.archlinux.org/index.php/Initrd

Similar Messages

  • How to disable iMessage for certain contacts

    I was wondering how to disable iMessage for certain contacts!

    Try deleting the phone number from the persons contact and then re-entering it as a new number.
    You don't have to delete the entire contact.
    Worked for me.

  • [SOLVED]Get [FAIL] when loading user specified modules.

    That is it, when the system is booting i get a [FAIL] message when loading user specified modules after upgrading udev, and the kmod new module handling or something as say in the news. I dont have a modprobe.conf or a modprobe.conf.pacsave file either and creating a modprobe.conf file doesn't solve the problem. The strange thing is that the modules are loaded anyways. I mean the ones that are specified in rc.conf. I dont know if the system [FAIL] to load that modules or others...The system works fine for now too.
    Thanks.
    PD: sorry if you notice my poor english.
    Last edited by Hyugga (2012-01-22 23:09:02)

    I had the same problem and removing the governor performance from rc.conf solved the problem. I tried however to remove both governors and only leave powernow-k8 (this is the only one that works for me) leaving rc.conf like this:
    MODULES=(brcmsmac powernow-k8)
    When I boot the laptop and check which governors are available and being used I get the following:
    [netlak@soulrebel ~]$ cpufreq-info
    cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
    Report errors and bugs to [email protected], please.
    analyzing CPU 0:
    driver: powernow-k8
    CPUs which run at the same hardware frequency: 0
    CPUs which need to have their frequency coordinated by software: 0
    maximum transition latency: 8.0 us.
    hardware limits: 800 MHz - 2.10 GHz
    available frequency steps: 2.10 GHz, 1.50 GHz, 800 MHz
    available cpufreq governors: performance
    current policy: frequency should be within 800 MHz and 2.10 GHz.
    The governor "performance" may decide which speed to use
    within this range.
    current CPU frequency is 2.10 GHz.
    This like as if the ondemand governor would not be available but when unplugging the laptop and check again I get this:
    [netlak@soulrebel ~]$ cpufreq-info
    cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
    Report errors and bugs to [email protected], please.
    analyzing CPU 0:
    driver: powernow-k8
    CPUs which run at the same hardware frequency: 0
    CPUs which need to have their frequency coordinated by software: 0
    maximum transition latency: 8.0 us.
    hardware limits: 800 MHz - 2.10 GHz
    available frequency steps: 2.10 GHz, 1.50 GHz, 800 MHz
    available cpufreq governors: ondemand, performance
    current policy: frequency should be within 800 MHz and 2.10 GHz.
    The governor "ondemand" may decide which speed to use
    within this range.
    current CPU frequency is 800 MHz.
    This shows that the ondemand module can be autoloaded when needed, so I leave rc.conf only with powernow-k8.
    Thanks for your help.

  • How to Disable the kerberos auth module

    Hi,
    Can someone please tell me what are the steps to Disable the kerberos auth module . I have OID<=>AD synchronized and WNA enabled. I want to disable the kerberos and do some testing and then enable it back. Is there a documentation which I can refer. I am on OracleAS Portal 10.1.2.0.0. Thanks

    While Portal is the front end UI most users see for the Oracle Identity management environment, WNA and Kerberos support is really a function of the SSO<>OID environment (Portal gets it for free as part of SSO). As such, I'm going to have to punt this across to them (as they would have the most up to date information).
    Can I suggest posting this question on the Identity Management Forum Identity Manager
    In the mean time we, in Portal land, will look into the issue as well.

  • [SOLVED]How to disable USB autosuspend?

    Hello!
    A long time ago I installed Arch on my notebook and configured it's power saving using laptop-mode-tools. I also installed pm-utils for suspend/hibernate. USB autosuspend worked correctly - on battery every device (including mouse) was suspending and no autosuspend at all on AC. Some time ago, I don't remember when exactly, it stopped working. Now, no matter what, my mouse turns off after 2 seconds.
    Here is what I did:
    1. Checked my laptop-mode-tools configuration (removed comments for brevity):
    cat /etc/laptop-mode/conf.d/usb-autosuspend.conf
    DEBUG=0
    CONTROL_USB_AUTOSUSPEND="auto"
    AUTOSUSPEND_USE_WHITELIST=0
    AUTOSUSPEND_USBID_BLACKLIST=""
    AUTOSUSPEND_USBTYPE_BLACKLIST=""
    AUTOSUSPEND_USBID_WHITELIST=""
    AUTOSUSPEND_USBTYPE_WHITELIST=""
    BATT_SUSPEND_USB=1
    LM_AC_SUSPEND_USB=0
    NOLM_AC_SUSPEND_USB=0
    AUTOSUSPEND_TIMEOUT=2
    So far looks good.
    2. According to wiki, pm-utils might conflict with laptop-mode-tools. So I created a dummy file in /etc/pm/power.d for each of the scripts from /usr/lib/pm-utils/power.d . For the moment I don't care if I disabled too much. I just hope laptop-mode-tools covers all powersaving features.
    ls -l /etc/pm/power.d
    -rw-r--r-- 1 root root 0 08-08 19:58 hal-cd-polling
    -rw-r--r-- 1 root root 0 08-08 19:58 intel-audio-powersave
    -rw-r--r-- 1 root root 0 08-08 19:58 journal-commit
    -rw-r--r-- 1 root root 0 08-08 19:36 laptop-mode
    -rw-r--r-- 1 root root 0 08-08 19:58 readahead
    -rw-r--r-- 1 root root 0 08-08 19:58 sata_alpm
    -rw-r--r-- 1 root root 0 08-08 19:58 sched_powersave
    -rw-r--r-- 1 root root 0 08-08 19:58 wireless
    -rw-r--r-- 1 root root 0 08-08 19:59 xfs_buffer
    ls -l /usr/lib/pm-utils/power.d
    -rwxr-xr-x 1 root root 1316 2013-05-30 hal-cd-polling*
    -rwxr-xr-x 1 root root 870 2013-05-30 intel-audio-powersave*
    -rwxr-xr-x 1 root root 1290 2013-05-30 journal-commit*
    -rwxr-xr-x 1 root root 2722 2013-05-30 laptop-mode*
    -rwxr-xr-x 1 root root 201 2013-05-30 pcie_aspm*
    -rwxr-xr-x 1 root root 1222 2013-05-30 readahead*
    -rwxr-xr-x 1 root root 1131 2013-05-30 sata_alpm*
    -rwxr-xr-x 1 root root 652 2013-05-30 sched-powersave*
    -rwxr-xr-x 1 root root 2495 2013-05-30 wireless*
    -rwxr-xr-x 1 root root 1642 2013-05-30 xfs_buffer*
    Still no luck.
    3. As I found out, there is some kernel option CONFIG_PM_RUNTIME, which allows the kernel to autosuspend usb devices: source. It's on:
    cat /proc/config.gz| gunzip | grep CONFIG_USB_SU
    CONFIG_USB_SUPPORT=y
    And as I read here I can disable usb autosuspend using boot parameter. So i edited my /etc/default.grub, and now my grub.cfg looks like this:
    sudo cat /boot/grub/grub.cfg | grep usb
    linux /boot/vmlinuz-linux root=UUID=d18cd4a4-2ebf-4874-80ff-8520016b0ed4 rw quiet usbcore.autosuspend=-1
    linux /boot/vmlinuz-linux root=UUID=d18cd4a4-2ebf-4874-80ff-8520016b0ed4 rw quiet usbcore.autosuspend=-1
    linux /boot/vmlinuz-linux root=UUID=d18cd4a4-2ebf-4874-80ff-8520016b0ed4 rw quiet usbcore.autosuspend=-1
    After rebooting I checked:
    cat /sys/module/usbcore/parameters/autosuspend
    -1
    Cool! It should work! But... it doesn't. The mouse still goes to sleep after 2 seconds, and:
    kolzi@kolzi-laptop ~ % for i in /sys/bus/usb/devices/*/power/autosuspend_delay_ms; do cat $i;done
    2000
    2000
    2000
    2000
    2000
    2000
    2000
    2000
    2000
    kolzi@kolzi-laptop ~ % for i in /sys/bus/usb/devices/*/power/autosuspend; do cat $i;done
    2
    2
    2
    2
    2
    2
    2
    2
    2
    Where doesn't this 2 (or 2000) come from? How disable this suspending and let laptop-mode-tools control it? What's going on?
    Last edited by PL_kolek (2014-08-09 13:14:23)

    For now I run
    sudo systemctl disable laptop-mode.service
    and changed in /etc/laptop-mode/laptop-mode.conf
    ENABLE_LAPTOP_MODE_TOOLS=0
    After rebooting I still have the same issues. Also, even after disabling laptop-mode-tools, the brightness changes after unplugging the laptop, so either the laptop mode wasn't disabled at all, or there is something else 'helping' me with powersaving.
    @brebs
    Thank you, but it looks for me more like a workaround than a solution. It could work, but it doesn't tell me what disables my mouse and where is the root of the problem.
    Last edited by PL_kolek (2014-08-09 12:39:39)

  • [SOLVED] How to disable these messages at boot?

    So I managed to install Arch, and set up the network. I have a Broadcom 4313 wireless chip, all I had to do is blacklist the bcma module, because it conflicted with the brcmsmac module, both are loaded by default (no need to add anything to MODULES=(), only the blacklist bcma entry to modprobe.conf)
    So now I have a wlan0 interface that works perfectly fine, only I get these status messages during boot, that are totally unnecessary, see screenshot. These just pop up from nowhere, and annoy the heck out of me, disrupting the login and whatnot.
    So can these be turned off somehow? I suspect they come from the brcmsmac module itself.
    http://dl.dropbox.com/u/20678367/arch-n … ssages.png
    Mod edit:
    The image is too large: https://wiki.archlinux.org/index.php/Fo … s_and_Code
    Last edited by bernarcher (2011-10-18 19:16:57)

    junkie wrote:
    Gusar wrote:Add "dmesg -n 3" to /etc/rc.local
    That seems to solve my problem, thank you!
    Just out of curiosity, what numbers, or levels are available for the -n switch? The man doesn't state that.
    http://mailman.archlinux.org/pipermail/ … 21114.html
    https://bbs.archlinux.de/viewtopic.php?pid=267954 (it's from the German Arch forum, but the loglevel= stuff is in English)
    Full list: http://www.kernel.org/doc/Documentation … meters.txt
    Last edited by karol (2011-10-18 14:02:47)

  • [SOLVED] How to disable built-in speaker when I use the jack port ?

    Hi,
    I own an Asus X52F-SX053V laptop which has built-in Altec Lancing speaker.
    Here is my problem: When I plug my external speaker, or my headphones in the Jack port; I hear the sound through the device plugged in, AND through the built-in speaker.
    I'd like to disable the built-in speaker when I'm using an external speaker/headphones.
    I currently don't know how to do that, I guess it is possible
    I can copy the output of all the commands needed.
    Thanks
    Last edited by Lowra (2010-12-28 23:17:28)

    [SOLVED] When I plug something in the jack port, built-in speakers are automatically disabled.
    Here is the trick:
    sudo nano /etc/modprobe.d/alsa-base.conf
    Add the following line:
    options snd-hda-intel model=hp-laptop
    Restart Alsa, or reboot your computer
    Have Fun !
    Note: I guess it should work with other Asus computer (A52F, X52F series) and even maybe with other computers which use the following chipset: Intel IbexPeak HDMI

  • How ti disable screen fields in Module pool

    hi
    How to change screen fields to DISPLAY MODE aftr clicking on a particular pushbutton in Module pool  prg .
    regards
    chetan
    Edited by: chetan teli on Jul 29, 2008 1:04 PM

    hiiii
    use following code for disabling field
    IF p_rad2 IS INITIAL .
        LOOP AT SCREEN.
          IF screen-name CS 'p_docno'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.                           " IF screen-name CS 'p_docno'.
        ENDLOOP.                           " LOOP AT SCREEN.
      ELSE.
        LOOP AT SCREEN .
          IF screen-name CS 'p_docno'.
            screen-active = 1.
            screen-input = 1.
            MODIFY SCREEN.
          ENDIF.                           " IF screen-name CS 'p_docno'.
        ENDLOOP.                           " LOOP AT SCREEN .
      ENDIF.                               " IF p_rad2 IS INITIAL .
    regards
    twinkal

  • [SOLVED] How to disable "No mail." message upon login?

    This one's really stumping me. I disable the mail message a few months ago by creating a .hushlogin file in my home directory. That did the trick. Now, I am seeing the message again, and I don't know why. .hushlogin still exists in my home directory. Here's my /etc/login.defs:
    # /etc/login.defs - Configuration control definitions for the login package.
    # Three items must be defined: MAIL_DIR, ENV_SUPATH, and ENV_PATH.
    # If unspecified, some arbitrary (and possibly incorrect) value will
    # be assumed. All other items are optional - if not specified then
    # the described action or option will be inhibited.
    # Comment lines (lines beginning with "#") and blank lines are ignored.
    # Modified for Linux. --marekm
    # Delay in seconds before being allowed another attempt after a login failure
    FAIL_DELAY 3
    # Enable display of unknown usernames when login failures are recorded.
    LOG_UNKFAIL_ENAB no
    # Enable logging of successful logins
    LOG_OK_LOGINS no
    # Enable "syslog" logging of su activity - in addition to sulog file logging.
    # SYSLOG_SG_ENAB does the same for newgrp and sg.
    SYSLOG_SU_ENAB yes
    SYSLOG_SG_ENAB yes
    # If defined, either full pathname of a file containing device names or
    # a ":" delimited list of device names. Root logins will be allowed only
    # upon these devices.
    CONSOLE /etc/securetty
    #CONSOLE console:tty01:tty02:tty03:tty04
    # If defined, all su activity is logged to this file.
    #SULOG_FILE /var/log/sulog
    # If defined, file which maps tty line to TERM environment parameter.
    # Each line of the file is in a format something like "vt100 tty01".
    #TTYTYPE_FILE /etc/ttytype
    # If defined, the command name to display when running "su -". For
    # example, if this is defined as "su" then a "ps" will display the
    # command is "-su". If not defined, then "ps" would display the
    # name of the shell actually being run, e.g. something like "-sh".
    SU_NAME su
    # *REQUIRED*
    # Directory where mailboxes reside, _or_ name of file, relative to the
    # home directory. If you _do_ define both, MAIL_DIR takes precedence.
    # QMAIL_DIR is for Qmail
    #QMAIL_DIR Maildir
    MAIL_DIR /var/spool/mail
    # If defined, file which inhibits all the usual chatter during the login
    # sequence. If a full pathname, then hushed mode will be enabled if the
    # user's name or shell are found in the file. If not a full pathname, then
    # hushed mode will be enabled if the file exists in the user's home directory.
    HUSHLOGIN_FILE .hushlogin
    #HUSHLOGIN_FILE /etc/hushlogins
    # *REQUIRED* The default PATH settings, for superuser and normal users.
    # (they are minimal, add the rest in the shell startup files)
    ENV_SUPATH PATH=/sbin:/bin:/usr/sbin:/usr/bin
    ENV_PATH PATH=/bin:/usr/bin
    # Terminal permissions
    # TTYGROUP Login tty will be assigned this group ownership.
    # TTYPERM Login tty will be set to this permission.
    # If you have a "write" program which is "setgid" to a special group
    # which owns the terminals, define TTYGROUP to the group number and
    # TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign
    # TTYPERM to either 622 or 600.
    TTYGROUP tty
    TTYPERM 0600
    # Login configuration initializations:
    # ERASECHAR Terminal ERASE character ('\010' = backspace).
    # KILLCHAR Terminal KILL character ('\025' = CTRL/U).
    # UMASK Default "umask" value.
    # The ERASECHAR and KILLCHAR are used only on System V machines.
    # The ULIMIT is used only if the system supports it.
    # (now it works with setrlimit too; ulimit is in 512-byte units)
    # Prefix these values with "0" to get octal, "0x" to get hexadecimal.
    ERASECHAR 0177
    KILLCHAR 025
    UMASK 077
    # Password aging controls:
    # PASS_MAX_DAYS Maximum number of days a password may be used.
    # PASS_MIN_DAYS Minimum number of days allowed between password changes.
    # PASS_WARN_AGE Number of days warning given before a password expires.
    PASS_MAX_DAYS 99999
    PASS_MIN_DAYS 0
    PASS_WARN_AGE 7
    # Min/max values for automatic uid selection in useradd
    UID_MIN 1000
    UID_MAX 60000
    # System accounts
    SYS_UID_MIN 500
    SYS_UID_MAX 999
    # Min/max values for automatic gid selection in groupadd
    GID_MIN 1000
    GID_MAX 60000
    # System accounts
    SYS_GID_MIN 500
    SYS_GID_MAX 999
    # Max number of login retries if password is bad
    LOGIN_RETRIES 5
    # Max time in seconds for login
    LOGIN_TIMEOUT 60
    # Which fields may be changed by regular users using chfn - use
    # any combination of letters "frwh" (full name, room number, work
    # phone, home phone). If not defined, no changes are allowed.
    # For backward compatibility, "yes" = "rwh" and "no" = "frwh".
    CHFN_RESTRICT rwh
    # List of groups to add to the user's supplementary group set
    # when logging in on the console (as determined by the CONSOLE
    # setting). Default is none.
    # Use with caution - it is possible for users to gain permanent
    # access to these groups, even when not logged in on the console.
    # How to do it is left as an exercise for the reader...
    #CONSOLE_GROUPS floppy:audio:cdrom
    # Should login be allowed if we can't cd to the home directory?
    # Default in no.
    DEFAULT_HOME yes
    # If defined, this command is run when removing a user.
    # It should remove any at/cron/print jobs etc. owned by
    # the user to be removed (passed as the first argument).
    #USERDEL_CMD /usr/sbin/userdel_local
    # Enable setting of the umask group bits to be the same as owner bits
    # (examples: 022 -> 002, 077 -> 007) for non-root users, if the uid is
    # the same as gid, and username is the same as the primary group name.
    # This also enables userdel to remove user groups if no members exist.
    USERGROUPS_ENAB yes
    Please help.
    Last edited by nbtrap (2012-07-14 21:59:46)

    orbisvicis wrote:see "pam_mail.so" in /etc/pam.d/* and "man pam_mail". You most likely need the nopen argument.
    Thank you. I fixed it by changing a line in /etc/pam.d/system-login. Specifically, I changed
    session optional pam_mail.so dir=/var/spool/mail standard
    to
    session optional pam_mail.so dir=/var/spool/mail nopen

  • How to disable loading of jsp object  tag everytime

    Hi,
    We have loaded pdf image using applet viewer in JSP object.
    paneltabbed->showdetailitem->verbatim->object.
    Above is the flow of tags involved. Everytime i change the tab and come back to above tab, jsp object reloads.
    How do I restrict it not to load everytime?
    How do i catch the tab change event?
    Any help towards this is much appreciated. Thanks in advance
    Regards,
    Pradeep

    >
    How do I restrict it not to load everytime?
    >
    I don't think that you can do this(this depends on browser and java plugin).
    >
    How do i catch the tab change event?
    >
    If you need to catch this event on client side(by javascript), you can attach af:clientListener with type="disclosure"
    If you need to catch this event on server side, bind DisclosureListener to your bean
    Dario

  • [SOLVED]how to disable all antialiasing

    I am using openbox, xfce4-panel, firefox. How can I disable all antialiasing of fonts on my computer? I know I can change in the .Xdefaults to make urxvt not antialiased, and i'm sure some other applicaiton specific settings but am looking for a system wide solution.
    Last edited by blodorn (2009-07-20 03:00:10)

    Thank you, I added this to ~/.fonts.conf and everything is great now.
    <match target="font">
    <edit name="antialias" mode="assign">
    <bool>false</bool>
    </edit>
    </match>

  • [Solved] How to disable vim filetype indentation.

    Hello. I want to start using vim, but there is only that problem with that. In gedit I always use tabs 4 spaces wide for indentation, and I want to do something similar in vim. So in my .vimrc I used tabstop=4 and set autoindent. If I write a plain text file, it works correctly, for example, if I press tab in a new line, and the press enter, the following lines preserve the tab as indentation.
    The problem starts when writing code in common lisp or python. In lisp tab is replaced by two spaces and does some weird things, and in python tab is replaced by 4 spaces. I tried including "filetype indent off" in my vimrc, or writing ":filetype indent off" directly in console, but that doesn't have any effect. The only thing that somewhat works is to disable autodinent, but then I have to manually indent every line. What can I do?
    Last edited by Serge2702 (2014-11-06 20:57:54)

    I keep a skeleton vimrc file to use when I have a question similar to Serge2702's.  My barebones.vim:
    set nocompatible
    filetype plugin on
    set t_co=256 " Optional, you may comment this out.
    syntax on
    Start vim, using the alternate vimrc file with the command, say, for a lisp file: vim -u barebones.vim file_to_edit.lisp.
    Seems most filetypes default to a tab with a width of eight spaces here.  To see the tabs, you can use these two commands from within vim:
    :set list
    :set listchars=tab:_T
    Then you can try all the different setting combinations to figure out a comfortable tab width.
    And there are quite a few settings that affect the width of tabs and indentation besides tabstop. There's autoindent to repeat the previous line's indentation, but this is modified if you use cindent or smartindent to set the indent according to syntax. Then there are the expandtab and smarttab settings to use spaces for tabs, and shiftwidth and softtabstop also set indentation width. I don't see why anyone has trouble figuring it out.;)

  • [SOLVED] Mkinitcpio fails to load every single module...

    Hello,
    This morning I tried to upgrade my system like every other day, except that this morning, mkinitcpio could not create both fallback and arch images which means I can't boot on my system without a livecd and a chroot now.
    Here is the error list :
    https://gist.github.com/Depado/5795908
    I don't know what happened. I tried to run "pacman -S linux" in chroot but still the same problem.
    Is there something I'm doing wrong ? Did I miss an update on the website ? Do I have to rewrite mkinitcpio.conf ?
    Thanks...
    SOLVED :
    Reinstalling kmod, udev and mkinitcpio solved the problem of building the image.
    Last edited by Depado (2013-06-17 10:51:22)

    I managed to build the image properly. Now I get a "Waiting for device /dev/sda3" issue...
    EDIT : I think that's because I didn't mounted /boot when I built the image. Problem solved.
    Last edited by Depado (2013-06-17 10:50:07)

  • How to disable Apache for certain IP?

    Good day!
    I have a Mac mini server with Mountain Lion Server.
    It has two IP addresses:
    10.0.1.2, and 10.0.1.3
    I have two servers that listen on port 80:
    Apache, and my own custom HTTP server.
    I want Apache to listen only on 10.0.1.2:80, so my custom HTTP server can run on 10.0.1.3:80, however, in the Server configuration app, I'm not given the option to limit Apache to only one IP address.
    How can I achieve this?

    The default setup creates a 'Server Website' that listens to port 80 on all IP addresses, however when you create new websites you can limit which IP addresses it listens to.
    Would deleting the default Server Website and creating a new one achieve your goal?
    Probably a good idea to do this after a backup or on a test machine.
    Also if you define a specific hostname as a website even on port 80, any requests for that hostname will be routed correctly to that website. The default Server Website would only get accessed by anything that does not match a specific hostname.
    You can have lots of hostnames pointed to the same server even on the same IP and port. These are called virtualhosts and Server.app sets them up for you. Of course in your case because you want a different webserver to respond this will not help you. In your case you need to try deleting the default Server Website or run your second webserver on a different port (which is what I did).
    You could have a redirect defined to go from an additional hostname/website on port 80, to a different port that your second webserver is running on. This would mean users would not need to know or remember the special port number but still avoids conflicting with port 80.

  • [Solved] How to disable switching workspaces in XFCE when scrolling?

    As the title says, I want to disable switching workspaces when scrolling with the mouse on the desktop. I disabled the workspace switcher setting "Change workspaces using the mousewheel" but that doesn't change anything. Any ideas?
    Last edited by Terminator (2012-05-15 14:41:53)

    Thanks

Maybe you are looking for