You are not logged in.
deleted
Last edited by Misbah (2012-02-14 05:47:45)
Offline
To answer the first question: not all modules CAn be autodetected, and not all are related to hardware. For instance, I have the following (and more) in my MODULES array
MODULES=(!pcspkr fuse)
This blacklists the speaker module (beep beep beep) AND loads the fuse module.
To answer the second question, you CAN turn it off, but you are going to lose the ability to plug things in later. What you're going to gain is minimal compared to what you will lose. You are welcome to do it, but it's going to make your life a pain if you use anything USB, firewire, or even bluetooth based. You will have to manually load modules yourself.
Offline
Run "hwdetect --show-modules" to see most of the modules pertaining to your hardware.
Offline
deleted
Last edited by Misbah (2012-02-14 05:47:33)
Offline
EDIT: I know I'm logged in as root. Please don't yell at me. It's kind of silly.. but I don't know how to shutdown when logged in as a regular user.. because halt and reboot dont work in xterm.. and there is no menu entry for it in flux, and I cant kick myself out to a console when logged in as a reg user. errr.
Unless i'm missing something and your system is in fact completely broken, you need to do the commands as root user.
### either
su
reboot
### or
sudo reboot
You might want to see this article too: http://wiki.archlinux.org/index.php/All … o_shutdown
flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)
Offline
deleted
Last edited by Misbah (2012-02-14 05:47:21)
Offline
To answer your original questions:
If the module is preloaded will it work that way?
Yes. What I do is compile my own kernel with just the modules I need built into the kernel itself. You'll need to do some research into what modules you need for certain tasks though.
if i didnt blacklist or remove anything, and just put them all under the modules= list, would it be any faster?
Test it and find out. It's not always consistant across everyone's hardware/system.
If i add a module into modules=, i dont have to add the modules it calls on right? It will load those automatically? ie) I just have to add rt2500pci and it will call on rt2x00pci and rt2x00lib itself right? And those in turn will call on other modules that it uses?
Dependencies are called automatically.
but I'm wondering if I can also gain any speed from simply having the same modules manually loaded as opposed to being autodetected and then loaded.
How long does module loading take at the moment? If it's not a completely unreasonable time, I would say you are going to gain a negligable boot speed increase comparable to the effort involved. If you are really wanting to pursue a quicker bootspeed, then compiling your own custom kernel is the way to go. Even then, if bootspeed from GRUB to login prompt is less than 30seconds, gains are pretty much negligable.
flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)
Offline
I haven't installed sudo yet, so that might be the issue.
You don't need sudo. What's wrong with typing 'su' in xterm before issuing the shutdown command?
If you really dont want to type a password in:
chmod +s /sbin/halt
flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)
Offline
deleted
Last edited by Misbah (2012-02-14 05:47:06)
Offline
deleted
Last edited by Misbah (2012-02-14 05:46:14)
Offline
Can't really do anything about wireless
I would background it with a @
The only ones I don't have backgrounded are syslog-ng and iptables.
flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)
Offline
Your right, su root, pw, shutdown -h now works. I don't know why I thought it didn't.
I shut down my box by just pushing the power button on my machines (laptop, desktop, server). Look at the wiki for setting that up .
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Misbah wrote:Can't really do anything about wireless
I would background it with a @
The only ones I don't have backgrounded are syslog-ng and iptables.
Exactly, you can also bring the 'slim login deamon' (I guess it's a deamon like kdm, gdm) to load before wireless, so you don't have to wait for it to be up. I have all deamons backgrounded. Why was it again you shouldn't background syslog-ng?
Offline
Why was it again you shouldn't background syslog-ng?
you might miss some logs probably
Last edited by carlocci (2008-03-27 14:04:52)
Offline
dyscoria wrote:Misbah wrote:Can't really do anything about wireless
I would background it with a @
The only ones I don't have backgrounded are syslog-ng and iptables.Exactly, you can also bring the 'slim login deamon' (I guess it's a deamon like kdm, gdm) to load before wireless, so you don't have to wait for it to be up. I have all deamons backgrounded. Why was it again you shouldn't background syslog-ng?
Perfectly plausable to background syslog, but I was just thinking it's better if the logger is activated before everything else in order to catch any errors (not that I check my logs very often ).
flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)
Offline
I found that firestarter fails to load if I background 'network' but I think it can be fixed with http://ubuntuforums.org/showthread.php?t=542756
ARCH64 | XMonad | Configs | myAURpkgs | ArchWiki Contribs | Screenies
Offline
deleted
Last edited by Misbah (2012-02-14 05:45:40)
Offline
I can safely background everything except for syslog-ng?
Do you use a network filesystem? If not you can get rid of netfs altogether. But yes, all the ones you mentioned can be backgrounded (including crond and netfs).
do I still have to do the disable ipv6 thing
Only if any ipv6 modules are loading automatically.
Last edited by dyscoria (2008-03-27 20:15:44)
flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)
Offline
So far I've kicked out only a few modules, but I've been barely working on it since last night. I threw out ipv6 (do I still have to do the disable ipv6 thing http://wiki.archlinux.org/index.php/IPv … the_Module if I just remove the module) threw out pcspkr, st, pci_hotplug, shpchp, those are the only ones I've figured out what they are and that I don't need them so far. Looks like most of them I need. Also I noticed, I don't need to necessarily blacklist the module with a ! or add it to mod blacklist.. if I remove it from the modules list.. it doesnt seem to load, so, that seems good enough.
Do you mean you did:
MODULES=(....!ipv6 !net-pf-10)
or the
alias net-pf-10 off
alias ipv6 off
in /etc/modprobe.conf. Does anyone know which is the proper method?
ARCH64 | XMonad | Configs | myAURpkgs | ArchWiki Contribs | Screenies
Offline
deleted
Last edited by Misbah (2012-02-14 05:45:16)
Offline
I'm curious to how this is affecting bootup times, have you seen much of an increase since altering rc, mkinitcpio and modprobe.conf?
The reason I ask is, my average udev time is 3.5 secs, if I alter rc.conf or mkinitcpio.conf I gain in udev time, for example, blackilisting "pcspkr psmouse ac fan battery" in rc.conf saw udev increase to 7.6secs.
However if I stop those modues through modprobe.conf my udev time stays ~ 3.5secs
Is this just a weird anomoly of my system or are you seeing gains without custom kernel compiling?
Offline
I'm curious to how this is affecting bootup times, have you seen much of an increase since altering rc, mkinitcpio and modprobe.conf?
The reason I ask is, my average udev time is 3.5 secs, if I alter rc.conf or mkinitcpio.conf I gain in udev time, for example, blackilisting "pcspkr psmouse ac fan battery" in rc.conf saw udev increase to 7.6secs.
However if I stop those modues through modprobe.conf my udev time stays ~ 3.5secsIs this just a weird anomoly of my system or are you seeing gains without custom kernel compiling?
I disabled some like the OP in MODULES with a ! and my udev time shows its a tiny bit quicker i.e. 1.2 to 1.08 sec
ARCH64 | XMonad | Configs | myAURpkgs | ArchWiki Contribs | Screenies
Offline
deleted
Last edited by Misbah (2012-02-14 05:46:40)
Offline
Hu. i hava an ideea
What about starting only the base modules(drivers) like video scsi , then start kd/gdm that will start the desktop environment and edit kdm to load a script that will do something like this
-load the sound modules
-load the network modules and start the network
-start te other modules (like acpi bluetooth and others)
This method will load all modules
Will start the desktop envirnoment faster
We should identify the base modules requierd to start X and the desktop environment (this is dependent of the hardware) ad write that script to load the rest
Please tell me what you all think about this ideea
Offline