[SOLVED] Using two screens. Can someone explain this geometrical puzzle?
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
Section "ServerLayout"
Section "Monitor" #as many as monitors
Section "Device" #as many as monitors
Section "Screen" #as many as monitors
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
I'm pretty sure I only have one video device. It's a Via Chrome chip running Openchrome.
what you're seeing could well be a limitation of this hardware/driver.
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
The messy "Screen" one for me was the HDMI plug, which could do 1920x1080, or 1280x720. X would check & adjust accordingly. It's very forgiving of idiots, I discovered. By setting the Virtual wide, I effectively set "RightOf" also. Here's the trick Screen
One "Display" subsection handled the (now obsolete) projector. One handled the hdmi monitor. Each had it's own virtual setting. Setting the "Position at '1601, 0' put it right of my laptop screen. The (Primary)left screen had the Desktop, and I could boot X, log into the website (entering User & passsword) and then move it right. The audience saw none of that over the projector, only what I dragged over to the right.
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
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?
I have one flat screen monitor plugged into a vga port plus the laptop's internal screen. xrandr calls them VGA1 and LVDS1. In arandr, they overlap. Are you implying that if I moved one of them so that they didn't overlap, I would get a bigger desktop? How big does it get?
Quote:
what is the output of
Code:
xrandr
???
I'm on another machine at present but my recollection is that xrandr gives two entries for VGA1 and LVDS1 with different screen sizes.
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
LVDS-1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 260mm x 170mm
1280x800 60.00*+
VGA-1 connected primary 1280x1024+0+0 (normal left inverted right x axis y axis) 340mm x 270mm
1280x1024 60.02*+ 75.02
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
720x400 70.08
As you can see, I have now switched the VGA monitor to be primary and consequently the panel appears at the bottom of this screen, not part way down. So far I haven't got it to apear on the LVDS screen at the same time but I'm working on it. (Yup! Got that now)
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.
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.
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.
Errm? If I set the position of the second screen as you suggest, I would get the two screens showing side-by-side images. But the LVDS screen (now the secondary screen) would still be different in height because that is a physical reality; it can't be wished away. And as it is shallower than the VGA screen, if I align the tops, the bottoms won't be aligned and the LVDS screen won't show the panel. I know because I tried that in yesterday's experiments.
To have the panel showing on both of them, I need to align the bottoms of the two screens, not the tops.
To have the panel showing on both of them, I need to align the bottoms of the two screens, not the tops.
i think this is a limitation of the panel icewm uses.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.