echo OFF | sudo tee /sys/kernel/debug/vgaswitcheroo/switch
In one of the questions in this forum, someone had posted this command to switch off graphics card to save power consumption and this worked like a charm almost reducing my battery consumption to less than half of what it consumed before.
The contents of sys/kernel/debug/vgawitcheroo/switch file are
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :Off:0000:01:00.0
I want to know what this command actually does, the significance of vgaswitcheroo/switch file and what is the piping that is happening in the command. Can someone please explain this to me?