ajuez
August 8, 2013, 5:31pm
1
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.
Micka
August 8, 2013, 6:40pm
2
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 !!!
ajuez
August 9, 2013, 8:18am
3
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…
Any other idea? It’s really frustrating…
El dijous 8 d’agost de 2013 20:40:34 UTC+2, Mickae1 va escriure:
Micka
August 9, 2013, 8:23am
4
Man, you have to do it has a root user
ajuez
August 9, 2013, 8:26am
5
Sudo it’s not the same here? Any way under the angstrom I have done it as root and It didn’t worked either…
El dijous 8 d’agost de 2013 19:31:12 UTC+2, aj...@keonn.com va escriure:
Micka
August 9, 2013, 8:32am
6
On the Ubunbu image provided by Robert C Nelson, it’s working
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
ajuez
August 9, 2013, 8:59am
7
Finally It worked on terminal! But… when I launch the X it came back to normal… Any other trick with this? hehe
El dijous 8 d’agost de 2013 19:31:12 UTC+2, aj...@keonn.com va escriure:
Micka
August 9, 2013, 9:02am
8
I don’t know
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,
ajuez
August 9, 2013, 9:15am
9
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:
ajuez
August 9, 2013, 9:22am
10
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:
Micka
August 9, 2013, 9:28am
11
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 :
ajuez
August 9, 2013, 9:53am
12
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