Skip to content

u/rfist

In this archive from Aug 2012 to Nov 2017

1
posts
18
comments
0
media
58
score

Not sure how you can do this automatically, but I guess that udev could do it. You can create a script to toggle your laptop display on/off and assign a shortcut key to it. Xrandr is pretty simple for this.

1 points

In rc.conf I had

MODULES=(acpi-cpufreq cpufreq_ondemand)

I remember I just set the ondemand governor using 'set -c 0 -g ondemand' (also '-c 1') once and then it was saved.

Now I have /etc/modules-load.d/cpufreq-ondemand.conf file containing

cpufreq_ondemand

Looking for the loaded modules gave me this:

$ lsmod | grep cpu
acpi_cpufreq            5933  1  
mperf                   1235  1 acpi_cpufreq
processor              26567  3 acpi_cpufreq
2 points

I created a file /etc/modules-load.d/cpufreq-ondemand.conf and put the line 'cpufreq_ondemand' in there, rebooted and nothing happened. After reading on the archlinux wiki I saw that the ondemand and performance modules are built into the kernel, so there's no need to load them.

After playing around a bit I set the ondemand governor and the frequencies interval using cpufreq-set command. How do I save these settings to be active after reboot?

Here's what I have now and how I want it to be saved:

$ cpufreq-info                                          
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 1.80 GHz
  available frequency steps: 1.80 GHz, 1.80 GHz, 1.20 GHz, 800 MHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 800 MHz and 1.80 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz.
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 1
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 1.80 GHz
  available frequency steps: 1.80 GHz, 1.80 GHz, 1.20 GHz, 800 MHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 800 MHz and 1.80 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz.  
2 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.