I am using Ubuntu 14.04, but I have installed the package lubuntu-desktop
. Everything was fine till one day, the screen went offset. You can see the grey background at the sides . Windows can only be maximized as much as the desktop background. How can I resolve this issue?
2 Answers
Same problem here, just solved. It's actually quite simple, just didn't think about it.
Just right click over the grey area, you should read something like "close this panel" (translation might not be accurate because I use the italian version of this distro), click on that and the screen automatically resizes. I don't know how I managed to create the problem first though.

- 41
Have you installed openbox as your window-manager? If you haven't install it, as well as obconf, obmenu, and possibly lxsession-edit. The configuration files are in /etc/xdg/openbox dir.
Check and see if you have a $HOME/.config/openbox directory, and whats in that directory, by running the following commands:
:~$ stat $HOME/.config/openbox
:~$ ls $HOME/.config/openbox
If you don't have have the directory, create it, and copy everything from /etc/xdg/openbox to that directory.
In the case that the directory ($HOME/.config/openbox) doesn't exist, yet you have openbox installed run these commands:
:~$ mkdir -p -m0755 $HOME/.config/openbox
:~$ sudo bash
:~# cp -rf /etc/xdg/openbox/* $HOME/.config/openbox/
:~# chown -R yourusername:yourusername $HOME/.config/openbox
:~# exit
NOTE: you should have that directory, and there should be a file titled lubuntu-rc.xml in that directory.
Now you can edit your moving and resizing options, as well as your margins options via the $HOME/.config/lubuntu-rc.xml, or the openbox configuration manager. You might also be able to do this with lxsession-edit.
But as you can tell, the DE is not finding (or setting) the dimensions of your screen properly at startup, therefore is not centering itself. Basically how it works, the code uses some simple math, subtraction of coordinates off the x and y axis, using a few built in functions and the total x,y pixel length of your screen's size; to get centered. So yours has gonna screwy because your configuration got mangled somehow.
This could also be because you made changes to the SystemSettings>Display, most notably it has occurred while connecting a machine to another Monitor with different dimensional specs (e.g. laptop to Flatscreen TV with a hdmi cable).
As a possible debugging test: When you boot, on the top panel of the lubuntu login manager, on the right side there is icon that will allow to select openbox, as well as lubuntu-netbook. Play with these options (login into each one) to see if the issue is occurring across the board on all of the openbox derivatives (the DE's that use openbox as the window manager).

- 539
-
I tried to login using openbox. There I do not face this issue. It is only there in lubuntu. In the lubuntu-rc.xml file the margins are already 0. What field should I change there? – Miheer Jun 14 '15 at 20:38
lubuntu-desktop
package and maybe fixing any missing dependency problems?sudo apt-get install --reinstall lubuntu-desktop && sudo apt-get install -f
Just a shot in the dark.
– sturlabragason Jun 16 '15 at 18:39