Re: replacement of ataidle for freebsd 9

2011-10-24 Thread Volodymyr Kostyrko

23.10.2011 11:12, Eugene Dzhurinsky wrote:

In the mentime, can you please advice how can I use camcontrol in order to
disable APM for my HDD?


@reboot camcontrol idle ada0 -t 300 ; camcontrol idle ada1 -t 300

--
Sphinx of black quartz judge my vow.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: replacement of ataidle for freebsd 9

2011-10-23 Thread Eugene Dzhurinsky
On Sat, Oct 22, 2011 at 09:59:45PM +0100, Bruce Cran wrote:
 On 22/10/2011 16:21, Eugene Dzhurinsky wrote:
  ataidle -P 0 /dev/ada0
  ataidle: error opening /dev/ada0
 
 Thanks for reporting the breakage, I'll see if I can get it fixed in 
 time for 9.0.

Wow, it would be great! :)

In the mentime, can you please advice how can I use camcontrol in order to
disable APM for my HDD?

Many thanks!

-- 
Eugene N Dzhurinsky


pgpK7gnXfMGv4.pgp
Description: PGP signature


Re: replacement of ataidle for freebsd 9

2011-10-22 Thread Bruce Cran
Why do you not want to use ataidle?

-- 
Bruce Cran
(ataidle maintainer)

On 22 Oct 2011, at 11:36, Eugene Dzhurinsky jdeve...@gmail.com wrote:

 Hello, can somebody please advice how to disable APM power management for HDD
 on laptops?
 
 camcontrol cmd ada0 -a EF 05 00 00 00 00 00 00 00 00 00 00 -v
 camcontrol: error sending command
 (pass0:ahcich0:0:0:0): SETFEATURES. ACB: ef 05 00 00 00 00 00 00 00 00 00 00
 (pass0:ahcich0:0:0:0): CAM status: ATA Status Error
 (pass0:ahcich0:0:0:0): ATA status: 51 (DRDY SERV ERR), error: 04 (ABRT )
 (pass0:ahcich0:0:0:0): RES: 51 04 00 00 00 00 00 00 00 00 00
 
 What else should I try?
 
 uname -a
 FreeBSD devbox 9.0-RC1 FreeBSD 9.0-RC1 #0: Thu Oct 20 08:48:57 EEST 2011 
 root@devbox:/usr/obj/usr/src/sys/GENERIC  amd64
 
 Thanks!
 
 -- 
 Eugene N Dzhurinsky
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: replacement of ataidle for freebsd 9

2011-10-22 Thread Eugene Dzhurinsky
On Sat, Oct 22, 2011 at 02:23:53PM +0100, Bruce Cran wrote:
 Why do you not want to use ataidle?

 ataidle -P 0 /dev/ada0
ataidle: error opening /dev/ada0

 ataidle -P 0 /dev/ad4 
ataidle: error: identify device /dev/ad4

 ls -l /dev | grep ad 
lrwxr-xr-x  1 root  wheel4 Oct 22 18:16 ad4@ - ada0
lrwxr-xr-x  1 root  wheel6 Oct 22 18:16 ad4s1@ - ada0s1
lrwxr-xr-x  1 root  wheel7 Oct 22 18:16 ad4s1a@ - ada0s1a
lrwxr-xr-x  1 root  wheel7 Oct 22 18:16 ad4s1b@ - ada0s1b
lrwxr-xr-x  1 root  wheel7 Oct 22 18:16 ad4s1d@ - ada0s1d
lrwxr-xr-x  1 root  wheel7 Oct 22 18:16 ad4s1e@ - ada0s1e
lrwxr-xr-x  1 root  wheel7 Oct 22 18:16 ad4s1f@ - ada0s1f
lrwxr-xr-x  1 root  wheel6 Oct 22 18:16 ad4s2@ - ada0s2
crw-r-  1 root  operator0,  81 Oct 22 18:16 ada0
crw-r-  1 root  operator0,  84 Oct 22 18:16 ada0s1
crw-r-  1 root  operator0,  88 Oct 22 21:16 ada0s1a
crw-r-  1 root  operator0,  90 Oct 22 18:16 ada0s1b
crw-r-  1 root  operator0,  92 Oct 22 21:16 ada0s1d
crw-r-  1 root  operator0,  94 Oct 22 21:16 ada0s1e
crw-r-  1 root  operator0,  96 Oct 22 21:16 ada0s1f
crw-r-  1 root  operator0,  86 Oct 22 21:16 ada0s2

 smartctl -a /dev/ada0

smartctl 5.42 2011-10-20 r3458 [FreeBSD 9.0-RC1 amd64] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Device Model: ST9500423AS
Serial Number:W2V003TQ
LU WWN Device Id: 5 000c50 03d75b968
Firmware Version: 0002SDM1
User Capacity:500,107,862,016 bytes [500 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Device is:Not in smartctl database [for details use: -P showall]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 4
Local Time is:Sat Oct 22 18:20:22 2011 EEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

-- 
Eugene N Dzhurinsky


pgpFw5hq6gcCH.pgp
Description: PGP signature


Re: replacement of ataidle for freebsd 9

2011-10-22 Thread Bruce Cran

On 22/10/2011 16:21, Eugene Dzhurinsky wrote:

ataidle -P 0 /dev/ada0

ataidle: error opening /dev/ada0


Thanks for reporting the breakage, I'll see if I can get it fixed in 
time for 9.0.


--
Bruce Cran
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org