| Author |
Message |
bhunter89
Joined: 28 Apr 2010 Posts: 6
|
Posted: Tue 27 Jul 2010, 19:07 Post subject:
portrait mode? Subject description: How can I change my display to portrait mode |
|
I have a 1280x768 monitor that I need to display in portrait mode.
I can rotate the screen using the "xrandr -o left" command to rotate the screen but I cant figure out how to then change the resolution to 768x1280.
this leaves the right side of the screen non viewable.
Can anyone help me.
Thanks
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6181 Location: Auckland, New Zealand
|
Posted: Tue 03 Aug 2010, 06:50 Post subject:
|
|
I don't understand... if it rotates then the resolution has changed to 768x1280.
I guess you mean that the task bar is still positioned and sized as if the screen was 1280x768. Is that right? Unfortunately JWM (Puppy's default window manager) doesn't yet cope with rotating on the fly. If you rotate the screen when you start X then it should be OK. IIRC this is done with an option in Xorg.conf something like | Code: | | Option "Rotate" "CW" ## CW or CCW |
Maybe you also need something like | Code: | | Option "RandRRotation" "on" |
Alternatively, if you need to rotate on the fly, and you don't want to find a window manager that supports it, you need to come up with another solution. Personally I use a little script MU made which allows me to exit JWM without killing X... but Dougal sent me a better (although IIUC it doesn't work with a shutdown menu like I use) suggestion which I think I finally understand. Let me know if you need more information.
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
bhunter89
Joined: 28 Apr 2010 Posts: 6
|
Posted: Tue 03 Aug 2010, 16:55 Post subject:
|
|
Thank you,
you are correct the screen is positioned like it is 1360x768 turned on its side.
with the lower half unusable.
I have tried entering the option rotate in the xorg.conf file in various ways.
x just ignores it or crashes.
I have also tried the Zarfy puplet with the same results.
Any other suggestions?
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6181 Location: Auckland, New Zealand
|
Posted: Wed 04 Aug 2010, 06:21 Post subject:
|
|
That sounds suspicious.
I see Dougal gave me a complete working solution:
What happens if you follow these steps then use the new menu entry?
1. edit /etc/xdg/templates/_root_.jwmrc to add this line before the </RootMenu> line:
| Code: | | <Exit confirm=\"false\" label=\"Rotate screen\" icon=\"screen.png\">rotatescreen.sh jwm</Exit> |
2. run `fixmenus` then run `jwm -restart`
3. create a new script called rotatescreen.sh in /usr/X11R6/bin/ or somewhere and put this in it:
| Code: | #!/bin/sh
# Script to rotate screen and restart WM
# handle WM stuff (could be removed if just sticking with JWM)
NEXTWM="$@"
if [ -z "$NEXTWM" ] ; then
read PREVIOUSWM= < /etc/windowmanager
NEXTWM="$PREVIOUSWM"
fi
echo -n "$NEXTWM" > /etc/windowmanager #this makes change permanent.
echo -n "$NEXTWM" > /tmp/wmexitmode.txt
# handle rotation
read ORIENT < /etc/screenorientation
[ -z "$ORIENT" ] && ORIENT="normal"
case $ORIENT in
normal) ORIENT="left" ;;
left) ORIENT="normal" ;;
esac
xrandr -o $ORIENT
echo $ORIENT > /etc/screenorientation
# run next WM
exec $@ |
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
bhunter89
Joined: 28 Apr 2010 Posts: 6
|
Posted: Thu 05 Aug 2010, 12:34 Post subject:
|
|
I tried your suggestion. This is is what happens when I click the icon:
This script will run X windows for you...
Starting X, specs in /etc/X11/xorg.conf, startup apps /root/.xinitrc...
Exited from X. Type "xwin [fvwm95|jwm]" to restart X ([ ] mean optional).
(To shutdown PC type "poweroff", to reboot PC type "reboot")
[1;35mIf X failed to start, type "xorgwizard" to setup X[0;39m
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6181 Location: Auckland, New Zealand
|
Posted: Fri 06 Aug 2010, 21:12 Post subject:
|
|
That's odd, the point is to not exit X.
What happens if you change `exec $@` to `exec jwm`?
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
bhunter89
Joined: 28 Apr 2010 Posts: 6
|
Posted: Mon 09 Aug 2010, 10:36 Post subject:
|
|
The same thing happens
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6181 Location: Auckland, New Zealand
|
Posted: Tue 10 Aug 2010, 05:52 Post subject:
|
|
Weird. I don't know what's going on there... unless its just a buggy video card. I vaguely remember now having a similar problem with a video card that just crashed X when I used xrandr.
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
bhunter89
Joined: 28 Apr 2010 Posts: 6
|
Posted: Tue 10 Aug 2010, 12:02 Post subject:
|
|
I did some more trouble shooting and noticed that the screen is rotating properly using the xrandr -o left command. The resolution does change correctly.
What is happening is that the desk top is not resizing itself to the new resolution. The task bar remains in the same position as the landscape resolution and will not move and remains on top of all windows.
I am able to drag windows down into the bottom of the screen, but if I maximize a window it resizes itself to the desk top area.
Any Ideas on how to make the desk top adjust to the new resolution?
|
|
Back to top
|
|
 |
bhunter89
Joined: 28 Apr 2010 Posts: 6
|
Posted: Thu 23 Sep 2010, 18:55 Post subject:
Solution Found Subject description: I found the solution for rotating your screen at bootup |
|
download and install icewm window manager
Go to http://murga-linux/puppy/viewtopic.php?p=410225#410225
Edit the /root/.xinitrc file add the following line after the
section that sets the xrandr -s $XRANDRINDEX
xrandr -o left
save file and reboot
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6181 Location: Auckland, New Zealand
|
Posted: Fri 24 Sep 2010, 20:15 Post subject:
|
|
| bhunter89 wrote: | The task bar remains in the same position as the landscape resolution and will not move and remains on top of all windows.
I am able to drag windows down into the bottom of the screen, but if I maximize a window it resizes itself to the desk top area. |
Yes, I thought I described this in my first post. Are you happy with bhunter89's solution?
If you want to stick with JWM instead, the workaround in my second post should work. I think the problem was that you were clicking the script in Rox, but it will only work if you use the menu entry.
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
|