Ubuntu – /sys/kernel/debug/vgaswitcheroo missing

11.04intel graphicsnvidiavgaswitcheroo

i wanted to install and use asus_switcheroo but unfortunately the vgaswitcheroo folder is missing.
I already checked whether vgaswitcheroo is actually enabled and as i use the vanilla kernel it is (2.6.38-11-generic).

[EDIT]
After looking a bit further into it it seems to help some people to enable kms on intel and radeon drivers to have the folder. Using this ubuntu forum post, add the following entries to the following file:

gksudo edit /etc/initramfs-tools/modules

Then add the following:

i915 modeset=1
nouveau modeset=1

close and run following command:

sudo update-initramfs -u

this lets the folder vgaswitcheroo appear again in debug (after reboot)
however after installing asus-switcheroo and rebooting that folder will disappear again.
with disabling:

i915-jprobe
nouveau-jprobe

which asus-switcheroo adds to /etc/initramfs-tools/modules

the directory reappears again, this solution however does not seem consistant and using this solution did not work either unfortunately however temporarely i could live with running:

instead i do this at the moment:
at startup

cd /home/user/asus-switcheroo
make install-ubuntu

then doing whatever i want to and at shutdown

cd /home/user/asus-switcheroo
make uninstall-ubuntu

possible solution

played a little bit around and it seems that if I remove modeset=1 for nouveau and i915 and install asus-switcheroo it will work however when I echo OFF it does not bring the power saving I wanted but activating nvidia logging out -> in then activating intel logging out -> in saves more energy than using acpi_call.

and the problem with switcheroo disappearing is that it might reappear after a reebot seems rather buggy whether the folder will be available or not.

Best Answer

I had the same problem: the folder vgaswitcheroo was missing. I found a solution: deactivate all proprietary drivers of your graphic card and then reboot. After that, the folder reappeared onto "/sys/kernel/debug". I hope it will help you !