glx-diversions and optimus laptop

Andreas Beckmann anbe at debian.org
Fri Feb 5 00:21:18 UTC 2016


Moving discussion to the pkg-nvidia-devel list. You will get more input
from there.

Andreas

On 2016-02-04 22:03, Thomas Vaughan wrote:
> This is not a bug report but a request for advice.
> 
> (If I should have sent this message elsewhere, then please refer me there.
> I saw your email address in '/usr/share/doc/update-glx/README.Debian.gz'.)
> 
> I am running Debian unstable on a Dell Latitude E6530, which has optimus
> enabled. I'd like the laptop
>  - to use intel graphics when not docked and
>  - to use nvidia graphics when docked.
> For a long time, I have been using 'update-glx' manually to reconfigure
> when necessary, but I have grown tired of this. I should rather have the
> system automatically configure itself when I turn it on.
> 
> So I have written the attached script and used 'update-rc.d' to plug it in
> to the init system.
> 
> I am writing this because my script is an ugly hack, and there has to be a
> better way.
> 
> The script works, but if it determine that 'update-glx' must be run, then
> the script reboots the system (during initialization!) right after running
> 'update-glx'. Again, this scheme works, but when I turn the machine on in
> the dock after having used it undocked, the boot process happens twice. The
> problem is that the process is slow and ugly.
> 
> The reboot seems necessary after a change to the kernel-module
> configuration. In particular, after a change from intel to nvidia but
> before reboot, the nvidia kernel module complains about not being able to
> find a device when the X server tries to install the module.  If you know
> how I might avoid the reboot, then I should be interested to see how to do
> that.
> 




More information about the pkg-nvidia-devel mailing list