[Bug 38473] New: [egl] When program ends, monitor is switched off leaving system unusable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugs.freedesktop.org/show_bug.cgi?id=38473

           Summary: [egl] When program ends, monitor is switched off
                    leaving system unusable
           Product: Mesa
           Version: git
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/r600
        AssignedTo: dri-devel@xxxxxxxxxxxxxxxxxxxxx
        ReportedBy: rleigh@xxxxxxxxxx


Using current git and mesa demos 8.0.1 for testing, with linux 2.6.39 with
radeondrmfb on a radeon HD4850/RV770 graphics card, and HP LP2475w monitor via
an HDMI cable.  I'm using EGL_PLATFORM=drm running on the framebuffer console.

What I see is that the demo programs run at the native resolution (1920×1200)
but when the program ends (either by C-c/SIGTERM or by ending after the 5
seconds it runs for) it causes the display to power down, leaving the system in
an unusable state.  [I'm running X on vt7, so a switch to vt7 and back makes
things work again, but if I wasn't running X, I'd need to reboot the system to
reinitialise things.]

I've tested with src/egl/opengles1/gears_screen, src/egl/opengles1/torus_screen
and src/egl/openvg/lion_screen (the rest of the demos have glx dependencies or
other deps which make them fail to run on the console).

A log of a sample run is attached.  Note the kernel HDMI hot plug events from
the kernel log at the end which are presumably related.  I'm not sure when
these are issued due to the monitor being off.  It might be at power down, or
when I switch to vt7 and back again.

Regards,
Roger

% EGL_LOG_LEVEL=debug  EGL_PLATFORM=drm  ./lion_screen
libEGL debug: EGL search path is /usr/lib/x86_64-linux-gnu/egl
libEGL debug: added /usr/lib/x86_64-linux-gnu/egl/egl_gallium.so to module
array
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: dlopen(/usr/lib/x86_64-linux-gnu/egl/egl_gallium.so)
libEGL info: use DRM for display (nil)
libEGL warning: pci id for 3: 1002:9442, driver r600
libEGL debug: searching for pipe module r600
libEGL debug: loaded /usr/lib/x86_64-linux-gnu/egl/pipe_r600.so
libEGL debug: the best driver is Gallium
EGL_VERSION = 1.4 (Gallium)
libEGL debug: searching for st module OpenVG
libEGL debug: loaded /usr/lib/x86_64-linux-gnu/egl/st_OpenVG.so
Found 16 modes:
  0: 1920 x 1200
  1: 1920 x 1080
  2: 1600 x 1200
  3: 1680 x 1050
  4: 1600 x 1000
  5: 1280 x 1024
  6: 1280 x 1024
  7: 1280 x 960
  8: 1152 x 864
  9: 1024 x 768
 10: 1024 x 768
 11: 832 x 624
 12: 800 x 600
 13: 800 x 600
 14: 640 x 480
 15: 640 x 480
Will use screen size: 1920 x 1200
1328 frames in 5.0 seconds = 265.441 FPS
[28195.432084] HDMI hot plug event: Pin=3 Presence_Detect=0 ELD_Valid=0
[28195.434164] HDMI hot plug event: Pin=3 Presence_Detect=0 ELD_Valid=0

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux