larslars
Posts: 7
Joined: Mon Jun 11, 2012 7:38 am

Randr not working

Mon Jun 11, 2012 7:42 am

Hi

I'm using debian 6, the standard recommended image with maximum RAM dedicated to system, not GFX card. And an HDMI cable.

I am unable to rotate my display (180 degrees). Arandr (GUI frontend to xrandr) shows my display, but all options for resolution and rotation grey'ed out.

Xrandr gives:

Code: Select all

pi@raspberrypi:~$ DISPLAY=:0.0 xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1824 x 1104, current 1824 x 1104, maximum 1824 x 1104
default connected 1824x1104+0+0 0mm x 0mm
   1824x1104       0.0* 

Code: Select all

pi@raspberrypi:~$ DISPLAY=:0.0 xrandr --output default --rotate inverted
xrandr: output default cannot use rotation "inverted" reflection "none"

larslars
Posts: 7
Joined: Mon Jun 11, 2012 7:38 am

Re: Randr not working

Tue Jun 12, 2012 7:36 am

This seems to be the way to configure displays on the raspberry:
http://elinux.org/RPi_config.txt

But no options for rotating..

larslars
Posts: 7
Joined: Mon Jun 11, 2012 7:38 am

Re: Randr not working

Mon Jun 18, 2012 3:47 pm

http://linux.die.net/man/4/fbdev

According to this site I should be able to set some options in xorg.conf. Attempted this:
Section "Screen"
Identifier "Default Screen"
SubSection "Display"
Depth 16
Modes "800x600" "640x480"
EndSubSection
EndSection

Section "Device"
Identifier "devname"
Driver "fbdev"
#Option Rotate "inverted"
#Option Rotate "UD"
EndSection
And compiled a kernel with the framebuffer rotate option set.

If I uncomment any of the outcommented lines, X complains on options being in wrong place. Where shall I put them, and will this work?

larslars
Posts: 7
Joined: Mon Jun 11, 2012 7:38 am

Re: Randr not working

Tue Jun 19, 2012 12:44 pm

Trying with new debian beta image, released today:
pi@raspberrypi ~ $ sudo Xorg -configure

X.Org X Server 1.12.1.902 (1.12.2 RC 2)
Release Date: 2012-05-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32 armv5tel Debian
Current Operating System: Linux raspberrypi 3.1.9+ #125 PREEMPT Sun Jun 17 16:09:36 BST 2012 armv6l
Kernel command line: dma.dmachans=0x3c bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=1104 bcm2708.boardrev=0x2 bcm2708.serial=0xbada5ae3 smsc95xx.macaddr=B8:27:EB:DA:5A:E3 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
Build Date: 21 May 2012 05:22:58AM
xorg-server 2:1.12.1.902-1 (Cyril Brulebois <kibi@debian.org>)
Current version of pixman: 0.24.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Jun 19 12:44:09 2012
List of video drivers:
fbdev
No devices to configure. Configuration failed.
Server terminated with error (2). Closing log file.

larslars
Posts: 7
Joined: Mon Jun 11, 2012 7:38 am

Re: Randr not working

Tue Jun 19, 2012 3:37 pm

pi@raspberrypi ~ $ DISPLAY=:0.0 xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1824 x 1104, current 1824 x 1104, maximum 1824 x 1104
default connected 1824x1104+0+0 0mm x 0mm
1824x1104 0.0*
pi@raspberrypi ~ $ DISPLAY=:0.0 xrandr --output default --rotate normal
xrandr: Failed to get size of gamma for output default
pi@raspberrypi ~ $ DISPLAY=:0.0 xrandr --output default --rotate left
xrandr: output default cannot use rotation "left" reflection "none"
pi@raspberrypi ~ $ DISPLAY=:0.0 xrandr --output default --rotate right
xrandr: output default cannot use rotation "right" reflection "none"
pi@raspberrypi ~ $ DISPLAY=:0.0 xrandr --output default --rotate inverted
xrandr: output default cannot use rotation "inverted" reflection "none"

mcollard
Posts: 3
Joined: Mon Jun 25, 2012 3:51 pm

Re: Randr not working

Sat Jul 07, 2012 1:14 am

Seconded, any advice anyone?

Krebsy
Posts: 10
Joined: Thu Sep 20, 2012 2:55 pm

Re: Randr not working

Mon Oct 01, 2012 10:49 am

I'm getting a similar issue now running this with my 3.5 inch screen over the composite connection.

This was working last night with no problems and all I have done today is modify the fstab file (then backed the changes out) to try and access files on a USB stick.

It's driving me nuts as the pi is stating no displays found when attempting to run Xorg -configure or to run startx.

Plus, I just managed to force the output to the hdmi in the config.txt so will need to get home to plug it into the tv to fix... :)

K.

seandoyle
Posts: 8
Joined: Mon Oct 22, 2012 2:26 am

Re: Randr not working

Mon Oct 22, 2012 3:01 am

I'm also having the issue:
home/pi# xrandr -x
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 149 (RANDR)
Minor opcode of failed request: 2 (RRSetScreenConfig)
Serial number of failed request: 14
Current serial number in output stream: 14

Is there any other way to reflect the screen? I want to use a picoprojector display and need to mirror the output.

seandoyle
Posts: 8
Joined: Mon Oct 22, 2012 2:26 am

Re: Randr not working

Sun Oct 28, 2012 2:13 am

I see in /boot/config.txt I can set rotation options - but I can't do the reflection transform I need for the screen. Rotations work fine.

1) Can someone point me at the code that parses config.txt? I want to see if there is a way to send down a different projection matrix to solve my problem.

2) The only other thing I can think of is to use optics - maybe something like a prism with a right angle.

I'm trying to get this working for halloween - I'm putting a Raspberry Pi inside of a pumpkin and want to use the pico projector to project output onto a vellum screen that is viewed outside the pumpkin. For this all I need is to reflect around the y axis so that the screen appears to be correctly displayed on the back-projected display.

Any suggestions welcomed. I'm new to this - it looks like xrandr would solve my problem if it worked but it doesn't yet work on the pi for this option.

Thanks.

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Randr not working

Sun Oct 28, 2012 8:23 am

The config.txt is parsed by the GPU bootloader , and this one is closed-source.
I suppose the GPU supports many rotation options , but they have not been exposed
to Linux and/or made to work with xrandr. If you ask dom directly ,
he might implement this feature for you .


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5537
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Randr not working

Sun Oct 28, 2012 4:16 pm

If anyone else wants this see:
http://elinux.org/RPi_config.txt#Video_mode_options
I've added a horizontal and vertical flip option:

Code: Select all

display_rotate=0        Normal
display_rotate=1        90 degrees
display_rotate=2        180 degrees
display_rotate=3        270 degrees
display_rotate=0x10000  horizontal flip
display_rotate=0x20000  vertical flip

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Randr not working

Sun Oct 28, 2012 7:52 pm

Wow.
That was fast.


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

JulieMay
Posts: 1
Joined: Mon Sep 09, 2013 6:15 pm

Re: Randr not working

Mon Sep 09, 2013 6:24 pm

The config file seems to work very well for rotating, however the horizontal flip doesn't seem to work at all.

The software has been updated, the config file tested fine for working with rotation. Is there something that I'm missing?

in config.txt file
display_rotate=0x10000

Oddly, I searched around the forums and Internet and although I found many individuals attempting to rotate, I found none attempting to flip and running into issues.

Return to “Troubleshooting”