Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 39036 Details for
Bug 45593
laptop mode init script for Gentoo Linux
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
laptop-mode.conf
laptop-mode.conf (text/plain), 2.53 KB, created by
Dennis Nienhüser (RETIRED)
on 2004-09-06 02:56:00 UTC
(
hide
)
Description:
laptop-mode.conf
Filename:
MIME Type:
Creator:
Dennis Nienhüser (RETIRED)
Created:
2004-09-06 02:56:00 UTC
Size:
2.53 KB
patch
obsolete
># /etc/conf.d/laptop_mode ># $Header: > ># Maximum time, in seconds, of hard drive spindown time that you are ># confortable with. Worst case, it's possible that you could lose this ># amount of work if your battery fails you while in laptop mode. >#MAX_AGE=600 > ># Read-ahead, in 512-byte sectors. You can spin down the disk while playing MP3/OGG ># by setting the disk readahead to 8MB (READAHEAD=16384). Effectively, the disk ># will read a complete MP3 at once, and will then spin down while the MP3/OGG is ># playing. >#READAHEAD=4096 > ># Shall we remount journaled fs. with appropiate commit interval? (1=yes) >#DO_REMOUNTS=1 > ># And shall we add the "noatime" option to that as well? (1=yes) >#DO_REMOUNT_NOATIME=1 > ># Dirty synchronous ratio. At this percentage of dirty pages the process ># which calls write() does its own writeback >#DIRTY_RATIO=40 > ># ># Allowed dirty background ratio, in percent. Once DIRTY_RATIO has been ># exceeded, the kernel will wake pdflush which will then reduce the amount ># of dirty memory to dirty_background_ratio. Set this nice and low, so once ># some writeout has commenced, we do a lot of it. ># >#DIRTY_BACKGROUND_RATIO=5 > ># kernel default dirty buffer age >#DEF_AGE=30 >#DEF_UPDATE=5 >#DEF_DIRTY_BACKGROUND_RATIO=10 >#DEF_DIRTY_RATIO=40 >#DEF_XFS_AGE_BUFFER=15 >#DEF_XFS_SYNC_INTERVAL=30 >#DEF_XFS_BUFD_INTERVAL=1 > ># This must be adjusted manually to the value of HZ in the running kernel ># on 2.4, until the XFS people change their 2.4 external interfaces to work in ># centisecs. This can be automated, but it's a work in progress that still ># needs# some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for ># external interfaces, and that is currently always set to 100. So you don't ># need to change this on 2.6. >#XFS_HZ=100 > ># Should the maximum CPU frequency be adjusted down while on battery? ># Requires CPUFreq to be setup. ># See Documentation/cpu-freq/user-guide.txt for more info >#DO_CPU=0 > ># When on battery what is the maximum CPU speed that the system should ># use? Legal values are "slowest" for the slowest speed that your ># CPU is able to operate at, or a value listed in: ># /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies ># Only applicable if DO_CPU=1. >#CPU_MAXFREQ=slowest > ># Idle timeout for your hard drive (man hdparm for valid values, -S option) ># Default is 2 hours on AC (AC_HD=244) and 20 seconds for battery (BATT_HD=4). >#AC_HD=244 >#BATT_HD=4 > ># The drives for which to adjust the idle timeout. Separate them by a space, ># e.g. HD="/dev/hda /dev/hdb". >#HD="/dev/hda" > ># Set the spindown timeout on a hard drive? >#DO_HD=1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 45593
:
27911
|
27912
|
32076
|
32077
|
32078
|
34630
|
34631
|
39036
|
39037
|
39477
|
41295
|
41296
|
48913
|
51525
|
51527