INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: GUI not working with VNC and Monitor not connected  (Read 5991 times)

tombert

  • Galactic Citizen
  • ****
  • Posts: 449
GUI not working with VNC and Monitor not connected
« on: September 12, 2017, 07:08:55 am »

Hi all,

I successfully setup MC in Ubuntu 16 LTS with autologin and starting MC.
All works fine as long as a I have a monitor connected. But when unplugging the monitor and continue working via VNC all the menus won't pop up. The application itself shows normally, I can click on the panes etc. and see all my files but e.g. when right clicking on a file no menu appears. Similar with the top menus like File, Edit, View, etc. no menu appears.

Would it be possible that somebody confirms this behaviour?

thx
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13874
Re: GUI not working with VNC and Monitor connected
« Reply #1 on: September 12, 2017, 03:53:48 pm »

Hi all,

I successfully setup MC in Ubuntu 16 LTS with autologin and starting MC.
All works fine as long as a I have a monitor connected. But when unplugging the monitor and continue working via VNC all the menus won't pop up. The application itself shows normally, I can click on the panes etc. and see all my files but e.g. when right clicking on a file no menu appears. Similar with the top menus like File, Edit, View, etc. no menu appears.

Would it be possible that somebody confirms this behaviour?

thx
I don't have that setup however what usually happens on intel PC's in that case is that the XServer resolution is somewhat undefined. What we've seen people do is either put a hardware plug onto the output (VGA or DVI are easier) or run a dummy XServer and configuration files to make it look like it's got a 1920x108 display connected.
Logged

tombert

  • Galactic Citizen
  • ****
  • Posts: 449
Re: GUI not working with VNC and Monitor connected
« Reply #2 on: September 13, 2017, 09:40:37 am »

The default X-Server is running. Simply no monitor connected which causes it to switch to 800x600 on boot. By using xrandr one can change resolution if wanted.

There is no special setup, tricks or whatsoever ...
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13874
Re: GUI not working with VNC and Monitor connected
« Reply #3 on: September 14, 2017, 01:30:40 pm »

Interesting....
So if you set 800x600 WITH a monitor attached, does it work then?
Logged

tombert

  • Galactic Citizen
  • ****
  • Posts: 449
Re: GUI not working with VNC and Monitor not connected
« Reply #4 on: September 14, 2017, 03:45:21 pm »

I saw that my title was wrong - should read "... and Monitor NOT connected"

Yes exactly. I re-verified again.
If I connect a monitor, I am able to open menus etc. normally through either the keyboard attached to the server or also through VNC.
As soon as I disconnect the monitor and control the server via VNC only, the menus do not work. Other applications still work fine.

thx
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5234
  • "Linux Merit Badge" Recipient
Re: GUI not working with VNC and Monitor not connected
« Reply #5 on: September 14, 2017, 04:56:20 pm »

I saw that my title was wrong - should read "... and Monitor NOT connected"

Yes exactly. I re-verified again.
If I connect a monitor, I am able to open menus etc. normally through either the keyboard attached to the server or also through VNC.
As soon as I disconnect the monitor and control the server via VNC only, the menus do not work. Other applications still work fine.

thx

Bob this was the issue I was seeing last year with my debian server (no menus visible via VNC but everything works fine with a monitor plugged in). 

I hadn't connected the issue to monitors being connected or not, but if I boot my server with no monitor connected I have no issues at all in VNC, but if I connect and then disconnect a monitor I can reproduce the issue tombert is seeing.  This is with a more or less vanilla debian stretch install using x11vnc to reproduce the actual desktop via VNC.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13874
Re: GUI not working with VNC and Monitor not connected
« Reply #6 on: September 14, 2017, 05:11:59 pm »

Thanks, those are great hints, I'll see if I can reproduce it.
I bet it has something to do with the xrandr extension.
Oh yes, one more thing, you are using x11vnc for a server and what for a client??
Logged

tombert

  • Galactic Citizen
  • ****
  • Posts: 449
Re: GUI not working with VNC and Monitor not connected
« Reply #7 on: September 14, 2017, 05:19:57 pm »

Thanks, those are great hints, I'll see if I can reproduce it.
I bet it has something to do with the xrandr extension.
Oh yes, one more thing, you are using x11vnc for a server and what for a client??

I am using vino-server.
And TightVNC.
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5234
  • "Linux Merit Badge" Recipient
Re: GUI not working with VNC and Monitor not connected
« Reply #8 on: September 14, 2017, 05:21:40 pm »

Thanks, those are great hints, I'll see if I can reproduce it.
I bet it has something to do with the xrandr extension.
Oh yes, one more thing, you are using x11vnc for a server and what for a client??
'

Bob, I'm using x11vnc for the server, and had the same results with tightvnc and tigervnc for clients.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13874
Re: GUI not working with VNC and Monitor not connected
« Reply #9 on: September 14, 2017, 05:40:20 pm »

I just tried this on a MC22 Id.
It's a NUC running Jessie and x11vnc.
Booted gui mode with monitor attached.
Connected with tigervnc from my linux box.

Pulled the monitor cable.
It still works for all menus with both MC23 and MC22.

The Id uses fluxbox which is far simpler than other DM's
Perhaps there is an issue with a particular desktop?
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5234
  • "Linux Merit Badge" Recipient
Re: GUI not working with VNC and Monitor not connected
« Reply #10 on: September 14, 2017, 06:11:10 pm »

I just tried this on a MC22 Id.
It's a NUC running Jessie and x11vnc.
Booted gui mode with monitor attached.
Connected with tigervnc from my linux box.

Pulled the monitor cable.
It still works for all menus with both MC23 and MC22.

The Id uses fluxbox which is far simpler than other DM's
Perhaps there is an issue with a particular desktop?

The system I tested the issue with was running a debian default install of xfce4 from the tasksel at install.  One possible differentiator: I set the geometry to be used by the desktop in my x11vnc startup service (I set it to 1920x1080), and that geometry is not necessarily the same as the monitor that I attach and detach (I have a little portable screen with an odd resolution).  If I plug in the monitor and then unplug it, I have to use xrandr to restore my old resolution.  That may be part of the puzzle.
Logged

tombert

  • Galactic Citizen
  • ****
  • Posts: 449
Re: GUI not working with VNC and Monitor not connected
« Reply #11 on: September 14, 2017, 07:12:34 pm »

Pulled the monitor cable.
And you did reboot?
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13874
Re: GUI not working with VNC and Monitor not connected
« Reply #12 on: September 15, 2017, 07:57:59 am »

And you did reboot?
No, an intel NUC will not boot without a monitor attached unless nomodeset is specified as a kernel argument and if that's set it can't run the X server.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13874
Re: GUI not working with VNC and Monitor not connected
« Reply #13 on: September 15, 2017, 08:00:43 am »

The system I tested the issue with was running a debian default install of xfce4 from the tasksel at install.  One possible differentiator: I set the geometry to be used by the desktop in my x11vnc startup service (I set it to 1920x1080), and that geometry is not necessarily the same as the monitor that I attach and detach (I have a little portable screen with an odd resolution).  If I plug in the monitor and then unplug it, I have to use xrandr to restore my old resolution.  That may be part of the puzzle.
This sounds promising, the virtual size of the monitor and physical size don't match.
We get the geometry from the xrandr extensions to be able to handle multiple monitors.
That mismatch could be screwing up the popup window code somehow.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13874
Re: GUI not working with VNC and Monitor not connected
« Reply #14 on: September 18, 2017, 12:24:11 pm »

Ok so I can reproduce this.
For me, NONE of the popup menus are working.
DSP studio, right click on files, etc...
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13874
Re: GUI not working with VNC and Monitor not connected
« Reply #15 on: September 18, 2017, 03:21:44 pm »

Found it.
Pulling the monitor messes up the screen geometry calculation. Fixed in the next build.
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5234
  • "Linux Merit Badge" Recipient
Re: GUI not working with VNC and Monitor not connected
« Reply #16 on: September 18, 2017, 05:11:18 pm »

Found it.
Pulling the monitor messes up the screen geometry calculation. Fixed in the next build.

Aces!  I love it when phantom bugs get exorcised
Logged

aoqw76

  • Galactic Citizen
  • ****
  • Posts: 257
Re: GUI not working with VNC and Monitor not connected
« Reply #17 on: September 19, 2017, 06:14:10 pm »

Oooh this could mean I can move on from 22.0.36! Nothing since has worked over vnc.
https://yabb.jriver.com/interact/index.php/topic,110281.0.html
Also xref https://yabb.jriver.com/interact/index.php/topic,109369.0.html
Logged
xubuntu lts 14.04 32 bit, running mc22.0.36 as anything later doesn't work properly over vnc. using linux mc22 as media server to windows mc22 last version / jremote on ipad.
I am the owner / sole admin for www.cyrusunofficial.co.uk ("fan" site for Cyrus Audio hifi)

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13874
Re: GUI not working with VNC and Monitor not connected
« Reply #18 on: September 20, 2017, 10:47:19 am »

Oooh this could mean I can move on from 22.0.36! Nothing since has worked over vnc.
https://yabb.jriver.com/interact/index.php/topic,110281.0.html
Also xref https://yabb.jriver.com/interact/index.php/topic,109369.0.html
Try it and report back please.
Logged

aoqw76

  • Galactic Citizen
  • ****
  • Posts: 257
Re: GUI not working with VNC and Monitor not connected
« Reply #19 on: September 30, 2017, 11:17:38 am »

Hi, works perfectly, running 23.0.65
Many thanks!
Of course I didnt upgrade to 23 before for 2 reasons; menus not working, and non compatibility with 14.04LTS. Bit the bullet and installed 16.04LTS yesterday. Oh that was fun.
Now of course i dont have a licence for 23, and missed the limited time upgrade price for the master licence.
Regards Robert
Logged
xubuntu lts 14.04 32 bit, running mc22.0.36 as anything later doesn't work properly over vnc. using linux mc22 as media server to windows mc22 last version / jremote on ipad.
I am the owner / sole admin for www.cyrusunofficial.co.uk ("fan" site for Cyrus Audio hifi)
Pages: [1]   Go Up