Bug 249930

Summary: support for multi-monitor view [patch]
Product: [Applications] digikam Reporter: Alexander Fieroch <alexander.fieroch>
Component: Plugin-Generic-PresentationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, neves, spielmops
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In: 2.5.0
Sentry Crash Report:
Attachments: Set location of the slideshow widget to the active window monitor
Ken Burns Slideshow crash backtrace
Crash report gwenview starting Ken Burns slideshow on secondary monitor

Description Alexander Fieroch 2010-09-02 19:35:33 UTC
Version:           1.2.0
OS:                Linux

I'd like to show images on a second monitor like a TV connected through HDMI or DVI. I'm using my own digiKam filters for a set of images, that's why I want to show images with digiKam and not the complete directory with another viewer.

Starting digiKam on the second xserver like on the TV and starting a slideshow or the OpenGL viewer the images appear only on the first screen on my PC monitor and not on the second one. 

Reproducible: Always

Steps to Reproduce:
Try to start a slideshow/OpenGL-viewer on images using a second display.


Expected Results:  
It would be great to set a target display for slideshows or OpenGL viewer or at least to use that xserver that is used for starting digiKam.
Comment 1 caulier.gilles 2011-12-22 15:17:27 UTC
*** Bug 204688 has been marked as a duplicate of this bug. ***
Comment 2 caulier.gilles 2011-12-22 15:18:17 UTC
*** Bug 95592 has been marked as a duplicate of this bug. ***
Comment 3 Ludovic Pageaud 2011-12-23 18:34:24 UTC
Created attachment 67066 [details]
Set location of the slideshow widget to the active window monitor

I use xrandr on ubuntu 11.10 and also have slideshow always displayed on first monitor.

I propose this attached patch to have slideshow on digikam's monitor.
This allow to have the slideshow on the second monitor if digikam is displayed on it.

However on my configuration I have a crash with Ken Burns slideshow on second monitor (not on the first)
See my next comment.
Comment 4 Ludovic Pageaud 2011-12-23 18:38:14 UTC
Created attachment 67067 [details]
Ken Burns Slideshow crash backtrace

Here is the backtrace of Ken Burns crash on second monitor.

Removing the call to XRRConfigCurrentRate prevent the crash.
But, well, this function call should be of some use.
Comment 5 caulier.gilles 2011-12-23 20:52:53 UTC
Thanks Ludovic,

Can you patch also the simple digiKam slideshow part (it's not a kipi-plugin). Code is here :

https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/show/utilities/slideshow

Thanks in advance

About crash, it's reproducible also here. I think there is another bugreport about it.

Gilles Caulier
Comment 6 caulier.gilles 2011-12-23 21:05:28 UTC
Git commit 3a5f0bd85db37cc3099bb71bd0d9d53ab6b25203 by Gilles Caulier.
Committed on 23/12/2011 at 22:04.
Pushed by cgilles into branch 'master'.

apply patch #67066 from Ludovic Pageaud
BUGS: 249930

M  +2    -1    advancedslideshow/widgets/slideshow.cpp
M  +2    -1    advancedslideshow/widgets/slideshowgl.cpp
M  +2    -1    advancedslideshow/widgets/slideshowkb.cpp

http://commits.kde.org/kipi-plugins/3a5f0bd85db37cc3099bb71bd0d9d53ab6b25203
Comment 7 Hartmut 2011-12-24 10:51:15 UTC
Ludovic,

please be careful with the terms "first monitor" and "second monitor". 
If yout take the "main monitor", where everythig should appear if not 
otherwise declared for the "first monitor", the slideshow appears in my 
case on the second monitor. I think its a case of geometry and the terms 
"first" and "second" depend on wether your "second monitor" is placed 
right or left from the main monitor.

By the way: I propose we should be able to chose, which monitor ..

Merry Xmas to all of you,

Hartmut


Am 23.12.2011 19:34, schrieb Ludovic Pageaud:
> https://bugs.kde.org/show_bug.cgi?id=249930
>
>
>
>
>
> --- Comment #3 from Ludovic Pageaud<ludpg spec+kde gmail com>   2011-12-23 18:34:24 ---
> Created an attachment (id=67066)
>   -->  (http://bugs.kde.org/attachment.cgi?id=67066)
> Set location of the slideshow widget to the active window monitor
>
> I use xrandr on ubuntu 11.10 and also have slideshow always displayed on first
> monitor.
>
> I propose this attached patch to have slideshow on digikam's monitor.
> This allow to have the slideshow on the second monitor if digikam is displayed
> on it.
>
> However on my configuration I have a crash with Ken Burns slideshow on second
> monitor (not on the first)
> See my next comment.
>
Comment 8 André 2013-08-22 07:17:12 UTC
Created attachment 81847 [details]
Crash report gwenview starting Ken Burns slideshow on secondary monitor

If I want to start a advanced slideshow in the following dual monitor configuration:

Screen 0: minimum 320 x 200, current 3600 x 1200, maximum 8192 x 8192
LVDS1 connected primary 1680x1050+1920+0 (normal left inverted right x axis y axis) 331mm x 207mm
   1680x1050      60.0*+   50.0  
   1400x1050      60.0  
   1280x1024      60.0  
   1280x960       60.0  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
HDMI2 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200      60.0*+
   1600x1200      60.0  
   1680x1050      59.9  
   1280x1024      60.0  
   1440x900       59.9  
   1280x960       60.0  
   1024x768       60.0  
   800x600        60.3  
   640x480        60.0  

Then the Ken Burns Opengl slideshow plays fine on the primary LVDS1 monitor, but crashes on the HDMI2 secondary monitor. If I mirror both monitors, then the Ken Burns slideshow also plays fine. 

System info:

Arch Linux Kernel 3.10.7

> digikam -v
Qt: 4.8.5
KDE: 4.11.00
digikam: 3.3.0

> Gwenview: 4.11.0

> lspci 
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)

> mesa-libgl 9.1.6