i have script that sets on my nvidia-gpu after i change in BIOS graphics from integrated to discrete
Code:
#!/bin/bash
##lspci | grep
##cp /etc/X11/10-nvidia.conf /etc/X11/xorg.conf.d/
##rm /etc/X11/xorg.conf.d/10-nvidia.conf
gpu=`lspci | grep 'VGA.*NVIDIA'`
ok="$?"
if
lspci | grep 'VGA.*NVIDIA' > /dev/null 2>&1
then
cp /etc/X11/10-nvidia.conf /etc/X11/xorg.conf.d/
else
rm /etc/X11/xorg.conf.d/10-nvidia.conf
fi
my integrated is:
Code:
lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
and turns on automatically but nvidia-driver is overwriting libGL libraries and glx works only with nvidia is there any way for storing two sets of libGL libraries and have glx-support on intel too???
ps. i am not using optimus/bumblebee, is draining battery that why i came up with gpu-switch script