Page 1 of 1

Screen Rotation

Posted: Sat 02 May 2009, 20:39
by ldrew
Hi, I've been trying to find out how to get the screen to rotate on an old laptop running Puppy 4.2. I have tried the windows shortcuts being Alt+Ctl+Arrow key to no avail. I have tried using Xrandr in the command line but since I am new to puppy i was unsuccessful. Any insight into my problem would be tremendous. What i am trying to do is mount the laptop under a desk to use as a music jukebox. I have installed songbird and everything is great except i cannot find out how to get the screen to rotate 180 degrees. Please help
Thanks

Posted: Sat 02 May 2009, 21:54
by disciple

Code: Select all

xrandr -o inverted
Assuming your graphics driver supports it.

Posted: Sat 02 May 2009, 22:03
by ldrew
@ disciple
I have tried doing this several times. I get an error message-

X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 153 (RANDR)
Minor opcode of failed request: 2 (RRSetScreenConfig)
Serial number of failed request: 12
Current serial number in output stream: 12

I am not too sure what this is trying to tell me or how to fix it. Thanks for any input I'll try whatever. Is there any other way to get the screen to invert? If i tried this command in XVESA would it work?

Posted: Sat 02 May 2009, 22:09
by ravensrest
Your video controller must be capable of performing rotations and inversions. In a terminal, type 'xrandr'. You should get something like below:

Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1280 x 1200
VGA-0 disconnected (normal left inverted right)
DVI-0 connected 1280x1024+0+0 (normal left inverted right) 338mm x 270mm
1280x1024 60.0*+ 75.0 59.9
1152x864 75.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3
640x480 75.0 72.8 60.0
720x400 70.1
S-video disconnected (normal left inverted right)

If the information about (normal left inverted right) is not present, your video board does not support those functions.

If it does, the correct syntax is 'xrandr -o [normal, left right, inverted]'

BS

Posted: Sat 02 May 2009, 22:15
by ldrew
@ravensnest

That is correct. I get that screen however the only information present is pertaining to the screen. nothing about VGA or S-Video. So i guess i'm out of luck?

Posted: Sat 02 May 2009, 22:19
by ldrew
what i'm trying to recreate is found here
http://bluelinecity.com/projects/kitchenet/

This guy's computer has similar specs CPU & Ram. About the same era computer. I have an Acer Travelmate 737TLV that originally ran Windows 98.

Posted: Sat 02 May 2009, 22:22
by ldrew
I just changed my video to XVESA. I then ran the same command and the screen goes blank for a minute then comes back on. The terminal error simply says failed to change the screen configuration!

Posted: Sat 02 May 2009, 23:15
by disciple
I'm not sure that XVesa supports randr.

I've just tried rotating my screen (in Xorg) and discovered I have the same problem. I have an old Nvidia graphics card that was able to rotate in older Puppies when I compiled the Nvidia drivers myself, but it won't rotate now using an Nvidia .pet. So either the .pet is faulty or xrandr or something in Puppy is faulty. I'll try compiling the drivers to see which it is.

Posted: Sat 02 May 2009, 23:39
by ravensrest
Xrandr will list whatever video ports your board supports. Mine has DVI, VGA, and S-video outputs, all of which are capable of inverting and rotating the image.

Once again, if you do not see the info (normal inverted right left), your board is NOT capable of those functions.

Posted: Sat 02 May 2009, 23:44
by ldrew
I have successfully rotated the screen in XVESA. I first set up XVESA using 1024x768x24 and the command failed. The desktop however presented normally. I then reran the XVESA wizard and used 1024x768x16 settings. After i did this the screen flipped nicely for me. Is there a way to automate this command so i don't have to every time on startup. I'm not sure if im going to need to invert the mouse.
Thanks

Posted: Sun 03 May 2009, 10:22
by disciple
Once again, if you do not see the info (normal inverted right left), your board is NOT capable of those functions
No; your board as currently set up in Puppy is not capable of them :)
Like I said, I have a card (well actually more than one) that can rotate... but I can't currently get it to in Puppy.
BTW an update: I tried compiling the Nvidia drivers myself again today, but I can't figure out how to install the kernel source the way they want... I put it in /usr/src, but then it complains about not being able to find the kernel config... when I point it to that it complains that it can't tell what kernel version it was for :(
Is there a way to automate this command so i don't have to every time on startup.
Put it in a script in /root/Startup
You can actually add it as an setting in xorg.conf, but I can't remember exactly how and where. Can anyone remember if doing that automatically rotates the mouse as well?

Posted: Sun 03 May 2009, 13:16
by ldrew
@ disciple
I actually was successful in flipping it i just had to play with the XVesa settings. It is working fine for me now. Thanks for the advice on the startup issue. Any particular place i need to place that command?

Posted: Mon 04 May 2009, 08:03
by zenfunk
Not sure this works, but you probably could just ad the command to your .xinitrc.
If it fails you have to change back the xinitrc from the commandline- so be sure you remember the name of your commandline text editor. :D

Cheers,
Christian

Posted: Mon 04 May 2009, 15:57
by ldrew
thanks zenfunk i'll try that
Anybody have any suggestions on inverting the mouse?

Posted: Sat 23 May 2009, 03:48
by disciple
Weird. Before when I installed the nvidia .pet I got this:

Code: Select all

X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 153 (RANDR)
Minor opcode of failed request: 2 (RRSetScreenConfig)
Serial number of failed request: 12
Current serial number in output stream: 12 
I think even if I added

Code: Select all

	Option "RandRRotation" "on"
to the device section of xorg.conf
Now if I add that it works.
Also, this didn't work:

Code: Select all

	Option     "Rotate" "CCW"             	# [<str>]
Now it does, and both ways rotate the mouse to match the screen. Unfortunately it disables running xrandr :(

Code: Select all

~# xrandr -o left
Xlib:  extension "RANDR" missing on display ":0.0".
RandR extension missing

screen rotation

Posted: Wed 16 Jul 2014, 00:27
by zipper56
One of the posts said if xrandr gives me the command then my graphics card should support rotation. I see the options, but xrandr -o left only gives me a blank screen. Any ideas?