Çözüldü i3 Config'de sudo izniyle exec kullanmak

Bu konu çözüldü olarak işaretlenmiştir. Çözülmediğini düşünüyorsanız konuyu rapor edebilirsiniz.
Çözüm
Bir bash dosyasını çalıştıracağım.

Kod:
sudo echo "performance" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
sudo cpupower frequency-set -g performance.
sudo preload

Bilmiyorum şu anda arcolinux kullanıyorum.
Bu dosyayı /lib/systemd/system/scaling_governor.servicee koy.

Kod:
[Unit]
Description=Modifies CPU governor.

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=echo "performance" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
ExecStart=cpupower frequency-set -g performance.
ExecStart=preload

[Install]
WantedBy=graphical.target
Koyduktan sonra bu komutu yaz ve yeniden başlat.
systemctl enable scaling_governor.service
Hangi komutu çalıştırıcaksın?
Hangi komutu root ile çalıştıracaksınız?
Bir bash dosyasını çalıştıracağım

Kod:
sudo echo "performance" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
sudo cpupower frequency-set -g performance
sudo preload
Eğer systemd kullanılıyorsa oraya başlangıç servisi olarak ekleyebilirsin
Bilmiyorum şuanda arcolinux kullanıyorum.
 
Son düzenleme:
Bir bash dosyasını çalıştıracağım.

Kod:
sudo echo "performance" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
sudo cpupower frequency-set -g performance.
sudo preload

Bilmiyorum şu anda arcolinux kullanıyorum.

.sh dosyası oluşturup çalıştırılabilir yapabilirsiniz.
 
Çalıştırılabilir zaten ama çalıştırınca şifre istiyor.

Tamam olması gereken bu zaten. Root yetkilerini kullanmak için şifre istemesi gerek. i3'te lxsession kullanıp kullanıcı doğrulaması yapabilirsiniz.
 
Bir bash dosyasını çalıştıracağım.

Kod:
sudo echo "performance" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
sudo cpupower frequency-set -g performance.
sudo preload

Bilmiyorum şu anda arcolinux kullanıyorum.
Bu dosyayı /lib/systemd/system/scaling_governor.servicee koy.

Kod:
[Unit]
Description=Modifies CPU governor.

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=echo "performance" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
ExecStart=cpupower frequency-set -g performance.
ExecStart=preload

[Install]
WantedBy=graphical.target
Koyduktan sonra bu komutu yaz ve yeniden başlat.
systemctl enable scaling_governor.service
 
Çözüm
Bu dosyayı /lib/systemd/system/scaling_governor.servicee koy.

Kod:
[Unit]
Description=Modifies CPU governor.

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=echo "performance" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
ExecStart=cpupower frequency-set -g performance.
ExecStart=preload

[Install]
WantedBy=graphical.target
Koyduktan sonra bu komutu yaz ve yeniden başlat.
systemctl enable scaling_governor.service
Teşekkür ederim.
 

Technopat Haberler

Yeni konular

Geri
Yukarı