SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is my first effort in making something more appropriate for laptop users (exclusively). This is a kernel config for 2.6.30.5. I started with the Slackware Generic-SMP 32bit kernel config (this is a 32bit kernel config). All credit for (in my opinion) the best starting place for any kernel config goes to Patrick Vokerding. (Please tell me if I am or am not doing this properly in terms of respecting the work of others, GPL, GNU, etc.)
Here is the changelog:
- Enable NO_HZ: 1% battery life savings is better than nothing.
- Use LZMA compression: a smaller image is better for some machines.
- Optimize for size: a smaller image is better for some machines; -Os is (I hear) a better way to optimize for Pentium-M or other processors with big L2 caches, and is recommended by the kernel help file on the subject.
- Unselect Disable Heap Randomization: hopefully this will improve security a small bit; better something than nothing. Laptop users will probably be interested in security due to the mobility factors.
- Disable support for non-PCs.
- Disable MPS table.
- Select 586/686 as architecture: I doubt anyone's going to have a more ancient laptop, and we need to consider who will possibly use slackware on such an old system: few exist. This is my best attempt to get closer to the minimum recommended CPU for this laptop concept: the Pentium-M. Please contact me if you have a 486 laptop.
- Disable PentiumPro memory errata: the kernel help says it's unlikely and rare; please contact me if you need it.
- Voluntary Kernel Preemption (Desktop): because we're not designing this for throughput (per se)
- Disable CPU Microcode: I doubt anyone needs to update their CPU's microcode. This sounds very dangerous. Please contact me if you need it.
- Disable Math emulation: everything 586+ has a math coprocessor: this is not needed. Please contact me if you have a 486 laptop.
- Enable x86 PAT
- Disable APM: most laptops that had past kernel issues with APM versus ACPI are dead by now, but if you need APM, please contact me.
- Enable Smart Battery System: in case someone has such a laptop.
- Make default CPUFreq governor OnDemand: this is what most laptop manufacturers seem to recommend in the sense that almost every laptop I have used sets "automatic" or basically "ondemand" as the default governor. But feel free to email me if your opinion differs.
- Set UserSpace governor to <M>. If you really need this <*>, please contact me.
- Disable Intel Enhanced SpeedStep (depreciated): ACPI P-states does all this stuff now, and I want to prevent any possible conflicts. Email me if you need it.
- Enable PCI Express ASPM support: in an effort to save even more power. It's marked experimental, so if you find problems, please let me know.
- Enable One Laptop Per Child support.
- Enable SPI support.
- Enable Tablet Input devices.
- Make <M> all new drivers: since the generic-smp config was 2.6.29.6 and a few new modules came out since then.
- Enable Voltage and Current Regulator Support: just in case your laptop has any of this.
- Set default AC97 powersave mode to 1 second time: I have not had a problem with this, and this is my second laptop to have the AC97 codec. If it causes you problems, please contact me.
- Set Intel HD Audio to support digital beep input.
- Set usbcore to <M> and auto-suspend enabled: this is to hopefully have a default /etc/modprobe.d/usbcore.conf that auto-suspends USB system at 1 second. Remember, the goal here is battery life. Please contact me if this causes problems.
- Enable EDAC (error detection and reporting)
- Enable <M> all staging drivers: normally I would not use any of these, but just in case someone does....
- X86 Platform Specific: all laptop modules to <M>. My experience with the Toshiba and Sony modules, and on other people's laptops with the Dell modules, so far this works fine, as Slackware's userspace loads these as needed. Please let me know if you have a laptop where one of these is absolutely required for the laptop to function properly.
- Filesystems ext2|3|4, xfs, reiserfs, jfs to <*>: this is because I will soon be making this the installer kernel. The "slap" will be similar to "huge" and the "slapped" to "generic" in concept (all credit to Patrick for his naming system).
- Windows Logical Disk (Dynamic Disk) enabled: I don't know why support for this is not enabled....
Again, please contact me with your comments. Again, this is not a distribution: it's simply a minor retool/reconfig to be more targeted to laptop users. All credit goes to Patrick Volkerding for my favorite Linux distribution: Slackware Linux. If I did not credit someone, let me know.
Feel free to discuss and give advice, as I am a n00b.
To get iotop working. I saw you are interested in performance tuning (using powertop). iotop shows the current io of the system. This is for example interesting when using slow ssds to find bootle necks or processes that don't close files properly.
Yes, it can be configured every mixer. Nice. Never noticed this possibility.
I have a suggestion:
It would be cool to set
To get iotop working. I saw you are interested in performance tuning (using powertop). iotop shows the current io of the system. This is for example interesting when using slow ssds to find bootle necks or processes that don't close files properly.
The point of the kernel is to save battery if possible. Powertop helps do that, and iotop is for I/O. I would like to include that, but the point of this kernel is power savings. For now, I'll leave it out. But thanks!
To get iotop working. I saw you are interested in performance tuning (using powertop). iotop shows the current io of the system. This is for example interesting when using slow ssds to find bootle necks or processes that don't close files properly.
I see the original poster pooh-poohed this suggestion. Pity. The reason he did so was to "save battery". But by using iotop to identify processes that write to disk (or read) and thus cause the disk to keep spinning, would certainly be of help to preserve battery life. So this would seem to me to be a very good idea. The accounting details gathered are in memory and won't themselves cause extra powerloss. I urge a re-consideration.
I see the original poster pooh-poohed this suggestion. Pity. The reason he did so was to "save battery". But by using iotop to identify processes that write to disk (or read) and thus cause the disk to keep spinning, would certainly be of help to preserve battery life. So this would seem to me to be a very good idea. The accounting details gathered are in memory and won't themselves cause extra powerloss. I urge a re-consideration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.