Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Weird problem with spinning down the hard drive.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Hydraulix
Guru
Guru


Joined: 12 Dec 2003
Posts: 447
Location: Baltimore, Maryland

PostPosted: Sun Nov 28, 2004 6:57 am    Post subject: Weird problem with spinning down the hard drive. Reply with quote

Ok it seems that my hard drive will only spin down if my iBook is running on the battery. If it's plugged in then it won't spin down. What the hell is going on?

Here's some config files that might help.



/etc/pbbuttonsd.conf

Code:
# configdatei for PBButtonsd >= Version 0.5
# for complete list of options please see pbbuttonsd.conf man-page

# [SYSTEM]
#userallowed        = "paranoid"; user who is allowed to use IPC
autorescan          = no   ; automatic rescan of event devices
CmdTimeout          = 4

# [MODULE POWERSAVE]
onAC_policy         = performance ; nochange, performance, custom or powersave
onAC_sleep          = yes         
onAC_coversleep     = yes
onAC_Tsleep         = 0
onAC_Tdim           = 8000
onBattery_policy    = powersave
onBattery_sleep     = yes
onBattery_coversleep= yes
onBattery_Tsleep    = 0   ; time in 1/10s
onBattery_Tdim      = 500   ; time in 1/10s
SleepKey            = 116
SleepKeyDelay       = 0      ; values > 0 may be dangerous, if the power key is used to trigger sleep
SleepKeySleep       = yes       ; yes=sleep, no=blank
BWL_first           = 22   ; first battery warnlevel, time in minutes
BWL_second          = 10   ; second battery warnlevel, time in minutes
BWL_last            = 3      ; last battery warnlevel, time in minutes
Script_PMCS         = "/etc/power/pmcs-pbbuttonsd %s %s"
EmergencyAction     = sleep   ; action, if battery is critically low
HeartbeatBeep       = no   ; beep, if nothing else showed that the computer lives
CPULoad_sleeplock   = yes
CPULoad_min         = 20   ; value in percent
CPULoad_period      = 20   ; time in seconds
NETLoad_sleeplock   = yes
NETLoad_min         = 4096   ; trafic in Bytes/s
NETLoad_period      = 20   ; time in seconds
NETLoad_device      = "eth1"

# [MODULE DISPLAY]
LCD_Brightness     = 15   ; initial LCD brightness level
LCD_FadingSpeed     = 5      ; 0 = no smooth fading
LCD_AutoAdjust      = yes   ; only on Aluminum PowerBooks
LCD_IllumUpKey      = 60
LCD_IllumDownKey    = 59
LCD_Threshold       = 94
LCD_AutoAdjMin_Bat  = 2         ; autoadjust parameter
LCD_AutoAdjMax_Bat  = 7
LCD_AutoAdjMin_AC   = 1
LCD_AutoAdjMax_AC   = 15
#KBD_Brightness     = 0      ; initial keyboard illumination level
KBD_FadingSpeed     = 5      ; 0 = no smooth fading
KBD_AutoAdjust      = yes   ; only on Aluminum PowerBooks
KBD_IllumUpKey      = 0
KBD_IllumDownKey    = 0
KBD_IllumOnKey      = 0
KBD_Threshold       = 28   ; only on Aluminum PowerBooks
dev_FrameBuffer     = "/dev/fb0"
UseFBBlank          = yes
DimFullyDark        = no

# [MODULE OSSMIXER]
#Volume              = 50   ; initial volume level
Speakers_muted      = no   ; mute after startup?
VolumeUpKey         = 63
VolumeDownKey       = 62
MuteKey             = 61
dev_Mixer           = "/dev/mixer"
MixerInitDelay      = no
MixerChannels       = "volume, speaker"

# [MODULE CDROM]
dev_CDROM           = "/dev/cdroms/cdrom0"
EjectCDKey          = 88
EjectCDKeyDelay     = 0

# [MODULE PMAC]
dev_PMU             = "/dev/pmu"
dev_ADB             = "/dev/adb"
TPModeUpKey         = 225 + alt
TPModeDownKey       = 224 + alt
TPMode              = drag
KBDMode             = fkeysfirst



/etc/conf.d/cpudyn

Code:
# Cpudyn configure options

################################################
# COMMON OPTIONS
################################################

#
# Internal between idle ratio tests in 1/10 sec increments
#

INTERVAL=1

################################################
# CPUFREQ OPTIONS
################################################

#
# CPU idle work ratio to speed up
#

CPU_UP=0.5

#
# CPU idle work ratio to speed down
#

CPU_DOWN=0.9

#
# when using cputhrottling, what state to switch when speeding down
#

THROTTLING_LOW=7

#
# Count also niced process in CPU usage. Default is no.
#

#NICE=yes

################################################
# DISK OPTIONS
# (disabled by default)
################################################

#
# Timeout to put the disk in standby mode if there was no
# io during that period (in seconds)
#

 TIMEOUT=120

#
# Specified disks to spindown (comma separated devices)
#

 DISKS=/dev/hda,/dev/hdb


################################################
# Special Startup Options
# (you shouldn't need to change these)
################################################
# cpufreq sources for 2.4 kernels
CPUFREQ_24="/proc/cpufreq"
# cpufreq sources for 2.5/2.6 kernels
CPUFREQ_25="/sys/devices/system/cpu/cpu0/cpufreq /sysfs/devices/system/cpu/cpu0/cpufreq"
# pure acpi cpufreq
CPUFREQ_ACPI="/proc/acpi/processor/CPU0/throttling"

_________________
It is the fate of operating systems to become free.
- Neal Stephenson

If only You and Dead people can read hex, how many people can read hex?
Back to top
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Sun Nov 28, 2004 9:01 am    Post subject: Reply with quote

Code:
Script_PMCS         = "/etc/power/pmcs-pbbuttonsd %s %s"

Look at the file /etc/power/pmcs-config for the configuration of your harddrive timeout-values.
Code:
performance_HDTimeOff=1800
powersave_HDTimeOff=30          # hdsetup - timeout in seconds

You should take a look at the options you use in your pmcs-config file.

Also, it seems like cupdyn also tries to set the timeout period of your harddrive?
Back to top
View user's profile Send private message
Hydraulix
Guru
Guru


Joined: 12 Dec 2003
Posts: 447
Location: Baltimore, Maryland

PostPosted: Mon Nov 29, 2004 3:11 am    Post subject: Reply with quote

ruben wrote:
Code:
Script_PMCS         = "/etc/power/pmcs-pbbuttonsd %s %s"

Look at the file /etc/power/pmcs-config for the configuration of your harddrive timeout-values.
Code:
performance_HDTimeOff=1800

powersave_HDTimeOff=30          # hdsetup - timeout in seconds

You should take a look at the options you use in your pmcs-config file.

Also, it seems like cupdyn also tries to set the timeout period of your harddrive?




That was it. I had to change the powersave_HDTimeOff for the performance setting. And I just disabled the cpudyn option to spin down the disk. Thanks again. :D

My other question is what at good time to spin down the drive? Right now it's at 120.
_________________
It is the fate of operating systems to become free.
- Neal Stephenson

If only You and Dead people can read hex, how many people can read hex?
Back to top
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Mon Nov 29, 2004 6:24 pm    Post subject: Reply with quote

I don't know what's the best for harddrive spin down times. I use 30 seconds when i'm on battery, allthough that might be a bit aggressive. When i'm not on battery, it's 30 minutes. All i know is that it's not so good for the harddrive if it's continuously spinning down and up again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum