LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-27-2014, 07:28 AM   #16
Azrael84
Member
 
Registered: Nov 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled

Sorry for multiple posts, but another observation:

When fglrx is in charge and pxpress loads the i915 module, it does so with what appears to be UXA acceleration method, whereas when i915 loads on its own (by which I mean on a system where fglrx has never been installed) it defaults to SNA method.

I would like to try the experiment of setting fglrx to load the i915 module with SNA accel method, but given there is not the usual:

Code:
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "AccelMethod"    "SNA"
EndSection
section of the the xorg.conf file (presumably because of the way pxpress works). How can I set options for the intel driver? For concreteness my xorg.conf looks like:

Code:
Section "ServerLayout"
        Identifier     "Radeon Layout"
        Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Monitor"
        Identifier   "aticonfig-Monitor[0]-0"
        Option      "VendorName" "ATI Proprietary Driver"
        Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]-0"
        Driver      "fglrx"
        BusID       "PCI:6:0:0"
EndSection

Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device     "aticonfig-Device[0]-0"
        Monitor    "aticonfig-Monitor[0]-0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection
Trying to add an intel device section (even the most minimal possible) really screws things up, and causes fglrx to segfault, probably because it (pxpress) also loads the intel on its own or some such.
Setting options for the ATI device, in the hope that they would be transfered to when it loaded the i915 did not work.

So I can I set AccelMethod SNA for the intel device, or indeed any other module options for it when fglrx is installed?
 
Old 01-27-2014, 07:44 AM   #17
Azrael84
Member
 
Registered: Nov 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
EUREKA!

Looks like this is the key!

I just booted with an Intel only configured xorg.conf, and set

Code:
Section "Device"
        Identifier      "Intel Graphics"
        Driver          "intel"
        Option          "AccelMethod"  "UXA"
EndSection
the UXA accelmethod, like fglrx seems to utilise, and I get the crash/bug!
Even just on plain old intel.

So I probably need to work out how to use SNA when fglrx loads the i915 now!
 
Old 01-29-2014, 03:13 AM   #18
Azrael84
Member
 
Registered: Nov 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
So if you have read this far congratulations! In the end this is a summary of my conclusions, and apparent fix:

==================================================================================================== ==========================================

On a Haswell system with an Intel HD 4400 as the integrated card in a hybrid system X freezes (moveable mouse cursor but either black screen or frozen image of desktop at time of freeze) often when the user locks the screen (inactivity or otherwise) or closes the lid. The desktop (in 13.10 at least) can be recovered by switching to a tty and back( e.g. ctrl+alt+fn1, followed by ctl+alt+fn7). In 12.04 I needed to restart completely from tty.

This bug occurs because pxpress loads the intel driver with the "AccelMethod" "UXA" option. You can verify this is the cause by using a minimal (intel only) `xorg.conf` (even before fglrx drivers are installed) with just

Code:
   Section "Device"
       Identifier      "Intel Graphics"
       Driver          "intel"
       Option          "AccelMethod"  "UXA" # (mode fglrx uses) I can see the bug
   #   Option          "AccelMethod"  "SNA" #(default) no bug!
   EndSection
and you should reproduce the bug with a few attempts at closing lid/locking screen. Whereas with the change to ` Option "AccelMethod" "SNA"` there is no bug anymore ("SNA" is the default anyway). So this a bug in the intel driver when UXA is selected on a Haswell system it seems.


How to fix

Create (or edit) the DRI config file `~/.drirc` containing

Code:
   <device screen="0" driver="dri2">
       <application name="Default">
               <option name="vblank_mode" value="0"/>
       </application>
   </device>
This turns off "vsync" for the Intel card (the mode that attempts to make your gfx card sync its framerate with that of the display to avoid tearing, rather than racing ahead at its intrinsic higher framerate).

Now even when pxpress loads the intel driver in "UXA" mode, the bug should not be reproducible.

It would be a better solution if it were possible to tell pxpress to load intel driver with SNA mode directly, but I have no idea if this is possible, maybe it is hardcoded into the drivers.

Last edited by Azrael84; 01-29-2014 at 03:14 AM.
 
  


Reply

Tags
fglrx, intel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mtrr allocation failed. Graphics performance may suffer. Intel hd2000 iGPU Z0K4 Slackware 11 10-08-2012 10:42 AM
Compile and load kernel module automatically after boot? (Intel NIC module) touser Linux - Newbie 3 08-29-2009 08:45 PM
ATI Radeon Mobility 9600 + fglrx: Failed Module Load treth Linux - Laptop and Netbook 14 06-01-2007 05:40 AM
trying to load fglrx can't unload radeonfb module: debian etch MrInept Linux - Software 2 03-21-2007 06:03 AM
LXer: Kubuntu vs. Simply Mepis 6.0: The Superiority Complex LXer Syndicated Linux News 0 10-31-2006 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration