Menu

#684 lxpanel 0.7.1: 'Monitors" setting does not update when a monitor is disabled

None
open
nobody
lxpanel (297)
3
2014-11-18
2014-09-28
Stenten
No

My panel is set to 'monitor=1', which is my laptop screen. If I plug in my external monitor and extend the screen:
xrandr --output HDMI1 --auto --left-of LVDS1

now monitor1 is my external monitor, and monitor2 is my laptop screen. So now my panel is on my external monitor, since its setting is still 'monitor=1'.

Next, I change the monitor setting to 2 so the panel is shown on my laptop screen (monitor2 now).

If I then disable my external monitor:
xrandr --output HDMI1 --off

the panel's monitor setting is still 'monitor=2', but now monitor1 is back to being my laptop monitor and there is no monitor2 anymore. So this results in the panel being on a monitor that no longer exists.

Discussion

  • Stenten

    Stenten - 2014-11-16

    Still present in lxpanel 0.7.2.

    This bug seems fairly serious, because if I forget to change my panel back to monitor1 before turning off the second monitor (or turning the computer off or unplugging the second monitor), the panel disappears (it's on a monitor that does not exist), and there's no way to recover the panel if I don't have access to an external monitor (I have to turn on a second monitor in order to access monitor2 again where the panel is in order to right-click the panel and change the monitor setting via the GUI).

    I tried changing the "monitor" setting in ~/.config/lxpanel/LXDE/panels but it doesn't do anything. In fact, changing the monitor setting in the GUI has no effect on this parameter in the config file, which seems odd.

    If anyone knows of a workaround I can use to recover my panel if I don't have access to a second monitor, that would be wonderful.

     
  • Lonely Stranger

    Lonely Stranger - 2014-11-17

    Well, speaking of a workaround - you can use simple one - change monitor in the config and then restart panel. This might not work with 0.7.2 still but that should definitely work with current code in the GIT repository. And GUI options should work now also.

    I agree, there should be some GUI option to move invisible panels to visible monitor. This is rather a feature request though. Thank you for the issue brought to attention.

     

    Last edit: Lonely Stranger 2014-11-17
  • Lonely Stranger

    Lonely Stranger - 2014-11-17
    • Group: -->
    • Priority: 5 --> 3
     
  • Stenten

    Stenten - 2014-11-18

    I can confirm that changing the monitor setting in the config and restarting the panel works; the only note for anyone else is that the 'monitor' setting in the config is one less than that in the GUI, i.e. monitor1 in the GUI is monitor=0 in the config file, etc.

    Thanks for the help, it's much appreciated.

     

Log in to post a comment.

Auth0 Logo