Hprofile

is a little application that can be used to manage multiple profiles be it hardware or software. The following subsection are just examples on what could be done with hprofile.

To be able to to go further, one should, of course, merge the package.

Switching VGA profile
Ii use to manage VGA profile to my laptop and my desktop. On my desktop, I use hprofile to switch between nVidia, nouveau and nv  when the previous profiles do no work; and to switch ati  and intel  on my laptop which has switchable graphics via VGASwitcheroo.

Just be sure to built kernel modules about everything — at least nouveau, ttm, drm, and optionally(?) ac, button, video, i2c-algo-bit — to avoid useless hassles.

{{GenericCmd| --- /etc/init.d/hprofile	2011-07-26 15:26:56.000000000 +0000 +++ /etc/init.d/hprofile	2012-03-03 17:42:34.686258567 +0000 @@ -7,15 +7,19 @@ } start { +	vgap=$(/usr/sbin/hpdet vga) powerp=$(/usr/sbin/hpdet power) ebegin "Selecting hardware profile vga.$vgap and power.$powerp" +	/usr/sbin/hprofile vga /usr/sbin/hprofile power eend $? } stop { +	vgap=$(/usr/sbin/hprofile -c vga) powerp=$(/usr/sbin/hprofile -c power) ebegin "Stopping hardware profile vga.$vgap and power.$powerp" +	/usr/sbin/hprofile -s vga /usr/sbin/hprofile -s power eend $? } }}

Create the necessaries folder /etc/hprofile/profiles/vga/{scripts,files/etc/X11/xorg.conf.d} and add the following files.

And with that, you should be able to switch vga profile as you like without needing an extra kernel and setup.

The ptest script will just look if VGASwitcheroo is available and hich driver is loaded and thenn start the appropriate profile. One can use of black listing a module and leave the other un-black listed to be able to chose ...a default VGA profile. Or else, use of `/etc/hprofile/profiles/vga/default'.