You are not logged in.
@3xOSC
% pkgfile x86_energy_perf_policy community/x86_energy_perf_policy
hmm, the weird part is that this was already installed.
Offline
Spoke to soon, something in TLP and Powerdown enables the nvidia via PRIME in nouveau, back to square one
Offline
[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
no
"After you do enough distro research, you will choose Arch."
Offline
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
@I-sty, why do you want to unload bluetooth when it is in use? Also, what is output for lsblk -f ?
Offline
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
@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
@ 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
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
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
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
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
^ 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
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
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
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 ) #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
can you post your systemd-bootchart?
"After you do enough distro research, you will choose Arch."
Offline
Is there a license for this?
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
gpl2
"After you do enough distro research, you will choose Arch."
Offline
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 ) #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
System wouldn't finish to boot after I chrooted and updated the system (~700 MB packages). Dunno how to run systemctl in chroot
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 ) #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
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
Any news from taylorchu, why he removed the repository?
Last edited by up (2015-07-09 16:38:11)
Offline
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