Home > ati > fglrx freeze upon lockscreen or lid close when iGPU selected

fglrx freeze upon lockscreen or lid close when iGPU selected

December 23Hits:2
Advertisement

My system has hybrid (and I believe muxless,i.e. only the integrated card is actually connected to the display) graphics. The first card is an Intel HD 4400, and the second card is the AMD Radeon HD 8670M (solar system series, not OLAND). Thus, currently the open-source radeon driver does not support the card, and I am forced to use the proprietary fglrx driver.

Why not just turn the dGPU card off without fglrx?

I have no need of fancy graphics and would be happy to simply turn the discrete ATI card off, so long as it was properly switched off and was not overheating/eating battery. The options to do this without fglrx and pxpress seemed limited to me: I have no vgaswitcheroo switch (even before fglrx was ever installed) and I can only deduce this was because the radeon driver does not yet support my card/does not properly load it yet, see my question here for more on that and the things I tried. Other methods like acpi_call have been reported as at best "proof of concept" and at worst dangerous, so I'd rather not venture into using them. More reliable projects like bumbleebee are nividia only.

Simply leave the AMD card driverless

Relying on just the i915 intel driver works flawlessly, no bugs, no problems, however the AMD card is then left UNCLAIMED and could possibly lead to overheating/battery drain, so I am not so happy about that.

Ubuntu 12.04 LTS with fglrx

I started here, and experienced a bug when the iGPU was selected. This bug manifests itself whenever the screen is locked, the laptop lid is closed, or even when the computer is left inactive with something like xscreensaver installed instead with no lockscreen enabled. It causes a black screen with a moveable cursor only; switching tty and back does not recover, and a restart from the tty is needed. It does not happen every single time but happens pretty regularly, at least once or twice day. All saved work is lost.

I tried both the fglrx in the repos, and the latest 13.10 from the AMD website. No change.

When the dGPU is selected instead (from the AMD Catalyst control centre, or ultimately by pxpress) this bug does not occur, but I had another bug which I won't bother getting into here.

Ubuntu 13.10 with fglrx

A very similar bug here but not quite as severe. Exactly the same conditions, namely lockscreen, lidclose, inactivity (if xscreensaver is being used). This time the frozen screen is not black, but a picture of your desktop at the moment of the freeze, again with moveable cursor. Here I only tried the latest fglrx AMD drivers 13.10.

Again no problems with just the i915 driver (no fglrx) and again no problems with dGPU selected.

Some things I tried:

1) Disabling vsync. I tried this both in compiz settings manager, and by aticonfig --sync-vsync=off followed by reboot. No change.

2) Turning DPMS off. Option "DPMS" "false" in the xorg.conf monitor stanza. (Of course, I also changing gnome settings "Do Nothing/Don't suspend" for battery and AC too).No change.

3) Option "AIGLX" "off" in server flags of xorg.conf. No change.

4) Modifying the atieventsd so it worked properly for Ubuntu, see my post here. And also, running without it. No change.

5) Booting with the options

Option      "Capabilities" "0x00000800" Option      "KernelModuleParm" "locked-userpages=0" Option      "NoAccel" "True" 

in the xorg.conf Device stanza. No change.

6) Booting with nomodeset as kernel parameter. No change.

7) Turning off acpi interaction from aticonfig:

--acpi-services=off --acpi-display-switch=off 

No change.

Why does it work with just intel?

One thing I don't understand is why it works with the just the intel i915 driver. I thought pxpress would just hand over control to that driver on bootup, so if it worked with the i915 alone, I'd have expected it to work with pxpress selecting igpu.

I know fglrx installs its own libGl implemenation also, but it switches back to the old stock MESA libGL implementation when the intel card is selected (c.f. /usr/lib/fglrx/switchlibGL python script).

So when igpu selected, it should be exactly equivalent to life before fglrx after a reboot?

Answers

After a long time looking into this, I came to release the key point: when fglrx/pxpress loads the Intel driver, it does so with the UXA acceleration method, whereas by default (on a Haswell system running 13.10, pre-fglrx install) the Intel driver would load with the SNA acceleration method.

I tested by booting with an xorg.conf that looked like:

Section "Device"
        Identifier      "Intel Graphics"
        Driver          "intel"
        Option          "AccelMethod"  "UXA" # (fglrx uses this) I can see the bug
        #Option          "AccelMethod"  "SNA" #(default) no bug!
EndSection

Section "Monitor"
           Identifier      "Configured Monitor"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Monitor         "Configured Monitor"
        Device          "Configured Video Device"
EndSection

Now even this Intel xorg.conf gave the freeze bug after a lid close or two. Yet booting with the exact same config file, only with

Option          "AccelMethod"  "SNA"

I got no bug whatsoever, no matter how many lid closes/screen locks (this is the default method for the driver anyway, and this is why I was perplexed, because it fooled me into thinking all was good with the intel driver and fglrx was tainting things).

Now that I realised this was a intel driver problem, some googling led me to discover a fix. Create a file ~/.drirc to config the DRI settings, containing

<device screen="0" driver="dri2">
        <application name="Default">
                <option name="vblank_mode" value="0"/>
        </application>
</device>

This turns off vsync (the setting that makes your GFX card sync to the screen refresh rate, rather than speeding away at its intrinsic framerate, to avoid tearing). Note: there is no point turning off vsync with aticonfig as in my OP as this will just turn it off for the dGPU not the Intel card. I'm not sure why my attempt at turning it off with Compiz Settings Manager did not work though.

Even with the UXA method, turning off vsync this way stopped the crash, even for the fglrx xorg.conf.

Even better would be to somehow configure pxpress to load the Intel driver with the SNA options, see my post here

Tags:ati, fglrx, radeon

Related Articles

  • fglrx freeze upon lockscreen or lid close when iGPU selectedDecember 23

    My system has hybrid (and I believe muxless,i.e. only the integrated card is actually connected to the display) graphics. The first card is an Intel HD 4400, and the second card is the AMD Radeon HD 8670M (solar system series, not OLAND). Thus, curre

  • Nexus 7 Freezes on lockscreen on Ubuntu Touch PreviewFebruary 21

    So I just finished flashing today's new Ubuntu Touch Preview to my WiFi-only Nexus 7 (nakasi), however it freezes at the lockscreen and refuses to let me get any further. The clock moves, & I'm able to lock/unlock the tablet, but everything else appe

  • Can't install fglrx or boot computer

    Can't install fglrx or boot computerJanuary 20

    I ran an update on Ubuntu 11.10 to update to the 3.0.0-15-generic kernel today (Friday 20th January). I restarted the computer to find that I could not log in. I'm using a Dell Studio 1555 laptop with Radeon 4500 graphics driver. I was using the prop

  • Random freezes in Ubuntu 11.10 March 13

    I have read every single post about system freezes, but cannot find my exact problem. Basically, Ubuntu 11.10 is randomly freezing. When it happens, I cannot do anything, not even move the mouse. Everything is locked up, even the keyboard is not resp

  • Error Installing FGLRX driverAugust 8

    My computer uses a Radeon HD 6950. I installed the "ATI/AMD proprietary FGLRX graphics driver" just fine, however, when I tried to install the "post-release updates", I received an error ("Sorry, installation of this driver failed

  • Windows 8: How to Lock (not sleep) laptop on lid close?

    Windows 8: How to Lock (not sleep) laptop on lid close?October 30

    If my laptop is connected to power source and is not configured to sleep on lid close (it is connected to power source and is working, I don't want it to sleep. It's compiling my code) if I close the lid, laptop will do nothing. This works as expecte

  • How to install, fglrx on (K)ubuntu 15.04 ? Starting version 219 AMD R9 290xMay 25

    i have upgraded my Ubuntu 14.10 to Kubuntu 15.04 and as i thought the graphics driver would mess up. I am looking for a step-by-step tutorial how to install fglrx on Kubuntu 15.04. On 14.04 i had absolutely NO problems. I just downloaded the driver f

  • MBP Late 2011 freezes under yosemite

    MBP Late 2011 freezes under yosemiteJune 2

    **/!\ SO I figured out that's not any app who making these awful freezes.. but I don't know what, I killed all error making apps from the console and now I don't have any error messages in the console anymore (and no messages). BUT when I copy data,

  • Freeze multiple columns in excel using macroAugust 27

    Under the Freeze panes, Excel currently offers Freeze panes, Freeze first row and Freeze first column options. I was looking for an option where I can freeze the first N-columns. I did a record macro to find out what Excel was doing when Freeze first

  • Installing Qubes 3.1 : boot process freezes after Qubes logo blinksJanuary 8

    After burning Qubes iso on a USB stick using dd I boot it in UEFI mode and I got a problem with the following symptom : If I select Verify source and install Qubes the process freezes after the test passes. If I select Install Qubes I got this : Igno

  • In Open Office, make 1st row of data "scroll lock" so it is always visible as you scroll down?November 12

    In Open Office, how do you make the first row of data "scroll lock" so it is always visible as you scroll down? --------------Solutions------------- Select the first row below that which you would like "frozen" and select Window | Free

  • Excel 2007 Save as PDF with pagesize/pagewidth auto or not breaking Excel linesJanuary 6

    I tried to export an Excel file into PDF, but it looks horrible. I need at least that one row form Excel to be saved into a one row in PDF. I know that it is not so simple, because Excel does no have any page size. At least, they could make some esti

  • Why are there two different sleep states on a MacBook?February 5

    It seems that there are two different sleep states on my MacBook: Sleep State 1: Invoked by: closing the lid or by the sleep timer. Awaken by: touching the trackpad, clicking the trackpad, pressing a key, or opening the lid. Sleep State 2: Invoked by

  • URL rewrite based on a custom field valueMarch 23

    I'm working on a migration from another CMS to WordPress. The old site had terrible SEO-unfriendly URLs in the format http://example.com?lid=1234. We have imported all the posts from the old site into WordPress and are storing the lid as a custom fie

  • How can I get APT to ignore unmet dependencies?

    How can I get APT to ignore unmet dependencies?March 3

    My apt-get is currently complaining about unmet dependencies (and refuses to do anything until I fix them): Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct

  • Why does my battery drains fast with Ubuntu in sleep more?July 31

    I have an Asus EEE PC 1005HA netbook dual booting Ubuntu and Windows 7. When I close the lid in either OS the laptop will go to sleep. If I do this in Ubuntu and come back to the computer a few days later the battery will be completely drained. If I

  • how to lower CPU usage for Ableton Live 8 in Mac OSX 10.6.8September 10

    While running Ableton Live 8 after a project gets to a certain size, the audio starts to get a bit choppy and distorted. My levels are fine and is not the cause of the lag and chop. I have samples set to 1024 and the high quality button selected whic

  • Can't run 1080p with Radeon 6870 on Ubuntu 12.04September 17

    I have a XFX Radeon HD 6870 and a 1080p monitor that works fine in Windows, but in Ubuntu 12.04 with the ATI/AMD Proprietary FGLRX Driver (post-release updates) installed I can't select 1920x1080 as my resolution. The same occurs with the open source

  • Losing connection in several different multiplayer gamesNovember 21

    I'm having a connection problems with several multi-player games. It always happen during loading screens before the match, and I'm having problems identifying what could be the potential problem. I'll list some games and what's happening: League of

  • Ubuntu 13.04 sound issueAugust 21

    I've been messing with various builds from 12.04 (LTS) to 12.10 to 13.04 (and back and forth, doing fresh installs each time from a usb drive, wiping the old partitions off of my disk drive). I like features of 13.04, but am having major issues not b

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.482 s.