You are not logged in.
Pages: 1
Dear guys,
I need to use my PC in a portrait way.
So I googled a bit and found my way to it. I changed [c]/etc/X11/xorg.d/50-Monitor.conf[/c] so that:
[c]Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Option "Rotate" "Left"
EndSection[/c]
I also modified [c]/etc/X11/xorg.conf.d/70-Screen.conf[/c] so that I added
[c]Modes "600x800"[/c]
to each one of its "Display" subsections.
I ended up with a system that properly understands console maximization (and maximizing every application I launch from command line), but neither the desktop itself nor applications launched from .profile (for automated startup).
This is just annoying. I can live with it.
However, I'd like to have a better, clever approach to it.
Does anybody have any experience with it? Please comment.
Kind regards,
Offline
You could at a delay of a few seconds at the top of ~/.config/openbox/autostart.sh
Maybe add something like:
[c]sleep 2[/c]
Offline
@wildarch:thank you so much for your contribution.
However, I wonder how adding such a waiting window could help the system getting the right appearance...
I feel I lost something in the middle.
Can you explain it?
THKS
Offline
Options like screen rotation tend to be applied after initialising the server itself. My guess is that Xorg doesn't have time to adjust the resolution before your desktop comes up using the wrong settings.
Offline
@wildarch: I've been out for a little while, working on another urgent project.
Now that I'm back, I tried to add such a delay in openbox autostart.sh.
No effect to date. The desktop keeps using what seems to be a 800 x 800 desktop (instead of a 600x800 one). However, if you pick the upper bar of any maximized window and drag the pointer down- and left-ward, the window switches to a proper 600 px width, while it keeps the 800 px height. Picking on the upper bar and dragging the pointer up- and right-ward, the window switches to the former 800x800 size...
So it seems the proper size is known by the system but its application doesn't seem to be as consistent as I'd guess or, as I said, I lost something along the way...
Any hint?
Thank you so much for your time and your help.
Offline
check xrandr --output (your device here) ..rotate (normal, inverted, left, right)
xrandr -h for help.
you could create a script and make your .xinitrc call it (not tested, just an idea)
Offline
@ernia: I have finally found a little time to spare with this subject.
Using [c]xrandr --current[/c], here's what I get from my Slitaz system:
[c]Screen 0: minimum 320 x 200, current 800 x 800, maximum 4096 x 4096
LVDS1 connected 600x800+0+0 left (normal left inverted right x axis y axis) 0mm x 0mm
800x600 60.3 + 60.3* 56.2
640x480 59.9
VGA1 connected 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.0
800x600 60.3* 56.2
848x480 60.0
640x480 59.9[/c]
The SBC we're using seems to have two independent outputs: LVDS and VGA. LVDS is currently set to work on 600x800. VGA is set to work on 800x600. Maybe Screen is working on 800x800 in order to cope with both interfaces?
Where does the system keep Screen, LVDS and VGA status? I could either switch VGA to 600x800 as well or turn it off for good. May I guess Screen would keep by the proper 600x800 in any of those cases?
Please help. Thank you so much in advance.
Kind regards,
Offline
Dear all,
From the moment I posted my last comment, things have changed a bit.
Now I need the VGA output to resemble the LVDS output.
So now I need it to be reconfigured to 600x800 and pair the LVDS current config.
However, no matter what I try to do with [c]xorg.conf.d[/c] files, it doesn't seem to have any effect on the VGA.
I would thank you for any suggestion you may come with.
My best regards.
Antonio
Offline
Dear all,
Just for you to have some details on the system, I'm including the result for [c]lspci | grep raphics[/c]:
[c]00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)[/c]
And here are the only useful lines of [c]/etc/X11/xorg.conf.d/60-Device.conf[/c]:
[c]Section "Device"
Identifier "Card0"
Driver "intel"
BusID "PCI:0:2:0"
EndSection[/c]
[c]/etc/X11/xorg.conf.d/10-ServerLayout.conf[/c] reads as:
[c]Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen 0" 0 0
EndSection[/c]
Please help!
Thank you so much
Antonio
Offline
Hi arodulfo,
Your problem really has simple solution.
Don't touch XOrg configs, all you need is terminal/console and xrandr command. It has many interesting options and possibilities, but you want only one.
Open your terminal (as regular user, not as root), and type
[c]xrandr[/c]
My output:
[c]Screen 0: minimum 320 x 200, current 1024 x 600, maximum 4096 x 4096
LVDS1 connected 1024x600+0+0 (normal left inverted right x axis y axis) 195mm x 113mm
1024x600 60.0*+
800x600 60.3 56.2
640x480 59.9
VGA1 disconnected (normal left inverted right x axis y axis)[/c]
So, I have LVDS1 and VGA1, remember them.
Next commands to rotate VGA1 display:
[c]xrandr --output VGA1 --rotate left
xrandr --output VGA1 --rotate right
xrandr --output VGA1 --rotate inverted
xrandr --output VGA1 --rotate normal[/c]
What is left, right, inverted and normal? If you have LXPanel on the top of your screen, then it will move to: left, right, down (inverted) and up (normal).
If you need permanent effect, add your command to autostart.
Happy SliTaz!
Offline
Dear all,
By reading [c]arandr[/c] post on multi-screen configuration for slitaz, I have managed to solve the biggest of my problems here. Now I have my system showing its desktop through both its local display and the external display I have just attached to its VGA output.
The trick has been to use [c]xrandr[/c] with:
[c]xrandr --output LVDS1 --mode 800x600 --pos 0x0 --rotate left --output VGA1 --mode 800x600 --pos 0x0 --rotate left[/c]
Should you need one monitor besides the other, so extending desktop size to the full extents of them added to each other, you just have to issue:
[c]xrandr --output LVDS1 --mode 800x600 --pos 0x0 --rotate left --output VGA1 --mode 800x600 --pos 600x0 --rotate left[/c]
LVDS1 is the internal display and VGA1 is the external display in my setup.
The next concern to solve is making this configuration survive a power cycle. I'm studying xorg.conf fields so that I could describe it all for the X-server to act according to our needs.
Thank you so much for being there!
As soon as I get the answers, I'll report it here!
Kind regards,
Antonio
Offline
Dear all,
In our system, I was already running a small script from [c].profile[/c].
This script was creating an environment variable meant to inform our application of the orientation set in the display up. By checking this variable, our application would know if there was any mismatch between configured orientation and actual display orientation and would be able to fix that mismatch.
Before trying other tricks, I put an [c]xrandr[/c] command in the matching orientation scripts (I have two, one for portrait orientation and another one for landscape orientation, so I just have to copy one of them to the proper file) and... voilà! I have my external display properly set at startup.
However, I felt this way to solve the issue was a bit too harsh. I wanted something smarter, implemented through the use of [c]xorg.conf[/c] and [c]xorg.conf.d[/c] files. No luck yet.
Without resorting to include an actual [c]xrandr[/c] command in that script, I don't have the external VGA display properly set (resolution, orientation, and so on).
Any ideas?
Thank you so much for your help!
Kind regards,
Antonio
Offline
Dear all,
By the way, after including the proper [c]xrandr[/c] command in the startup process, not only both displays do show the same info: The desktop, the wallpaper, the icons, all of them do comply with the screen resolution I have defined.
You just take into account that I have set both displays to start at position (0,0) (--pos 0x0).
Kind regards,
Antonio
Offline
Dear all,
I have reviewed [c]/var/log/Xorg.0.log[/c] contents.
Inside it, there's a reference to "Output LVDS1 using monitor section Monitor0" and another one to "Output VGA1 has no monitor section".
There's the reason for my settings not to have the success I was looking for.
I have also reviewed [c]/etc/X11/xorg.conf.d/[/c] files and there's no explicit reference to output LVDS1, nor any assignment of Monitor0 to LVDS1. What am I failing to control / set?
Thanks a lot for being there!
Kind regards,
Antonio
EDIT: My regards to Aleksej as well. I was so happy for having found an approach to our problem that I didn't notice his post, as close to the target as usual. Thanks a lot to you as well.
Offline
@ Aleksej,
Maybe you have already read my posts here. Thanks a lot for your contribution.
I keep wondering if there is any approach through using xorg settings.
I have successfully applied this solution to the problem, but feel it is a bit harsh, isn't it?
Kind regards,
Antonio
Offline
Pages: 1
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.57 MiB (Peak: 1.77 MiB) ]