portrait mode?
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
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
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
Maybe you also need something like
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.
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: Select all
Option "Rotate" "CW" ## CW or CCW
Code: Select all
Option "RandRRotation" "on"
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
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?
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?
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:
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:
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: Select all
<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: Select all
#!/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 $@
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
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
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
That's odd, the point is to not exit X.
What happens if you change `exec $@` to `exec jwm`?
What happens if you change `exec $@` to `exec jwm`?
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
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.
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
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?
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?
Solution Found
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
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
Yes, I thought I described this in my first post. Are you happy with bhunter89's solution?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.
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.
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Hi
JWM is not the problem! JWM works in both situations. The problem are the "choices of Puppy using JWM" and it is different!
see my last screen snap shot:
I did move the 2 icons sda1 and sda5 manually on the screen after the rotation.
but it is possible to adapt JWM with a automatic hidden tray with this text:
important are both:
Layout vertical
and
valign center
This is in landscape as in portrait the same !
and a background being neutral after the rotation (one colour !)
But
how to adapt the "geometry" of the 2 (in my case!) ugly icons sda1 and sda5 so they are not in the middle of the screen after the rotation (it is my spare part hard disk as my 1 terra byte hard disk did break last week end, normally I may have not 2 partition's icons but 15 or 20 on a 1 terra byte hard disk!!! and those icons in the middle may really disturb!)
here a view on an application, a realistic bike way in north south direction on 16,350 km
the hidden tray left is REALLY very useful in case you did resize a window in such kind, that the head bar of the window is not accessible any more! hitting right mouse key of the mouse on the dynamic placed icon of seamonkey, libre office etc. in the tray allow you to recover all the power on the window you need to resize better for your actual situation. old users of the legendary "Puppy Xtrem" will remember on that beautiful hidden micro tray left of the screen! I did never understand why the other Puppy's and Puppy derivates use somewhat else, really! erase your /root/.jwmrc-tray and your /root/jwm directory! but remember that you have to make more to have permanent chance under the effect of the dynamic menu management (read please README.txt in /etc/xdg/templates but I don't know if it is really actual, as somewhere did change the management of the menu maintenance: I never add some app's and make only a copy of my .jwmrc in case where...)
see also: http://www.murga-linux.com/puppy/viewto ... 442#718442
PS: for the snaps shot, I did fix the tray making it "hidden:false" and it's position is depending of that selection not dynamic but fixed in the center of the old format! in the case of "hidden:true" the tray move to the center of the new format!
JWM works very well: fixed is fixed, dynamic is dynamic... it is so, they are bad puppy choices.
JWM is not the problem! JWM works in both situations. The problem are the "choices of Puppy using JWM" and it is different!
see my last screen snap shot:
I did move the 2 icons sda1 and sda5 manually on the screen after the rotation.
but it is possible to adapt JWM with a automatic hidden tray with this text:
Code: Select all
<Tray autohide="true" layout="vertical" insert="left" valign="center" >
<TrayButton icon="mini-question.xpm">root:3</TrayButton>
<Pager/>
<TaskList/>
<Dock/>
<Clock format="%H:%M">PupClockset</Clock>
</Tray>
Layout vertical
and
valign center
This is in landscape as in portrait the same !
and a background being neutral after the rotation (one colour !)
But
how to adapt the "geometry" of the 2 (in my case!) ugly icons sda1 and sda5 so they are not in the middle of the screen after the rotation (it is my spare part hard disk as my 1 terra byte hard disk did break last week end, normally I may have not 2 partition's icons but 15 or 20 on a 1 terra byte hard disk!!! and those icons in the middle may really disturb!)
here a view on an application, a realistic bike way in north south direction on 16,350 km
the hidden tray left is REALLY very useful in case you did resize a window in such kind, that the head bar of the window is not accessible any more! hitting right mouse key of the mouse on the dynamic placed icon of seamonkey, libre office etc. in the tray allow you to recover all the power on the window you need to resize better for your actual situation. old users of the legendary "Puppy Xtrem" will remember on that beautiful hidden micro tray left of the screen! I did never understand why the other Puppy's and Puppy derivates use somewhat else, really! erase your /root/.jwmrc-tray and your /root/jwm directory! but remember that you have to make more to have permanent chance under the effect of the dynamic menu management (read please README.txt in /etc/xdg/templates but I don't know if it is really actual, as somewhere did change the management of the menu maintenance: I never add some app's and make only a copy of my .jwmrc in case where...)
see also: http://www.murga-linux.com/puppy/viewto ... 442#718442
PS: for the snaps shot, I did fix the tray making it "hidden:false" and it's position is depending of that selection not dynamic but fixed in the center of the old format! in the case of "hidden:true" the tray move to the center of the new format!
JWM works very well: fixed is fixed, dynamic is dynamic... it is so, they are bad puppy choices.