You are not logged in.
I installed the script and it seems to resetting my display brightness every time my machine idles for a minute or two. I tend to like my display on the lowest brightness whenever I'm using my laptop on battery power. Is there a way to have the script not overwrite my brightness setting?
In the script, just try to comment out these lines:
echo 5 > /sys/devices/virtual/backlight/acpi_video0/brightnessand
echo 10 > /sys/devices/virtual/backlight/acpi_video0/brightnessOffline
Brightness control stopped working for me (after some updates)..
I had to change
echo 10 > /sys/devices/virtual/backlight/acpi_video0/brightnessto
echo 10 > /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/brightnesssed 's/stress/relaxation/g'
Privacy & Security on #!
Offline
I installed the script and it seems to resetting my display brightness every time my machine idles for a minute or two. I tend to like my display on the lowest brightness whenever I'm using my laptop on battery power. Is there a way to have the script not overwrite my brightness setting?
This script only runs when a power event happens (AC connected, or disconnected) so It shouldn't be causing the problem. Might be xscreensaver, or xfce power manager.
Offline
sunfizz98 wrote:I installed the script and it seems to resetting my display brightness every time my machine idles for a minute or two. I tend to like my display on the lowest brightness whenever I'm using my laptop on battery power. Is there a way to have the script not overwrite my brightness setting?
This script only runs when a power event happens (AC connected, or disconnected) so It shouldn't be causing the problem. Might be xscreensaver, or xfce power manager.
OT: I'm glad to see you back 
Offline
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 (just converted)
Asus EEEPC 1001PXD
2GB RAM
Offline
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 (just converted)
Asus EEEPC 1001PXD
2GB RAM
Offline
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?
No need to reboot. Just try to pull out the power cable ;-)
Ha ezt el tudod olvasni, biztosan nem vagy rövidlátó.
Offline
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
/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 nonexistentYou 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
Hi hardran3!
yes, my laptod is 7 years old, a spanish brand: INVES Duna 3802. http://www.ciao.es/Inves_DUNA_3802_PM_C … 5__1142354
The HD is IDE.
I am not very experienced with CB, maybe I should forget this script.... 
Offline
Hi hardran3!
yes, my laptod is 7 years old, a spanish brand: INVES Duna 3802. http://www.ciao.es/Inves_DUNA_3802_PM_C … 5__1142354
The HD is IDE.
I am not very experienced with CB, maybe I should forget this script....
You will just have to look for linux power saving tweaks for this laptop, and the hardware in it. You can use my script as a base for any settings you find. It just lets you have power savings while on battery, and performance while on AC. Good luck, and if you have any questions don't hesitate to ask.
Offline
This laptod is very weird... On Google there are only a few entries.
There are not info for linux power saving for my laptod 
Offline
This laptod is very weird... On Google there are only a few entries.
There are not info for linux power saving for my laptod
Try finding what chipsets and hardware is in the machine and search for that. i'm sure you can find something 
Offline
Is there any code for type in terminal for do it?
Offline
Is there any code for type in terminal for do it?
Post the results of the following commands.
lspcilshal | grep vendorlshal | grep productOffline
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
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
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
Some things that I can see to google:
#Graphics
Intel Corporation Mobile 915GM/PM/GMS/910GML
#Intel chipset
Intel Corporation 82801
#Audio chipset
AC'97
#Ethernet controller
RTL-8169 Gigabit Ethernet
#Wireless card
Intel 2200BG
#Firewire controller
VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller
You also have a Pentium M processor, there may be some specific tweaks for it as well.
Offline
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... 
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
Hmm, I'm noticing power gains whenever I run
sudo /etc/pm/power.d/powersave true
after I boot up the system.
I know it's in the right spot and I know I made it executable, shouldn't that mean it runs on startup and gives me power savings right away, or does that mean that I gotta be charging it and then unplug it on startup? Maybe I'm doing something wrong...?
Offline
Hmm, I'm noticing power gains whenever I run
sudo /etc/pm/power.d/powersave true
after I boot up the system.
I know it's in the right spot and I know I made it executable, shouldn't that mean it runs on startup and gives me power savings right away, or does that mean that I gotta be charging it and then unplug it on startup? Maybe I'm doing something wrong...?
The script is executed when the power state changes (when you unplug/plug your AC). You can check what state the power is running in via:
cat /proc/sys/vm/laptop_mode0 = disabled, 1 = enabled.
You typically need a power manager like gnome-power-manager running which in turn executes /usr/sbin/pm-powersave true|false.
pmutils then executes the various powersaving scripts in /usr/lib/pm-utils/power.d/ and /etc/pm/power.d/
Offline
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
doneto enable spindown on battery
for drive in $drives; do
hdparm -B 254 -S 0 /dev/$drive
doneand finally to disable spin down on AC
Offline
Igneo676 wrote:Hmm, I'm noticing power gains whenever I run
sudo /etc/pm/power.d/powersave true
after I boot up the system.
I know it's in the right spot and I know I made it executable, shouldn't that mean it runs on startup and gives me power savings right away, or does that mean that I gotta be charging it and then unplug it on startup? Maybe I'm doing something wrong...?
The script is executed when the power state changes (when you unplug/plug your AC). You can check what state the power is running in via:
cat /proc/sys/vm/laptop_mode0 = disabled, 1 = enabled.
You typically need a power manager like gnome-power-manager running which in turn executes /usr/sbin/pm-powersave true|false.
pmutils then executes the various powersaving scripts in /usr/lib/pm-utils/power.d/ and /etc/pm/power.d/
Are you sure it works only with a power manager as the backend?
I did not use any and running the powersave script during the session and at start up always worked out of the box. However, since some time it only works after suspend/hibernation.
I'm not sure what causes this change.
Unfortunately I'm not using Debian but Arch.
pm-utils 1.4.1-3
linux 3.0.7-1
upower 0.9.14-1
Acpi is not installed.
cat /proc/sys/vm/laptop_mode when AC is unplugged gives me 5 as result.
Regards
Offline
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
60000Not 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 
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.