You are not logged in.

#426 2013-02-21 04:34:04

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 3x+ battery life

@Jristz
what is your kernel version?


"After you do enough distro research, you will choose Arch."

Offline

#427 2013-02-21 04:49:45

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: 3x+ battery life

kernel: 3.7.9-1-ck
powerdown: 20130219
File system: jfs
My wirelles is called: wlp1s0


Well, I suppose that this is somekind of signature, no?

Offline

#428 2013-02-21 08:52:05

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 3x+ battery life

the interface name problem will be solved in the next version

what is your result of running ls /sys/class/backlight

Last edited by taylorchu (2013-02-21 09:18:59)


"After you do enough distro research, you will choose Arch."

Offline

#429 2013-02-21 11:04:16

I-sty
Member
From: Romania
Registered: 2012-11-30
Posts: 60
Website

Re: 3x+ battery life

taylorchu wrote:

the interface name problem will be solved in the next version

what is your result of running ls /sys/class/backlight

I reinstalled powerdown.
Now, on AC without any power* command:

[root@localhost i-sty]# powernow  
[powerdown] no battery

 :: Detail
 -> /proc/sys/kernel/nmi_watchdog: 1
 -> /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: ondemand
 -> /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: ondemand
 -> /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor: ondemand
 -> /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor: ondemand
 -> /sys/module/pcie_aspm/parameters/policy: [default] performance powersave 
 -> /proc/sys/vm/laptop_mode: 0
 -> /proc/sys/vm/dirty_ratio: 30
 -> /proc/sys/vm/dirty_background_ratio: 10
 -> /proc/sys/vm/dirty_expire_centisecs: 600
 -> /proc/sys/vm/dirty_writeback_centisecs: 600
 -> /dev/sda5 readahead: 256
 -> /dev/sda6 readahead: 256
 -> /dev/sda3 readahead: 256
 -> /dev/sda2 readahead: 256
 -> /sys/class/scsi_host/host0/link_power_management_policy: medium_power
 -> /sys/class/scsi_host/host1/link_power_management_policy: medium_power
 -> /sys/class/scsi_host/host2/link_power_management_policy: medium_power
 -> /sys/class/scsi_host/host3/link_power_management_policy: medium_power
 -> /sys/class/scsi_host/host4/link_power_management_policy: medium_power
 -> /sys/class/scsi_host/host5/link_power_management_policy: medium_power
 -> /sys/module/snd_hda_intel/parameters/power_save: 0
 -> /sys/module/snd_hda_intel/parameters/power_save_controller: N
 -> wlp2s0 Power save: off
 -> /sys/class/backlight/acpi_video0/brightness: 99
 -> uvcvideo loaded
 -> nouveau not loaded
 -> btusb loaded
 -> bluetooth loaded
 -> /sys/module/i915/parameters/i915_enable_rc6: 1
[root@localhost i-sty]# 

With powerdown command:

[root@localhost i-sty]# powerdown
[powerdown] cannot write 1 to /sys/module/i915/parameters/i915_enable_rc6
[root@localhost i-sty]# powernow 
[powerdown] no battery

 :: Detail
 -> /proc/sys/kernel/nmi_watchdog: 0
 -> /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: ondemand
 -> /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: ondemand
 -> /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor: ondemand
 -> /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor: ondemand
 -> /sys/module/pcie_aspm/parameters/policy: default performance [powersave] 
 -> /proc/sys/vm/laptop_mode: 5
 -> /proc/sys/vm/dirty_ratio: 90
 -> /proc/sys/vm/dirty_background_ratio: 1
 -> /proc/sys/vm/dirty_expire_centisecs: 60000
 -> /proc/sys/vm/dirty_writeback_centisecs: 60000
 -> /dev/sda5 readahead: 4096
 -> /dev/sda6 readahead: 4096
 -> /dev/sda3 readahead: 4096
 -> /dev/sda2 readahead: 4096
 -> /sys/class/scsi_host/host0/link_power_management_policy: min_power
 -> /sys/class/scsi_host/host1/link_power_management_policy: min_power
 -> /sys/class/scsi_host/host2/link_power_management_policy: min_power
 -> /sys/class/scsi_host/host3/link_power_management_policy: min_power
 -> /sys/class/scsi_host/host4/link_power_management_policy: min_power
 -> /sys/class/scsi_host/host5/link_power_management_policy: min_power
 -> /sys/module/snd_hda_intel/parameters/power_save: 1
 -> /sys/module/snd_hda_intel/parameters/power_save_controller: Y
 -> wlp2s0 Power save: on
 -> /sys/class/backlight/acpi_video0/brightness: 19
 -> uvcvideo not loaded
 -> nouveau not loaded
 -> btusb not loaded
 -> bluetooth not loaded
 -> /sys/module/i915/parameters/i915_enable_rc6: 1
[root@localhost i-sty]# 

I havent any files under /sys/module/i915/parameters/
Under /sys/class/backlight I have two folder, acpi-video0 and intel_backlight.
But, with pm-utils package under intel_backlight I had a file named brightness, now I havent, (I removed pm-utils because was in conflict with powerdown)
My kernel line

echo    'Loading Linux  ...'
$6e14 ro  quiet pcie_aspm=force i915.i915_enable_rc6=1 splash

------------------------
Edit:
If I modified the /sys/class/backlight/acpi_video0/brightness file the brightness isnt modified.

Last edited by I-sty (2013-02-21 11:07:51)

Offline

#430 2013-02-21 11:08:40

I-sty
Member
From: Romania
Registered: 2012-11-30
Posts: 60
Website

Re: 3x+ battery life

nierro wrote:

You can append that to the grub line:

i915.i915_enable_rc6="x"

. Remember to comment that line in powerdown script!
Ps: "x" is your preferred value wink

I already added this flag to the kernelline. smile

Offline

#431 2013-02-21 18:53:29

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: 3x+ battery life

taylorchu wrote:

the interface name problem will be solved in the next version

what is your result of running ls /sys/class/backlight

➜  ~  ls /sys/class/backlight
psb-bl  samsung
➜  ~  

yes, and both have different max values

grub cmline

GRUB_CMDLINE_LINUX_DEFAULT="init=/usr/lib/systemd/systemd quiet resume=/dev/sda4 acpi_osi=Linux acpi_backlight=vendor mem=1920mb security=tomoyo "

Well, I suppose that this is somekind of signature, no?

Offline

#432 2013-02-21 23:40:31

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 3x+ battery life

please remove "acpi_osi=Linux acpi_backlight=vendor" from grub.


"After you do enough distro research, you will choose Arch."

Offline

#433 2013-02-22 02:18:50

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: 3x+ battery life

remove and now

[powerdown] cannot write powersave to /sys/module/pcie_aspm/parameters/policy

ls /sys/class/backlight

acpi_video0  psb-bl

and unable to control brightness throw the normal way on xfce, and powerdown not low brightness

PD: the 2 parameters on the grub are recommended for my pulsbo (gma500) video card


Well, I suppose that this is somekind of signature, no?

Offline

#434 2013-02-22 04:59:27

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 3x+ battery life

1. add "pcie_aspm=force" to grub
2. can you try "powerdown" then "powerup"? I think the brightness will change. also please paste the powernow msg before and after you run the command.


"After you do enough distro research, you will choose Arch."

Offline

#435 2013-02-22 14:36:32

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: 3x+ battery life

powerdown

➜  ~  sudo powernow 
[powerdown] BAT1 using .575 watts

 :: Detail
 -> /proc/sys/kernel/nmi_watchdog: 0
 -> /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: ondemand
 -> /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: ondemand
 -> /sys/module/pcie_aspm/parameters/policy: default performance [powersave] 
 -> /proc/sys/vm/laptop_mode: 5
 -> /proc/sys/vm/dirty_ratio: 90
 -> /proc/sys/vm/dirty_background_ratio: 1
 -> /proc/sys/vm/dirty_expire_centisecs: 60000
 -> /proc/sys/vm/dirty_writeback_centisecs: 60000
 -> /dev/sda5 readahead: 4096
 -> /dev/sda8 readahead: 4096
 -> /dev/sda3 readahead: 4096
 -> /dev/sda6 readahead: 4096
 -> /dev/sda9 readahead: 4096
 -> /dev/sda2 readahead: 4096
 -> /dev/sda7 readahead: 4096
 -> /sys/class/scsi_host/host0/link_power_management_policy: min_power
 -> /sys/class/scsi_host/host1/link_power_management_policy: min_power
 -> /sys/class/scsi_host/host2/link_power_management_policy: min_power
 -> /sys/class/scsi_host/host3/link_power_management_policy: min_power
 -> /sys/module/snd_hda_intel/parameters/power_save: 1
 -> /sys/module/snd_hda_intel/parameters/power_save_controller: Y
 -> wlp1s0 Power save: on
 -> /sys/class/backlight/acpi_video0/brightness: 1
 -> uvcvideo not loaded
 -> nouveau not loaded
 -> btusb not loaded
 -> bluetooth not loaded

now powerup

[powerdown] BAT1 using .645 watts

 :: Detail
 -> /proc/sys/kernel/nmi_watchdog: 1
 -> /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: ondemand
 -> /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: ondemand
 -> /sys/module/pcie_aspm/parameters/policy: [default] performance powersave 
 -> /proc/sys/vm/laptop_mode: 0
 -> /proc/sys/vm/dirty_ratio: 30
 -> /proc/sys/vm/dirty_background_ratio: 10
 -> /proc/sys/vm/dirty_expire_centisecs: 600
 -> /proc/sys/vm/dirty_writeback_centisecs: 600
 -> /dev/sda5 readahead: 256
 -> /dev/sda8 readahead: 256
 -> /dev/sda3 readahead: 256
 -> /dev/sda6 readahead: 256
 -> /dev/sda9 readahead: 256
 -> /dev/sda2 readahead: 256
 -> /dev/sda7 readahead: 256
 -> /sys/class/scsi_host/host0/link_power_management_policy: medium_power
 -> /sys/class/scsi_host/host1/link_power_management_policy: medium_power
 -> /sys/class/scsi_host/host2/link_power_management_policy: medium_power
 -> /sys/class/scsi_host/host3/link_power_management_policy: medium_power
 -> /sys/module/snd_hda_intel/parameters/power_save: 0
 -> /sys/module/snd_hda_intel/parameters/power_save_controller: N
 -> wlp1s0 Power save: off
 -> /sys/class/backlight/acpi_video0/brightness: 5
 -> uvcvideo loaded
 -> nouveau not loaded
 -> btusb loaded
 -> bluetooth loaded

o
but in both cases the brightness in my monitor not change

but I discover that psb-bl have a value of 1 to 100 and THIS is the responsible againt bightness changes NOT acpi_video0


Well, I suppose that this is somekind of signature, no?

Offline

#436 2013-02-22 15:53:13

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 233
Website

Re: 3x+ battery life

Great, absolutely great and totally kiss.

Machine: Dell XPS L702X Nvidia GT555M, no Optimus.

Windows 7+Dell Power Extender ~ 3.5 hrs
Arch(bang) clean install ~ 2.5 hrs
Arch(bang) optimized ~ 5 hrs !!! (And with wifi working, minimum brightness, stock hard disk optimizations)


Proud Arch Linux user since 2007.

Offline

#437 2013-02-22 18:40:03

I-sty
Member
From: Romania
Registered: 2012-11-30
Posts: 60
Website

Re: 3x+ battery life

twilight0 wrote:

Great, absolutely great and totally kiss.

Machine: Dell XPS L702X Nvidia GT555M, no Optimus.

Windows 7+Dell Power Extender ~ 3.5 hrs
Arch(bang) clean install ~ 2.5 hrs
Arch(bang) optimized ~ 5 hrs !!! (And with wifi working, minimum brightness, stock hard disk optimizations)

How do you optimized? I also have a Dell laptop. Dell 5520 i5 with IGP.

Offline

#438 2013-02-22 19:26:53

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 233
Website

Re: 3x+ battery life

I-sty wrote:
twilight0 wrote:

Great, absolutely great and totally kiss.

Machine: Dell XPS L702X Nvidia GT555M, no Optimus.

Windows 7+Dell Power Extender ~ 3.5 hrs
Arch(bang) clean install ~ 2.5 hrs
Arch(bang) optimized ~ 5 hrs !!! (And with wifi working, minimum brightness, stock hard disk optimizations)

How do you optimized? I also have a Dell laptop. Dell 5520 i5 with IGP.

Optimized I mean, I installed Linux-ck from graysky's repo (sandybridge) along with the proper nvidia binary blob, xfce4, a custom 20-nvidia.conf in /etc/X11/xorg.conf.d/ directory and last but not least... powerdown. Actual maximum capacity from the battery is 80 Wh, after a year of moderate usage still performing really well.


Proud Arch Linux user since 2007.

Offline

#439 2013-02-22 19:41:40

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 233
Website

Re: 3x+ battery life

I pressume it will consume much less power if I had an SSD inside, as of now it has dual HDDs.


Proud Arch Linux user since 2007.

Offline

#440 2013-02-22 20:27:33

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 3x+ battery life

@everyone
backlight should work now. please update


"After you do enough distro research, you will choose Arch."

Offline

#441 2013-02-23 05:50:49

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: 3x+ battery life

Eyup, finally brightness work as spected

thanks tailorochi


Well, I suppose that this is somekind of signature, no?

Offline

#442 2013-02-23 13:11:12

I-sty
Member
From: Romania
Registered: 2012-11-30
Posts: 60
Website

Re: 3x+ battery life

Yes, thanks.
Brightness is work.
But:

[root@localhost i-sty]# powerup
[powerdown] cannot write 0 to /sys/module/i915/parameters/i915_enable_rc6
[root@localhost i-sty]# powerdown 
[powerdown] cannot unload module bluetooth
[powerdown] cannot write 1 to /sys/module/i915/parameters/i915_enable_rc6
[root@localhost i-sty]# 

Offline

#443 2013-02-23 13:14:12

I-sty
Member
From: Romania
Registered: 2012-11-30
Posts: 60
Website

Re: 3x+ battery life

twilight0 wrote:

Optimized I mean, I installed Linux-ck from graysky's repo (sandybridge) along with the proper nvidia binary blob, xfce4, a custom 20-nvidia.conf in /etc/X11/xorg.conf.d/ directory and last but not least... powerdown. Actual maximum capacity from the battery is 80 Wh, after a year of moderate usage still performing really well.

Thanks.
I tried the ck kernel.
The bigger battery is the best way to a longer battery time;)
I have the default 48Wh battery from the Dell.

Offline

#444 2013-02-24 15:58:13

antoinemartin
Member
Registered: 2008-09-08
Posts: 4

Re: 3x+ battery life

Hello,

I've added this to disable power on lan on the ethernet interface :

for f in /sys/class/net/en*; do /usr/sbin/ethtool -s ${f##*/} wol d; done

To resume :

for f in /sys/class/net/en*; do /usr/sbin/ethtool -s ${f##*/} wol g; done

This adds ethtool as a dependency.

Offline

#445 2013-02-25 03:21:46

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 3x+ battery life

wol is disabled by default.


"After you do enough distro research, you will choose Arch."

Offline

#446 2013-03-25 17:38:49

mityukov
Member
Registered: 2010-10-10
Posts: 66

Re: 3x+ battery life

Not sure if it's connected to powerdown at all (though, it adds some pm-utils wrapper, right?)...

The issue is that I can't connect to any wireless network after resuming from "Suspend to RAM". The NetworkManager keeps saying something like "Unable to connect {network_name}" and that's all.

Note: tried to fire `sudo systemctl restart NetworkManager` command -- it doesn't help.

Here's some dmesg output (for what I believe related to sleep/resume): http://pastebin.com/feyiDgRc


P.S.: can't really say if wifi adapted was turned on or off, after resume. What command should I use to verify that?

Last edited by mityukov (2013-03-25 17:44:41)

Offline

#447 2013-03-25 17:39:59

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: 3x+ battery life

Why don't you just uninstall powerdown to see if this resolves your issue?

Offline

#448 2013-03-25 17:46:03

mityukov
Member
Registered: 2010-10-10
Posts: 66

Re: 3x+ battery life

orschiro wrote:

Why don't you just uninstall powerdown to see if this resolves your issue?

I can't be sure, but when I installed powerdown, there were some packages I had to remove. So, I'm simply afraid of breaking things by removing powerdown smile

Offline

#449 2013-03-26 12:41:06

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: 3x+ battery life

@mityukov

The only conflict exists with pm-utils which is not really system-relevant.

Offline

#450 2013-03-26 17:03:58

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 3x+ battery life

@mityukov
1. your log tells nothing about the state of networkmanager. it looks like it is fine after resume, because i saw you can still auth to some ap
2. powerdown really does not have any serious dependency
3. how do you suspend in detail?


"After you do enough distro research, you will choose Arch."

Offline

Board footer

Powered by FluxBB