PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : arch und cpufreq



Lololo
08.05.08, 21:20
Hallo,
ich probiere mich hier gerade mal an Arch und habe ein paar Schwierigkeiten. Ich möchte cpufreq einsetzen und manuell funktioniert es auch, also wenn ich

modprobe acpi_cpufreq
und

/etc/rc.d/cpufreq start
eingebe ist alles in Ordnung und cpufreq-info gibt die Frequenz aus, die ich als minimale Frequenz eingestellt habe. Ich möchte aber, dass das automatisch beim Booten geschieht, also habe ich die /etc/rc.conf angepasst:


MODULES=(atl2 ath_hal ath_pci wlan snd-mixer-oss snd-pcm-oss snd-hwdep
snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore acpi-cpufreq cpufreq_ondemand)
und

DAEMONS=(syslog-ng dbus wicd hal netfs crond alsa cpufreq)

Allerdings funktioniert das nicht, sprich acpi_cpufreq ist nach dem Booten nicht geladen.

Weiß jemand was ich falsch mache?

Edit: Habe gerade gesehen, dass beim Booten eine Fehlermeldung kommt, dass das Modul nicht geladen werden konnte. "No such device"

lg Lololo

Weteor
09.05.08, 08:29
Hi!

Müsste es in der MODULES Zeile nicht auch wie oben bei modprobe acpi_cpufreq heißen?

Gruß Weteor

Rain_maker
09.05.08, 09:18
Müsste es in der MODULES Zeile nicht auch wie oben bei modprobe acpi_cpufreq heißen?

Nein

567890

Susu
09.05.08, 09:43
Ich nutze das über den scaling govenor. In meiner rc.local einfach folgendes reingehauen:
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Lololo
09.05.08, 11:56
@Susu: Der Befehl funktioniert aber erst, wenn acpi_cpufreq geladen ist.

Also ich habe jetzt eine unschöne Lösung gefunden. Als erstes habe ich die zwei Befehle in die rc.local eingetragen, hatte damit aber keinen Erfolg. Irgendwie habe ich festgestellt, dass wenn ich acpi-cpufreq aus der rc.conf entferne, das Laden des Moduls auch manuell nicht beim ersten Versuch klappt, sondern erst beim Zweiten. Das brachte mich auf die Idee, dass der Befehl vielleicht zweimal ausgeführt werden muss und dann habe ich folgendes in meine rc.local geschrieben:

modprobe acpi-cpufreq &
modprobe acpi-cpufreq &
/etc/rc.d/cpufreq start &
Das ist total dämlich, aber es funktioniert! :)

lg Lololo

m.o.o.
09.05.08, 12:28
Dass das Laden des acpi_cpufreq-Moduls erst beim zweiten Versuch klappt habe ich auch schon irgendwo mal gelesen hier. Hier klappt es beim ersten Versuch.

Welche Fehlermeldung erscheint denn beim ersten manuellen Ladeversuch (Ausgabe von modprobe)?

Lololo
09.05.08, 13:28
Das ist die Fehlermeldung:

FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.24-ARCH/kernel/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.ko): No such device

wie gesagt, beim zweiten Mal funktioniert es dann, ohne dass irgendetwas geändert wurde.

:confused:

m.o.o.
09.05.08, 13:49
Kannst du zusätzlich noch die Ausgabe von lsmod vor und nach dem ersten Ausführen von "modprobe acpi_cpufreq" mal posten? Musst ja nicht gleich machen, sondern erst beim nächsten Booten.

Lololo
09.05.08, 13:58
[blacki@arch ~]$ lsmod
Module Size Used by
usb_storage 83648 0
joydev 10048 0
i2c_piix4 7948 0
psmouse 37136 0
fglrx 1546828 20
pcspkr 2944 0
serio_raw 5636 0
ehci_hcd 33804 0
i2c_core 19584 1 i2c_piix4
ohci_hcd 22020 0
video 16016 0
asus_laptop 16248 0
output 3200 1 video
shpchp 29716 0
led_class 3332 1 asus_laptop
pci_hotplug 26272 1 shpchp
ati_agp 7180 0
agpgart 28120 2 fglrx,ati_agp
sg 26896 0
thermal 12956 0
processor 29144 3 thermal
fan 3844 0
evdev 9344 7
button 6544 0
battery 10756 0
ac 4612 0
cpufreq_ondemand 7180 0
freq_table 4112 1 cpufreq_ondemand
snd_seq_oss 30336 0
snd_seq_midi_event 6656 1 snd_seq_oss
snd_seq 48464 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 6796 2 snd_seq_oss,snd_seq
snd_hda_intel 292000 2
snd_hwdep 7556 1 snd_hda_intel
snd_pcm_oss 38432 0
snd_pcm 70404 2 snd_hda_intel,snd_pcm_oss
snd_timer 19588 2 snd_seq,snd_pcm
snd_page_alloc 8072 2 snd_hda_intel,snd_pcm
snd_mixer_oss 14848 1 snd_pcm_oss
snd 46436 13 snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,s nd_hwdep,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_o ss
soundcore 6496 1 snd
wlan_scan_sta 12800 1
ath_rate_sample 14464 1
ath_pci 183724 0
wlan 238448 4 wlan_scan_sta,ath_rate_sample,ath_pci
ath_hal 277856 3 ath_rate_sample,ath_pci
atl2 25880 0
rtc_cmos 7712 0
rtc_core 15752 1 rtc_cmos
rtc_lib 3072 1 rtc_core
usbcore 128620 4 usb_storage,ehci_hcd,ohci_hcd
ext3 124040 2
jbd 44308 1 ext3
mbcache 7168 1 ext3
sr_mod 15268 0
cdrom 34080 1 sr_mod
sd_mod 23168 4
ahci 23812 3
ata_generic 5380 0
pata_atiixp 5888 0
pata_acpi 5248 0
libata 141424 4 ahci,ata_generic,pata_atiixp,pata_acpi
[blacki@arch ~]$ sudo modprobe acpi-cpufreq
FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.24-ARCH/kernel/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.ko): No such device
[blacki@arch ~]$ lsmod
Module Size Used by
usb_storage 83648 0
joydev 10048 0
i2c_piix4 7948 0
psmouse 37136 0
fglrx 1546828 20
pcspkr 2944 0
serio_raw 5636 0
ehci_hcd 33804 0
i2c_core 19584 1 i2c_piix4
ohci_hcd 22020 0
video 16016 0
asus_laptop 16248 0
output 3200 1 video
shpchp 29716 0
led_class 3332 1 asus_laptop
pci_hotplug 26272 1 shpchp
ati_agp 7180 0
agpgart 28120 2 fglrx,ati_agp
sg 26896 0
thermal 12956 0
processor 29144 3 thermal
fan 3844 0
evdev 9344 7
button 6544 0
battery 10756 0
ac 4612 0
cpufreq_ondemand 7180 0
freq_table 4112 1 cpufreq_ondemand
snd_seq_oss 30336 0
snd_seq_midi_event 6656 1 snd_seq_oss
snd_seq 48464 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 6796 2 snd_seq_oss,snd_seq
snd_hda_intel 292000 2
snd_hwdep 7556 1 snd_hda_intel
snd_pcm_oss 38432 0
snd_pcm 70404 2 snd_hda_intel,snd_pcm_oss
snd_timer 19588 2 snd_seq,snd_pcm
snd_page_alloc 8072 2 snd_hda_intel,snd_pcm
snd_mixer_oss 14848 1 snd_pcm_oss
snd 46436 13 snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,s nd_hwdep,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_o ss
soundcore 6496 1 snd
wlan_scan_sta 12800 1
ath_rate_sample 14464 1
ath_pci 183724 0
wlan 238448 4 wlan_scan_sta,ath_rate_sample,ath_pci
ath_hal 277856 3 ath_rate_sample,ath_pci
atl2 25880 0
rtc_cmos 7712 0
rtc_core 15752 1 rtc_cmos
rtc_lib 3072 1 rtc_core
usbcore 128620 4 usb_storage,ehci_hcd,ohci_hcd
ext3 124040 2
jbd 44308 1 ext3
mbcache 7168 1 ext3
sr_mod 15268 0
cdrom 34080 1 sr_mod
sd_mod 23168 4
ahci 23812 3
ata_generic 5380 0
pata_atiixp 5888 0
pata_acpi 5248 0
libata 141424 4 ahci,ata_generic,pata_atiixp,pata_acpi
[blacki@arch ~]$ sudo modprobe acpi-cpufreq
[blacki@arch ~]$ lsmod
Module Size Used by
acpi_cpufreq 11292 0
usb_storage 83648 0
joydev 10048 0
i2c_piix4 7948 0
psmouse 37136 0
fglrx 1546828 20
pcspkr 2944 0
serio_raw 5636 0
ehci_hcd 33804 0
i2c_core 19584 1 i2c_piix4
ohci_hcd 22020 0
video 16016 0
asus_laptop 16248 0
output 3200 1 video
shpchp 29716 0
led_class 3332 1 asus_laptop
pci_hotplug 26272 1 shpchp
ati_agp 7180 0
agpgart 28120 2 fglrx,ati_agp
sg 26896 0
thermal 12956 0
processor 29144 4 acpi_cpufreq,thermal
fan 3844 0
evdev 9344 7
button 6544 0
battery 10756 0
ac 4612 0
cpufreq_ondemand 7180 0
freq_table 4112 2 acpi_cpufreq,cpufreq_ondemand
snd_seq_oss 30336 0
snd_seq_midi_event 6656 1 snd_seq_oss
snd_seq 48464 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 6796 2 snd_seq_oss,snd_seq
snd_hda_intel 292000 2
snd_hwdep 7556 1 snd_hda_intel
snd_pcm_oss 38432 0
snd_pcm 70404 2 snd_hda_intel,snd_pcm_oss
snd_timer 19588 2 snd_seq,snd_pcm
snd_page_alloc 8072 2 snd_hda_intel,snd_pcm
snd_mixer_oss 14848 1 snd_pcm_oss
snd 46436 13 snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,s nd_hwdep,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_o ss
soundcore 6496 1 snd
wlan_scan_sta 12800 1
ath_rate_sample 14464 1
ath_pci 183724 0
wlan 238448 4 wlan_scan_sta,ath_rate_sample,ath_pci
ath_hal 277856 3 ath_rate_sample,ath_pci
atl2 25880 0
rtc_cmos 7712 0
rtc_core 15752 1 rtc_cmos
rtc_lib 3072 1 rtc_core
usbcore 128620 4 usb_storage,ehci_hcd,ohci_hcd
ext3 124040 2
jbd 44308 1 ext3
mbcache 7168 1 ext3
sr_mod 15268 0
cdrom 34080 1 sr_mod
sd_mod 23168 4
ahci 23812 3
ata_generic 5380 0
pata_atiixp 5888 0
pata_acpi 5248 0
libata 141424 4 ahci,ata_generic,pata_atiixp,pata_acpi

m.o.o.
09.05.08, 16:44
Danke. Schade, ich hab gedacht das Problem ist der Art, dass der Versuch acpi-cpufreq zu laden, auch ein anderes Modul lädt, das erst dann bereit ist, wenn das Laden von acpi-cpufreq schon fehlgeschlagen ist; dem ist aber nicht so.

Gruß, Florian

mingetty
09.05.08, 19:31
Versuchs mal mit acpid:
pacman -S acpid und dann in DAEMONS=(acpid etc...)

Lololo
09.05.08, 20:56
Hallo,
acpid verwende ich auch, es steht nur nicht bei den Daemons, weil ich gelesen habe, dass hal das automatisch läd.
Cpufreq funktioniert ja jetzt auch, wenn ich es zweimal lade, aber seltsam ist das schon.

lg Lololo

Dodobo
09.05.08, 22:16
Linux (und Windows) braucht manchmal etwas Querdenken - da kann man manchmal schon stolz drauf sein, selbst auf den einen oder anderen Kniff zu kommen. :) Vor allem so unlogische Sachen...