You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bcm2708_fb_check_var doesn't account for screen rotation #463
we're using fullHD screens with screen_rotation set to 90/270 degrees.
we're also using "tvservice -o/-p" to send the display to sleep/wakeup ...
tvservice returns an error ...
would be sufficient. I think the 1200 limit is more a sanity check than an absolute limit.
There's a danger if too high a resolution is selected you may get no image at all, so I'll need to check it's not easy to create an an invalid framebuffer with this change.
Note, after powering off display, the framebuffer needs to be recreated with something like fbset.
You may also need to do something like xrefresh to ensure framebuffer is refreshed.
i know that and no it doesn't (no error but black screen)
also, i'm using qt via eglfs from the console so no X involved.
my process is:
run qt app, exit if we need to sleep
run "tvservice -o"
run sleep app, exit if we need to wake up
do a "tvservice -p && fbset -depth 16 && fbset -depth 24"
loop
this does work with in a production digital signage setup for rotation of 0/180 degrees - but gives black for 90/270.
tvservice used to return an error with -p before the fix - now it doesn't anymore.
the framebuffer including opengl acceleration is working as i see in the screenshot - qt used to return something like "no framebuffer available" and bail out before.
only the display stays black.
is there another sanity check in the firmware preventing the "display-bitstream-generator" being "switched on"?
I just ran an rpi-update to get the lastest firmware:
$ uname -a
Linux raspberrypi 3.12.20+ #685 PREEMPT Fri May 23 18:59:01 BST 2014 armv6l GNU/Linux
Tested the stuff, and now it works, so the monitor turns back on and everythings displays correctly. I've tested this both in console and under the default LXDE session also.
@popcornmix Thanks for resolving this so fast! Could you point me to the code that was changed to fix this issue? I just want to learn what was the problem.
It was on firmware side (in start.elf).
Basically when running with display_rotate or dispmanx_offline an extra frame buffer is allocated.
It turned out that when powering off this got freed, but wasn't reallocated when powered back on again.
Activity
popcornmix commentedon Dec 17, 2013
Perhaps
would be sufficient. I think the 1200 limit is more a sanity check than an absolute limit.
There's a danger if too high a resolution is selected you may get no image at all, so I'll need to check it's not easy to create an an invalid framebuffer with this change.
mschorer commentedon Dec 17, 2013
fine for me ... when can i have it? ;-)
popcornmix commentedon Jan 30, 2014
Source is pushed (76d183f) and I've sanity checked:
does the right thing. Should be in next rpi-update (probably at weekend).
mschorer commentedon Jan 30, 2014
Perfect!
On 30 Jan 2014 18:44, "popcornmix" notifications@github.com wrote:
linux: relax the dimensions check for rotated displays
linux: relax the dimensions check for rotated displays
popcornmix commentedon Feb 2, 2014
rpi-update firmware should have this fix. Please update and test.
mschorer commentedon Feb 5, 2014
hmmh ...
it seems to work for rotations of 0/180 degrees.
for left/right-protrait (rot 90/270) setups ... the screen stays black:
i'm running in 1366x768@24bit ...
popcornmix commentedon Feb 5, 2014
First, does this work (from console):
Note, after powering off display, the framebuffer needs to be recreated with something like fbset.
You may also need to do something like xrefresh to ensure framebuffer is refreshed.
mschorer commentedon Feb 5, 2014
i know that and no it doesn't (no error but black screen)
also, i'm using qt via eglfs from the console so no X involved.
my process is:
this does work with in a production digital signage setup for rotation of 0/180 degrees - but gives black for 90/270.
tvservice used to return an error with -p before the fix - now it doesn't anymore.
the framebuffer including opengl acceleration is working as i see in the screenshot - qt used to return something like "no framebuffer available" and bail out before.
only the display stays black.
is there another sanity check in the firmware preventing the "display-bitstream-generator" being "switched on"?
popcornmix commentedon Feb 5, 2014
Really I need to see the failure here. Can you try a clean raspbian install and enable 90 degrees rotation and check if:
results in console returning. If it does, what is the minimal number of things you do to provoke a black screen.
mschorer commentedon Feb 5, 2014
sure i tested your statement!
the screen stays black but is powered on - no error displayed on the commandline!
the above is from a ssh session (to be able to see something).
the same happens if done on the pi console via keyboard.
i mentioned all the other stuff only to show that i had my learning curve with pi's diplay controller.
popcornmix commentedon Feb 5, 2014
Just to confirm was this with a clean raspbian image?
Did you run rpi-update to get the fixed kernel? (I didn't mention this, but you should).
mschorer commentedon Feb 5, 2014
freshly downloaded "2014-01-07-wheezy-raspbian.zip".
boot into console.
ssh into machine.
set "display_rotate=3" in config.txt
=> ioctl error and black/blank screen as expected
then "sudo rpi-update".
then "sudo reboot"
boot into console.
ssh into machine.
=> no ioctl error as expected, STILL BLACK SCREEN
comment display rotation
reboot. normal display. ssh in.
=> screen blinks off and goes on again. console as before.
szantaii commentedon May 23, 2014
This issue is also affects me.
The same thing happens what @mschorer described. I'd like to turn off and on the HDMI, and I'm also using a 270° rotated display (/boot/config.txt):
Has the fix gone into Raspbian already? (I'm using the latest one, I'm regularly update it.)
12 remaining items
mschorer commentedon May 24, 2014
@popcornmix: sure. Not sure if i`ll get to it on monday though. Latest on
wednesday ...
Thanks. That`ll be a huge improvement!
Am 23.05.2014 23:47 schrieb "popcornmix" notifications@github.com:
szantaii commentedon May 24, 2014
I just ran an
rpi-updateto get the lastest firmware:Tested the stuff, and now it works, so the monitor turns back on and everythings displays correctly. I've tested this both in console and under the default LXDE session also.
@popcornmix Thanks for resolving this so fast! Could you point me to the code that was changed to fix this issue? I just want to learn what was the problem.
popcornmix commentedon May 24, 2014
It was on firmware side (in start.elf).
Basically when running with display_rotate or dispmanx_offline an extra frame buffer is allocated.
It turned out that when powering off this got freed, but wasn't reallocated when powered back on again.
mschorer commentedon May 26, 2014
Works for me now!
Thanks!
cpufreq: Fix NULL reference crash while accessing policy->governor_data
cpufreq: Fix NULL reference crash while accessing policy->governor_data
linux: relax the dimensions check for rotated displays
kernel: Bump to 3.12.20
arm64: entry: always set GIC_PRIO_PSR_I_SET during entry
arm64: entry: always set GIC_PRIO_PSR_I_SET during entry
arm64: entry: always set GIC_PRIO_PSR_I_SET during entry
HID: apple: fix key translations where multiple quirks attempt to tra…
HID: apple: fix key translations where multiple quirks attempt to tra…
HID: apple: fix key translations where multiple quirks attempt to tra…