xrandr -o left don't work

Hi all,

I’m trying to setup my screen in portrait mode with xrandr -o left in a Debian distro from RCN (Linux arm 3.8.13-bone21 #1 SMP Thu Jun 13 23:52:15 UTC 2013 armv7l GNU/Linux).

First I run the X and chromium and then thru SSH I do

export DISPLAY=:0.0

xrandr -o left

And It always says this:

debian@arm:~$ xrandr -o left
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

I tried with the most recent Angstrom distro directly in the GUI and when I select the rotation the image disappears.

Any idea on how to rotate the screen? It’s possible to do it from the uEnv.txt file?

Cheers,

Alex.

Ahahah … YOU are just so lucky that I was there before you ! Trying for a long time to rotate the screen :’( !!!

But the easy way to do it is by :

echo 1 > /sys/class/graphics/fbcon/rotate

enjoy !!!

Thanks for the fast answer Mickae1! But… It doesn’t worked on mine BBB…

debian@arm:~$ sudo echo 1 > /sys/class/graphics/fbcon/rotate
-bash: /sys/class/graphics/fbcon/rotate: Permission denied

And in the Anstrom it just do nothing… :confused:

Any other idea? It’s really frustrating…

El dijous 8 d’agost de 2013 20:40:34 UTC+2, Mickae1 va escriure:

Man, you have to do it has a root user :slight_smile:

Sudo it’s not the same here? Any way under the angstrom I have done it as root and It didn’t worked either… :frowning:

El dijous 8 d’agost de 2013 19:31:12 UTC+2, aj...@keonn.com va escriure:

On the Ubunbu image provided by Robert C Nelson, it’s working :slight_smile:

not here :

ubuntu@arm:~$ sudo echo 1 > /sys/class/graphics/fbcon/rotate
-bash: /sys/class/graphics/fbcon/rotate: Permission denied

but here it works :

root@arm:/home/ubuntu/# echo 1 > /sys/class/graphics/fbcon/rotate

Don’t ask me why it works on ubuntu and not on angstrom, normally it should be the same kernel :frowning:

Finally It worked on terminal! But… when I launch the X it came back to normal… :frowning: Any other trick with this? hehe

El dijous 8 d’agost de 2013 19:31:12 UTC+2, aj...@keonn.com va escriure:

I don’t know :frowning:

By curiosity, you are under Debian, and how do you start the xserver ?
will it be possible after to run a program with a IHM with it ? like GTK ?

Thx,

For example,

I didn’t have any window manager now, so to start chromium I just made me an script like this:

X&
export DISPLAY=:0.0
chromium-browser

Is that what you were asking for?

El dijous 8 d’agost de 2013 19:31:12 UTC+2, aj...@keonn.com va escriure:

I found in another post that you say how to rotate touchscreen calibration, that means that you know how to run X rotated also?

El dijous 8 d’agost de 2013 19:31:12 UTC+2, aj...@keonn.com va escriure:

Well, yes :

But it’s not really rotation, it likes swapping x with y and invert the x axis, something like that :

rotate the screen in the xorg.conf :

Section “Device”

Identifier “Builtin Default fbdev Device 0”

Driver “fbdev”

Option “Rotate” “CW”
EndSection

and look my last mail on this :

Finally with the xorg.conf it worked!!

El dijous 8 d’agost de 2013 19:31:12 UTC+2, aj...@keonn.com va escriure:

Ok, this is a common Linux error. Sudo is running the echo as root, but that doesn’t elevate the privs of the redirect, which is where you need them. Try:

echo 1 | sudo tee > /dev/null