我有这个脚本,当某些应用程序/进程启动时,它会改变 NVIDIA-SETTINGS 的活力(在我的例子中反恐精英:全球攻势游戏)
脚本:
#!/bin/bash
on="1023"
off="0"
dv="0"
# RESET
sleep 10
log "RESET"
nvidia-settings -a "[gpu:0]/DigitalVibrance[DFP-0]=$off"
while true; do #daemon mode
dv=`nvidia-settings -q "[gpu:0]/DigitalVibrance[DFP-0]" -t`
if pgrep -l csgo | grep csgo_linux
then
# log "Process csgo_linux found"
if [ $dv -eq $off ]; then
nvidia-settings -a "[gpu:0]/DigitalVibrance[DFP-0]=$on"
fi
else
# No process found
if [ $dv -eq $on ]; then
nvidia-settings -a "[gpu:0]/DigitalVibrance[DFP-0]=$off"
fi
fi
if [ $dv -eq $on ]; then
sleep 5
else
sleep 1
fi …
Run Code Online (Sandbox Code Playgroud) 由于 Android 是基于 Linux 的操作系统,我希望另一个基于 Linux 的操作系统 Ubuntu 支持.apk
文件,但事实并非如此。
这是为什么?