Unable to mount debugfs

I’ve a switchable graphics card and I would like to know if my AMD card is consuming power and if so need to disable it. I’ve no problem using ‘intel’ driver but I’m not able to use the ‘fglrrx’ driver. To check if the dedicated GPU is powered on, I tried to access the /sys/kernel/debug/vgaswitcheroo which was not available. I was also not able to mount is as it seems that this needs to be enabled in the kernel.

Is there a way I can check and disable the dedicated GPU other than using vgaswitcheroo?
If not, what needs to be done? (Kernel recompiling?)

The specs:

  • HP Pavilion dv6t-6c00 Quad Edition
  • i7-2670QM
  • 1GB 7690M GDDR5

I do not know if there was a solution, but until recently it was impossible to do.

Thanks for your inputs.

Perhaps, /sys/kernel/debug/vgaswitcheroo is not exist because kernel compiled without CONFIG_VGA_SWITCHEROO option.

Yes, I think so. In this case, it should be enabled so that users who want to have this feature, can do it without a recompile.

The following kernel upgrade option will be added, thanks!

Thanks for the instant reply !!!

You can update your kernel configuration using a tool

cl-kernel -m

To do this, install the kernel source

USE="-minimal -vmlinuz" emerge calculate-sources