startup.sh
: run on startup (own responsibility; I added a line to~/.profile
), detect hardware and decide what to do nextnvidia.sh
: called bystartup.sh
in case the nvidia gpu is deemed activeintel.sh
: called bystartup.sh
when the pc runs on internal graphics (when no nvidia gpu is found on pci)scale.sh
: simplified api forxrandr
scaling, e.g. called byintel.sh
- lshw
- if nvidia on pci, assume nvidia
- else assume intel
- lspci
- same
- Scripts need to have execute permissions, before you can run them:
chmod 750 file.sh
x.conf -> nvidia-xconfig? https://askubuntu.com/a/217772