You are not logged in.

#276 2012-09-28 12:30:09

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: 3x+ battery life

^ Great, good you don't feel offended tongue (Belgians (in general) always feel offended when Dutchies correct them big_smile)

I'll also add a link to my script.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#277 2012-09-28 12:32:36

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,223
Website

Re: 3x+ battery life

Unia wrote:

(Belgians (in general) always feel offended when Dutchies correct them big_smile)

If you would only know how much superior we (in general) think we are, then you also would understand why we (in general) are offended when/if corrected by a dutchie wink

[But enough OT - back OT!]

Offline

#278 2012-09-28 20:51:17

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

Re: 3x+ battery life

@everyone
the latest version has a spinlock implemented.
it will prevent two powerup/down running at the same time and messing each other up.

@for udisks
kdelib uses udisks1, which (I believe) does not have udisks disable polling feature.
i dont know how to do about cd polling issue.


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

Offline

#279 2012-10-01 17:01:46

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

Re: 3x+ battery life

and about the systemd reimplementation of pm-utils?
systemctl hibernate, for example , any plan to implement systemctl hibernate, suspend support alongside of pm-utils support???

NOTEE:Read wikia for more info


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

Offline

#280 2012-10-11 04:28:26

zerostar
Member
From: Phoenix, AZ
Registered: 2009-06-18
Posts: 9

Re: 3x+ battery life

I've been using powerdown with kde for a few months now and I love it but recently I've noticed that when I close the lid to my laptop it no longer enters hibernation instead it just locks my screen. If I manually run suspend-to-disk it works just fine though. I don't get it.

Offline

#281 2012-10-11 19:48:36

mangust
Member
From: nomad
Registered: 2010-09-18
Posts: 31

Re: 3x+ battery life

@zerostar: you should tweak this feature in KDE settings: System Settings -> Power Management and there's a field "When laptop lid closed". Choose "Sleep"


"I hate computers, why didn't I become a street musician?" - phrakture

Offline

#282 2012-10-13 18:11:48

Zucca
Member
From: KUUSANKOSKI, Finland
Registered: 2009-02-26
Posts: 135

Re: 3x+ battery life

I have dedicated partition for hibernate. Does powerrdown support that?


K.i.s.s. <3

Offline

#283 2012-10-13 19:54:34

OdinEidolon
Member
From: Belluno - Italy
Registered: 2011-01-31
Posts: 498

Re: 3x+ battery life

I use KDE and I have a problem / bug. I do not know if this is related to KDE or powerdown: if I try to set the brightness manually the computer will, after 3-4 seconds, turn back the brightness at the powerdown-set value. Anyone else having this behaviour?


Hardware: 2016 Dell XPS15 - matte FullHD - i5-6300HQ - 32GB DDR4 - Nvidia GTX960M - Samsung 840EVO 250GB SSD - 56Wh
Software: Plasma 5 - rEFInd - linux-ck - preload - prelink - verynice - psd - bumblebee

Offline

#284 2012-10-14 09:56:47

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

Re: 3x+ battery life

@Zucca
Now it does.

@OdinEidolon
powerdown only run powerdown/up when power supply is on/off. The screen brightness is controlled in kde power management. File a bug to upstream if it is annoying.


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

Offline

#285 2012-10-14 17:55:44

Zucca
Member
From: KUUSANKOSKI, Finland
Registered: 2009-02-26
Posts: 135

Re: 3x+ battery life

Thanks very much!


K.i.s.s. <3

Offline

#286 2012-10-14 20:52:57

Zucca
Member
From: KUUSANKOSKI, Finland
Registered: 2009-02-26
Posts: 135

Re: 3x+ battery life

taylorchu wrote:

@Zucca
Now it does.

However I got these problems:

]$ sudo suspend-to-disk 
1. Please add 'resume=/dev/sda2
/dev/sda8' to the boot configuration

2. Please add 'resume' hook to /etc/mkinitcpio.conf right in front of 'filesystem' hook
Run 'mkinitcpio -p linux' to regenerate kernel image

Hibernate and resume will take a long time. Have a cup of coffee...
[powerdown] cannot write disk to /sys/power/state

and digging more into it

# echo disk > /sys/power/state
bash: echo: write error: No such device

Screen blank for a few moments on both ways.

Also... this:

$ cat /sys/power/state
mem disk

So it should work..? But doesn't.

Last edited by Zucca (2012-10-14 20:53:46)


K.i.s.s. <3

Offline

#287 2012-10-15 00:02:43

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

Re: 3x+ battery life

I made a quick check and cleaned up some commands.

But i think you did not add resume= to your boot menu. (you also need to remove after that.)


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

Offline

#288 2012-10-15 00:04:51

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

Re: 3x+ battery life

I read that systemd going to deprecated compatibility against pm-utils and anythink related to it in fsvor of they own suspend implementation
powerdown support -/systemd-sleep???


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

Offline

#289 2012-10-15 04:44:49

Zucca
Member
From: KUUSANKOSKI, Finland
Registered: 2009-02-26
Posts: 135

Re: 3x+ battery life

taylorchu wrote:

I made a quick check and cleaned up some commands.

But i think you did not add resume= to your boot menu. (you also need to remove after that.)

I have it.

$ cat /proc/cmdline 
root=/dev/sda3 ro quiet resume=/dev/sda2 logo=1 i915.modeset=1 1915.1915_enable_rc6=1 pcie_aspm=force boot_delay=100 usbcore.autosuspend=-1 acerhdf initrd=../initramfs-linux.img BOOT_IMAGE=../vmlinuz-linux

But... Need to remove? Why? O.o


K.i.s.s. <3

Offline

#290 2012-10-15 09:26:28

instant
Member
Registered: 2011-02-12
Posts: 17

Re: 3x+ battery life

The powerdown script is awesome, but is there some way I can prevent it from disabling my webcam? I understand it saves power rather aggressively, but I would prefer to be able to use the cam while on battery.

Offline

#291 2012-10-15 09:30:04

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: 3x+ battery life

Remove "uvcvideo" module from rmmod'ing (look in the script)

Offline

#292 2012-10-15 10:35:53

instant
Member
Registered: 2011-02-12
Posts: 17

Re: 3x+ battery life

awesome, thanks!

Offline

#293 2012-10-15 11:08:28

n125
Member
Registered: 2011-12-30
Posts: 38

Re: 3x+ battery life

I noticed that /usr/bin/powerdown runs the following hdparm command when switching to battery:

for dev in $(awk '/^\/dev\/sd/ (print $1)' /etc/mtab); do run hdparm -B 1 -S12 $dev; done

As a result, I am hearing my hard drive spin up more frequently than normal. I don't mind this while my laptop is running on battery power, but when it's running on AC power, I think less aggressive power-saving would be more appropriate and silent. Looking into /usr/bin/powerup, which I am thinking is read when switching to AC power, there doesn't seem to be a command to increase the hdparm -B setting, which is what the wiki suggests doing in order to eliminate hard drive spin noise. I haven't used hdparm before, so would it be safe to add the following line to /usr/bin/powerup?

for dev in $(awk '/^\/dev\/sd/ (print $1)' /etc/mtab); do run hdparm -B 128 -S12 $dev; done

Also, I am a little confused about hdparm -S. I have read the entry about it in the manual but I'm still unclear about how to use this option in practice (e.g., -S and -B Seem very similar, so what are appropriate -S values to use in conjunction with -B values of 1, 128, 254, and 255?)

Offline

#294 2012-10-15 11:10:36

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: 3x+ battery life

It's safe to add that to /usr/bin/powerup, yes. In my own script, I use these values for when I'm on AC:

hdparm -S 0 -B 254 -a 2048 /dev/sda &> /dev/null

If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#295 2012-10-15 19:20:14

Zucca
Member
From: KUUSANKOSKI, Finland
Registered: 2009-02-26
Posts: 135

Re: 3x+ battery life

Got it!
Hibernate swap patition needs to be mounted (in use?) for hibernate to work. Have to say... Using hibernate with SSD isn't that painful.

Last edited by Zucca (2012-10-15 19:20:49)


K.i.s.s. <3

Offline

#296 2012-10-16 09:56:43

n125
Member
Registered: 2011-12-30
Posts: 38

Re: 3x+ battery life

@Unia, thanks! I made the change and nothing exploded. I might tweak the settings some more then...

Offline

#297 2012-10-16 10:40:46

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: 3x+ battery life

n125 wrote:

@Unia, thanks! I made the change and nothing exploded. I might tweak the settings some more then...

Hehehe, tedious process it is tongue I've been there myself, reading lots of little bits of information on the internet. If you want inspiration, see mine:

https://github.com/Unia/powersave


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#298 2012-10-16 15:47:16

Zucca
Member
From: KUUSANKOSKI, Finland
Registered: 2009-02-26
Posts: 135

Re: 3x+ battery life

suspend-hybrid-only problem:

rtcwake: wakeup from "mem" using /dev/rtc0 at Tue Oct 16 01:39:07 2012
cannot acquire lock: /tmp/powerdown.lock

So. Hibernate and suspend works fine now. hybrid fails between waking from suspend and going to hibernate.
(Should I say suspend-to-disk rather than hibernate... IIRC hibernate is M$ way to say that... o.o)

I guess I could give you my sysinfo now:

System:    Host: Mieu Kernel: 3.5.5-1-ARCH x86_64 (64 bit) Desktop: Awesome 3.4.13 Distro: Arch Linux
Machine:   System: Acer product: Aspire 1810TZ version: v1.3314
           Mobo: Acer model: JM11-MS Bios: INSYDE version: v1.3314 date: 08/31/2010
CPU:       Dual core Intel CPU U4100 (-MCP-) cache: 2048 KB flags: (lm nx sse sse2 sse3 ssse3) 
           Clock Speeds: 1: 1200.00 MHz 2: 1200.00 MHz
Graphics:  Card: Intel Mobile 4 Series Chipset Integrated Graphics Controller 
           X.Org: 1.12.4 driver: intel Resolution: 1366x768@60.0hz 
           GLX Renderer: Mesa DRI Mobile Intel GM45 Express Chipset GLX Version: 2.1 Mesa 8.0.4
Audio:     Card: Intel 82801I (ICH9 Family) HD Audio Controller driver: snd_hda_intel Sound: ALSA ver: 1.0.25
Network:   Card-1: Atheros AR8131 Gigabit Ethernet driver: atl1c 
           IF: eth0 state: down mac: <filter>
           Card-2: Intel Centrino Wireless-N 1000 driver: iwlwifi 
           IF: wlan0 state: up mac: <filter>
Drives:    HDD Total Size: 256.1GB (29.8% used) 1: id: /dev/sda model: SAMSUNG_SSD_830 size: 256.1GB 
Partition: ID: / size: 32G used: 6.9G (23%) fs: btrfs ID: /boot size: 248M used: 21M (9%) fs: ext2 
           ID: /var size: 32G used: 5.9G (20%) fs: btrfs ID: /home size: 149G used: 59G (41%) fs: btrfs 
           ID: swap-1 size: 8.11GB used: 0.00GB (0%) fs: swap ID: swap-2 size: 4.40GB used: 0.00GB (0%) fs: swap 
Sensors:   System Temperatures: cpu: 40.0C mobo: N/A 
           Fan Speeds (in rpm): cpu: N/A 
Info:      Processes: 181 Uptime: 22:53 Memory: 745.7/3861.7MB Client: Shell inxi: 1.8.17

K.i.s.s. <3

Offline

#299 2012-10-18 17:12:23

djura
Member
Registered: 2011-04-24
Posts: 13

Re: 3x+ battery life

I've recently installed powerdown, and I must say that I did see some improvements. But I do have a few issues suggestions:

When running "powerdown" script, I see following errors:

[powerdown] cannot run iw dev wlan0 set power_save on
[powerdown] cannot unload module bluetooth

The first error has 2 reasons: powerdown uses "iw" command, which was not installed on my system, and my wireless card is actually eth0. When I installed iw package, and changed card name, it worked.
I think there should be "iw" dependency for powerdown. Also, the script should inspect which card has wireless extension, and use it to set power management.

Regarding bluetooth, it seems that module bluetooth is in use and can't be unloaded. Maybe it's just on my machine, but it may be worth looking at.

Offline

#300 2012-10-21 00:06:38

n125
Member
Registered: 2011-12-30
Posts: 38

Re: 3x+ battery life

Since powerdown is giving me this error, I'm guessing that my hardware doesn't have rc6 support as per this reply. Is there a way to check to make sure?

[powerdown] cannot write 1 to /sys/module/i915/parameters/i915_enable_rc6

I ask because /sys/module/i915/parameters/i915_enable_rc6 actually exists and already has a value of 1. So I am wondering why that is if powerdown supposedly thinks my hardware doesn't have rc6 support.

Offline

Board footer

Powered by FluxBB