Bug 365756 - Cannot enable secondary output using PRIME before running "xrandr --auto"
Summary: Cannot enable secondary output using PRIME before running "xrandr --auto"
Status: RESOLVED WORKSFORME
Alias: None
Product: KScreen
Classification: Plasma
Component: common (other bugs)
Version First Reported In: 5.7.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-17 02:39 UTC by Ismael Castiñeira Álvarez
Modified: 2022-11-10 17:58 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
kscreen-console bug output before xrandr --auto (19.62 KB, text/plain)
2016-07-18 11:17 UTC, Ismael Castiñeira Álvarez
Details
kscreen-console bug output after xrandr --auto (19.77 KB, text/plain)
2016-07-18 11:20 UTC, Ismael Castiñeira Álvarez
Details
File in ~/.local/share/kscreen (470 bytes, text/plain)
2016-07-18 13:10 UTC, Ismael Castiñeira Álvarez
Details
File in ~/.local/share/kscreen (877 bytes, text/plain)
2016-07-18 13:13 UTC, Ismael Castiñeira Álvarez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ismael Castiñeira Álvarez 2016-07-17 02:39:18 UTC
My system has two GPUs, a Radeon 290x (Hawaii chip, using the radeon-si driver) and an Intel HD2500 (Ivy Bridge). The Radeon is the main card, but I use Prime to connect a secondary monitor because the Radeon lacks VGA output.

KDE cannot enable the VGA output until I run "xrandr --auto". Before running that, the output appears correctly in the Display Configuration dialog, but setting Enabled and pressing Apply does nothing.

Running "xrandr --auto" sets the secondary display as a mirror of the main one. After that, setting the display configuration in the dialog works perfectly. I have it working as extended desktop.

Reproducible: Always

Steps to Reproduce:
1. Enable Prime offloading (xrandr --setprovideroutputsource Intel "HAWAII @ pci:0000:01:00.0")
2. Try to enable the VGA output of the Intel GPU.


Actual Results:  
Nothing happens

Expected Results:  
It should enable the VGA output in the Intel GPU and set it up following the configuration.

I used this documentation to configure the Prime setup:
https://wiki.archlinux.org/index.php/PRIME#Discrete_Card_as_Primary_GPU

xrandr output when everything is working well: https://paste.kde.org/p1umpuc50
"xrandr --listproviders": https://paste.kde.org/psorbbn1q
Comment 1 Sebastian Kügler 2016-07-18 11:10:42 UTC
Hi Ismael,

Thanks for the report! 

Could you generate some debugging information, which will hopefully help to narrow down the problem? 

Here's a small guide:
https://community.kde.org/Solid/Projects/ScreenManagement
Comment 2 Ismael Castiñeira Álvarez 2016-07-18 11:17:49 UTC
Created attachment 100149 [details]
kscreen-console bug output before xrandr --auto

This is the output of "kscreen-console bug" after setting up Prime (xrandr --setprovideroutputsource), but before running xrandr --auto
Comment 3 Ismael Castiñeira Álvarez 2016-07-18 11:20:28 UTC
Created attachment 100150 [details]
kscreen-console bug output after xrandr --auto

This is the output of "kscreen-console bug" output after running "xrandr --auto" and succesfully setting the VGA output to extend the desktop.
Comment 4 Sebastian Kügler 2016-07-18 12:13:48 UTC
Could you attach all the details that this wiki page suggests?
Comment 5 Ismael Castiñeira Álvarez 2016-07-18 13:04:48 UTC
This is the output of kcmshell5 kcm_kscreen, with comments when I run xrandr and change settings in the dialog.
https://paste.kde.org/pia6ppmu5
Comment 6 Ismael Castiñeira Álvarez 2016-07-18 13:10:10 UTC
Created attachment 100152 [details]
File in ~/.local/share/kscreen

This is the latest created file. There are several, but most are related to previous monitor configuration with other displays.
Comment 7 Ismael Castiñeira Álvarez 2016-07-18 13:13:29 UTC
Created attachment 100153 [details]
File in ~/.local/share/kscreen

This is another kscreen config file, this one has the VGA1 output config.
Comment 8 Ismael Castiñeira Álvarez 2016-07-18 13:25:33 UTC
This is the kded5 debug output. I put some comments at the poins where I run the xrandr commands: https://paste.kde.org/p5dw9dfuw
Comment 9 Ismael Castiñeira Álvarez 2016-07-18 13:28:09 UTC
(In reply to Ismael Castiñeira Álvarez from comment #8)
> This is the kded5 debug output. I put some comments at the poins where I run
> the xrandr commands: https://paste.kde.org/p5dw9dfuw
I put a comment at a wrong time. This is corrected https://paste.kde.org/pkxbhep5j
Comment 10 Sebastian Kügler 2016-07-18 13:32:59 UTC
Looks useful now, thanks! I'll have a look.
Comment 11 Ismael Castiñeira Álvarez 2016-07-18 13:36:24 UTC
Thanks for your help Sebastian! And sorry for taking this long to upload the logs, I have to log off and on to reset X and disable Prime. Also, it was lunch time ;)
Comment 12 Sebastian Kügler 2016-07-18 13:44:16 UTC
Don't worry. I know this is complex stuff that can be a pain to debug. :)
Comment 13 Faysal 2022-09-01 20:36:25 UTC
Comment on attachment 100149 [details]
kscreen-console bug output before xrandr --auto

Hello

This is my first post here and really don´t know where to write properly, newly I switched from Windows 10 to PcLinuxOs.

Installed perfectly but when it comes final configuration, my laptop lenovo R500 stuck  at 800x600 resolution, tried my best to find maximum solutions but failed.

used cvt, xrandr commands also but it didnt work. Hope I will get some magical solution from world gems.

regards

Here is details of display card.


Identification
Vendor: ‎Intel Corporation

Description: ‎Mobile 4 Series Chipset Integrated Graphics Controller

Media class: ‎VGA compatible controller

Connection
Bus: ‎PCI

PCI domain: ‎0

Bus PCI #: ‎0

PCI device #: ‎2

PCI function #: ‎0

PCI revision: ‎0x07

Vendor ID: ‎0x8086

Device ID: ‎0x2a42

Sub vendor ID: ‎0x17aa

Sub device ID: ‎0x20e5

Misc
Module: ‎Card:Intel 810 and later
Comment 14 Nate Graham 2022-11-10 17:49:26 UTC
Faysal, it sounds like you're experiencing a different issue. Can you file a new bug report? Thanks!

Ismael, can we ask you to please check if the original issue is still a problem with Plasma 5.25 or 5.26?

If it is, please change the status to CONFIRMED when replying. If not, or if you can't because you no longer use this setup, you can change the status to RESOLVED WORKSFORME. Thanks a lot!
Comment 15 Ismael Castiñeira Álvarez 2022-11-10 17:58:40 UTC
(In reply to Nate Graham from comment #14)
> Faysal, it sounds like you're experiencing a different issue. Can you file a
> new bug report? Thanks!
> 
> Ismael, can we ask you to please check if the original issue is still a
> problem with Plasma 5.25 or 5.26?
> 
> If it is, please change the status to CONFIRMED when replying. If not, or if
> you can't because you no longer use this setup, you can change the status to
> RESOLVED WORKSFORME. Thanks a lot!

Hi Nate,

I don't have a VGA monitor anymore, so sadly I can't test this again.