I have found the following issues when following the instructions at https://help.ubuntu.com/community/HybridGraphics:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
To have permanent write permissions to the switch file, add the following line, replacing USERNAME with your username, to /etc/init.d/rc.local:
chown USERNAME /sys/kernel/debug/vgaswitcheroo/switch
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I do not add the above command to /etc/init.d/rc.local, i simply just chown the above file as adding the line into the rc.local file does nothing at all and prevents me from using the script by adding a laucher and resulting to me running sudo su in the terminal first.
In addition to the above I have also found that within the gxmessage script that there is no need for the gnome-session-quit command and all that is required is the following at the top of the script:
if [ $EUID != 0 ]; then
gksudo "$0" "$@"
exit $?
fi
I have found the following issues when following the instructions at https:/ /help.ubuntu. com/community/ HybridGraphics: ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --
-------
To have permanent write permissions to the switch file, add the following line, replacing USERNAME with your username, to /etc/init. d/rc.local:
chown USERNAME /sys/kernel/ debug/vgaswitch eroo/switch ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -- d/rc.local, i simply just chown the above file as adding the line into the rc.local file does nothing at all and prevents me from using the script by adding a laucher and resulting to me running sudo su in the terminal first.
-------
I do not add the above command to /etc/init.
In addition to the above I have also found that within the gxmessage script that there is no need for the gnome-session-quit command and all that is required is the following at the top of the script:
if [ $EUID != 0 ]; then
gksudo "$0" "$@"
exit $?
fi
regards
sean