I heard a clicking sound coming from my new computer. Found out it was the dread hdparm. After some research, I discovered that running
- Code: Select all
sudo hdparm -B 255 /dev/sda
sudo hdparm -B 255 /dev/sda 
su -
[enter password to gain superuser]
echo 'sudo hdparm -B 255 /dev/sda # update-rc.d -f stopclick remove to remove script' >> /etc/init.d/stopclick
chmod 755 /etc/init.d/stopclick
update-rc.d stopclick defaults

hdparm -B 255 /dev/sda su -
echo 'sudo hdparm -B 255 /dev/sda
chmod 755 /etc/init.d/disable-apm
update-rc.d disable-apm defaults
chipbuster@lpc1$ runlevel
runlevel 4
chipbuster@lpc1$ sudo init 4

sudo runlevel
N 2
sudo hdparm -B /dev/sda
[sudo] password for philip:
/dev/sda:
APM_level = 96
CPU[-Dual core Intel Core i3-2330M (-HT-MCP-) clocked at 800.000 Mhz-] Kernel[-3.0.0-1-amd64 x86_64-] Up[-14 min-] Mem[-545.9/3877.6MB-] HDD[-820.2GB(22.1% used)-] Procs[-212-] Client[-Shell-] inxi[-1.4.23-]
su -
echo "hdparm -B 255 /dev/sda " >> /etc/init.d/rcS.sh
echo 'sudo hdparm -B 255 /dev/sda
echo 'sudo hdparm -B 255 /dev/sda' > /etc/init.d/disable-apm



#!/bin/bash
case "$1" in
hibernate|suspend)
echo "We are suspending/hibernating..."
;;
thaw|resume)
echo "We are thawing/resuming"
hdparm -B 255 /dev/sda
;;
esacsudo mv ~/Documents/[filename] /etc/pm/sleep.d/5noclick chmod 755 /etc/pm/sleep.d/5noclicksudo pm-suspend

Users browsing this forum: No registered users and 5 guests