SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#51 2011-07-20 06:58:53

Milozzy
#! Die Hard
Registered: 2011-02-22
Posts: 633
Website

Re: Laptop power saving script for #! & Debian

echo 5 > /sys/devices/virtual/backlight/acpi_video0/brightness

Offline

Help fund CrunchBang, donate to the project!

#52 2011-07-20 13:49:41

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,204

Re: Laptop power saving script for #! & Debian

Brightness control stopped working for me (after some updates)..
I had to change

echo 10 > /sys/devices/virtual/backlight/acpi_video0/brightness

to

echo 10 > /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/brightness

Offline

#53 2011-07-23 18:30:57

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 360

Re: Laptop power saving script for #! & Debian

Offline

#54 2011-07-23 18:48:13

Milozzy
#! Die Hard
Registered: 2011-02-22
Posts: 633
Website

Re: Laptop power saving script for #! & Debian

Offline

#55 2011-08-30 03:23:48

typewriterjason
#! Junkie
Registered: 2011-08-28
Posts: 257

Re: Laptop power saving script for #! & Debian

Just read through the thread; looking forward to installing the script and hopefully getting over 3 hours on my eee 1001pxd. (I saw that other user bragging about six hours... how did he do it?!)

I'm going to start back at the beginning to get the main script and read the outline there, but anyone have any tips or suggestions that came through the crucible of various people installing and using this?


Fortune favors the bold.
#! WALDORF
Asus EEEPC 1001PXD | Lenovo ThinkPad t410

Offline

#56 2011-08-30 06:13:48

typewriterjason
#! Junkie
Registered: 2011-08-28
Posts: 257

Re: Laptop power saving script for #! & Debian

One other question on all this; does anyone know if I need to restart the machine for these to take effect? Or is that thinking a legacy of my younger windows days?


Fortune favors the bold.
#! WALDORF
Asus EEEPC 1001PXD | Lenovo ThinkPad t410

Offline

#57 2011-08-30 06:49:10

Istvan
#! CrunchBanger
From: Budapest, Hungary
Registered: 2010-02-20
Posts: 148

Re: Laptop power saving script for #! & Debian


Ha ezt el tudod olvasni, biztosan nem vagy rövidlátó.

Offline

#58 2011-09-23 19:18:36

Aleph
#! CrunchBanger
Registered: 2011-07-28
Posts: 165

Re: Laptop power saving script for #! & Debian

Hi hardran3,

I was trying the script but is not working well for me. Any advice?:

luis@crunchbang:~$ cat /proc/sys/vm/dirty_writeback_centisecs
500
luis@crunchbang:~$ cat /proc/sys/vm/dirty_writeback_centisecs
1500
luis@crunchbang:~$ cat /var/log/pm-powersave.log
/usr/lib/pm-utils/power.d/anacron true:success.
/usr/lib/pm-utils/power.d/sched-powersave true:**sched policy powersave ON
success.
/usr/lib/pm-utils/power.d/anacron false:success.
/usr/lib/pm-utils/power.d/sched-powersave false:**sched policy powersave OFF
success.
/usr/lib/pm-utils/power.d/anacron true:success.
/usr/lib/pm-utils/power.d/sched-powersave true:**sched policy powersave ON
success.
/usr/lib/pm-utils/power.d/anacron false:success.
/usr/lib/pm-utils/power.d/sched-powersave false:**sched policy powersave OFF
success.
/usr/lib/pm-utils/power.d/anacron true:success.
/usr/lib/pm-utils/power.d/sched-powersave true:**sched policy powersave ON
success.
/usr/lib/pm-utils/power.d/anacron true:success.
/usr/lib/pm-utils/power.d/sched-powersave true:**sched policy powersave ON
success.
/usr/lib/pm-utils/power.d/anacron false:success.
/usr/lib/pm-utils/power.d/sched-powersave false:**sched policy powersave OFF
success.
/usr/lib/pm-utils/power.d/anacron true:success.
/usr/lib/pm-utils/power.d/sched-powersave true:**sched policy powersave ON
success.
/usr/lib/pm-utils/power.d/anacron false:success.
/usr/lib/pm-utils/power.d/sched-powersave false:**sched policy powersave OFF
success.
/usr/lib/pm-utils/power.d/anacron true:success.
/usr/lib/pm-utils/power.d/anacron true:success.
/usr/lib/pm-utils/power.d/sched-powersave true:**sched policy powersave ON
success.
/usr/lib/pm-utils/power.d/anacron false:success.
/usr/lib/pm-utils/power.d/anacron false:success.
/usr/lib/pm-utils/power.d/sched-powersave false:**sched policy powersave OFF
success.
/etc/pm/power.d/Makefile.am true:not executable.
/etc/pm/power.d/Makefile.in true:not executable.
/usr/lib/pm-utils/power.d/anacron true:success.
/etc/pm/power.d/disable_wol true:not executable.
/etc/pm/power.d/hal-cd-polling true:not applicable.
/etc/pm/power.d/harddrive true:not executable.
/etc/pm/power.d/intel-audio-powersave true:not executable.
/etc/pm/power.d/journal-commit true:not executable.
/etc/pm/power.d/laptop-mode true:not executable.
/etc/pm/power.d/pcie_aspm true:not executable.
/etc/pm/power.d/readahead true:not executable.
/etc/pm/power.d/sata_alpm true:not executable.
/etc/pm/power.d/sched-powersave true:not executable.
/etc/pm/power.d/wireless true:not executable.
/etc/pm/power.d/xfs_buffer true:not executable.
/etc/pm/power.d/Makefile.am false:not executable.
/etc/pm/power.d/Makefile.in false:not executable.
/usr/lib/pm-utils/power.d/anacron false:success.
/etc/pm/power.d/disable_wol false:not executable.
/etc/pm/power.d/hal-cd-polling false:not applicable.
/etc/pm/power.d/harddrive false:not executable.
/etc/pm/power.d/intel-audio-powersave false:not executable.
/etc/pm/power.d/journal-commit false:not executable.
/etc/pm/power.d/laptop-mode false:not executable.
/etc/pm/power.d/pcie_aspm false:not executable.
/etc/pm/power.d/readahead false:not executable.
/etc/pm/power.d/sata_alpm false:not executable.
/etc/pm/power.d/sched-powersave false:not executable.
/etc/pm/power.d/wireless false:not executable.
/etc/pm/power.d/xfs_buffer false:not executable.
/etc/pm/power.d/Makefile.am true:not executable.
/etc/pm/power.d/Makefile.in true:not executable.
/usr/lib/pm-utils/power.d/anacron true:success.
/etc/pm/power.d/disable_wol true:not executable.
/etc/pm/power.d/hal-cd-polling true:not applicable.
/etc/pm/power.d/harddrive true:Enabling power management for /dev/sda...Done.
success.
/etc/pm/power.d/intel-audio-powersave true:not executable.
/etc/pm/power.d/journal-commit true:not executable.
/etc/pm/power.d/laptop-mode true:Laptop mode enabled.
success.
/etc/pm/power.d/pcie_aspm true:not executable.
/etc/pm/power.d/readahead true:not executable.
/etc/pm/power.d/sata_alpm true:not executable.
/etc/pm/power.d/sched-powersave true:not executable.
/etc/pm/power.d/wireless true:not executable.
/etc/pm/power.d/xfs_buffer true:not executable.
/etc/pm/power.d/Makefile.am false:not executable.
/etc/pm/power.d/Makefile.in false:not executable.
/usr/lib/pm-utils/power.d/anacron false:success.
/etc/pm/power.d/disable_wol false:not executable.
/etc/pm/power.d/hal-cd-polling false:not applicable.
/etc/pm/power.d/harddrive false:Disabling hard drive power management for /dev/sda...Done.
success.
/etc/pm/power.d/intel-audio-powersave false:not executable.
/etc/pm/power.d/journal-commit false:not executable.
/etc/pm/power.d/laptop-mode false:Laptop mode disabled.
success.
/etc/pm/power.d/pcie_aspm false:not executable.
/etc/pm/power.d/readahead false:not executable.
/etc/pm/power.d/sata_alpm false:not executable.
/etc/pm/power.d/sched-powersave false:not executable.
/etc/pm/power.d/wireless false:not executable.
/etc/pm/power.d/xfs_buffer false:not executable.
/etc/pm/power.d/Makefile.am true:not executable.
/etc/pm/power.d/Makefile.in true:not executable.
/usr/lib/pm-utils/power.d/anacron true:success.
/etc/pm/power.d/disable_wol true:not executable.
/etc/pm/power.d/hal-cd-polling true:not applicable.
/etc/pm/power.d/harddrive true:not executable.
/etc/pm/power.d/intel-audio-powersave true:not executable.
/etc/pm/power.d/journal-commit true:not executable.
/etc/pm/power.d/laptop-mode true:not executable.
/etc/pm/power.d/pcie_aspm true:not executable.
/etc/pm/power.d/powersave true:/etc/pm/power.d/powersave: 66: cannot create /sys/module/snd_hda_intel/parameters/power_save_controller: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/module/snd_hda_intel/parameters/power_save: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/devices/virtual/backlight/acpi_video0/brightness: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/class/scsi_host/host*/link_power_management_policy: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/bus/spi/devices/*/power/control: Directory nonexistent
success.
/etc/pm/power.d/readahead true:not executable.
/etc/pm/power.d/sata_alpm true:not executable.
/etc/pm/power.d/sched-powersave true:not executable.
/etc/pm/power.d/wireless true:not executable.
/etc/pm/power.d/xfs_buffer true:not executable.
/etc/pm/power.d/Makefile.am false:not executable.
/etc/pm/power.d/Makefile.in false:not executable.
/usr/lib/pm-utils/power.d/anacron false:success.
/etc/pm/power.d/disable_wol false:not executable.
/etc/pm/power.d/hal-cd-polling false:not applicable.
/etc/pm/power.d/harddrive false:not executable.
/etc/pm/power.d/intel-audio-powersave false:not executable.
/etc/pm/power.d/journal-commit false:not executable.
/etc/pm/power.d/laptop-mode false:not executable.
/etc/pm/power.d/pcie_aspm false:not executable.
/etc/pm/power.d/powersave false:/etc/pm/power.d/powersave: 66: cannot create /sys/module/snd_hda_intel/parameters/power_save_controller: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/module/snd_hda_intel/parameters/power_save: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/devices/virtual/backlight/acpi_video0/brightness: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/class/scsi_host/host*/link_power_management_policy: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/bus/spi/devices/*/power/control: Directory nonexistent
success.
/etc/pm/power.d/readahead false:not executable.
/etc/pm/power.d/sata_alpm false:not executable.
/etc/pm/power.d/sched-powersave false:not executable.
/etc/pm/power.d/wireless false:not executable.
/etc/pm/power.d/xfs_buffer false:not executable.
/usr/lib/pm-utils/power.d/anacron true:success.
/etc/pm/power.d/powersave true:/etc/pm/power.d/powersave: 66: cannot create /sys/module/snd_hda_intel/parameters/power_save_controller: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/module/snd_hda_intel/parameters/power_save: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/devices/virtual/backlight/acpi_video0/brightness: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/class/scsi_host/host*/link_power_management_policy: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/bus/spi/devices/*/power/control: Directory nonexistent
success.
/usr/lib/pm-utils/power.d/sched-powersave true:**sched policy powersave ON
success.
/usr/lib/pm-utils/power.d/anacron false:success.
/etc/pm/power.d/powersave false:/etc/pm/power.d/powersave: 66: cannot create /sys/module/snd_hda_intel/parameters/power_save_controller: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/module/snd_hda_intel/parameters/power_save: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/devices/virtual/backlight/acpi_video0/brightness: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/class/scsi_host/host*/link_power_management_policy: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/bus/spi/devices/*/power/control: Directory nonexistent
success.
/usr/lib/pm-utils/power.d/sched-powersave false:**sched policy powersave OFF
success.
luis@crunchbang:~$

Offline

#59 2011-09-23 19:58:32

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 360

Re: Laptop power saving script for #! & Debian

/etc/pm/power.d/powersave false:/etc/pm/power.d/powersave: 66: cannot create /sys/module/snd_hda_intel/parameters/power_save_controller: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/module/snd_hda_intel/parameters/power_save: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/devices/virtual/backlight/acpi_video0/brightness: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/class/scsi_host/host*/link_power_management_policy: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/bus/spi/devices/*/power/control: Directory nonexistent

You have different hardware it looks like. You will need to find out what settings to change for your machine, as my settings do not appear to work. Is your hardware older? I ask because it looks like you have no sata drive.

Offline

#60 2011-09-23 20:13:29

Aleph
#! CrunchBanger
Registered: 2011-07-28
Posts: 165

Re: Laptop power saving script for #! & Debian

Offline

#61 2011-09-23 20:34:07

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 360

Re: Laptop power saving script for #! & Debian

Offline

#62 2011-09-23 20:39:34

Aleph
#! CrunchBanger
Registered: 2011-07-28
Posts: 165

Re: Laptop power saving script for #! & Debian

This laptod is very weird... On Google there are only a few entries.

There are not info for linux power saving for my laptod sad

Offline

#63 2011-09-23 20:41:05

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 360

Re: Laptop power saving script for #! & Debian

Offline

#64 2011-09-23 20:44:57

Aleph
#! CrunchBanger
Registered: 2011-07-28
Posts: 165

Re: Laptop power saving script for #! & Debian

Is there any code for type in terminal for do it?

Offline

#65 2011-09-23 20:52:24

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 360

Re: Laptop power saving script for #! & Debian

lspci

Offline

#66 2011-09-23 20:54:17

Aleph
#! CrunchBanger
Registered: 2011-07-28
Posts: 165

Re: Laptop power saving script for #! & Debian

luis@crunchbang:~$ lspci
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4)
00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 04)
00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller (rev 04)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
01:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev 80)
01:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
01:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG [Calexico2] Network Connection (rev 05)
01:04.0 CardBus bridge: ENE Technology Inc CB-710/2/4 Cardbus Controller
01:04.1 FLASH memory: ENE Technology Inc ENE PCI Memory Stick Card Reader Controller
01:04.2 SD Host controller: ENE Technology Inc ENE PCI Secure Digital Card Reader Controller
luis@crunchbang:~$ 

Offline

#67 2011-09-23 20:55:34

Aleph
#! CrunchBanger
Registered: 2011-07-28
Posts: 165

Re: Laptop power saving script for #! & Debian

luis@crunchbang:~$ lshal | grep vendor
  system.board.vendor = 'Intel Corporation'  (string)
  system.firmware.vendor = 'Insyde Software Corporation'  (string)
  system.hardware.primary_video.vendor = 32902  (0x8086)  (int)
  system.hardware.vendor = ''  (string)
  battery.vendor = 'SONY'  (string)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
  scsi.vendor = 'TSSTcorp'  (string)
  info.vendor = 'TSSTcorp'  (string)
  storage.vendor = 'TSSTcorp'  (string)
  scsi.vendor = 'ATA'  (string)
  info.vendor = 'ATA'  (string)
  storage.vendor = 'ATA'  (string)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor_id = 0  (0x0)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
  info.vendor = 'ENE Technology Inc'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'ENE Technology Inc'  (string)
  pci.vendor_id = 5412  (0x1524)  (int)
  info.vendor = 'ENE Technology Inc'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'ENE Technology Inc'  (string)
  pci.vendor_id = 5412  (0x1524)  (int)
  info.vendor = 'ENE Technology Inc'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'ENE Technology Inc'  (string)
  pci.vendor_id = 5412  (0x1524)  (int)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor_id = 32902  (0x8086)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
  info.vendor = 'Intel Corporation'  (string)
  info.vendor = 'Realtek Semiconductor Co., Ltd.'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'Realtek Semiconductor Co., Ltd.'  (string)
  pci.vendor_id = 4332  (0x10ec)  (int)
  info.vendor = 'VIA Technologies, Inc.'  (string)
  pci.subsys_vendor_id = 1396  (0x574)  (int)
  pci.vendor = 'VIA Technologies, Inc.'  (string)
  pci.vendor_id = 4358  (0x1106)  (int)
  ieee1394.vendor = 'Linux Firewire'  (string)
  ieee1394.vendor_id = 13634846  (0xd00d1e)  (int)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
  info.vendor = 'Linux Foundation'  (string)
  usb_device.vendor = 'Linux Foundation'  (string)
  usb_device.vendor_id = 7531  (0x1d6b)  (int)
  usb.vendor = 'Linux Foundation'  (string)
  usb.vendor_id = 7531  (0x1d6b)  (int)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
  info.vendor = 'Linux Foundation'  (string)
  usb_device.vendor = 'Linux Foundation'  (string)
  usb_device.vendor_id = 7531  (0x1d6b)  (int)
  usb.vendor = 'Linux Foundation'  (string)
  usb.vendor_id = 7531  (0x1d6b)  (int)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
  info.vendor = 'Linux Foundation'  (string)
  usb_device.vendor = 'Linux Foundation'  (string)
  usb_device.vendor_id = 7531  (0x1d6b)  (int)
  usb.vendor = 'Linux Foundation'  (string)
  usb.vendor_id = 7531  (0x1d6b)  (int)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
  info.vendor = 'Linux Foundation'  (string)
  usb_device.vendor = 'Linux Foundation'  (string)
  usb_device.vendor_id = 7531  (0x1d6b)  (int)
  usb.vendor = 'Linux Foundation'  (string)
  usb.vendor_id = 7531  (0x1d6b)  (int)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
  info.vendor = 'Linux Foundation'  (string)
  usb_device.vendor = 'Linux Foundation'  (string)
  usb_device.vendor_id = 7531  (0x1d6b)  (int)
  usb.vendor = 'Linux Foundation'  (string)
  usb.vendor_id = 7531  (0x1d6b)  (int)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
  info.vendor = 'Intel Corporation'  (string)
  info.vendor = 'Intel Corporation'  (string)
  info.vendor = 'Intel Corporation'  (string)
  info.vendor = 'Intel Corporation'  (string)
  info.vendor = 'Intel Corporation'  (string)
  info.vendor = 'Intel Corporation'  (string)
  pci.subsys_vendor = 'COMPAL Electronics Inc'  (string)
  pci.subsys_vendor_id = 5312  (0x14c0)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
luis@crunchbang:~$ 

Offline

#68 2011-09-23 20:56:50

Aleph
#! CrunchBanger
Registered: 2011-07-28
Posts: 165

Re: Laptop power saving script for #! & Debian

luis@crunchbang:~$ lshal | grep product
  info.product = 'Computer'  (string)
  system.board.product = 'Alviso'  (string)
  system.hardware.primary_video.product = 9618  (0x2592)  (int)
  system.hardware.product = ''  (string)
  info.product = 'Lid Switch'  (string)
  input.product = 'Lid Switch'  (string)
  info.product = 'Unknown Processor'  (string)
  info.product = 'ALSA Timer Device'  (string)
  info.product = 'ALSA Sequencer Device'  (string)
  info.product = 'Loopback device Interface'  (string)
  info.product = 'Sleep Button'  (string)
  input.product = 'Sleep Button'  (string)
  info.product = 'Power Button'  (string)
  input.product = 'Power Button'  (string)
  info.product = 'BATCL50L'  (string)
  info.product = 'Generic AC Adapter Device'  (string)
  info.product = 'Video Bus'  (string)
  input.product = 'Video Bus'  (string)
  info.product = 'Power Button'  (string)
  input.product = 'Power Button'  (string)
  info.product = 'PS/2 Port for PS/2-style Mice'  (string)
  info.product = 'IBM Enhanced (101/102-key, PS/2 mouse support)'  (string)
  info.product = 'AT Real-Time Clock'  (string)
  info.product = 'General ID for reserving resources required by PnP motherboard registers. (Not device specific.)'  (string)
  info.product = 'Math Coprocessor'  (string)
  info.product = 'PnP Device (INT0800)'  (string)
  info.product = 'AT DMA Controller'  (string)
  info.product = 'General ID for reserving resources required by PnP motherboard registers. (Not device specific.)'  (string)
  info.product = 'PnP Device (PNP0a08)'  (string)
  info.product = 'Platform Device (serial8250)'  (string)
  info.product = 'Platform Device (regulatory.0)'  (string)
  info.product = 'Platform Device (pcspkr)'  (string)
  info.product = 'PC Speaker'  (string)
  input.product = 'PC Speaker'  (string)
  info.product = 'Platform Device (i8042)'  (string)
  info.product = 'i8042 AUX3 port'  (string)
  info.product = 'AlpsPS/2 ALPS GlidePoint'  (string)
  input.product = 'AlpsPS/2 ALPS GlidePoint'  (string)
  info.product = 'PS/2 Mouse'  (string)
  input.product = 'PS/2 Mouse'  (string)
  info.product = 'i8042 AUX2 port'  (string)
  info.product = 'i8042 AUX1 port'  (string)
  info.product = 'i8042 AUX0 port'  (string)
  info.product = 'i8042 KBD port'  (string)
  info.product = 'AT Translated Set 2 keyboard'  (string)
  input.product = 'AT Translated Set 2 keyboard'  (string)
  info.product = 'Platform Device (Fixed MDIO bus.0)'  (string)
  info.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller'  (string)
  pci.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller'  (string)
  pci.product_id = 9834  (0x266a)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller'  (string)
  pci.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller'  (string)
  pci.product_id = 9839  (0x266f)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = 'SCSI Host Adapter'  (string)
  info.product = 'SCSI Host Adapter'  (string)
  info.product = 'SCSI Host Adapter'  (string)
  info.product = 'SCSI Device'  (string)
  info.product = 'CD/DVDW TS-L532A'  (string)
  info.product = 'SCSI Generic Interface'  (string)
  info.product = 'SCSI Device'  (string)
  info.product = 'SAMSUNG HM160HC'  (string)
  info.product = 'Volume (swap)'  (string)
  info.product = 'Volume'  (string)
  info.product = 'Volume (ext4)'  (string)
  info.product = 'SCSI Generic Interface'  (string)
  info.product = '82801FBM (ICH6M) LPC Interface Bridge'  (string)
  pci.product = '82801FBM (ICH6M) LPC Interface Bridge'  (string)
  pci.product_id = 9793  (0x2641)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller'  (string)
  pci.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller'  (string)
  pci.product_id = 9837  (0x266d)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = 'Intel ICH6 Modem Sound Card'  (string)
  info.product = 'Intel ICH6 Modem - Modem ALSA Playback Device'  (string)
  info.product = 'Intel ICH6 Modem - Modem ALSA Capture Device'  (string)
  info.product = 'Intel ICH6 Modem ALSA Control Device'  (string)
  info.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller'  (string)
  pci.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller'  (string)
  pci.product_id = 9838  (0x266e)  (int)
  pci.subsys_product_id = 23  (0x17)  (int)
  info.product = 'Intel ICH6 with ALC250 Sound Card'  (string)
  info.product = 'Intel ICH6 - IEC958 ALSA Playback Device'  (string)
  info.product = 'Intel ICH6 - ADC2 ALSA Capture Device'  (string)
  info.product = 'Intel ICH6 - MIC2 ADC ALSA Capture Device'  (string)
  info.product = 'Intel ICH6 - MIC ADC ALSA Capture Device'  (string)
  info.product = 'Intel ICH6 ALSA Playback Device'  (string)
  info.product = 'Intel ICH6 ALSA Capture Device'  (string)
  info.product = 'Intel ICH6 with ALC250 ALSA Control Device'  (string)
  info.product = '82801 Mobile PCI Bridge'  (string)
  pci.product = '82801 Mobile PCI Bridge'  (string)
  pci.product_id = 9288  (0x2448)  (int)
  pci.subsys_product_id = 0  (0x0)  (int)
  info.product = 'ENE PCI Secure Digital Card Reader Controller'  (string)
  pci.product = 'ENE PCI Secure Digital Card Reader Controller'  (string)
  pci.product_id = 1360  (0x550)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = 'MMC/SD Host Adapter'  (string)
  info.product = 'ENE PCI Memory Stick Card Reader Controller'  (string)
  pci.product = 'ENE PCI Memory Stick Card Reader Controller'  (string)
  pci.product_id = 1328  (0x530)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = 'CB-710/2/4 Cardbus Controller'  (string)
  pci.product = 'CB-710/2/4 Cardbus Controller'  (string)
  pci.product_id = 5137  (0x1411)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = 'PRO/Wireless 2200BG [Calexico2] Network Connection'  (string)
  pci.product = 'PRO/Wireless 2200BG [Calexico2] Network Connection'  (string)
  pci.product_id = 16928  (0x4220)  (int)
  pci.subsys_product_id = 9986  (0x2702)  (int)
  info.product = 'WLAN Interface'  (string)
  info.product = 'phy0 wlan Killswitch'  (string)
  info.product = 'Intel PRO/Wireless WLAN Switch'  (string)
  info.product = 'RTL-8169 Gigabit Ethernet'  (string)
  pci.product = 'RTL-8169 Gigabit Ethernet'  (string)
  pci.product_id = 33129  (0x8169)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = 'Networking Interface'  (string)
  info.product = 'VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller'  (string)
  pci.product = 'VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller'  (string)
  pci.product_id = 12356  (0x3044)  (int)
  pci.subsys_product_id = 2156  (0x86c)  (int)
  ieee1394.product = 'Juju'  (string)
  ieee1394.product_id = 1  (0x1)  (int)
  info.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller'  (string)
  pci.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller'  (string)
  pci.product_id = 9820  (0x265c)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = '2.0 root hub'  (string)
  usb_device.product = '2.0 root hub'  (string)
  usb_device.product_id = 2  (0x2)  (int)
  info.product = 'USB Hub Interface'  (string)
  usb.product = 'USB Hub Interface'  (string)
  usb.product_id = 2  (0x2)  (int)
  info.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4'  (string)
  pci.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4'  (string)
  pci.product_id = 9819  (0x265b)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = '1.1 root hub'  (string)
  usb_device.product = '1.1 root hub'  (string)
  usb_device.product_id = 1  (0x1)  (int)
  info.product = 'USB Hub Interface'  (string)
  usb.product = 'USB Hub Interface'  (string)
  usb.product_id = 1  (0x1)  (int)
  info.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3'  (string)
  pci.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3'  (string)
  pci.product_id = 9818  (0x265a)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = '1.1 root hub'  (string)
  usb_device.product = '1.1 root hub'  (string)
  usb_device.product_id = 1  (0x1)  (int)
  info.product = 'USB Hub Interface'  (string)
  usb.product = 'USB Hub Interface'  (string)
  usb.product_id = 1  (0x1)  (int)
  info.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2'  (string)
  pci.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2'  (string)
  pci.product_id = 9817  (0x2659)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = '1.1 root hub'  (string)
  usb_device.product = '1.1 root hub'  (string)
  usb_device.product_id = 1  (0x1)  (int)
  info.product = 'USB Hub Interface'  (string)
  usb.product = 'USB Hub Interface'  (string)
  usb.product_id = 1  (0x1)  (int)
  info.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1'  (string)
  pci.product = '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1'  (string)
  pci.product_id = 9816  (0x2658)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = '1.1 root hub'  (string)
  usb_device.product = '1.1 root hub'  (string)
  usb_device.product_id = 1  (0x1)  (int)
  info.product = 'USB Hub Interface'  (string)
  usb.product = 'USB Hub Interface'  (string)
  usb.product_id = 1  (0x1)  (int)
  info.product = 'Mobile 915GM/GMS/910GML Express Graphics Controller'  (string)
  pci.product = 'Mobile 915GM/GMS/910GML Express Graphics Controller'  (string)
  pci.product_id = 10130  (0x2792)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = 'Mobile 915GM/GMS/910GML Express Graphics Controller'  (string)
  pci.product = 'Mobile 915GM/GMS/910GML Express Graphics Controller'  (string)
  pci.product_id = 9618  (0x2592)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
  info.product = 'Direct Rendering Manager Device'  (string)
  info.product = 'Direct Rendering Manager Device'  (string)
  info.product = 'Direct Rendering Manager Device'  (string)
  info.product = 'Direct Rendering Manager Device'  (string)
  info.product = 'Direct Rendering Manager Device'  (string)
  info.product = 'Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller'  (string)
  pci.product = 'Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller'  (string)
  pci.product_id = 9616  (0x2590)  (int)
  pci.subsys_product_id = 18  (0x12)  (int)
luis@crunchbang:~$ 

Offline

#69 2011-09-23 21:32:09

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 360

Re: Laptop power saving script for #! & Debian

Offline

#70 2011-09-24 07:13:17

Aleph
#! CrunchBanger
Registered: 2011-07-28
Posts: 165

Re: Laptop power saving script for #! & Debian

Thanks hardran3,

I was trying to modify the script but I am not able, I haven't the knowledge for do it. I come from *Ubuntu and PCLinuxOS... sad

Maybe I should stay with xfce power management...

If CB could come with a good powersaving out of the box CB will be the Bomb! But it should be no easy...

Thanks anyway.

Offline

#71 2011-09-26 20:17:15

Igneo676
New Member
Registered: 2011-07-02
Posts: 2

Re: Laptop power saving script for #! & Debian

Offline

#72 2011-09-26 22:58:08

jelloir
#! CrunchBanger
From: Outside the garden wall
Registered: 2009-08-21
Posts: 212

Re: Laptop power saving script for #! & Debian

cat /proc/sys/vm/laptop_mode

Offline

#73 2011-10-18 17:38:11

krejca85
New Member
Registered: 2011-10-18
Posts: 1

Re: Laptop power saving script for #! & Debian

Hi, I like your script very much. I just added one more thing - spindown of drives

#harddrives list
drives="sda"

to define which drives should be managed

#Enables spin down for listed harddrives
  for drive in $drives; do
    hdparm -B 1 -S 2 /dev/$drive
  done

to enable spindown on battery

for drive in $drives; do
  hdparm -B 254 -S 0 /dev/$drive
done

and finally to disable spin down on AC

Offline

#74 2011-10-28 10:08:18

joypilhub
New Member
Registered: 2011-09-18
Posts: 5

Re: Laptop power saving script for #! & Debian

cat /proc/sys/vm/laptop_mode

Offline

Be excellent to each other!

#75 2011-11-03 10:22:39

josec89
New Member
Registered: 2011-11-03
Posts: 1

Re: Laptop power saving script for #! & Debian

Hello,

I tried to use your script but my laptop still have horrible battery life in Linux (arch linux). Win7: 5-6h. Linux: 1.5 - 2h
It's a Sony Vario S serie (SA):

$ lspci 
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation 2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB Controller: Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.1 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 2 (rev b4)
00:1c.2 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 3 (rev b4)
00:1c.3 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 4 (rev b4)
00:1d.0 USB Controller: Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM67 Express Chipset Family LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation Mobile 82801 SATA RAID Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: ATI Technologies Inc NI Whistler [AMD Radeon HD 6600M Series]
02:00.0 Network controller: Intel Corporation Centrino Advanced-N 6230 (rev 34)
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5209 (rev 01)
04:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)

dirty_writeback_centisecs give me a weir result:

cat /proc/sys/vm/dirty_writeback_centisecs 
60000

Not between 500 and 1500 :S

Log seems to be ok:

Running hook /usr/lib/pm-utils/power.d/hal-cd-polling false:

/usr/lib/pm-utils/power.d/hal-cd-polling false: success.
Running hook /usr/lib/pm-utils/power.d/intel-audio-powersave false:
Setting power savings for snd_hda_intel to 0...Done.

/usr/lib/pm-utils/power.d/intel-audio-powersave false: success.
Running hook /usr/lib/pm-utils/power.d/journal-commit false:
Setting journal commit time for / to 0...Done.
Setting journal commit time for /home to 0...Done.

/usr/lib/pm-utils/power.d/journal-commit false: success.
Running hook /usr/lib/pm-utils/power.d/laptop-mode false:
Laptop mode disabled.

/usr/lib/pm-utils/power.d/laptop-mode false: success.
Running hook /usr/lib/pm-utils/power.d/pcie_aspm false:
/usr/lib/pm-utils/power.d/pcie_aspm: line 9: echo: write error: Operation not permitted

/usr/lib/pm-utils/power.d/pcie_aspm false: success.
Running hook /usr/lib/pm-utils/power.d/readahead false:
Setting readahead for /dev/sda7 to 256...Done.
Setting readahead for /dev/sda6 to 256...Done.
Setting readahead for /dev/sda8 to 256...Done.

/usr/lib/pm-utils/power.d/readahead false: success.
Running hook /usr/lib/pm-utils/power.d/sata_alpm false:
Setting SATA APLM on host0 to max_performance...Done.
Setting SATA APLM on host1 to max_performance...Done.
Setting SATA APLM on host2 to max_performance...Done.
Setting SATA APLM on host3 to max_performance...Done.
Setting SATA APLM on host4 to max_performance...Done.
Setting SATA APLM on host5 to max_performance...Done.

/usr/lib/pm-utils/power.d/sata_alpm false: success.
Running hook /usr/lib/pm-utils/power.d/sched-powersave false:
**sched policy powersave OFF

/usr/lib/pm-utils/power.d/sched-powersave false: success.
Running hook /usr/lib/pm-utils/power.d/wireless false:
Turning powersave for wlan0 off...Done.

/usr/lib/pm-utils/power.d/wireless false: success.
Running hook /usr/lib/pm-utils/power.d/xfs_buffer false:

/usr/lib/pm-utils/power.d/xfs_buffer false: success.
Running hook /usr/lib/pm-utils/power.d/hal-cd-polling false:

/usr/lib/pm-utils/power.d/hal-cd-polling false: success.
Running hook /usr/lib/pm-utils/power.d/intel-audio-powersave false:
Setting power savings for snd_hda_intel to 0...Done.

/usr/lib/pm-utils/power.d/intel-audio-powersave false: success.
Running hook /usr/lib/pm-utils/power.d/journal-commit false:
Setting journal commit time for / to 0...Done.
Setting journal commit time for /home to 0...Done.

/usr/lib/pm-utils/power.d/journal-commit false: success.
Running hook /usr/lib/pm-utils/power.d/laptop-mode false:
Laptop mode disabled.

CPU makes much more noise in Linux also.

Can You help me? I'm very disappointed about Linux. May it be problem of ArchLinux? May I install debian?
It's a 2nd generation i5 is that the problem?

Please, help smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo