You are not logged in.

#551 2014-03-05 07:51:29

3xOSC
Member
Registered: 2013-03-18
Posts: 107

Re: 3x+ battery life

WonderWoofy wrote:

@3xOSC

% pkgfile x86_energy_perf_policy                                                                                                                                                               
community/x86_energy_perf_policy

hmm, the weird part is that this was already installed.

Offline

#552 2014-03-05 14:04:01

Arup
Member
From: Earth
Registered: 2014-02-20
Posts: 95

Re: 3x+ battery life

Spoke to soon, something in TLP and Powerdown enables the nvidia via PRIME in nouveau, back to square one sad

Offline

#553 2014-03-16 09:13:31

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

Re: 3x+ battery life

[i-sty@laptop ~]$ sudo powerdown 
[powerdown] cannot write powersave to /sys/module/pcie_aspm/parameters/policy
[powerdown] cannot run mount -o remount,noatime /dev/sda6
modprobe: FATAL: Module bnep is in use.
[powerdown] cannot unload module bnep
modprobe: FATAL: Module bluetooth is in use.
[powerdown] cannot unload module bluetooth

Is this right?

Last edited by I-sty (2014-03-16 09:14:09)

Offline

#554 2014-03-18 15:53:27

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

Re: 3x+ battery life

no


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

Offline

#555 2014-03-23 18:24:18

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

Re: 3x+ battery life

taylorchu wrote:

no

Okay, but how can I resolve these problems?

[i-sty@laptop ~]$ sudo powerdown
[sudo] password for i-sty: 
[powerdown] cannot run mount -o remount,noatime /dev/sda6
[powerdown] cannot run mount -o remount,noatime /dev/sdb1
modprobe: FATAL: Module bnep is in use.
[powerdown] cannot unload module bnep
modprobe: FATAL: Module bluetooth is in use.
[powerdown] cannot unload module bluetooth
[i-sty@laptop ~]$ sudo powerdnow
sudo: powerdnow: command not found
[i-sty@laptop ~]$ sudo powernow
[powerdown] no battery

- /proc/sys/kernel/nmi_watchdog: 0
- /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: powersave
- /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: powersave
- /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor: powersave
- /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor: powersave
- /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/sdb1 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/dell_backlight/brightness: 3
- /sys/class/backlight/intel_backlight/brightness: 976
- videodev not loaded
- bluetooth loaded
- /sys/module/i915/parameters/i915_enable_rc6: -1
- /sys/module/i915/parameters/lvds_downclock: 0
- /sys/module/i915/parameters/i915_enable_fbc: -1
- /sys/kernel/debug/dri/0/i915_max_freq: 1100
- /sys/kernel/debug/dri/64/i915_max_freq: 1100
[i-sty@laptop ~]$ sudo powerdown
[powerdown] cannot run mount -o remount,noatime /dev/sda6
[powerdown] cannot run mount -o remount,noatime /dev/sdb1
modprobe: FATAL: Module bnep is in use.
[powerdown] cannot unload module bnep
modprobe: FATAL: Module bluetooth is in use.
[powerdown] cannot unload module bluetooth
[i-sty@laptop ~]$ 

Offline

#556 2014-03-23 20:55:04

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: 3x+ battery life

@I-sty, why do you want to unload bluetooth when it is in use?  Also, what is output for lsblk -f ?

Offline

#557 2014-03-24 02:42:33

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

Re: 3x+ battery life

Aparently the script not care if bluethot is in use or not when powerdown is used.
Maybe a check if is being used when powerdown is called could stop that warnings


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

Offline

#558 2014-03-24 14:42:27

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

Re: 3x+ battery life

frank604 wrote:

@I-sty, why do you want to unload bluetooth when it is in use?  Also, what is output for lsblk -f ?

But I don't use bluetooth.
My wifi (and the BT adapter) are disabled. I'm on laptop.

NAME   FSTYPE LABEL           UUID                                 MOUNTPOINT
sda                                                                
├─sda1 ntfs   System Reserved E0220EAB220E86AE                     
├─sda2 ntfs                   BE26105026100BD1                     
├─sda3                                                             
├─sda5 btrfs  root            2d84dcc8-042a-4056-bde2-720b278877aa /
├─sda6 ntfs   Home            220A1C870A1C5A5D                     /run/media/i-sty/Egyeb
└─sda7 swap   SWAP            e4c124f1-b01a-4f2c-aede-cfc6d1860bbf 
sdb                                                                
└─sdb1 ntfs   Filmek          E42AB6452AB61490                     /run/media/i-sty/Filmek
sdd                                                                
└─sdd1 ntfs   isti            6CA62695A6266036                     /run/media/i-sty/isti
sr0  

Offline

#559 2014-03-24 15:31:13

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: 3x+ battery life

@ I-sty, the remount fails is probably because your filesystem is ntfs.  I think you have to call upon the ntfs-3g(ish) driver to remount.  I am not knowledgeable about a ntfs linux system so maybe read more on that and see if it fixes it.  Maybe add '-t ntfs-3g' after mount?  Just a guess, hope someone with ntfs experience can answer this question for you.  Out of curiosity why are you mostly using ntfs besides root?

If you don't use bluetooth ever, just blacklist all bluetooth modules and comment out the unload/reload in the script.  The powerdown script is meant for you to modify it to your own needs and system.  Good luck!

Offline

#560 2014-03-24 22:42:14

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

Re: 3x+ battery life

powerdown should be able to recursively unload bluetooth. can you post lsmod when the problem happens?

Last edited by taylorchu (2014-03-24 22:42:26)


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

Offline

#561 2014-03-25 14:36:50

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

Re: 3x+ battery life

taylorchu wrote:

powerdown should be able to recursively unload bluetooth. can you post lsmod when the problem happens?

I disabled the bluetooth.service.
I have no errors now.

Offline

#562 2014-04-16 08:43:41

up
Member
Registered: 2012-08-14
Posts: 12

Re: 3x+ battery life

What about adding radeon dpm power management?

echo battery > /sys/class/drm/card0/device/power_dpm_state

https://wiki.archlinux.org/index.php/AT … management

I get these for the current:

[powerdown] cannot write profile to /sys/class/drm/card0/device/power_method
[powerdown] cannot write low to /sys/class/drm/card0/device/power_profile

Well, I also get these errors, can I adjust them somehow?

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

Last edited by up (2014-04-16 13:02:45)

Offline

#563 2014-04-16 11:17:27

sekret
Member
Registered: 2013-07-22
Posts: 283

Re: 3x+ battery life

Thanks for the hint! Added it to my script right away.

About your errors, please at least tell people which graphics card you use!

Offline

#564 2014-04-16 14:37:26

up
Member
Registered: 2012-08-14
Posts: 12

Re: 3x+ battery life

^ I've amd E-450 APU with integrated hd 6320 gpu and probably those first two are related to it. I changed them to the dpm equivalent.

The error about pcie_aspm is because I forgot to reboot after I added the kernel boot parameter..
But I'm not sure about the "x86_energy_perf_policy", maybe the cpu doesn't support it?

Edit:
I think it is intel only, I get this if I run it manually:

$ x86_energy_perf_policy -v powersave
AuthenticAMD != GenuineIntel

and in manual:

Support for this feature is indicated by CPUID.06H.ECX.bit3 per the Intel Architectures Software Developer's Manual.

anything equivalent for amd/apu cpus?

Last edited by up (2014-04-16 14:52:24)

Offline

#565 2014-06-07 12:05:38

poeffy
Member
Registered: 2014-06-07
Posts: 1

Re: 3x+ battery life

Hi,
@ l-sty I have the same problem with my ntfs partition, furthermore I have some problems with wlp4s0 adapter.
[xxx@xxx~]$ sudo powerdown
[powerdown] cannot run mount -o remount,noatime /dev/sda2
[powerdown] cannot run hdparm -B 1 -S 120 /dev/sdb2
[powerdown] cannot run iw dev wlp4s0 set power_save on#
does anyone have some idea? or @l-sty can you post your fix for your ntfs part?

Offline

#566 2014-06-07 17:30:23

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,089
Website

Re: 3x+ battery life

Poeffy, welcome to the forums. Please see the Forum Etiquette (Particularly the section on posting code snippets).

Posting terminal output or code snippets without code block formatting may soon become a capital offense ♥

All the best,

-HG

Offline

#567 2014-08-28 17:19:28

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: 3x+ battery life

Boot regularly hangs up while displayin "Starting powerdown@false.service".
Waiting (up to 5-10 minutes), it won't go any further
Tried another kernel with the same result.
3rd or 4th boot suddenly boots fine.

The way systemd services start I know this boot issue may very well have no link with a powerdown service. Just reporting to share and get possible ideas ;}

Specs:
Netbook, Dell Inspiron Mini 10
kernel 3.15.5-1-ck


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#568 2014-08-29 18:37:55

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

Re: 3x+ battery life

can you post your systemd-bootchart?


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

Offline

#569 2014-08-31 15:05:32

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: 3x+ battery life

Is there a license for this?


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#570 2014-08-31 23:43:30

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

Re: 3x+ battery life

gpl2


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

Offline

#571 2014-09-08 20:24:54

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: 3x+ battery life

Please excuse the delay as I was away (papers hmmm lots of administrative papers)

I'll post the systemd-bootchart as soon as I can get the netbook to boot twice as it got stuck at each boot for the last days :'-/ I'd better chroot in.
Is there any operation worth the the time to do them while chrooted?


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#572 2014-09-09 21:33:33

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: 3x+ battery life

System wouldn't finish to boot after I chrooted and updated the system (~700 MB packages). Dunno how to run systemctl in chroot hmm
Removed powerdown-git and the system boots - in Emergency mode though because of inconsistency on /home (as a note running e2fsck -b 8192 solved this issue and now i3 won't start - jeesh won't go out tonight)


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#573 2015-07-08 10:33:18

Carl Karl
Member
Registered: 2013-06-12
Posts: 231

Re: 3x+ battery life

The Git Repository is gone and though the AUR installation doesn't work anymore.
Any Ideas to get it still or a good alternative?

Offline

#574 2015-07-09 04:16:43

up
Member
Registered: 2012-08-14
Posts: 12

Re: 3x+ battery life

Any news from taylorchu, why he removed the repository?

Last edited by up (2015-07-09 16:38:11)

Offline

#575 2015-07-10 11:34:05

Carl Karl
Member
Registered: 2013-06-12
Posts: 231

Re: 3x+ battery life

Here is a quick and dirty PKGBUILD for the other repository (which was linked here before) https://github.com/securityvoodoo/powerdown-git . Works for me. Mostly. Except

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

So here's the PKGBUILD

pkgname=powerdown-git
pkgver=3
pkgrel=1
pkgdesc="simple linux powersaving script (git version)"
arch=('any')
url="https://github.com/securityvoodoo/powerdown-git"
license=('GPL2')
depends=('bash' 'iw' 'ethtool' 'hdparm' 'bc' 'x86_energy_perf_policy')
makedepends=('git')
conflicts=('pm-utils')
provides=('pm-utils')
source=("https://github.com/securityvoodoo/powerdown-git/archive/master.zip")
md5sums=('SKIP')

package() {
    cd "$srcdir/powerdown-git-master"
    mkdir "$pkgdir/usr"
    mkdir "$pkgdir/usr/bin"
    cp pm-hibernate "$pkgdir/usr/bin/"
    cp pm-is-supported "$pkgdir/usr/bin/"
    cp pm-powersave "$pkgdir/usr/bin/"
    cp pm-suspend "$pkgdir/usr/bin/"
    cp pm-suspend-hybrid "$pkgdir/usr/bin/"
    cp powerdown "$pkgdir/usr/bin/"
    cp powernow "$pkgdir/usr/bin/"
    cp powerup "$pkgdir/usr/bin/"
    cp setup-hibernate "$pkgdir/usr/bin/"
    mkdir "$pkgdir/usr/lib"
    cp powerdown-functions "$pkgdir/usr/lib/"
    mkdir "$pkgdir/usr/lib/systemd"
    mkdir "$pkgdir/usr/lib/systemd/system"
    cp powerdown@.service "$pkgdir/usr/lib/systemd/system/"
    mkdir "$pkgdir/usr/lib/udev"
    mkdir "$pkgdir/usr/lib/udev/rules.d"
    cp 99-powerdown.rules "$pkgdir/usr/lib/udev/rules.d/"
}

Use it at your own risk of course.

Offline

Board footer

Powered by FluxBB