LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-05-2011, 12:03 AM   #1
Aesir
LQ Newbie
 
Registered: Feb 2011
Distribution: Arch
Posts: 8

Rep: Reputation: 0
Laptop Configurations (laptop mode tools)


Hello,

I am in the process of configuring my laptop and have some simple questions that I would like to verify with people. I am running arch on a Sony Vaio laptop with a Toshiba ATA hard drive.

1) I have heard quite a bit about being careful with APM to avoid shortening life of hard drive. I have set the following settings in my laptop-mode.conf file:

Code:
#    LM_something=value      Value of "something" when laptop mode is active
#    NOLM_something=value    Value of "something" when laptop mode is NOT
#                            active
#    AC_something=value      Value of "something" when the computer is running
#                            on AC power
#    BATT_something=value    Value of "something when the computer is running
#                            on battery power
#
# Power management for HD (hdparm -B values)
#
BATT_HD_POWERMGMT=128
LM_AC_HD_POWERMGMT=254
NOLM_AC_HD_POWERMGMT=254
As I understood the arch wiki, these settings should be good for most laptops. I don't move the laptop much when it's plugged in (I think the latter two are plugged in) and can have a higher hdparm value. 128 should be good if I am on battery, when I may move the laptop around more (so lower to avoid HD damage). Could anyone confirm that I understood this correctly so that I don't damage anything.

2) I am using s2disk to hibernate the computer. Is there any way using laptop-mode-tools or another method to make it so that the computer automatically hibernates if lid is closed or battery runs down (e.g. 10 minutes remaining, or something).

3) I am a not certain whether this should be turned on or off (I am leaning towards off since I don't have SATA, but it was by default on)
Code:
#
# If this is enabled, laptop mode tools will assume that SCSI drives are
# really SATA drives that only _look_ like SCSI drives, and will use hdparm
# to control them. Set this to 0 if you have /dev/sd devices and you want
# laptop mode tools to use the "sdparm" command to control them. 
#
ASSUME_SCSI_IS_SATA=1
Thank you very much!

Last edited by Aesir; 02-05-2011 at 12:43 AM.
 
Old 02-05-2011, 12:11 AM   #2
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
I guess you could write a shell script frontend for s2disk that uses some sort of if statement to run s2disk automatically under certain conditions (like when the laptop has less than 10% battery or when the lid is closed) and then run the script automatically as a daemon...
 
Old 02-05-2011, 12:37 AM   #3
Aesir
LQ Newbie
 
Registered: Feb 2011
Distribution: Arch
Posts: 8

Original Poster
Rep: Reputation: 0
I think I have solved part of this problem, there is the auto-hibernate.conf file (with laptop-mode-tools) where I can specify at what percentage I want this to occur; still not sure about lid or the rest of my concerns. Thanks for the suggestion though!

Last edited by Aesir; 02-05-2011 at 12:43 AM.
 
Old 02-05-2011, 02:08 AM   #4
c!oud
LQ Newbie
 
Registered: Jul 2008
Distribution: NetBSD
Posts: 11

Rep: Reputation: 0
Quote:
Originally Posted by Aesir View Post
2) I am using s2disk to hibernate the computer. Is there any way using laptop-mode-tools or another method to make it so that the computer automatically hibernates if lid is closed or battery runs down (e.g. 10 minutes remaining, or something).
Check out acpid for triggering various actions based upon certain acpi events (e.g. closing the lid)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
URGENT with laptop-mode-tools daiguito Linux - Laptop and Netbook 2 10-14-2010 07:53 PM
Laptop-Mode-Tools - Frequent HDD spindown? PaulyWally Linux - Laptop and Netbook 1 09-27-2010 08:07 AM
Does anyone have laptop-mode-tools screen brightness ability working in Slackware? kevin01123 Slackware 5 03-16-2010 10:19 PM
Need different configurations with my Laptop rgbrock1 SUSE / openSUSE 5 11-08-2005 08:11 AM
Text mode on Laptop _cjx_ Linux - Laptop and Netbook 3 04-11-2004 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration