Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Dec 2014, 19:19
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Video
portrait mode?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
bhunter89

Joined: 28 Apr 2010
Posts: 6

PostPosted: 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
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6464
Location: Auckland, New Zealand

PostPosted: 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
View user's profile Send private message 
bhunter89

Joined: 28 Apr 2010
Posts: 6

PostPosted: 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
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6464
Location: Auckland, New Zealand

PostPosted: 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
View user's profile Send private message 
bhunter89

Joined: 28 Apr 2010
Posts: 6

PostPosted: 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")
If X failed to start, type "xorgwizard" to setup X
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6464
Location: Auckland, New Zealand

PostPosted: 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
View user's profile Send private message 
bhunter89

Joined: 28 Apr 2010
Posts: 6

PostPosted: Mon 09 Aug 2010, 10:36    Post subject:  

The same thing happens
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6464
Location: Auckland, New Zealand

PostPosted: 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
View user's profile Send private message 
bhunter89

Joined: 28 Apr 2010
Posts: 6

PostPosted: 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
View user's profile Send private message 
bhunter89

Joined: 28 Apr 2010
Posts: 6

PostPosted: 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
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6464
Location: Auckland, New Zealand

PostPosted: 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
View user's profile Send private message 
oui

Joined: 20 May 2005
Posts: 2169
Location: near Woof (Germany) :-) Acer Laptop emachines 2 GB RAM AMD64. franco-/germanophone, +/- anglophone

PostPosted: Sun 11 Aug 2013, 15:02    Post subject:  

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:

Code:
<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>


important are both:
Layout vertical
and
valign center Rolling Eyes

This is in landscape as in portrait the same Idea !

and a background being neutral after the rotation (one colour Wink !)

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!) Question

here a view on an application, a realistic bike way in north south direction on 16,350 km Laughing



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/viewtopic.php?p=718442#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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Video
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0767s ][ Queries: 11 (0.0044s) ][ GZIP on ]