Using two screens. Can someone explain this geometrical puzzle?
I don't much like the screen on my laptop so I plugged in a monitor. Now I have nice bright colours instead of drab ones. But of course the monitor screen has a different aspect ratio from the laptop screen. It is much deeper.
I expected that the screen image on the monitor would be distorted, but it is not. What has happened instead is that the icewm panel appears about one third of the way up the screen and the wallpaper continues below it. I can move the mouse pointer into this lower area but, when I do, it disappears from the laptop screen completely. I can also drag a window so that its bottom is below the panel, and the laptop screen then shows the window as truncated. What exactly is going on here? On my desktop machine, the monitor shows the panel at the bottom and I cannot move the mouse pointer below it; it just glides along the bottom. |
I researched this a while back. Write yourself a video.conf in /etc/X11/xorg.conf.d/ It has to have 4 xorg.conf sections:
Man xorg.conf gives all the help you want. I configured for a 1600x900 Laptop Screen, a 1920x1080 monitor on hdmi, a projector of 1280x720 on hdmi, and an unknown monitor on vga plug. All were used sometime. If you start X, it simply detects and configures what's there. Settings like "Position"(On a virtual screen) "RightOf", & "PreferredMode" made things easy. We had a Streaming link to be shown to audiences in 6 languages over a weekend. 3 guys offered their pcs - one windows, one mac & me. Everyone had to use linux :-D. The sound was actually a worse headache. |
I'm pretty sure I only have one video device. It's a Via Chrome chip running Openchrome. This isn't like those DIY setups where you start with a basic on-board chip and then slot in a high-end graphics card as an upgrade.
If I go your way, I shall probably just need two screen sections, each referencing a different monitor. I hope the Xorg log can tell me what the video modes are. I have zero knowledge about that sort of thing. But I still don't understand why the external monitor gives me a different picture rather than just a distorted version of the same one. |
I only have one video device too, a good-for-little Intel HD4000. But it ran 1280x720 HDMI and 1600x900 and kept lip-synch on the meeting I mentioned, which was all I cared about. The "Device sections were identical
Code:
Section "Device" |
Quote:
but, instead of messing around with xorg.conf, i'd try arandr. install it, if you don't have already, and drag the screens around and change their resolutions until you have what you want, then apply, and save as a script for later use (autostart). |
hazel, I doubt if you'll need Modelines. X will choose them for you. That crap relates to Analogue Monitors with CRT tubes. Set Modes.
Set a "Position" for your laptop screen as 0,0. You can then set your other screen as 0,0 (to get the same) or as RightOf Screen0. It's that simple. The chrome chip may be ok. https://www.phoronix.com/scan.php?pa...tem&px=MTM0MTI I imagine it's in the same class as mine: good-for-little :-). But that might be good enough. I hardly imagine you're into Minecraft, or Dungeons & Dragons :-). Here's my main Monitor section Code:
Section "Monitor" Code:
Section "Screen" The hardest basic test is does it lip synch a fullscreen movie with a lot going on in the background. The redrawing is a heavy load. |
I've been playing about with arandr. By raising the internal screen to overlap the upper rather than the lower part of the vga screen, I could reproduce the odd position of the icewm panel on the latter. But that turned out to be a bad idea because it frequently caused the upper parts of windows to disappear. And of course without access to the title bar at the top of the window frame, you can't pull it back down again.
For the shallower internal screen, it obviously makes more sense to have maximum space above the panel rather than extra space below. But I still haven't had an answer to my original question: what is actually going on here? Does the "real" image generated by X have space below the panel (as shown by the vga monitor) or not? If the internal screen shows this real image, where does the extra space on the vga display (complete with wallpaper!) come from? Why isn't it just black? And if this is not real, how come the cursor disappears from view in the smaller screen when it moves into this nonexistent lower area? |
i might have misunderstood the situation; how many monitors do you have connected and active? 1 or 2?
are they both showing the same desktop, or are they side by side? what is the output of Code:
xrandr |
Quote:
Quote:
|
Just checked it. When the screens are separated in arandr, they do indeed show separate desktops. I can move the cursor from one onto the other. I can get a desktop menu on the second desktop but any applications that I launch open on the primary desktop.
Here is the output from xrandr: Code:
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 2048 x 2048 It looks like xorg makes an image that will cover the total non-overlapping screen area. Then the window manager (Icewm in this case) covers that area in wallpaper and adds the furniture. The panel goes at the bottom of whichever screen is primary. |
it is possible that different panels and windowmanagers handle these things differently.
|
By setting the 2 screens as 'Position 0 0' you can have them display the same thing. I see your primary is 1280x1024. If you set the position of the other at '1281 0' you should eliminate the height difference.
|
Quote:
To have the panel showing on both of them, I need to align the bottoms of the two screens, not the tops. |
Quote:
unless you want this behaviour, you should check if icewm offers configuration to restrict the panel to 1 monitor. i know that other panels (tint2) have this. |
All times are GMT -5. The time now is 09:59 PM. |