Reply to topic

krfb - sharing specific display

alonbl
Registered Member
Posts
4
Karma
0

krfb - sharing specific display

Wed Dec 05, 2012 7:20 am
Hello,

Just needed to share my desktop during presentation, I found the krfb utility, and it works great!

Although, I need to share the secondary display, while krfb shares only the primary one.

Is there any way to make krfb share a specific display (X output)?

It is required as the secondary display is connected to the projector, and I need remote people to see that display.

Best Regards,
Alon Bar-Lev.
User avatar bcooksley
Administrator
Posts
18607
Karma
83
OS

Re: krfb - sharing specific display

Sat Dec 08, 2012 8:41 am
How is your desktop setup?
Can you move applications from one screen to the next? Does the output of this command differ depending on what screen you run it on?
Code: Select all
echo $DISPLAY


System Settings and Device Actions KCM maintainer
Image
alonbl
Registered Member
Posts
4
Karma
0

Re: krfb - sharing specific display

Sat Dec 08, 2012 8:56 am
bcooksley wrote:How is your desktop setup?
Can you move applications from one screen to the next? Does the output of this command differ depending on what screen you run it on?
Code: Select all
echo $DISPLAY


DISPLAY is the same, as this is a single display.
Laptop LCD(LVDS1) is on 0x0, external VGA is on right.
Code: Select all
xrandr --output VGA1 --auto --right-of LVDS1 --pos 1920x0


I want to share my extranal VGA (VGA1).

Thanks!
User avatar bcooksley
Administrator
Posts
18607
Karma
83
OS

Re: krfb - sharing specific display

Sat Dec 08, 2012 10:05 am
I took a look at the code, and from what I could gather (it uses X11 specific functions) it seems to be grabbing the currently active screen.
If you start it on the presentation screen it should hopefully broadcast that screen instead.


System Settings and Device Actions KCM maintainer
Image
alonbl
Registered Member
Posts
4
Karma
0

Re: krfb - sharing specific display

Sat Dec 08, 2012 10:10 am
bcooksley wrote:I took a look at the code, and from what I could gather (it uses X11 specific functions) it seems to be grabbing the currently active screen.
If you start it on the presentation screen it should hopefully broadcast that screen instead.


Thank you!

I will try... however I almost sure I already have... maybe the fact that the tray icon goes into the primary screen makes it grap that one?

Maybe add explicit option to grab a specific screen? I know little about X but can create a patch if you point me to the right location (where uses the current active screen).
User avatar bcooksley
Administrator
Posts
18607
Karma
83
OS

Re: krfb - sharing specific display

Sat Dec 08, 2012 10:16 am
The code for krfb is located at http://websvn.kde.org/trunk/KDE/kdenetwork/krfb/
It can be checked out via AnonSVN as follows:
Code: Select all
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdenetwork/krfb/


System Settings and Device Actions KCM maintainer
Image
alonbl
Registered Member
Posts
4
Karma
0

Re: krfb - sharing specific display

Sat Dec 08, 2012 10:17 am
Is it QX11Info::display() and DefaultVisual(QX11Info::display(), 0)?

Need to acquire specific display and replace the 0 with the index?
User avatar bcooksley
Administrator
Posts
18607
Karma
83
OS

Re: krfb - sharing specific display

Sat Dec 08, 2012 10:18 am
QX11Info::display() returns the XOpenDisplay() handle that Qt is using internally to access the current X display.
If you can move windows across both screens however then the "display" is crossing over both screens - from what I understand of it anyway.


System Settings and Device Actions KCM maintainer
Image

 
Reply to topic

Bookmarks



Who is online

Registered users: anditosan, Baidu [Spider], Bing [Bot], bshah, doublerainbow64, eagleton, Exabot [Bot], garthecho, Google [Bot], google01103, koriun, La Ninje, Majestic-12 [Bot], mmistretta, odysseus-art, pedrorodriguez, rulet111, scummos, SecretCode, TheraHedwig, Yahoo [Bot], z-uo