2 Replies Latest reply on Mar 4, 2015 12:12 PM by maestrodan

    GPU switching in Ubuntu Linux

    maestrodan

      Hello, I have a laptop on AMD Kabini A6-5200 and Radeon HD8570 1GB.

      Now, switching between amd integrated gpu and amd radeon hd8570 doesn't work's correct.

      When I install the Catalyst software, and run

      sudo amdconfig --adapter=all --initial

      I have xorg.conf like this:

      Section "ServerLayout"

          Identifier     "aticonfig Layout"

          Screen      0  "aticonfig-Screen[0]-0" 0 0

          Screen         "aticonfig-Screen[1]-0" RightOf "aticonfig-Screen[0]-0"

      EndSection

       

      Section "Module"

      EndSection

       

      Section "Monitor"

          Identifier   "aticonfig-Monitor[0]-0"

          Option        "VendorName" "ATI Proprietary Driver"

          Option        "ModelName" "Generic Autodetecting Monitor"

          Option        "DPMS" "true"

      EndSection

       

      Section "Monitor"

          Identifier   "aticonfig-Monitor[1]-0"

          Option        "VendorName" "ATI Proprietary Driver"

          Option        "ModelName" "Generic Autodetecting Monitor"

          Option        "DPMS" "true"

      EndSection

       

      Section "Device"

          Identifier  "aticonfig-Device[0]-0"

          Driver      "fglrx"

          BusID       "PCI:0:1:0"

      EndSection

       

      Section "Device"

          Identifier  "aticonfig-Device[1]-0"

          Driver      "fglrx"

          BusID       "PCI:1:0:0"

      EndSection

       

      Section "Screen"

          Identifier "aticonfig-Screen[0]-0"

          Device     "aticonfig-Device[0]-0"

          Monitor    "aticonfig-Monitor[0]-0"

          DefaultDepth     24

          SubSection "Display"

              Viewport   0 0

              Depth     24

          EndSubSection

      EndSection

       

      Section "Screen"

          Identifier "aticonfig-Screen[1]-0"

          Device     "aticonfig-Device[1]-0"

          Monitor    "aticonfig-Monitor[1]-0"

          DefaultDepth     24

          SubSection "Display"

              Viewport   0 0

              Depth     24

          EndSubSection

      EndSection

       

      And after restarting Xorg i can use Radeon HD8570

      If I run

      sudo amdconfig --initial

      then I will have this xorg.conf

      Section "ServerLayout"

          Identifier     "aticonfig Layout"

          Screen      0  "aticonfig-Screen[0]-0" 0 0

      EndSection

       

      Section "Module"

      EndSection

       

      Section "Monitor"

          Identifier   "aticonfig-Monitor[0]-0"

          Option        "VendorName" "ATI Proprietary Driver"

          Option        "ModelName" "Generic Autodetecting Monitor"

          Option        "DPMS" "true"

      EndSection

       

      Section "Device"

          Identifier  "aticonfig-Device[0]-0"

          Driver      "fglrx"

          BusID       "PCI:0:1:0"

      EndSection

       

      Section "Screen"

          Identifier "aticonfig-Screen[0]-0"

          Device     "aticonfig-Device[0]-0"

          Monitor    "aticonfig-Monitor[0]-0"

          DefaultDepth     24

          SubSection "Display"

              Viewport   0 0

              Depth     24

          EndSubSection

      EndSection

       

      And I will use integrated GPU(it's active even without xorg.conf).

      So, after some time I have two xorg.conf

      xorgdgpu.conf with worked 8570

      xorgigpu.conf with 8400

      and I have a commands in /usr/bin

      igpu:

      sudo cp /etc/X11/xorgigpu.conf /etc/X11/xorg.conf

      dgpu:

      sudo cp /etc/X11/xorgdgpu.conf /etc/X11/xorg.conf

      So, i can change gpu's in terminal by running igpu or dgpu commands and restart X after this.

      Is there any way to make it more usable, by making this from AMD Catalyst Control Center(gpu shitch menu)?

      Any Ideas?