Laptop VGA Output Randomly Changes Name Between VGA1 and VGA2

graphicsslackwarexorgxrandr

Periodically (every few reboots by the look of it) my external VGA output on my Laptop changes name between VGA1 and VGA2. For example right now xrandr is displaying:

timp@helez:~$ xrandr | grep VGA
VGA2 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 433mm x 271mm

But next time I reboot my system that could easily swap to VGA1 instead.

I do have an Optimus graphics card, so that may be related, and I did in the past have Bumblebee installed, but I have since removed all the related packages and/or downgraded them back to their standard versions.

Has anyone seen anything like this or have any ideas how to fix it?

More info on my system:

  • Laptop Model: Acer Aspire 5830TG
  • Distribution: Slackware 14.1 64-bit
  • GPU: NVIDIA GF 520M:

    timp@helez:~$ /sbin/lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    01:00.0 VGA compatible controller: NVIDIA Corporation GF119M [GeForce GT 520M] (rev a1)
    
  • Xorg Version Info:

    timp@helez:~$ Xorg -version
    
    X.Org X Server 1.14.3
    Release Date: 2013-09-12
    X Protocol Version 11, Revision 0
    Build Operating System: Slackware 14.1 Slackware Linux Project
    Current Operating System: Linux helez 3.10.17 #2 SMP Wed Oct 23 16:34:38 CDT 2013 x86_64
    Kernel command line: auto BOOT_IMAGE=Linux ro root=801 vt.default_utf8=1
    Build Date: 09 October 2013  08:27:11PM
    
    Current version of pixman: 0.30.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
    
  • Video Driver: Intel:

    timp@helez:~$ grep intel /var/log/Xorg.0.log
    [   285.689] (II) LoadModule: "intel"
    [   285.691] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
    [   285.733] (II) Module intel: vendor="X.Org Foundation"
    [   285.733] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
    [snip a bunch more lines of output]
    
  • Window Manager: i3 version 4.7.2

Best Answer

You need to parse xrandr output (or write a program, or whatever) to find the correct names, and massage your i3 configuration appropriately.

The order of device detection is random, you can't depend on it.

Related Question