The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Full 3D Acceleration with Radeon 9100 IGP

    Discussion in 'Linux Compatibility and Software' started by Bog, Jun 25, 2007.

  1. Bog

    Bog Losing it...

    Reputations:
    4,018
    Messages:
    6,046
    Likes Received:
    7
    Trophy Points:
    206
    I'm trying to get CSS working using Wine and Cedega. Steam works without a problem, and the games are fully updated, but the Half-Life 2 main menu map doesn't play smoothly at all (one frame every few seconds) let alone play, and CSS does not work either.

    I've used this guide: ( https://help.ubuntu.com/community/RadeonDriver#head-7e2283943de094f4c373154f2e8178bfa9374050) to verify that my 3D acceleration is working using the command "glxinfo | grep vendor" and "glxinfo | grep "direct rendering"", but when apparently on Cedega's test program, my system only passes the OpenGL test and not the 3D acceleration test. I have a feeling that something is missing in my xorg configuration file. Here it is:

    Section "Files"
    FontPath "/usr/share/fonts/X11/misc"
    FontPath "/usr/share/fonts/X11/cyrillic"
    FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath "/usr/share/fonts/X11/Type1"
    FontPath "/usr/share/fonts/X11/100dpi"
    FontPath "/usr/share/fonts/X11/75dpi"
    # path to defoma fonts
    FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    EndSection

    Section "Module"
    Load "i2c"
    Load "bitmap"
    Load "ddc"
    Load "dri"
    Load "extmod"
    Load "freetype"
    Load "glx"
    Load "int10"
    Load "vbe"
    EndSection

    Section "InputDevice"
    Identifier "Generic Keyboard"
    Driver "kbd"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "us"
    EndSection

    Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "ImPS/2"
    Option "ZAxisMapping" "4 5"
    Option "Emulate3Buttons" "true"
    EndSection

    Section "InputDevice"
    Identifier "Synaptics Touchpad"
    Driver "synaptics"
    Option "SendCoreEvents" "true"
    Option "Device" "/dev/psaux"
    Option "Protocol" "auto-dev"
    Option "HorizScrollDelta" "0"
    Option "MinSpeed" "0.7"
    Option "MaxSpeed" "0.8"
    EndSection

    Section "InputDevice"
    Driver "wacom"
    Identifier "stylus"
    Option "Device" "/dev/input/wacom"
    Option "Type" "stylus"
    Option "ForceDevice" "ISDV4" # Tablet PC ONLY
    EndSection

    Section "InputDevice"
    Driver "wacom"
    Identifier "eraser"
    Option "Device" "/dev/input/wacom"
    Option "Type" "eraser"
    Option "ForceDevice" "ISDV4" # Tablet PC ONLY
    EndSection

    Section "InputDevice"
    Driver "wacom"
    Identifier "cursor"
    Option "Device" "/dev/input/wacom"
    Option "Type" "cursor"
    Option "ForceDevice" "ISDV4" # Tablet PC ONLY
    EndSection

    Section "Device"
    Identifier "ATI Technologies Inc RS300M AGP [Radeon Mobility 9100IGP]"
    Driver "ati"
    BusID "PCI:1:5:0"
    EndSection

    Section "Monitor"
    Identifier "Generic Monitor"
    Option "DPMS"
    EndSection

    Section "Screen"
    Identifier "Default Screen"
    Device "ATI Technologies Inc RS300M AGP [Radeon Mobility 9100IGP]"
    Monitor "Generic Monitor"
    DefaultDepth 24
    SubSection "Display"
    Depth 1
    Modes "1280x800"
    EndSubSection
    SubSection "Display"
    Depth 4
    Modes "1280x800"
    EndSubSection
    SubSection "Display"
    Depth 8
    Modes "1280x800"
    EndSubSection
    SubSection "Display"
    Depth 15
    Modes "1280x800"
    EndSubSection
    SubSection "Display"
    Depth 16
    Modes "1280x800"
    EndSubSection
    SubSection "Display"
    Depth 24
    Modes "1280x800"
    EndSubSection
    EndSection

    Section "ServerLayout"
    Identifier "Default Layout"
    Screen "Default Screen"
    InputDevice "Generic Keyboard"
    InputDevice "Configured Mouse"
    InputDevice "stylus" "SendCoreEvents"
    InputDevice "cursor" "SendCoreEvents"
    InputDevice "eraser" "SendCoreEvents"
    InputDevice "Synaptics Touchpad"
    EndSection

    Section "DRI"
    Mode 0666
    EndSection
     
  2. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    Your "driver" under the "Device" section should probably be "radeon", and not "ati". Try that, and it should get things working for you, I believe. I don't have an ATI card, so this is just going off of what I understand to be the case.
     
  3. Paul

    Paul Mom! Hot Pockets! NBR Reviewer

    Reputations:
    759
    Messages:
    2,637
    Likes Received:
    0
    Trophy Points:
    55
    Actually, I think the drivers for legacy ATi cards are called "ati" and not "radeon." Nothing past the 9700 or something is supported by the fglrx drivers.
     
  4. Bog

    Bog Losing it...

    Reputations:
    4,018
    Messages:
    6,046
    Likes Received:
    7
    Trophy Points:
    206
    It works! Shattered glass looks weird, but it seems to work... anyone else wanting to get Steam games on Linux, just use this guide. Thanks Pitabred.

    http://linux.wordpress.com/2007/02/...ife-half-life-2-counter-strike-source-and-16/

    According to the guide I linked in my first post, the "ati" driver is supposed to use the "radeon" driver automatically if a legacy card is detected. Apparently that is not the case.
     
  5. Paul

    Paul Mom! Hot Pockets! NBR Reviewer

    Reputations:
    759
    Messages:
    2,637
    Likes Received:
    0
    Trophy Points:
    55
    Well, my bad. Glad you got it working.
     
  6. Bog

    Bog Losing it...

    Reputations:
    4,018
    Messages:
    6,046
    Likes Received:
    7
    Trophy Points:
    206
    After a couple more minutes of testing, there are other issues which I'll get fixed over time, namely:

    - triangular artifacts flashing from the center of the screen in the event of a flashbang or explosion

    - glass texture is no present; only white lines that represent the individual sections that the glass can break into

    - sound sometimes doesn't work at all, or it skips, or it works fine

    I wish Linux had a bit more support for these things. :eek:
     
  7. Paul

    Paul Mom! Hot Pockets! NBR Reviewer

    Reputations:
    759
    Messages:
    2,637
    Likes Received:
    0
    Trophy Points:
    55
    Well, besides the sound thing, it's not really Linux's fault. I mean, the game was written in DirectX and is being translated so that your machine can run it in Linux; that's a little hard to do perfectly with a closed-source API. But sound; yeah, I've found sound in Linux to be buggy at best. Have you tried using OSS instead of ALSA?
     
  8. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    Linux does support those things. It's Wine and possibly the open source Radeon drivers that don't support that. Because Linux will render everything perfectly in Doom 3, and I think that uses more features of the card than CSS or HL2 do. Try running HL2 in DX8 or 8.1 (8.1 is the default for your card, but Wine may be letting it run in 9.0 mode) compatibility mode to make up for the shortcomings of Wine's graphical call translations by using one of these commands at the command line:
    Code:
    DirectX 9: mat_dxlevel 90
    DirectX 8.1: mat_dxlevel 81
    DirectX 8.0: mat_dxlevel 80
    DirectX 7.0: mat_dxlevel 70
     
  9. Bog

    Bog Losing it...

    Reputations:
    4,018
    Messages:
    6,046
    Likes Received:
    7
    Trophy Points:
    206
    I changed the DX mode for CSS and HL2 to 8.1, but I'm not sure how to do the same for Wine. There is no option for changing the DX mode in "winecfg".
     
  10. Fittersman

    Fittersman Wanna trade?

    Reputations:
    225
    Messages:
    1,306
    Likes Received:
    0
    Trophy Points:
    55
    just thought i would sneak this in there, but do these games run as quickly as on windows? or is there still a slowdown running under wine/cdega
     
  11. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    I don't think there is a way to do it. But the question is, did it work? Did it fix any of the artifacting you've seen, or any of the display glitches? Does it run faster?

    Yes, typically they do run as quickly as on Windows, and sometimes faster, sometimes slower, but usually within 10% if you have proper drivers and the features are implemented. OpenGL games are particularly good under Wine/Cedega.

    And you aren't a better hacker than I am just because you found a site that has an nslookup hooked to a JPG rendering script that you can partially customize ;) Besides, it really should be a png for something with such hard lines and text, it'd make it much smaller and still stay readable as compared to the jpg.
     
  12. Bog

    Bog Losing it...

    Reputations:
    4,018
    Messages:
    6,046
    Likes Received:
    7
    Trophy Points:
    206
    "I don't think there is a way to do it. But the question is, did it work? Did it fix any of the artifacting you've seen, or any of the display glitches? Does it run faster?"

    I don't see the artifacts as much, although flashes cause the screen to go yellow :p. It runs very well (not as smooth as XP perhaps), but pretty much everything works, except the mouse isn't very smooth. In CSS, that is a problem. Another weird thing to note is that items like crates and chairs appear to be extremely bright relative to their surroundings. Still not a problem though. Thanks for the help guys.