Amd_pstate ändern nicht möglich

Hallo Leute,
ich musste notgedrungen meine sechs Jahre alte Tumbleweed Installation aufgeben und habe sie durch eine frische Installation von Slowroll ersetzt. Nach einigen Hürden die ich mit Hilfe eines Ki Chatbot’s s gut lösen konnte, da man ja dank des toten Internet nichts mehr normal findet, bin ich jetzt auf die letzte Hürde zur Einrichtung gestoßen, amd_pstate.

Standardmäßig ist amd_pstate auf active gesetzt aber ich hätte es gerne permanent beim boot auf guided. Ich habe schon die weniger “beängstigende” Methoden ausprobiert wie zum Beispiel mit Yast Bootloader (die selbe Methode die unter Tumbleweed funktionierte) aber leider ohne permanenten Erfolg.
Nun rät mir der Bot an der Grub Datei herumzupfuschen und dazu hätte ich gerne professionelle Hilfe/Rat zu dieser Methode bevor etwas schief geht. Oder eventuell gibt es einen anderen weg amd_pstate permanent auf guided zu wechseln?

  • Mit echo guided | sudo tee /sys/devices/system/cpu/amd_pstate/status lässt es sich zwar ändern aber jedoch nur bis zum beenden der Sitzung und erfordert jedes mal root Rechte.

  • amd_pstate=guided habe ich im Yast Bootloader stehen gelassen.

  • CPPC ist natürlich aktiviert.

Danke im voraus und habt ein schönes Wochenende. :blush:

Sofern du nach der Neuinstallation GRUB2-BLS oder systemd-boot benutzten solltest, so funktioniert die alte Methode nicht mehr wie gewohnt.

Was ist wäre dann die Vorgehensweise bei einer frischen Installation von Slowroll für einen dauerhaften Effekt?

Was ergeben
bootctl status

oder
grep LOADER_TYPE /etc/sysconfig/bootloader

bootctl status zeigt folgendes:

Failed to read "/boot/efi/EFI/systemd": Keine Berechtigung
Failed to open '/boot/efi/loader/loader.conf': Keine Berechtigung
System:
      Firmware: UEFI 2.70 (American Megatrends 5.17)
 Firmware Arch: x64
   Secure Boot: disabled
  TPM2 Support: yes
  Measured UKI: no
Failed to read "/boot/efi/EFI/systemd": Keine Berechtigung
Failed to open '/boot/efi/loader/loader.conf': Keine Berechtigung
System:
      Firmware: UEFI 2.70 (American Megatrends 5.17)
 Firmware Arch: x64
   Secure Boot: disabled
  TPM2 Support: yes
  Measured UKI: no
   Measured OS: no
  Boot into FW: supported
 Platform Lang: de_DE.UTF-8

Current Boot Loader:
Failed to read "/boot/efi/EFI/systemd": Keine Berechtigung
Failed to open '/boot/efi/loader/loader.conf': Keine Berechtigung
System:
      Firmware: UEFI 2.70 (American Megatrends 5.17)
 Firmware Arch: x64
   Secure Boot: disabled
  TPM2 Support: yes
  Measured UKI: no
Failed to read "/boot/efi/EFI/systemd": Keine Berechtigung
Failed to open '/boot/efi/loader/loader.conf': Keine Berechtigung
System:
      Firmware: UEFI 2.70 (American Megatrends 5.17)
Failed to read "/boot/efi/EFI/systemd": Keine Berechtigung
Failed to open '/boot/efi/loader/loader.conf': Keine Berechtigung
System:
      Firmware: UEFI 2.70 (American Megatrends 5.17)
 Firmware Arch: x64
Failed to read "/boot/efi/EFI/systemd": Keine Berechtigung
Failed to open '/boot/efi/loader/loader.conf': Keine Berechtigung
System:
      Firmware: UEFI 2.70 (American Megatrends 5.17)
 Firmware Arch: x64
   Secure Boot: disabled
  TPM2 Support: yes
  Measured UKI: no
   Measured OS: no
  Boot into FW: supported
 Platform Lang: de_DE.UTF-8

Current Boot Loader:
        Product: systemd-boot 261.2
       Features: ✓ Boot counting
                 ✓ Menu timeout control
                 ✓ One-shot menu timeout control
                 ✓ Default entry control
                 ✓ One-shot entry control
                 ✓ Support for XBOOTLDR partition
                 ✓ Support for passing random seed to OS
                 ✓ Load drop-in drivers
                 ✓ Support Type #1 sort-key field
                 ✓ Support @saved pseudo-entry
                 ✓ Support Type #1 devicetree field
                 ✓ Enroll SecureBoot keys
                 ✓ Retain SHIM protocols
                 ✓ Menu can be disabled
                 ✓ Multi-Profile UKIs are supported
                 ✓ Loader reports network boot URL
                 ✓ Support Type #1 uki field
                 ✓ Support Type #1 uki-url field
                 ✓ Loader reports active TPM2 PCR banks
                 ✓ Loader reports firmware keyboard layout
                 ✓ Loader measures SMBIOS information
      Partition: /dev/disk/by-partuuid/aa191a03-f356-4ebe-ac4e-6ec45edef29d
         Loader: └─/boot/efi//EFI/SYSTEMD/grub.efi
Keyboard Layout: n/a (not reported by firmware)
  Current Entry: opensuse-slowroll-7.2.7-1-default-1.conf
  Default Entry: opensuse-slowroll-7.2.7-1-default-1.conf

Random Seed:
 System Token: set
       Exists: Can't access /boot/efi/loader/random-seed (Keine Berechtigung)

Available Boot Loaders on ESP:
          ESP: /boot/efi (/dev/disk/by-partuuid/aa191a03-f356-4ebe-ac4e-6ec45edef29d)
         File: (can't access /boot/efi: Keine Berechtigung)

Boot Loaders Listed in EFI Variables:
        Title: openSUSE Boot Manager (systemd-boot)
           ID: 0x0002
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/aa191a03-f356-4ebe-ac4e-6ec45edef29d
         File: └─/boot/efi//EFI/SYSTEMD/SHIM.EFI

        Title: opensuse-secureboot
           ID: 0x0001
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/aa191a03-f356-4ebe-ac4e-6ec45edef29d
         File: └─/boot/efi//EFI/OPENSUSE/SHIM.EFI

        Title: opensuse-secureboot-non-nx
           ID: 0x0000
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/aa191a03-f356-4ebe-ac4e-6ec45edef29d
         File: └─/boot/efi//EFI/OPENSUSE/SHIM.NON-NX.EFI

        Title: opensuse
           ID: 0x0015
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/aa191a03-f356-4ebe-ac4e-6ec45edef29d
         File: └─/boot/efi//EFI/OPENSUSE/GRUBX64.EFI

        Title: UEFI OS
           ID: 0x0011
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/aa191a03-f356-4ebe-ac4e-6ec45edef29d
         File: └─/boot/efi//EFI/BOOT/BOOTX64.EFI

grep LOADER_TYPE /etc/sysconfig/bootloader zeigt nur:

LOADER_TYPE="systemd-boot"

Bei dir werkelt also systemd-boot.

Die Konfigurationsdatei müste dann /etc/kernel/cmdlinesein,
die du als root mit einem editor entsprechend anpassen kannst.

Danach wird mit
sudo sdbootutil update-all-entries
das Ganze scharf gestellt.

Das sollte auch einfach mit dem modernen Befehlupdate-bootloader funktionieren:

update-bootloader --add-option amd_pstate=guided
update-bootloader --config
1 Like

Der sdbootutil Befehl hat geholfen und der PC startet im guided Modus.

Der Befehl hat jetzt auch alles was unter Yast Bootloader Stande auch mit eingefügt, sprich splash=silent quiet security=selinux selinux=1 amd_pstate=guided.

So sieht die Datei jetzt aus:

initrd=\opensuse-slowroll\7.2.7-1-default\initrd-cde36680130ad2e272926a2cc511717ef3060832 root=UUID=cf7228bb-36c9-46
6e-b422-293052924737 splash=silent quiet security=selinux selinux=1 amd_pstate=guided mitigations=auto rootflags=sub
vol=@/.snapshots/1/snapshot

Das hatte jetzt auch zur folge das der Boot länger dauerte, wegen selinux nehme ich an, ich hoffe da gibt es keine künftigen Probleme.

Edit:
der Befehl sestatus zeigt nun statt “disabled” auch etwas an.

SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Memory protection checking:     actual (secure)
Max kernel policy version:      35

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.