Hi, I have been for months enjoying my gaming installation, I had to reinstall this laptop …
Since then, a few days now, the “DRI_PRIME=1 command” doesn’t give “command” the dGPU for processing, my games and programs still run off the iGPU, the weirdest part is that glxinfo … does see the right GPU if I use DRI_PRIME=1 or DRI_PRIME=0 .
The weirdest thing also is that when I cat /sys/kernel/debug/vgaswitcheroo/switch during testing,
I see the dGPU powered on and off !
This machine is on stable branch.
What am I missing ?
DRI_PRIME=1 inxi -G
Graphics: Device-1: AMD Baffin [Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X] driver: amdgpu v: kernel
Device-2: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] driver: amdgpu v: kernel
Device-3: Chicony HD WebCam type: USB driver: uvcvideo
Display: x11 server: X.org 1.20.9 driver: amdgpu,ati unloaded: modesetting,radeon resolution: <xdpyinfo missing>
OpenGL: renderer: AMD Radeon RX Graphics (POLARIS11 DRM 3.39.0 5.9.3-1-MANJARO LLVM 10.0.1) v: 4.6 Mesa 20.2.1
linux@nitro5 ~]$ inxi -G
Graphics: Device-1: AMD Baffin [Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X] driver: amdgpu v: kernel
Device-2: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] driver: amdgpu v: kernel
Device-3: Chicony HD WebCam type: USB driver: uvcvideo
Display: x11 server: X.org 1.20.9 driver: amdgpu,ati unloaded: modesetting,radeon resolution: <xdpyinfo missing>
OpenGL: renderer: AMD RAVEN (DRM 3.39.0 5.9.3-1-MANJARO LLVM 10.0.1) v: 4.6 Mesa 20.2.1
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X] (rev c0)
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] (rev c4)
[linux@nitro5 ~]$ lsmod | grep -i amd
amdgpu 6434816 18
edac_mce_amd 32768 0
kvm_amd 114688 0
ccp 118784 1 kvm_amd
kvm 856064 1 kvm_amd
gpu_sched 40960 1 amdgpu
i2c_algo_bit 16384 1 amdgpu
ttm 122880 1 amdgpu
drm_kms_helper 266240 1 amdgpu
pinctrl_amd 32768 1
drm 585728 10 gpu_sched,drm_kms_helper,amdgpu,ttm
[linux@nitro5 ~]$ grep -i amd .local/share/xorg/Xorg.0.log
[ 1868.597] (II) Applying OutputClass "AMDgpu" to /dev/dri/card1
[ 1868.597] loading driver: amdgpu
[ 1868.597] (II) Applying OutputClass "AMDgpu" to /dev/dri/card0
[ 1868.597] loading driver: amdgpu
[ 1868.597] (==) Matched amdgpu as autoconfigured driver 0
[ 1868.597] (II) LoadModule: "amdgpu"
[ 1868.597] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so
[ 1868.598] (II) Module amdgpu: vendor="X.Org Foundation"
[ 1868.603] (II) AMDGPU: Driver for AMD Radeon:
All GPUs supported by the amdgpu kernel driver
[ 1868.603] (II) RADEON: Driver for ATI/AMD Radeon chipsets:
ATI Radeon X1950, ATI Radeon X1900, ATI AMD Stream Processor,
AMD FireStream 9270, AMD FireStream 9250, ATI FirePro V8700 (FireGL),
ATI FireGL V7700, ATI Radeon HD3690, AMD Firestream 9170,
AMD Radeon HD 6310 Graphics, AMD Radeon HD 6250 Graphics,
AMD Radeon HD 6300 Series Graphics,
AMD Radeon HD 6200 Series Graphics, PALM, CYPRESS,
ATI FirePro (FireGL) Graphics Adapter, AMD Firestream 9370,
AMD Firestream 9350, ATI Radeon HD 5800 Series,
ATI Radeon HD 5450, CAYMAN, AMD Radeon HD 6900 Series,
AMD Radeon HD 6900M Series, Mobility Radeon HD 6000 Series, BARTS,
AMD Radeon HD 6800 Series, AMD Radeon HD 6700 Series, TURKS, CAICOS,
[ 1868.609] (II) AMDGPU(0): Creating default Display subsection in Screen section
[ 1868.609] (==) AMDGPU(0): Depth 24, (--) framebuffer bpp 32
[ 1868.609] (II) AMDGPU(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[ 1868.609] (==) AMDGPU(0): Default visual is TrueColor
[ 1868.609] (==) AMDGPU(0): RGB weight 888
[ 1868.609] (II) AMDGPU(0): Using 8 bits per RGB (8 bit DAC)
[ 1868.609] (--) AMDGPU(0): Chipset: "Unknown AMD Radeon GPU" (ChipID = 0x15dd)
[ 1868.679] (II) AMDGPU(0): glamor X acceleration enabled on AMD RAVEN (DRM 3.39.0, 5.9.3-1-MANJARO, LLVM 10.0.1)
[ 1868.679] (II) AMDGPU(0): glamor detected, initialising EGL layer.
[ 1868.679] (==) AMDGPU(0): TearFree property default: auto
[ 1868.679] (==) AMDGPU(0): VariableRefresh: disabled
[ 1868.679] (II) AMDGPU(0): KMS Pageflipping: enabled
[ 1868.679] (II) AMDGPU(0): Output HDMI-A-0 has no monitor section
[ 1868.679] (II) AMDGPU(0): Output eDP has no monitor section
[ 1868.694] (II) AMDGPU(0): EDID for output HDMI-A-0
[ 1868.694] (II) AMDGPU(0): EDID for output eDP
[ 1868.694] (II) AMDGPU(0): Manufacturer: LGD Model: 5d8 Serial#: 0
[ 1868.694] (II) AMDGPU(0): Year: 2018 Week: 0
[ 1868.694] (II) AMDGPU(0): EDID Version: 1.4
[ 1868.694] (II) AMDGPU(0): Digital Display Input
[ 1868.694] (II) AMDGPU(0): 6 bits per channel
[ 1868.694] (II) AMDGPU(0): Digital interface is DisplayPort
[ 1868.694] (II) AMDGPU(0): Max Image Size [cm]: horiz.: 34 vert.: 19
[ 1868.694] (II) AMDGPU(0): Gamma: 2.20
[ 1868.694] (II) AMDGPU(0): DPMS capabilities: StandBy Suspend Off
[ 1868.694] (II) AMDGPU(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[ 1868.694] (II) AMDGPU(0): First detailed timing is preferred mode
[ 1868.694] (II) AMDGPU(0): Preferred mode is native pixel format and refresh rate
[ 1868.694] (II) AMDGPU(0): redX: 0.583 redY: 0.370 greenX: 0.349 greenY: 0.560
[ 1868.694] (II) AMDGPU(0): blueX: 0.157 blueY: 0.104 whiteX: 0.313 whiteY: 0.329
[ 1868.694] (II) AMDGPU(0): Manufacturer's mask: 0
[ 1868.694] (II) AMDGPU(0): Supported detailed timing:
[ 1868.694] (II) AMDGPU(0): clock: 138.7 MHz Image Size: 344 x 194 mm
[ 1868.694] (II) AMDGPU(0): h_active: 1920 h_sync: 1968 h_sync_end 2000 h_blank_end 2080 h_border: 0
[ 1868.694] (II) AMDGPU(0): v_active: 1080 v_sync: 1083 v_sync_end 1088 v_blanking: 1111 v_border: 0
[ 1868.694] (II) AMDGPU(0): LG Display
[ 1868.694] (II) AMDGPU(0): LP156WFC-SPP1
[ 1868.694] (II) AMDGPU(0): EDID (in hex):
[ 1868.694] (II) AMDGPU(0): 00ffffffffffff0030e4d80500000000
[ 1868.694] (II) AMDGPU(0): 001c010495221378ea7565955e598f28
[ 1868.694] (II) AMDGPU(0): 1a505400000001010101010101010101
[ 1868.694] (II) AMDGPU(0): 0101010101012e3680a070381f403020
[ 1868.694] (II) AMDGPU(0): 350058c21000001a0000000000000000
[ 1868.694] (II) AMDGPU(0): 00000000000000000000000000fe004c
[ 1868.694] (II) AMDGPU(0): 4720446973706c61790a2020000000fe
[ 1868.694] (II) AMDGPU(0): 004c503135365746432d535050310091
[ 1868.695] (II) AMDGPU(0): Printing probed modes for output eDP
[ 1868.695] (II) AMDGPU(0): Modeline "1920x1080"x60.0 138.70 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync (66.7 kHz eP)
[ 1868.695] (II) AMDGPU(0): Modeline "1680x1050"x60.0 138.70 1680 1968 2000 2080 1050 1083 1088 1111 +hsync -vsync (66.7 kHz e)
[ 1868.695] (II) AMDGPU(0): Modeline "1280x1024"x60.0 138.70 1280 1968 2000 2080 1024 1083 1088 1111 +hsync -vsync (66.7 kHz e)
[ 1868.695] (II) AMDGPU(0): Modeline "1440x900"x60.0 138.70 1440 1968 2000 2080 900 1083 1088 1111 +hsync -vsync (66.7 kHz e)
[ 1868.695] (II) AMDGPU(0): Modeline "1280x800"x60.0 138.70 1280 1968 2000 2080 800 1083 1088 1111 +hsync -vsync (66.7 kHz e)
[ 1868.695] (II) AMDGPU(0): Modeline "1280x720"x60.0 138.70 1280 1968 2000 2080 720 1083 1088 1111 +hsync -vsync (66.7 kHz e)
[ 1868.695] (II) AMDGPU(0): Modeline "1024x768"x60.0 138.70 1024 1968 2000 2080 768 1083 1088 1111 +hsync -vsync (66.7 kHz e)
[ 1868.695] (II) AMDGPU(0): Modeline "800x600"x60.0 138.70 800 1968 2000 2080 600 1083 1088 1111 +hsync -vsync (66.7 kHz e)
[ 1868.695] (II) AMDGPU(0): Modeline "640x480"x60.0 138.70 640 1968 2000 2080 480 1083 1088 1111 +hsync -vsync (66.7 kHz e)
[ 1868.695] (II) AMDGPU(0): Output HDMI-A-0 disconnected
[ 1868.695] (II) AMDGPU(0): Output eDP connected
[ 1868.695] (II) AMDGPU(0): Using exact sizes for initial modes
[ 1868.695] (II) AMDGPU(0): Output eDP using initial mode 1920x1080 +0+0
[ 1868.695] (II) AMDGPU(0): mem size init: gart size :bf6d3000 vram size: s:3db1b000 visible:3db1b000
[ 1868.695] (==) AMDGPU(0): DPI set to (96, 96)
[ 1868.695] (==) AMDGPU(0): Using gamma correction (1.0, 1.0, 1.0)
[ 1868.695] (II) Loading sub module "ramdac"
[ 1868.695] (II) LoadModule: "ramdac"
[ 1868.695] (II) Module "ramdac" already built-in
[ 1868.695] (==) AMDGPU(G0): Depth 24, (--) framebuffer bpp 32
[ 1868.695] (II) AMDGPU(G0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[ 1868.695] (==) AMDGPU(G0): Default visual is TrueColor
[ 1868.695] (==) AMDGPU(G0): RGB weight 888
[ 1868.695] (II) AMDGPU(G0): Using 8 bits per RGB (8 bit DAC)
[ 1868.695] (--) AMDGPU(G0): Chipset: "AMD Radeon (TM) RX Graphics" (ChipID = 0x67ef)
[ 1868.708] (II) AMDGPU(G0): glamor X acceleration enabled on AMD Radeon (TM) RX Graphics (POLARIS11, DRM 3.39.0, 5.9.3-1-MANJARO, LLVM 10.0.1)
[ 1868.708] (II) AMDGPU(G0): glamor detected, initialising EGL layer.
[ 1868.708] (==) AMDGPU(G0): TearFree property default: auto
[ 1868.709] (II) AMDGPU(G0): mem size init: gart size :ff86f000 vram size: s:ff4c8000 visible:fad0000
[ 1868.709] (==) AMDGPU(G0): DPI set to (96, 96)
[ 1868.709] (==) AMDGPU(G0): Using gamma correction (1.0, 1.0, 1.0)
[ 1868.709] (II) Loading sub module "ramdac"
[ 1868.709] (II) LoadModule: "ramdac"
[ 1868.709] (II) Module "ramdac" already built-in
[ 1868.709] (II) AMDGPU(0): [DRI2] Setup complete
[ 1868.709] (II) AMDGPU(0): [DRI2] DRI driver: radeonsi
[ 1868.709] (II) AMDGPU(0): [DRI2] VDPAU driver: radeonsi
[ 1868.717] (II) AMDGPU(0): Front buffer pitch: 7680 bytes
[ 1868.719] (II) AMDGPU(0): SYNC extension fences enabled
[ 1868.719] (II) AMDGPU(0): Present extension enabled
[ 1868.719] (==) AMDGPU(0): DRI3 enabled
[ 1868.719] (==) AMDGPU(0): Backing store enabled
[ 1868.719] (II) AMDGPU(0): Direct rendering enabled
[ 1868.726] (II) AMDGPU(0): Use GLAMOR acceleration.
[ 1868.726] (II) AMDGPU(0): Acceleration enabled
[ 1868.726] (==) AMDGPU(0): DPMS enabled
[ 1868.726] (==) AMDGPU(0): Silken mouse disabled
[ 1868.726] (II) AMDGPU(0): Set up textured video (glamor)
[ 1868.744] (II) AMDGPU(G0): [DRI2] Setup complete
[ 1868.744] (II) AMDGPU(G0): [DRI2] DRI driver: radeonsi
[ 1868.744] (II) AMDGPU(G0): [DRI2] VDPAU driver: radeonsi
[ 1868.745] (II) AMDGPU(G0): Front buffer pitch: 4096 bytes
[ 1868.745] (==) AMDGPU(G0): Backing store enabled
[ 1868.745] (II) AMDGPU(G0): Direct rendering enabled
[ 1868.767] (II) AMDGPU(G0): Use GLAMOR acceleration.
[ 1868.767] (II) AMDGPU(G0): Acceleration enabled
[ 1868.767] (==) AMDGPU(G0): DPMS enabled
[ 1868.767] (==) AMDGPU(G0): Silken mouse disabled
[ 1868.775] (II) AMDGPU(0): Setting screen physical size to 508 x 285
[ 1868.996] (**) Option "config_info" "udev:/sys/devices/platform/AMDI0010:01/i2c-0/i2c-SYNA7DB5:01/0018:06CB:CD41.0001/input/input13/event10"
[ 1869.005] (**) Option "config_info" "udev:/sys/devices/platform/AMDI0010:01/i2c-0/i2c-SYNA7DB5:01/0018:06CB:CD41.0001/input/input14/event11"
[ 1869.550] (II) AMDGPU(0): EDID vendor "LGD", prod id 1496
[ 1869.550] (II) AMDGPU(0): Printing DDC gathered Modelines:
[ 1869.550] (II) AMDGPU(0): Modeline "1920x1080"x0.0 138.70 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync (66.7 kHz eP)