You are not logged in.

#1 2010-07-31 14:18:35

carick
Member
Registered: 2009-01-15
Posts: 15

hybrid graphics / vga_switcheroo

My new laptop, HP dm4t comes with an integrated intel card and a discrete ATI card (5450). I am trying to figure out how to turn of the ATI card. I could not find how to determine the state of the card or how to turn it off. Any help would be appreciated.

Thanks

Offline

#2 2010-07-31 14:25:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: hybrid graphics / vga_switcheroo

Check in the BIOS, maybe simply not loading the modules would do the trick.

Offline

#3 2010-07-31 14:33:20

carick
Member
Registered: 2009-01-15
Posts: 15

Re: hybrid graphics / vga_switcheroo

No option in BIOS, and if i do not load the module, how will I be able to check if it is not running?

I tried following http://www.andreas-demmer.de/en/2010/07 … p-envy-14/ but I do not have the directory /sys/kernel/debug/vga_switcheroo/

Offline

#4 2010-07-31 14:45:05

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Re: hybrid graphics / vga_switcheroo

Do `zcat /proc/config.gz| grep switch'. If you can see '# CONFIG_VGA_SWITCHEROO is not set' you have to recompile your kernel and enable this option. And you must have >=2.6.34 (according to the article)

Offline

#5 2010-07-31 14:47:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: hybrid graphics / vga_switcheroo

'zgrep switch /proc/config.gz' doesn't show anything here.
Running stock Arch kernel (I don't have two cards).

Edit: You have to use

zgrep -i switch /proc/config.gz

It shows 'CONFIG_VGA_SWITCHEROO=y' on a stock Arch kernel.

Last edited by karol (2010-07-31 17:23:03)

Offline

#6 2010-07-31 15:36:38

carick
Member
Registered: 2009-01-15
Posts: 15

Re: hybrid graphics / vga_switcheroo

yes, CONFIG_VGA_SWITCHEROO=y, as karol stated.

Offline

#7 2010-07-31 16:02:22

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: hybrid graphics / vga_switcheroo

check this blog  as a starting point.

Offline

#8 2010-07-31 16:42:13

carick
Member
Registered: 2009-01-15
Posts: 15

Re: hybrid graphics / vga_switcheroo

Is there not a way to determine devices have power? Besides the fact that the computer runs hotter than in windows, I have no idea if they are both on or what? That blog tells me do get a tool that doesn't compile:
<code>
make: *** /lib/modules/2.6.34-ARCH/build: no such file or directory. stop.
</code>

and doesnt tell me how? or why? I do not like to follow suggestions blindly.

Offline

#9 2010-07-31 17:19:49

toxygen
Member
Registered: 2008-08-22
Posts: 713

Re: hybrid graphics / vga_switcheroo

same problem here, on hp tm2, ati discrete card and intel built in card, no vgaswitcheroo listed in after mounting /sys/kernel/debug, no module listed, and switcheroo enabled in config.  i have not played around with it long enough, nor have i tried rebuilding kernel, but methinks that vgaswitcheroo should be listed in debug if it was build with the kernel?


"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"

Offline

#10 2010-07-31 18:34:39

carick
Member
Registered: 2009-01-15
Posts: 15

Re: hybrid graphics / vga_switcheroo

The only thing that I can think of is that is has been moved from that location in the 2.6.34.1 release as it is no longer a "patch" but part of the official kernel.

Last edited by carick (2010-07-31 21:49:57)

Offline

#11 2010-08-01 05:07:19

toxygen
Member
Registered: 2008-08-22
Posts: 713

Re: hybrid graphics / vga_switcheroo

I did a search for switcheroo and only came up with

/usr/src/linux-2.6.34-ARCH/include/config/vga/switcheroo.h
/usr/src/linux-2.6.34-ARCH/include/linux/vga_switcheroo.h

so unless it's called something else it's not there.

Last edited by toxygen (2010-08-01 05:08:00)


"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"

Offline

#12 2010-08-01 18:31:11

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: hybrid graphics / vga_switcheroo

try with this....http://asusm51ta-with-linux.blogspot.com/

Offline

#13 2010-08-02 18:40:12

carick
Member
Registered: 2009-01-15
Posts: 15

Re: hybrid graphics / vga_switcheroo

that tells you to do the same thing, although it goes through compiling the kernel with vga_switcheroo, which is already done with the "vanilla" arch kernel.

Offline

#14 2010-08-02 18:52:58

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: hybrid graphics / vga_switcheroo

the debug filesystem HAS to be mounted.

$  sudo mount -t debugfs debugfs /sys/kernel/debug

Offline

#15 2010-08-02 21:48:28

carick
Member
Registered: 2009-01-15
Posts: 15

Re: hybrid graphics / vga_switcheroo

mounting debugfs gives me some options in /sys/kernel/debug/ however, still none of them are vga_switcheroo.

Offline

#16 2010-08-02 21:51:30

toxygen
Member
Registered: 2008-08-22
Posts: 713

Re: hybrid graphics / vga_switcheroo

eldragon wrote:

the debug filesystem HAS to be mounted.

$  sudo mount -t debugfs debugfs /sys/kernel/debug

I [we] did mount it, as per instructions on those links above.  but no vgaswitcheroo to be found anywhere!


"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"

Offline

#17 2010-08-05 19:28:50

koral
Member
Registered: 2010-08-05
Posts: 26

Re: hybrid graphics / vga_switcheroo

I do have this "vgaswitcheroo" folder in /sys/kernel/debug when I mount debugfs (using "mount -t debugfs none /sys/kernel/debug").
But I cannot modify /sys/kernel/debug/switch even as root. Anyone has an idea ?

Offline

#18 2010-08-05 20:56:18

grassmonk
Member
From: Utah
Registered: 2007-11-14
Posts: 68

Re: hybrid graphics / vga_switcheroo

At least for me, /sys/kernel/debug/vgaswitcheroo only appears if I have the radeon module loaded.

Offline

#19 2010-08-05 22:48:34

carick
Member
Registered: 2009-01-15
Posts: 15

Re: hybrid graphics / vga_switcheroo

I got it to work! I did 3 things, in this order.
- Syu (kernel 2.6.34.2)
- I added radeon to mkinitcpio.conf modules and make a new image
- Removed radeon.modeset=0 in grub

@koral, I was unable to echo OFF > /sys/kernel/debug/vgaswitcheroo/switch as a regular user or through sudo, but actually as root ( su -c '...' ) it worked fine.

Is there a way to mount debugfs and execute the echo at startup, as root? can I add debugfs to fstab? like none /sys/kernel/debug/ debugfs defaults 0 0 ?

Offline

#20 2010-08-06 00:41:55

toxygen
Member
Registered: 2008-08-22
Posts: 713

Re: hybrid graphics / vga_switcheroo

interesting, i'll have to try that later, i did not have radeon module loaded


"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"

Offline

#21 2010-08-06 02:53:35

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: hybrid graphics / vga_switcheroo

I've been messing around with this with an nvidia card, but most of the time it causes hard lockups and I can't switch cards, just turn off the discrete one.

@carick: What I've been doing is append it to rc.local, it's executed on startup as root right after everything else

Offline

#22 2010-08-06 11:01:22

carick
Member
Registered: 2009-01-15
Posts: 15

Re: hybrid graphics / vga_switcheroo

I assume you know you cannot switch cards while X is running.

Offline

#23 2010-08-07 19:43:58

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: hybrid graphics / vga_switcheroo

Yes, I know that. I think maybe I need to disable the frame buffer; I need to research more about it...

Offline

#24 2010-08-19 13:47:59

koral
Member
Registered: 2010-08-05
Posts: 26

Re: hybrid graphics / vga_switcheroo

When I switch  (su -c "echo DIS > switch") in a console, without having started X server, everything freezes, and I have to reboot the computer. Any clue ?

Offline

#25 2010-08-28 09:15:52

koral
Member
Registered: 2010-08-05
Posts: 26

Re: hybrid graphics / vga_switcheroo

Up ?

Offline

Board footer

Powered by FluxBB