please upgrade to the latest version of powersaved (0.11.10). It should
have entered testing yesterday.
In powersaved_0.9.25 the script
/usr/lib/powersave/scripts/set_disk_settings used hardcoded device names
of the form /dev/hdX in exec_hdparm(). The newer version uses hal for
this. Unfortunately I cannot test it with a SATA drive because I don't
own one. If powersaved_0.11.10-1 still fails to detect your SATA drive,
please execute the commands from
/usr/lib/powersave/scripts/set_disk_settings in exec_hdparm() manually.
most importantly
DISK`hal-find-by-property --key storage.drive_type --string disk`
BUS=`hal-get-property --udi $DISK --key storage.bus`
...
and tell me, what BUS type you get and also the other output.
Hi Michael,

thanks a lot for your quick answer ! I upgraded as you adviced: powersaved config files are more complex but it is also more clear. And kpowersave is nice too !

I tested what you adviced me:

linotte:/etc/powersave# hal-find-by-property --key storage.drive_type --string disk
/org/freedesktop/Hal/devices/storage_serial_NW21T5C26S8F
linotte:/etc/powersave# hal-get-property --udi /org/freedesktop/Hal/devices/storage_serial_NW21T5C26S8F --key storage.bus
scsi

The detection is ok, and the answer is "scsi". I am not sure that it's the answer you were expecting... Maybe you wanted to have "sata" or something else ?

For info, in my kernel I use this config:
CONFIG_SCSI_SATA=y
CONFIG_SCSI_ATA_PIIX=y
CONFIG_SCSI_SATA_INTEL_COMBINED=y

I activated the log and removed the AC power to switch to powersave mode, here is the log:

Feb 25 22:12:07 linotte [powersave-set_disk_settings][13594]: INFO: load scheme: /etc/powersave//scheme_powersave Feb 25 22:12:07 linotte [powersave-set_disk_settings][13594]: INFO: laptop_mode already active, ignoring Feb 25 22:12:07 linotte [powersave-set_disk_settings][13594]: DIAG: do remounts?: 'yes', set noatime: '' Feb 25 22:12:07 linotte [powersave-set_disk_settings][13594]: DIAG: mount /dev/sda1 -t ext3 / -o remount,rw,errors=remount-ro,,commit=600 Feb 25 22:12:08 linotte [powersave-set_disk_settings][13594]: DIAG: mount /dev/sda6 -t ext3 /home -o remount,rw,,commit=600 Feb 25 22:12:08 linotte [powersave-set_disk_settings][13594]: DIAG: non-ide drive (udi='/org/freedesktop/Hal/devices/storage_serial_NW21T5C26S8F') ignored Feb 25 22:12:08 linotte [powersave-set_disk_settings][13594]: DIAG: script_return() invoked: event_id: 15, request: 0, text: execute_disk_settings finished

It seems that powersave ignore the "non-ide drive". remount are ok, but hdparm is not launched for power management...

Am I right ?

JF.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to