Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: safer tweaking of ATI driver...some thoughts ...amdpcsdb

  1. #1
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    safer tweaking of ATI driver...some thoughts ...amdpcsdb

    every now and then users complain about ATI proprietary driver. I wish to share a bit of experience in order to help them solve their problems. it is going to be quite short and I really hope someone will get a use of it.

    namely, we all start tweaking ATI driver by changing our /etc/X11/xorg.conf. we add a couple of switches (called Option) and (very few) use
    Code:
    aticonfig --input=/etc/X11/xorg.conf
    to make driver aware of the change we made. every time we do that we update a file /etc/ati/amdpcsdb.

    and, {if,when} we are unhappy with the outcome we simply remove the option from the xorg.conf and believe that the switch was turned off. well, it is not even if You've aticonfig --input=/etc/X11/xorg.conf.

    it stays in the aforementioned file even though that option was removed from xorg.conf. and that is the (in my opinion) the root of many problems. we are mislead by the fact that the xorg.conf was backed-up to a file xorg.conf.fglrx-(0 and so on).

    in order to undo the change You've made it is not enough to put back the xorg.conf that was there before You've made the change but You have either to switch that Option in /etc/X11/xorg.conf by changing the value of the (remaining) option and do aticonfig --input=/etc/X11/xorg.conf or to change the value in aforementioned file.

    I've always taken the former path and I am not sure about the latter but I do believe it would work since it is textual file. so, all Your tweaking with the ATI driver accumulates in the /etc/ati/amdpcsdb file. even bad options You tried are kept there, even though they do not work or are illegal ... what is worse, those settings get inherited by the new version of the driver ...

    if You want a clean start You think that
    Code:
    aticonfig --initial -f
    will do the job.
    or
    Code:
    cp /etc/ati/amdpcsdb /etc/ati/amdpcsdb.backup
    cp /etc/ati/amdpcsdb.default /etc/ati/amdpcsdb
    but it will not. changing the values in /etc/ati/amdpcsdb does not stick. it bounces back to the state before edit.

    so, once You really messed up with ATI driver the only thing is to uninstall it (sudo sh /usr/share/ati/fglrx-uninstall.sh), delete /etc/ati/* and make a clean install. even better, through one
    Code:
    sudo dpkg --reconfigure -phigh xserver-xorg
    just to be sure.

    at the beginning I thought it would be easier but ... it proved that its better to try all this before it breaks down ... it helped me a lot with the transition to he new kernel weeks ago.
    Last edited by zika; February 20th, 2009 at 12:44 PM.

  2. #2
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: safer tweaking of ATI driver...some thoughts ...amdpcsdb

    I've just DL-ed ATI Catalyst + driver 9.2 (Ctalyst 2.5, driver 8.582) and done unistall of the previous driver, removed everything from /usr/share/ati and installed new driver+Catalyst with aticonfig --initial and reboot...

    to my surprise all the values from my previous driver and of all of my previous tweaking are still there in new amdpcsdb it is immortal ...

    I'm out of ideas how to clean that. if anybody has any idea, please do not hesitate ... where that data could be stored?

    there is a long "solution". I could set all the values again in xorg.conf (or by aticonfig ...) but with the default values ... that will be long journey.

    nevertheless the new driver is promising ... if only I could make it to use defaults to have a clean start.
    Last edited by zika; February 20th, 2009 at 09:07 PM.

  3. #3
    Join Date
    Jun 2006
    Location
    Dereham, Norfolk
    Beans
    145
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: safer tweaking of ATI driver...some thoughts ...amdpcsdb

    Does it solve the flickering video problem and does logging out and switching users work OK now as I had tried version 9.1 and had problems.
    Registered Ubuntu user #16886

  4. #4
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: safer tweaking of ATI driver...some thoughts ...amdpcsdb

    I did it! just list the amdpcsdb as a text file and locate Your options. they are, usually in DDX section. just do
    Code:
    sudo aticonfig --del-pcs-key=DDX,option_that_You_want_to_remove
    now I have a clean start point for this new driver ... it took some time to delete them all but it was worth it ...

    still I do not know where they were stored to survive all the cleaning I've done before install-ing a new driver ...

  5. #5
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: safer tweaking of ATI driver...some thoughts ...amdpcsdb

    Quote Originally Posted by notoriousdbp View Post
    Does it solve the flickering video problem and does logging out and switching users work OK now as I had tried version 9.1 and had problems.
    I did not have those problems even with 9.1 so I could not tell. XV video is now just OK. no more X11 ...
    Last edited by zika; February 20th, 2009 at 09:55 PM.

  6. #6
    Join Date
    Jan 2009
    Location
    Cambridge, MA
    Beans
    78
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: safer tweaking of ATI driver...some thoughts ...amdpcsdb

    If I understood you right you wanted me to post this

    Code:
    [AMDPCSROOT/SYSTEM/DDX]OGLFMTA2R10G10B10Enable=V0
    [AMDPCSROOT/SYSTEM/DDX/RECENTMODE]
    EnableRestore=V1
    [AMDPCSROOT/SYSTEM/DDX/RECENTMODE/SCREEN00]
    Width=V1680
    Height=V1050
    Refresh=V60
    The upper is the only match of the string AMDPCSROOT/SYSTEM/DDX

    Code:
    Section "ServerLayout"
    	Identifier     "aticonfig Layout"
    	Screen      0  "aticonfig-Screen[0]-0" 0 0
    EndSection
    
    Section "Files"
    EndSection
    
    Section "Module"
    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:1: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
    My xorg.conf is configured by the command

    Code:
    aticonfig --initial -f

  7. #7
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: safer tweaking of ATI driver...some thoughts ...amdpcsdb

    is there anything else between
    [AMDPCSROOT/SYSTEM/DDX] and [AMDPCSROOT/SYSTEM/DDX/RECENTMODE]
    except
    OGLFMTA2R10G10B10Enable=V0 ?

    thank You for participating. ...

    if there is not, then I have no hint. if there is, I might ...

  8. #8
    Join Date
    Jan 2009
    Location
    Cambridge, MA
    Beans
    78
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: safer tweaking of ATI driver...some thoughts ...amdpcsdb

    Quote Originally Posted by zika View Post
    is there anything else between
    [AMDPCSROOT/SYSTEM/DDX] and [AMDPCSROOT/SYSTEM/DDX/RECENTMODE]
    except
    OGLFMTA2R10G10B10Enable=V0 ?
    Unfortunately, except OGLFMTA2R10G10B10Enable=V0 there is nothing else there. I think it's pretty odd that you don't experience the memory leak bugs. I don't know what to think now

    Last time I installed 9.2, I removed /etc/ati/* so I don't expect the bug to have something with the driver's options.

  9. #9
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: safer tweaking of ATI driver...some thoughts ...amdpcsdb

    Quote Originally Posted by Pitboss View Post
    Unfortunately, except OGLFMTA2R10G10B10Enable=V0 there is nothing else there. I think it's pretty odd that you don't experience the memory leak bugs. I don't know what to think now
    Last time I installed 9.2, I removed /etc/ati/* so I don't expect the bug to have something with the driver's options.
    You're just on the track. that is why I've asked You to send me this peace of puzzle. if You read my previous posts in this thread You'll see that that is just what I'm searching for. on my machine the history of my tweaking of ATI driver somehow survived erasing even /etc/ati/*. now I'm erasing it bit by bit and I think I'm finally close to it. for example, I've just deleted 3 keys from the amdpcsdb that I even do not know who introduced: EnableRandr12, RequestMSI, EnableMonitor. there must be the third piece of stuff that keeps these Options, first being xorg.conf, second amdpcsdb ... I'll keep looking now that the cleaning operation is (almost) over. it seems that a proper way of dealing with ATI driver is through
    Code:
    aticonfig --set-pcs-val=PREFIX,KEY,VALUE
    or
    aticonfig --set-pcs-str=PREFIX,KEY,STRING
    and
    aticonfig --del-pcs-key=PREFIX,KEY
    while checking every step through /var/log/Xorg.0.log since even in a ATI documentation there are mistakes, for example, about TLS ... a string instead of value.

    by clearing this stuff I would be able to comprehend and control this driver, I beleive, more efficiently. but, on the other side, this is a futile effort since we are going to have new FOSS driver (radeonhd) in JJ with different philosophy ... I hope ...

  10. #10
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: safer tweaking of ATI driver...some thoughts ...amdpcsdb

    Quote Originally Posted by FormerSlacker View Post
    Nothing fancy here.

    amdpcsdb
    Code:
    [AMDPCSROOT/SYSTEM/DDX]
    OGLFMTA2R10G10B10Enable=V0
    EnableRandR12=SFALSE
    RequestMSI=SFALSE
    MultiviewXineramaNo3D=V1
    xorg.conf
    Code:
    Section "Device"
        Identifier  "Configured Video Device"
        Driver      "fglrx"
        BusID       "PCI:2:0:0"
    EndSection
    can You trace where
    Code:
    EnableRandR12=SFALSE
    RequestMSI=SFALSE
    MultiviewXineramaNo3D=V1
    comes from? it is not in Your xorg.conf, at least it is not now ...

    do You have multiple displays? and, what would happen if You would remove those keys from You amdpcsdb ... please, do not do anything You are not comfortable with. I'm not sure what would happen so do not take this as my advice... just, if You, in any given moment, do remove those keys please give us here the summary of the outcome. I had first of those keys and I have removed them with no visible effect but that does not mean that that is the rule. please do not do anything You are not comfortable with. just try to remember if You have added those keys in some tweaking.
    (there is above method how to, in the right way, remove those keys)
    Last edited by zika; February 22nd, 2009 at 09:41 PM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •