CPU_frequency_scaling
-
- Black ninja
- Posts: 71
- Joined: 30 Dec 2015, 12:11
- Distribution: Porteus 4.0 XFCE
- Location: Austria
CPU_frequency_scaling
How can I change the governor.
I see, that the cpu scales with " watch grep \"cpu MHz\" /proc/cpuinfo".
But there is no "cpupower" command, no "cpufreq-set" command
Maybe somebody can help me.....
I see, that the cpu scales with " watch grep \"cpu MHz\" /proc/cpuinfo".
But there is no "cpupower" command, no "cpufreq-set" command
Maybe somebody can help me.....
- francois
- Contributor
- Posts: 6435
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
CPU_frequency_scaling
Hi there, have a look here:
https://docs.slackware.com/howtos:hardw ... cy_scaling
https://docs.slackware.com/howtos:hardw ... cy_scaling
Prendre son temps, profiter de celui qui passe.
-
- Black ninja
- Posts: 71
- Joined: 30 Dec 2015, 12:11
- Distribution: Porteus 4.0 XFCE
- Location: Austria
CPU_frequency_scaling
strange, that "cpufreq-set" is not available, as mentioned in the slackware docs
so only with echo - but there is nothing to try out, because only performance and powersave are available
normally with powersave on idle destop the frequency should stay quite down, but it jumps all the time and also quite high - so I have to compare this with other distributions, if this is normal on the celeron N3050 - because the consumption of power is quite high compared to windows....
so only with echo - but there is nothing to try out, because only performance and powersave are available
Code: Select all
root@porteus:/home/guest# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
- ncmprhnsbl
- DEV Team
- Posts: 3939
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
CPU_frequency_scaling
cpufreq-set is part of the cpufrequtils package, if you want to try it, but as you say, there's not much to try..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
CPU_frequency_scaling
Hmm.. is your N3050 box using the Intel i915 driver?
If so, you may get a sliver of power saving from using this cheatcode for the display framebuffer compression:
i915.enable_fbc=1
This was thanks to the Archlinux docs about it:
https://wiki.archlinux.org/index.php/Intel_graphics
Also, perhaps running Powertop might be beneficial to spot power hogs. I've even used it in the past to quickly disable stuff (careful) to see what the effects were.
More Powertop info can be found here, along with a very useful translation option:
https://software.intel.com/en-us/articl ... -primer-1/
Other slivers of power might be saved by turning the backlight down (xbacklight etc), and running a lighter colored desktop theme for easier readability.
If so, you may get a sliver of power saving from using this cheatcode for the display framebuffer compression:
i915.enable_fbc=1
This was thanks to the Archlinux docs about it:
https://wiki.archlinux.org/index.php/Intel_graphics
Also, perhaps running Powertop might be beneficial to spot power hogs. I've even used it in the past to quickly disable stuff (careful) to see what the effects were.
More Powertop info can be found here, along with a very useful translation option:
https://software.intel.com/en-us/articl ... -primer-1/
Other slivers of power might be saved by turning the backlight down (xbacklight etc), and running a lighter colored desktop theme for easier readability.
That's a UNIX book - cool. -Garth
-
- Black ninja
- Posts: 71
- Joined: 30 Dec 2015, 12:11
- Distribution: Porteus 4.0 XFCE
- Location: Austria
CPU_frequency_scaling
I think, that this are all the errors - for example, if you open mousepad form the terminal as root, the CPU goes crazy
eg: when you open the xfce4 power manager in debug mode, it prints errors, the networkmanager prints errors, when you shut down XFCE, you can see errors....
First I have to organize a new usb-stick to try other distros, to check, whats normal with this CPU and then see, whats possible......
eg: when you open the xfce4 power manager in debug mode, it prints errors, the networkmanager prints errors, when you shut down XFCE, you can see errors....
First I have to organize a new usb-stick to try other distros, to check, whats normal with this CPU and then see, whats possible......
-
- Black ninja
- Posts: 71
- Joined: 30 Dec 2015, 12:11
- Distribution: Porteus 4.0 XFCE
- Location: Austria
CPU_frequency_scaling
I found a free stick, where I installed Lubuntu with kernel 4.17 and the cpu frequency in Porteus is NOT normal
and of course I used all powertop possibilities and the i915 cheatcode....
I try to do some measurements next days....
- in Lubuntu in powersave mode both CPUs never go higher than 1000MHZ - whatever normal work you do
- in Porteus in powersave mode 1.CPU is quite normal - second CPU is absolut to high - it never goes under 1500MHZ even on idle desktop
and of course I used all powertop possibilities and the i915 cheatcode....
I try to do some measurements next days....
-
- Black ninja
- Posts: 71
- Joined: 30 Dec 2015, 12:11
- Distribution: Porteus 4.0 XFCE
- Location: Austria
CPU_frequency_scaling
One more thing - powertop is not working correctly, because cpufreq_stats is not configured in the kernel
Code: Select all
root@porteus:/home/guest# powertop
modprobe cpufreq_stats failedLoaded 0 prior measurements
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask 5
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask 5
Devfreq not enabled
Leaving PowerTOP
-
- Black ninja
- Posts: 71
- Joined: 30 Dec 2015, 12:11
- Distribution: Porteus 4.0 XFCE
- Location: Austria
CPU_frequency_scaling
rethinking the whole problem last night - that the bottom of the laptop with porteus feels wormer can also be conected to my sandisk ultra fit USB-stick - it gets really hot, just when it is plugged in..... - smallness has its value.
So first test is finished - of course with Porteus started at 9:25 and let the system run with black screen until 10% of the battery level
and it stooped at 19:49:36
so 10:24:36 - so what will be the difference????
So first test is finished - of course with Porteus started at 9:25 and let the system run with black screen until 10% of the battery level
Code: Select all
<channel name="xfce4-power-manager" version="1.0">
<property name="xfce4-power-manager" type="empty">
<property name="presentation-mode" type="bool" value="false"/>
<property name="dpms-sleep-mode" type="string" value="Standby"/>
<property name="lock-screen-suspend-hibernate" type="bool" value="false"/>
<property name="power-button-action" type="uint" value="0"/>
<property name="critical-power-action" type="uint" value="1"/>
<property name="brightness-switch-restore-on-exit" type="int" value="1"/>
<property name="brightness-switch" type="int" value="0"/>
<property name="blank-on-ac" type="int" value="10"/>
<property name="dpms-on-ac-sleep" type="uint" value="0"/>
<property name="lid-action-on-battery" type="uint" value="1"/>
<property name="logind-handle-lid-switch" type="bool" value="false"/>
<property name="lid-action-on-ac" type="uint" value="1"/>
<property name="inactivity-sleep-mode-on-battery" type="uint" value="1"/>
<property name="critical-power-level" type="uint" value="10"/>
</property>
</channel>
Code: Select all
Initial commandline parameters:
Wed May 15 19:49:34 Local time zone must be set--see zic manual page 2019: Running hooks for suspend.
Running hook /usr/lib64/pm-utils/sleep.d/00logging suspend suspend:
Linux porteus 4.16.3-porteus #1 SMP PREEMPT Sat Apr 21 12:42:52 Local time zone must be set-- x86_64 Intel(R) Celeron(R) CPU N3050 @ 1.60GHz GenuineIntel GNU/Linux
Module Size Used by
msr 12288 0
ccm 16384 3
ipv6 311296 18
snd_hda_codec_hdmi 40960 1
snd_hda_codec_realtek 69632 1
snd_hda_codec_generic 53248 1 snd_hda_codec_realtek
uvcvideo 73728 0
videobuf2_vmalloc 12288 1 uvcvideo
videobuf2_memops 12288 1 videobuf2_vmalloc
videobuf2_v4l2 20480 1 uvcvideo
videobuf2_common 32768 2 uvcvideo,videobuf2_v4l2
hid_multitouch 20480 0
btusb 36864 0
btrtl 12288 1 btusb
btbcm 12288 1 btusb
btintel 12288 1 btusb
bluetooth 286720 5 btrtl,btintel,btbcm,btusb
ecdh_generic 16384 1 bluetooth
arc4 12288 2
intel_rapl 16384 0
coretemp 12288 0
kvm_intel 131072 0
iwlmvm 196608 0
kvm 286720 1 kvm_intel
mac80211 315392 1 iwlmvm
irqbypass 12288 1 kvm
crct10dif_pclmul 12288 0
crc32_pclmul 12288 0
crc32c_intel 16384 0
ghash_clmulni_intel 12288 0
acer_wmi 20480 0
sparse_keymap 12288 1 acer_wmi
pcbc 12288 0
i915 1110016 7
iwlwifi 155648 1 iwlmvm
aesni_intel 159744 2
cfg80211 229376 3 iwlmvm,iwlwifi,mac80211
aes_x86_64 16384 1 aesni_intel
crypto_simd 12288 1 aesni_intel
glue_helper 12288 1 aesni_intel
snd_hda_intel 28672 3
snd_hda_codec 81920 4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
cryptd 16384 3 crypto_simd,ghash_clmulni_intel,aesni_intel
snd_hda_core 45056 5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep 12288 1 snd_hda_codec
r8169 61440 0
intel_cstate 12288 0
snd_pcm 65536 4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
input_leds 12288 0
rfkill 20480 5 bluetooth,acer_wmi,cfg80211
mii 12288 1 r8169
processor_thermal_device 12288 0
led_class 12288 3 iwlmvm,input_leds,acer_wmi
mei_txe 16384 0
mei 45056 1 mei_txe
shpchp 28672 0
i2c_i801 20480 0
snd_timer 24576 1 snd_pcm
intel_soc_dts_iosf 12288 1 processor_thermal_device
intel_gtt 16384 1 i915
fan 12288 0
i2c_hid 16384 0
wmi 16384 1 acer_wmi
i2c_designware_platform 12288 0
i2c_designware_core 12288 1 i2c_designware_platform
pwm_lpss_platform 12288 0
pwm_lpss 12288 1 pwm_lpss_platform
int3403_thermal 12288 0
int340x_thermal_zone 12288 2 int3403_thermal,processor_thermal_device
int3400_thermal 12288 0
acpi_thermal_rel 12288 1 int3400_thermal
total used free shared buff/cache available
Mem: 7998856 235424 7405272 30848 358160 7326628
Swap: 8248316 0 8248316
/usr/lib64/pm-utils/sleep.d/00logging suspend suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/00powersave suspend suspend:
/usr/lib64/pm-utils/sleep.d/00powersave suspend suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/01grub suspend suspend:
/usr/lib64/pm-utils/sleep.d/01grub suspend suspend: not applicable.
Running hook /usr/lib64/pm-utils/sleep.d/49bluetooth-generic suspend suspend:
/usr/lib64/pm-utils/sleep.d/49bluetooth-generic suspend suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/49bluetooth-ibm suspend suspend:
/usr/lib64/pm-utils/sleep.d/49bluetooth-ibm suspend suspend: not applicable.
Running hook /usr/lib64/pm-utils/sleep.d/49tlp suspend suspend:
/usr/lib64/pm-utils/sleep.d/49tlp suspend suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/55NetworkManager suspend suspend:
Having NetworkManager put all interaces to sleep...method return time=1557949775.774803 sender=:1.0 -> destination=:1.55 serial=13393 reply_serial=2
Done.
/usr/lib64/pm-utils/sleep.d/55NetworkManager suspend suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/75modules suspend suspend:
/usr/lib64/pm-utils/sleep.d/75modules suspend suspend: not applicable.
Running hook /usr/lib64/pm-utils/sleep.d/90clock suspend suspend:
/usr/lib64/pm-utils/sleep.d/90clock suspend suspend: not applicable.
Running hook /usr/lib64/pm-utils/sleep.d/94cpufreq suspend suspend:
/usr/lib64/pm-utils/sleep.d/94cpufreq suspend suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/95led suspend suspend:
/usr/lib64/pm-utils/sleep.d/95led suspend suspend: not applicable.
Running hook /usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
Kernel modesetting video driver detected, not using quirks.
/usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/99video suspend suspend:
kernel.acpi_video_flags = 0
/usr/lib64/pm-utils/sleep.d/99video suspend suspend: success.
Wed May 15 19:49:36 Local time zone must be set--see zic manual page 2019: performing suspend
Wed May 15 19:53:58 Local time zone must be set--see zic manual page 2019: Awake.
Wed May 15 19:53:58 Local time zone must be set--see zic manual page 2019: Running hooks for resume
Running hook /usr/lib64/pm-utils/sleep.d/99video resume suspend:
/usr/lib64/pm-utils/sleep.d/99video resume suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler resume suspend:
/usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler resume suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/95led resume suspend:
/usr/lib64/pm-utils/sleep.d/95led resume suspend: not applicable.
Running hook /usr/lib64/pm-utils/sleep.d/94cpufreq resume suspend:
/usr/lib64/pm-utils/sleep.d/94cpufreq resume suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/90clock resume suspend:
/usr/lib64/pm-utils/sleep.d/90clock resume suspend: not applicable.
Running hook /usr/lib64/pm-utils/sleep.d/75modules resume suspend:
Reloaded unloaded modules.
/usr/lib64/pm-utils/sleep.d/75modules resume suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/55NetworkManager resume suspend:
Having NetworkManager wake interfaces back up...method return time=1557950038.428154 sender=:1.0 -> destination=:1.57 serial=13477 reply_serial=2
Done.
/usr/lib64/pm-utils/sleep.d/55NetworkManager resume suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/49tlp resume suspend:
/usr/lib64/pm-utils/sleep.d/49tlp resume suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/49bluetooth-ibm resume suspend:
/usr/lib64/pm-utils/sleep.d/49bluetooth-ibm resume suspend: not applicable.
Running hook /usr/lib64/pm-utils/sleep.d/49bluetooth-generic resume suspend:
/usr/lib64/pm-utils/sleep.d/49bluetooth-generic resume suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/01grub resume suspend:
/usr/lib64/pm-utils/sleep.d/01grub resume suspend: not applicable.
Running hook /usr/lib64/pm-utils/sleep.d/00powersave resume suspend:
/usr/lib64/pm-utils/sleep.d/00powersave resume suspend: success.
Running hook /usr/lib64/pm-utils/sleep.d/00logging resume suspend:
/usr/lib64/pm-utils/sleep.d/00logging resume suspend: success.
Wed May 15 19:53:59 Local time zone must be set--see zic manual page 2019: Finished.
-
- Black ninja
- Posts: 71
- Joined: 30 Dec 2015, 12:11
- Distribution: Porteus 4.0 XFCE
- Location: Austria
CPU_frequency_scaling
does not work with Lubuntu - systemd has its own life and does a lot of things in the background..... started at 13:22 and at 5:37 still running / more than 16 hours....
but there are a lot of pm-suspend entries jn the kernel log
so I have to find another live/CD without systemd
but there are a lot of pm-suspend entries jn the kernel log
Code: Select all
May 17 10:53:43 lubuntu kernel: [ 2077.565976] wlp2s0: associated
May 17 10:53:43 lubuntu kernel: [ 2077.582561] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
May 17 12:34:23 lubuntu kernel: [ 8117.479203] perf: interrupt took too long (2527 > 2500), lowering kernel.perf_event_max_sample_rate to 79000
May 18 00:50:02 lubuntu kernel: [52256.738137] wlp2s0: deauthenticating from a4:b1:e9:96:a5:f5 by local choice (Reason: 3=DEAUTH_LEAVING)
May 18 00:50:02 lubuntu kernel: [52256.821584] PM: suspend entry (deep)
May 18 00:50:02 lubuntu kernel: [52256.821594] PM: Syncing filesystems ... done.
May 18 04:48:07 lubuntu kernel: [52256.823961] Freezing user space processes ... (elapsed 0.014 seconds) done.
May 18 04:48:07 lubuntu kernel: [52256.838597] OOM killer disabled.
May 18 04:48:07 lubuntu kernel: [52256.838599] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
May 18 04:48:07 lubuntu kernel: [52256.840225] Suspending console(s) (use no_console_suspend to debug)
May 18 04:48:07 lubuntu kernel: [52257.917358] ACPI: EC: interrupt blocked
May 18 04:48:07 lubuntu kernel: [52257.954182] ACPI: Preparing to enter system sleep state S3
May 18 04:48:07 lubuntu kernel: [52257.964421] ACPI: EC: event blocked
May 18 04:48:07 lubuntu kernel: [52257.964423] ACPI: EC: EC stopped
May 18 04:48:07 lubuntu kernel: [52257.964434] PM: Saving platform NVS memory
May 18 04:48:07 lubuntu kernel: [52257.965469] Disabling non-boot CPUs ...
May 18 04:48:07 lubuntu kernel: [52257.980267] smpboot: CPU 1 is now offline
May 18 04:48:07 lubuntu kernel: [52257.981802] ACPI: Low-level resume complete
May 18 04:48:07 lubuntu kernel: [52257.981887] ACPI: EC: EC started
May 18 04:48:07 lubuntu kernel: [52257.981889] PM: Restoring platform NVS memory
May 18 04:48:07 lubuntu kernel: [52257.983047] Enabling non-boot CPUs ...
May 18 04:48:07 lubuntu kernel: [52257.983326] x86: Booting SMP configuration:
May 18 04:48:07 lubuntu kernel: [52257.983329] smpboot: Booting Node 0 Processor 1 APIC 0x4
May 18 04:48:07 lubuntu kernel: [52257.983771] cache: parent cpu1 should not be sleeping
May 18 04:48:07 lubuntu kernel: [52257.984878] CPU1 is up
May 18 04:48:07 lubuntu kernel: [52257.986334] ACPI: Waking up from system sleep state S3
May 18 04:48:07 lubuntu kernel: [52258.228192] ACPI: EC: interrupt unblocked
May 18 04:48:07 lubuntu kernel: [52259.296802] ACPI: EC: event unblocked
May 18 04:48:07 lubuntu kernel: [52259.596748] usb 1-4: reset full-speed USB device number 4 using xhci_hcd
May 18 04:48:07 lubuntu kernel: [52259.872177] usb 1-3: reset high-speed USB device number 3 using xhci_hcd
May 18 04:48:07 lubuntu kernel: [52260.152069] usb 1-5: reset full-speed USB device number 5 using xhci_hcd
May 18 04:48:07 lubuntu kernel: [52260.309562] acpi LNXPOWER:03: Turning OFF
May 18 04:48:07 lubuntu kernel: [52260.309818] acpi LNXPOWER:02: Turning OFF
May 18 04:48:07 lubuntu kernel: [52260.310133] acpi LNXPOWER:00: Turning OFF
May 18 04:48:07 lubuntu kernel: [52260.310227] OOM killer enabled.
May 18 04:48:07 lubuntu kernel: [52260.310231] Restarting tasks ... done.
May 18 04:48:07 lubuntu kernel: [52260.338485] thermal thermal_zone7: failed to read out thermal zone (-61)
May 18 04:48:07 lubuntu kernel: [52260.342570] PM: suspend exit
May 18 04:48:07 lubuntu kernel: [52260.362749] Bluetooth: hci0: read Intel version: 370810011003110e00
May 18 04:48:07 lubuntu kernel: [52260.362770] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
May 18 04:48:07 lubuntu kernel: [52260.681897] Bluetooth: hci0: Intel firmware patch completed and activated
May 18 04:48:07 lubuntu kernel: [52260.751725] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
May 18 04:48:07 lubuntu kernel: [52260.814501] r8169 0000:01:00.0 enp1s0: link down
May 18 04:48:07 lubuntu kernel: [52260.815106] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
May 18 04:48:07 lubuntu kernel: [52260.839741] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
May 18 04:48:07 lubuntu kernel: [52260.955068] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
May 18 04:48:08 lubuntu kernel: [52261.458028] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
May 18 04:48:12 lubuntu kernel: [52265.866183] wlp2s0: authenticate with a4:b1:e9:96:a5:f5
May 18 04:48:12 lubuntu kernel: [52265.872900] wlp2s0: send auth to a4:b1:e9:96:a5:f5 (try 1/3)
May 18 04:48:13 lubuntu kernel: [52265.984058] wlp2s0: send auth to a4:b1:e9:96:a5:f5 (try 2/3)
May 18 04:48:13 lubuntu kernel: [52265.986329] wlp2s0: authenticated
May 18 04:48:13 lubuntu kernel: [52265.987979] wlp2s0: associate with a4:b1:e9:96:a5:f5 (try 1/3)
May 18 04:48:13 lubuntu kernel: [52265.993665] wlp2s0: RX AssocResp from a4:b1:e9:96:a5:f5 (capab=0x411 status=0 aid=1)
May 18 04:48:13 lubuntu kernel: [52266.001485] wlp2s0: associated
May 18 04:48:13 lubuntu kernel: [52266.023465] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
May 18 05:37:18 lubuntu kernel: [55211.071496] acpi device:17: Cannot transition to power state D3hot for parent in (unknown)
May 18 05:37:19 lubuntu kernel: [55212.067350] wlp2s0: deauthenticating from a4:b1:e9:96:a5:f5 by local choice (Reason: 3=DEAUTH_LEAVING)
May 18 05:37:19 lubuntu kernel: [55212.104116] pci_bus 0000:01: Allocating resources
May 18 05:37:19 lubuntu kernel: [55212.104259] pcieport 0000:00:1c.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 01] add_size 200000 add_align 100000
May 18 05:37:19 lubuntu kernel: [55212.104347] pci_bus 0000:02: Allocating resources
May 18 05:37:19 lubuntu kernel: [55212.104472] pcieport 0000:00:1c.1: bridge window [io 0x1000-0x0fff] to [bus 02] add_size 1000
May 18 05:37:19 lubuntu kernel: [55212.104512] pcieport 0000:00:1c.1: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 02] add_size 200000 add_align 100000
May 18 05:37:19 lubuntu kernel: [55212.104701] pcieport 0000:00:1c.0: BAR 15: assigned [mem 0x91500000-0x916fffff 64bit pref]
May 18 05:37:19 lubuntu kernel: [55212.104807] pcieport 0000:00:1c.1: BAR 15: assigned [mem 0x91700000-0x918fffff 64bit pref]
May 18 05:37:19 lubuntu kernel: [55212.104871] pcieport 0000:00:1c.1: BAR 13: assigned [io 0x3000-0x3fff]
May 18 05:37:19 lubuntu kernel: [55212.808397] PM: suspend entry (deep)
May 18 05:37:24 lubuntu kernel: [55212.808407] PM: Syncing filesystems ... done.
May 18 05:37:24 lubuntu kernel: [55212.814432] Freezing user space processes ... (elapsed 0.005 seconds) done.
May 18 05:37:24 lubuntu kernel: [55212.820157] OOM killer disabled.
May 18 05:37:24 lubuntu kernel: [55212.820164] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
May 18 05:37:24 lubuntu kernel: [55212.821950] Suspending console(s) (use no_console_suspend to debug)
May 18 05:37:24 lubuntu kernel: [55213.215063] ACPI: EC: interrupt blocked
May 18 05:37:24 lubuntu kernel: [55213.253342] ACPI: Preparing to enter system sleep state S3
May 18 05:37:24 lubuntu kernel: [55213.268367] ACPI: EC: event blocked
May 18 05:37:24 lubuntu kernel: [55213.268372] ACPI: EC: EC stopped
May 18 05:37:24 lubuntu kernel: [55213.268378] PM: Saving platform NVS memory
May 18 05:37:24 lubuntu kernel: [55213.269103] Disabling non-boot CPUs ...
May 18 05:37:24 lubuntu kernel: [55213.288165] smpboot: CPU 1 is now offline
May 18 05:37:24 lubuntu kernel: [55213.291187] ACPI: Low-level resume complete
May 18 05:37:24 lubuntu kernel: [55213.291279] ACPI: EC: EC started
May 18 05:37:24 lubuntu kernel: [55213.291280] PM: Restoring platform NVS memory
May 18 05:37:24 lubuntu kernel: [55213.292380] Enabling non-boot CPUs ...
May 18 05:37:24 lubuntu kernel: [55213.292606] x86: Booting SMP configuration:
May 18 05:37:24 lubuntu kernel: [55213.292615] smpboot: Booting Node 0 Processor 1 APIC 0x4
May 18 05:37:24 lubuntu kernel: [55213.293063] cache: parent cpu1 should not be sleeping
May 18 05:37:24 lubuntu kernel: [55213.294194] CPU1 is up
May 18 05:37:24 lubuntu kernel: [55213.295746] ACPI: Waking up from system sleep state S3
May 18 05:37:24 lubuntu kernel: [55213.534979] ACPI: EC: interrupt unblocked
May 18 05:37:24 lubuntu kernel: [55214.621550] ACPI: EC: event unblocked
May 18 05:37:24 lubuntu kernel: [55214.915152] usb 1-3: reset high-speed USB device number 3 using xhci_hcd
May 18 05:37:24 lubuntu kernel: [55215.191279] usb 1-5: reset full-speed USB device number 5 using xhci_hcd
May 18 05:37:24 lubuntu kernel: [55215.467723] usb 1-4: reset full-speed USB device number 4 using xhci_hcd
May 18 05:37:24 lubuntu kernel: [55215.645557] acpi LNXPOWER:03: Turning OFF
May 18 05:37:24 lubuntu kernel: [55215.646710] acpi LNXPOWER:02: Turning OFF
May 18 05:37:24 lubuntu kernel: [55215.648182] acpi LNXPOWER:00: Turning OFF
May 18 05:37:24 lubuntu kernel: [55215.648557] OOM killer enabled.
May 18 05:37:24 lubuntu kernel: [55215.648575] Restarting tasks ...
May 18 05:37:24 lubuntu kernel: [55215.699683] Bluetooth: hci0: read Intel version: 370810011003110e00
May 18 05:37:24 lubuntu kernel: [55215.700679] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
May 18 05:37:24 lubuntu kernel: [55215.722593] done.
May 18 05:37:24 lubuntu kernel: [55215.782622] thermal thermal_zone7: failed to read out thermal zone (-61)
May 18 05:37:24 lubuntu kernel: [55215.885616] PM: suspend exit
May 18 05:37:24 lubuntu kernel: [55216.025550] Bluetooth: hci0: Intel firmware patch completed and activated
May 18 05:37:25 lubuntu kernel: [55216.605137] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
May 18 05:37:25 lubuntu kernel: [55216.673435] r8169 0000:01:00.0 enp1s0: link down
May 18 05:37:25 lubuntu kernel: [55216.673655] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
May 18 05:37:25 lubuntu kernel: [55216.701805] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
May 18 05:37:25 lubuntu kernel: [55216.823043] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
May 18 05:37:26 lubuntu kernel: [55217.445920] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
May 18 05:37:30 lubuntu kernel: [55221.781966] wlp2s0: authenticate with a4:b1:e9:96:a5:f5
May 18 05:37:30 lubuntu kernel: [55221.795186] wlp2s0: send auth to a4:b1:e9:96:a5:f5 (try 1/3)
May 18 05:37:30 lubuntu kernel: [55221.799843] wlp2s0: authenticated
May 18 05:37:30 lubuntu kernel: [55221.810575] wlp2s0: associate with a4:b1:e9:96:a5:f5 (try 1/3)
May 18 05:37:30 lubuntu kernel: [55221.817001] wlp2s0: RX AssocResp from a4:b1:e9:96:a5:f5 (capab=0x411 status=0 aid=1)
May 18 05:37:30 lubuntu kernel: [55221.820624] wlp2s0: associated
May 18 05:37:30 lubuntu kernel: [55221.858691] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
May 18 06:55:55 lubuntu kernel: [59927.041932] acpi device:17: Cannot transition to power state D3hot for parent in (unknown)
May 18 06:55:57 lubuntu kernel: [59928.076258] pci_bus 0000:01: Allocating resources
May 18 06:55:57 lubuntu kernel: [59928.076660] pci_bus 0000:02: Allocating resources
CPU_frequency_scaling
Just watch out for the catch-22 of obsessing about cpufreq and power savings ...
If you are doing real work with it, say compiling a kernel, and it takes longer to do so, the overall power consumed may be the same as if you had cpufreq cranked up and the compile finishes much faster.
Which version of RC1 are you using? I've found that the XFCE version seems to react simlarly to 4.0 when I put the cpufreq xfce4 applet up near the clock ....
And this is on Atom cpu's too. Seems ok, but I haven't gone into greater depth than you have..
If you are doing real work with it, say compiling a kernel, and it takes longer to do so, the overall power consumed may be the same as if you had cpufreq cranked up and the compile finishes much faster.
Which version of RC1 are you using? I've found that the XFCE version seems to react simlarly to 4.0 when I put the cpufreq xfce4 applet up near the clock ....
And this is on Atom cpu's too. Seems ok, but I haven't gone into greater depth than you have..
That's a UNIX book - cool. -Garth
-
- Black ninja
- Posts: 71
- Joined: 30 Dec 2015, 12:11
- Distribution: Porteus 4.0 XFCE
- Location: Austria
CPU_frequency_scaling
sorry for my late answer, but I did not check, you answered here.
I think, it is not an obsession to check, if cpufreq is working properly. Its the first thing, I do. And of course, it makes no difference, when you are compiling a kernel. But it makes a difference, when you just answer emails or write texts, as I do most of the time, I use my laptop.
Compiling a kernel or rendering Videos, does another machine.
My hard job will finish in a week, so I will continue then.....
I think, it is not an obsession to check, if cpufreq is working properly. Its the first thing, I do. And of course, it makes no difference, when you are compiling a kernel. But it makes a difference, when you just answer emails or write texts, as I do most of the time, I use my laptop.
Compiling a kernel or rendering Videos, does another machine.
My hard job will finish in a week, so I will continue then.....
-
- Black ninja
- Posts: 71
- Joined: 30 Dec 2015, 12:11
- Distribution: Porteus 4.0 XFCE
- Location: Austria
CPU_frequency_scaling
it was not possible, to find another distro without systemd, where xfce4-power-manager was working ok, so I had to look for something else...
based on a script - https://github.com/jerrinfrncs/batterynotif - I did some modifications, that did what I was looking for
...
so I could also compare the Porteus openbox version with the LXDE version (the openbox-version is much better with scaling).
Here the result:
Openbox: 10h45m
Script and test started 20:45:46 - Battery level is 100%
Sleep 07:30:58 - Battery level is 5%
LXDE: 9h35m
Script and test started 23:25:29 - Battery level is 100%
Sleep 09:00:45 - Battery level is 5%
Slax - I dont like Slax very much, but Slax is absolutly top in scaling - it stays mainly on 500 Mhz - the script did not work - so I had to change:
Slax: 11h10min
Script and test started 21:17:42 - Battery level is 100%
Sleep 08:27:45 - Battery level is 5%
based on a script - https://github.com/jerrinfrncs/batterynotif - I did some modifications, that did what I was looking for
Code: Select all
#!/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin
POWERSUPPLY="/sys/class/power_supply/ADP1/online" # could be different on your system!
NOT_CHARGING="0"
logfile="/home/guest/power.log"
while true
do
STATUS=$(cat $POWERSUPPLY) #charger connected or not
battery_level=`upower -i $(upower -e | grep BAT) | grep --color=never -E percentage|xargs|cut -d' ' -f2|sed s/%//`
if [ $battery_level -ge 80 -a $STATUS = 1 ] #battery Charged
then
echo "Script and test started $(date +"%T") - Battery level is ${battery_level}%" >>$logfile
elif [ $battery_level -le 5 -a $STATUS = $NOT_CHARGING ] #battery low suspend
then
echo "Sleep $(date +"%T") - Battery level is $battery_level%" >>$logfile
sleep 2s
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
#killall sakura
fi
sleep 300
done
so I could also compare the Porteus openbox version with the LXDE version (the openbox-version is much better with scaling).
Here the result:
Openbox: 10h45m
Script and test started 20:45:46 - Battery level is 100%
Sleep 07:30:58 - Battery level is 5%
LXDE: 9h35m
Script and test started 23:25:29 - Battery level is 100%
Sleep 09:00:45 - Battery level is 5%
Slax - I dont like Slax very much, but Slax is absolutly top in scaling - it stays mainly on 500 Mhz - the script did not work - so I had to change:
Code: Select all
#!/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin
POWERSUPPLY="/sys/class/power_supply/ADP1/online" # could be different on your system!
NOT_CHARGING="0"
logfile="/home/guest/power.log"
while true
do
STATUS=$(cat $POWERSUPPLY) #charger connected or not
battery_level=$(cat /sys/class/power_supply/BAT0/capacity)
if [ $battery_level -ge 80 -a $STATUS = 1 ] #battery Charged
then
echo "Script and test started $(date +"%T") - Battery level is ${battery_level}%" >>$logfile
elif [ $battery_level -le 5 -a $STATUS = $NOT_CHARGING ] #battery low suspend
then
echo "Sleep $(date +"%T") - Battery level is $battery_level%" >>$logfile
sleep 2s
pm-suspend
fi
sleep 300
done
Script and test started 21:17:42 - Battery level is 100%
Sleep 08:27:45 - Battery level is 5%
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
CPU_frequency_scaling
An interesting script. But it doesn't work for me.
It's true I don't have the /ADP1/online file, most likely because I'm not plugged in, but I do have the /sys/class/power_supply/BAT0/capacity file.
-update-
Plugged in I have POWERSUPPLY="/sys/class/power_supply/AC/online" and power.log shows:
Code: Select all
cat: /sys/class/power_supply/ADP1/online: No such file or directory
/home/guest/Battery.sh: line 12: [: too many arguments
/home/guest/Battery.sh: line 16: [: too many arguments
Code: Select all
guest@porteus:~$ ls /sys/class/power_supply/BAT0/
alarm current_now present uevent
capacity cycle_count serial_number voltage_min_design
capacity_level device@ status voltage_now
charge_full manufacturer subsystem@
charge_full_design model_name technology
charge_now power/ type
guest@porteus:~$
Plugged in I have POWERSUPPLY="/sys/class/power_supply/AC/online" and power.log shows:
Code: Select all
Script and test started 23:46:44 - Battery level is 137%
Script and test started 23:51:44 - Battery level is 137%
Ed
-
- Full of knowledge
- Posts: 2070
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
CPU_frequency_scaling
Hi Kultex
Different system - amd (k8 i think), Porteus 4 xfce 64
scaling seems to work:
But if i use the watch command - like you do -
the MHz are constantly jumping up and down.
What if you use cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq while idle?
Different system - amd (k8 i think), Porteus 4 xfce 64
scaling seems to work:
Code: Select all
guest@porteus:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
2600000 2400000 2200000 2000000 1800000 1000000
guest@porteus:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
ondemand performance schedutil
guest@porteus:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
ondemand
guest@porteus:~$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq
1000000
1000000
Code: Select all
guest@porteus:~$ watch -n 1 "sensors && grep \"cpu MHz\" /proc/cpuinfo"
What if you use cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq while idle?