SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
however, Since there is no vgaswitcheroo folder in /sys/kernel/debug directory I can't power off nvidia GPU permanently. Hence, I'm going to use X configuration files to achieve a persistent configuration for that purpose. But, I am not sure about location, name and content of the file. Is it suffice to make a file with xrandr.conf name in /etc/X11/xorg.conf.d/ with this line?
Code:
xrandr --setprovideroffloadsink nouveau Intel
PS: based on aforementioned article, using xrandr is more suitable than bumblebee for those who want to use open source nouveau driver (kernel 3.13 and above). Perhaps it's time to modify slackdoc document about nvidia-optimus.
You can use bbswitch to switch off your NVidia GPU.
Sorry, my bad mistake. I don't want to turn of nvidia card. I want to use xrandr and DRI_PRIME to switch between GPUs instead using bumblebee and optirun. But, runing xrandr at every system reboot is tedious, so I have to create a .conf file for xorg so that it automatically offload Intel GPU. Where is the right place for such file? /etc/X11/xorg.conf.d/ or /usr/share/X11/xorg.conf.d/
Where is the right place for such file? /etc/X11/xorg.conf.d/ or /usr/share/X11/xorg.conf.d/
Just as a general point of knowledge, if you see these two types of directories (not necessarily just X11, but matching directories in /etc/ and /usr/share/, /etc/ is typically for the user to override the distro-provided /usr/share/ conf files. Keep in mind, if you edit something in /usr/share/, if you upgrade or reinstall that package, it will replace that custom file without any hesitation or prompting.
TL;DNR
/usr/share/X11/xorg.conf.d/ - system defaults - user shouldn't normally edit
/etc/X11/xorg.conf.d/ - used by user to override system defaults
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.