Fedora Linux Support Community & Resources Center
  #1  
Old 9th October 2012, 12:33 AM
DupermanDave Offline
Registered User
 
Join Date: Mar 2011
Posts: 51
linuxfirefox
Switchable graphics. Find out which one is in use?

I have a separate thread open regarding battery life, but I have this other off-topic question. My laptop has an ATI and intel card and I'd like to know how I can determine which graphics card is currently in use. I can run this command:

Code:
cat /sys/kernel/debug/vgaswitcheroo/switch
and it'll output
Code:
0:IGD:+:Pwr:0000:00:02.0                                                                                      
1:DIS: :Pwr:0000:01:00.0
How can I determine which one is intel and which one is ATI? I know how to turn off the unused card (echo OFF > /sys/kernel/debug/vgaswitcheroo/switch)

Also, can anyone tell me what IGD, DIS, DISS, and all of those other things mean?
Reply With Quote
  #2  
Old 9th October 2012, 12:48 AM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,446
linuxfirefox
Re: Switchable graphics. Find out which one is in use?

Quote:
Originally Posted by DupermanDave View Post
I have a separate thread open regarding battery life, but I have this other off-topic question. My laptop has an ATI and intel card and I'd like to know how I can determine which graphics card is currently in use. I can run this command:

Code:
cat /sys/kernel/debug/vgaswitcheroo/switch
and it'll output
Code:
0:IGD:+:Pwr:0000:00:02.0                                                                                      
1:DIS: :Pwr:0000:01:00.0
How can I determine which one is intel and which one is ATI? I know how to turn off the unused card (echo OFF > /sys/kernel/debug/vgaswitcheroo/switch)

Also, can anyone tell me what IGD, DIS, DISS, and all of those other things mean?

IGD = "Integrated" --> that's the Intel one (inside Ivy bridge or Sandy Bridge cpu, etc)
DIS = "Discrete" --> that's the ATI (here in this case) or Nvidia (on other laptops)

I think the "+" means which one is in use (the IGD/ Intel is used and the discrete ATI is not used) and the fact both lines
have "Pwr" means both cards are powered

You can also compare to the output from 'lspci -v'

Quote:
# lspci -v | grep -A 11 VGA
00:02.0 VGA compatible controller: Intel Corporation Device 0166 (rev 09) (prog-if 00 [VGA controller])
Subsystem: Toshiba America Info Systems Device 0002
Flags: bus master, fast devsel, latency 0, IRQ 42
Memory at e0000000 (64-bit, non-prefetchable) [size=4M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 2000 [size=64]
Expansion ROM at <unassigned> [disabled]
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [a4] PCI Advanced Features
Kernel driver in use: i915
I only have an Intel Ivy Bridge with no discrete card so I just have the "00:02.0" entry which is the Intel IGD (and I can't show you the switcharoo/switch file because my single VGA laptop doesn't have one)
But that shows where your "00:02.0" comes from in the end of each line in the switch file, it's the bus address to the VGA hardware. Intel is usually 00:02.0 and the Nvidia and ATI will be something else (01:00.0 for your ATI )

I don't know about the switcharoo usage on Fedora but I found this URL that at least explains how it's working in ubuntu, it might be similar in Fedora

https://help.ubuntu.com/community/HybridGraphics

there is this Fedora thread too:
http://forums.fedoraforum.org/showthread.php?t=277051

Last edited by marko; 9th October 2012 at 01:06 AM. Reason: fixed error about + vs 0/1
Reply With Quote
  #3  
Old 9th October 2012, 02:55 AM
DupermanDave Offline
Registered User
 
Join Date: Mar 2011
Posts: 51
windows_7firefox
Re: Switchable graphics. Find out which one is in use?

Quote:
Originally Posted by marko View Post
IGD = "Integrated" --> that's the Intel one (inside Ivy bridge or Sandy Bridge cpu, etc)
DIS = "Discrete" --> that's the ATI (here in this case) or Nvidia (on other laptops)

I think the "+" means which one is in use (the IGD/ Intel is used and the discrete ATI is not used) and the fact both lines
have "Pwr" means both cards are powered

You can also compare to the output from 'lspci -v'

I only have an Intel Ivy Bridge with no discrete card so I just have the "00:02.0" entry which is the Intel IGD (and I can't show you the switcharoo/switch file because my single VGA laptop doesn't have one)
But that shows where your "00:02.0" comes from in the end of each line in the switch file, it's the bus address to the VGA hardware. Intel is usually 00:02.0 and the Nvidia and ATI will be something else (01:00.0 for your ATI )

I don't know about the switcharoo usage on Fedora but I found this URL that at least explains how it's working in ubuntu, it might be similar in Fedora

https://help.ubuntu.com/community/HybridGraphics

there is this Fedora thread too:
http://forums.fedoraforum.org/showthread.php?t=277051
Do you know how I would have linux switch from the intel card to ATI? I believe the command is: echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch

And to complicate things, do you know how to have it disable the intel card and use ATI on boot? I'm assuming you need to use multiple commands to disable and switch cards, but I'm not 100% which ones to use.

-edit-
I think I'm wrong in the above question, but I read some more and found there's this command (hybridopts=ON,IGD,OFF) in the GRUB options to enable both GPUs, switches to the integrated GPU, and finally turns off the discrete GPU. How would I go about doing the reverse? I want to disable the integrated GPU, switch to the ATI GPU, and turn off the integrated GPU.

Last edited by DupermanDave; 9th October 2012 at 03:03 AM.
Reply With Quote
  #4  
Old 9th October 2012, 03:21 AM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,446
linuxfirefox
Re: Switchable graphics. Find out which one is in use?

Quote:
Originally Posted by DupermanDave View Post
Do you know how I would have linux switch from the intel card to ATI? I believe the command is: echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch

And to complicate things, do you know how to have it disable the intel card and use ATI on boot? I'm assuming you need to use multiple commands to disable and switch cards, but I'm not 100% which ones to use.
Don't those two links in the previous post #2 answer those?
Reply With Quote
  #5  
Old 9th October 2012, 03:27 AM
DupermanDave Offline
Registered User
 
Join Date: Mar 2011
Posts: 51
linuxfirefox
Re: Switchable graphics. Find out which one is in use?

Quote:
Originally Posted by marko View Post
Don't those two links in the previous post #2 answer those?
Sort of. I guess I'm just confused as there seems to be 2 ways of handling the switch. It can be done with the switch commands and then it appears to be able to be handled upon boot by GRUB.
Reply With Quote
  #6  
Old 15th October 2012, 10:36 PM
DupermanDave Offline
Registered User
 
Join Date: Mar 2011
Posts: 51
linuxfirefox
Re: Switchable graphics. Find out which one is in use?

I still need some assistance with this. I have both cards enabled just so I can play around with it, but I can't figure out how to get linux to switch to the discreet ATI card and use that.

I've run this command
Code:
echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch
which is supposed to switch to the ATI card after logging out and then back in, but once I log out, X fails to start and I have to reboot where it then goes back into the intel card.

I might need to start a new thread, but basically I'm needing help 1) switching to the ATI card and disabling the intel card, and 2) installing the ATI drivers so I can start X.

Last edited by DupermanDave; 15th October 2012 at 10:56 PM.
Reply With Quote
Reply

Tags
graphics, switchable

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HP probook 4730s switchable graphics problem Reshi Hardware & Laptops 0 26th March 2012 07:21 PM
Switchable graphics (ATI+Intel) PavedWave Hardware & Laptops 0 15th November 2011 02:08 AM
Switchable Graphics - ATI/Intel - HP Pavilion 6000 CoffeeNKeyboard Hardware & Laptops 2 20th October 2011 12:40 PM
switchable graphics heat problem knowtown Hardware & Laptops 6 16th September 2011 05:48 PM
HP DV6T-6000 Quad Edition - available to test switchable graphics CoffeeNKeyboard Hardware & Laptops 0 5th September 2011 11:16 AM


Current GMT-time: 11:33 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat