LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 03-23-2016, 04:13 PM   #1
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 162

Rep: Reputation: Disabled
gpu switching


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

Last edited by przemo; 03-23-2016 at 04:20 PM.
 
Old 03-24-2016, 09:54 AM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by przemo View Post
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???
On SBo, they have a script for the nvidia driver (I believe it is called nvidia-switch), which backs up the original libraries and then replaces them with the nvidia libs. That script will also reverse the changes when the package is removed. You could probably either use that script directly by calling it in your script, or open up the script and grab the stuff you need out of it to incorporate it into your script.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lenovo Z51-70 - GPU switching dominik232 Linux - Laptop and Netbook 4 02-07-2016 03:21 PM
LXer: Some Small Progress On Linux GPU Laptop Switching LXer Syndicated Linux News 0 11-09-2010 06:30 AM
LXer: GPU Switching Goes For The Gold: Mainline Inclusion LXer Syndicated Linux News 0 02-26-2010 09:11 PM
LXer: Today, Delayed GPU Switching Comes To Linux LXer Syndicated Linux News 0 02-03-2010 01:00 PM
Switching GPU sitrus Slackware 2 10-30-2002 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 02:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration