[ltp] T60p Wifi and Display

Phil Shotton linux-thinkpad@linux-thinkpad.org
Thu, 06 Mar 2008 12:36:21 +0000


Whee heee! It works.
Had to pull from git and build myself, but now have twin-head and 
suspend/resume working. Thank you very much for your patient help.
Great work radeon driver developers!

If I can impose one more time, DRI is failing. From Xorg log whole bunch of
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)

and finally

(EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
[dri] Disabling DRI.

The directory /dev/dri is empty. The Xorg dri module is loading, agpgart 
and ati_agp kernel modules are present.
I can live without DRI but it would be nice to have everything working.

Cheers
Phil

Alex Deucher wrote:
> On Wed, Mar 5, 2008 at 12:02 PM, Phil Shotton <phil@stairbridge.org.uk> wrote:
>   
>> radeon fails to start at all, even with a minimal xorg.conf. I simply
>>  get booted into a 800x600 failsafe screen with my xorg.conf trashed.
>>  That's 2.5 days wasted. For now I've gone back to proprietary and living
>>  with no suspend/resume, but boy am I fed up with the whole thing.
>>  Thanks for your help.
>>     
>
> You need to make sure you have at least xf86-video-ati version 6.8.0
> or newer.  Previous versions didn't support your chip.
>
> Alex
>
>   
>>  Phil
>>
>>  Alex Deucher wrote:
>>  > On Wed, Mar 5, 2008 at 5:34 AM, Phil Shotton <phil@stairbridge.org.uk> wrote:
>>  >
>>  >> Alex
>>  >>
>>  >>  Thanks for your help. I found a resolution key and removed it, but it
>>  >>  makes no difference.
>>  >>  If I boot the laptop out of the dock, I get a 1400x1050 display on the
>>  >>  laptop. If I then plug the external monitor in and do "xrandr --auto"
>>  >>  nothing happens.
>>  >>  I tried "xrandr --output VGA_1 --mode 1280x1024" and the external
>>  >>  monitor displayed a beautiful mosaic of colours!
>>  >>
>>  >>  So right now, I can have a laptop that suspends but only runs one
>>  >>  monitor, or one that's dual-head but hangs on sleep. Judging by chat on
>>  >>  the web I'm not the only one. Colleagues are suggesting I stick Windoze
>>  >>  back on and after burning over 2 working days on this already I can see
>>  >>  their point :-(
>>  >>
>>  >>  Interesting that the ATI-based thinkpads always seem cheaper than the
>>  >>  nvidia ones. I certainly would not use my own money to buy any machine
>>  >>  with an ATI graphics card.
>>  >>
>>  >>
>>  >
>>  > Have you tried that radeon driver (xf86-video-ati version 6.8.0 or
>>  > newer) as I suggested earlier?  That will probably work better for
>>  > you.  You could also file a bug for radeonhd:
>>  > https://bugs.freedesktop.org
>>  >
>>  > Alex
>>  >
>>  >
>>  >>  Phil
>>  >>
>>  >>  Alex Deucher wrote:
>>  >>  > On Tue, Mar 4, 2008 at 12:13 PM, Phil Shotton <phil@stairbridge.org.uk> wrote:
>>  >>  >
>>  >>  >> Hi Alex
>>  >>  >>
>>  >>  >>  I tried the radeonhd driver, and after a bit of fiddling I've managed to
>>  >>  >>  get suspend/resume working - great.
>>  >>  >>  However, with an external monitor plugged in I get no display on the
>>  >>  >>  laptop screen once I've logged in (the login screen shows
>>  >>  >>  on both).
>>  >>  >>
>>  >>  >
>>  >>  > This is due to the video resolution gui in gnome (or kde).  If you've
>>  >>  > used the gui to set a mdoe it saves that configuration and resets it
>>  >>  > when you log in.  however, it's not randr 1.2 aware so it doesn't work
>>  >>  > well with multi-head.  It should work if you remove the keys in:
>>  >>  > /desktop/gnome/screen/$hostname/$screennum/
>>  >>  >
>>  >>  > Alex
>>  >>  >
>>  >>  >
>>  >>  >>  xrandr reports:
>>  >>  >>  Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 2800 x 1050
>>  >>  >>  VGA_1 connected 1280x1024+0+0 32mm x 32mm
>>  >>  >>    1280x1024      75.0*
>>  >>  >>    1024x768       75.1     70.1     60.0
>>  >>  >>    800x600        72.2     75.0     60.3
>>  >>  >>    640x480        75.0     72.8     60.0
>>  >>  >>    720x400        70.1
>>  >>  >>  PANEL connected
>>  >>  >>    1400x1050      60.0 +
>>  >>  >>  DVI-D_1 disconnected
>>  >>  >>
>>  >>  >>  Looking in Xorg.0.log (attached) shows lots of "Not using default mode
>>  >>  >>   ...." with "vrefresh out of range" and "hsync out of range" and "height
>>  >>  >>  too large for virtual size" but it still returns the modeline for the
>>  >>  >>  1400x1050 resolution that xrandr shows.
>>  >>  >>
>>  >>  >>  My xorg.conf is about as simple as I could make it. Also attached.
>>  >>  >>
>>  >>  >>  Cheers
>>  >>  >>  Phil
>>  >>  >>
>>  >>  >>  Alex Deucher wrote:
>>  >>  >>  > On Tue, Mar 4, 2008 at 9:30 AM, Phil Shotton <phil@stairbridge.org.uk> wrote:
>>  >>  >>  >
>>  >>  >>  >> After finally getting my T60 working to my satisfaction I've been
>>  >>  >>  >>  upgraded(!) to a T60p, and I now have two problems after installing
>>  >>  >>  >>  Ubuntu Gutsy:
>>  >>  >>  >>
>>  >>  >>  >>  1) Atheros AR5418 wifi card. Not recognized.  I've tried using the
>>  >>  >>  >>  latest madwifi for this but with no success. The ndiswrapper works fine,
>>  >>  >>  >>  but it's not getting loaded at boot. The ndiswrapper config placed an
>>  >>  >>  >>  ndiswrapper file in /etc/modprobe.d - containing 1 line:
>>  >>  >>  >>     alias wlan0 ndiswrapper
>>  >>  >>  >>  but the driver still doesn't get loaded. If I "modprobe ndiswrapper"
>>  >>  >>  >>  everything works fine (in fact I get better wifi performance than with T60).
>>  >>  >>  >>
>>  >>  >>  >>  2) Display. This T60p has an ATI Mobility FireGL V5250. I need dual-head
>>  >>  >>  >>  support and the only way I could get that on the T60 (ATI X1400) was to
>>  >>  >>  >>  use the ATI proprietary drivers. I'm using the latest 8.452.1 version,
>>  >>  >>  >>  and it all works OK except:
>>  >>  >>  >>
>>  >>  >>  >
>>  >>  >>  > That chips works fine in both radeon (6.8.0 and newer) and radeonhd.
>>  >>  >>  > No 3D yet however.
>>  >>  >>  >
>>  >>  >>  > Alex
>>  >>  >>  >
>>  >>  >>
>>  >>  >>
>>  >>  >>  # xorg.conf (xorg X Window System server configuration file)
>>  >>  >>  #
>>  >>  >>  # This file was generated by failsafeDexconf, using
>>  >>  >>  # values from the debconf database and some overrides to use vesa mode.
>>  >>  >>  #
>>  >>  >>  # You should use dexconf or another such tool for creating a "real" xorg.conf
>>  >>  >>  # For example:
>>  >>  >>  #   sudo dpkg-reconfigure -phigh xserver-xorg
>>  >>  >>
>>  >>  >>  Section "ServerLayout"
>>  >>  >>         Identifier     "Default Layout"
>>  >>  >>         Screen      0  "aticonfig-Screen[0]" 0 0
>>  >>  >>         InputDevice    "Generic Keyboard"
>>  >>  >>         InputDevice    "Configured Mouse"
>>  >>  >>         InputDevice    "Synaptics Touchpad"
>>  >>  >>  EndSection
>>  >>  >>
>>  >>  >>  Section "Files"
>>  >>  >>  EndSection
>>  >>  >>
>>  >>  >>  Section "Module"
>>  >>  >>         Load  "glx"
>>  >>  >>         Load  "GLcore"
>>  >>  >>         Load  "v4l"
>>  >>  >>  EndSection
>>  >>  >>
>>  >>  >>  Section "InputDevice"
>>  >>  >>         Identifier  "Generic Keyboard"
>>  >>  >>         Driver      "kbd"
>>  >>  >>         Option      "CoreKeyboard"
>>  >>  >>         Option      "XkbRules" "xorg"
>>  >>  >>         Option      "XkbModel" "pc105"
>>  >>  >>         Option      "XkbLayout" "gb"
>>  >>  >>  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"
>>  >>  >>  EndSection
>>  >>  >>
>>  >>  >>  Section "Monitor"
>>  >>  >>         Identifier   "PANEL"
>>  >>  >>         Option      "VendorName" "IBM"
>>  >>  >>         Option      "ModelName" "T60p Panel"
>>  >>  >>         Option      "DPMS" "true"
>>  >>  >>  EndSection
>>  >>  >>
>>  >>  >>  Section "Monitor"
>>  >>  >>         Identifier   "VGA_1"
>>  >>  >>         Option      "VendorName" "DGM"
>>  >>  >>         Option      "ModelName" "LCD Panel"
>>  >>  >>         Option      "DPMS" "true"
>>  >>  >>         Option      "RightOf" "PANEL"
>>  >>  >>  EndSection
>>  >>  >>
>>  >>  >>  Section "Device"
>>  >>  >>         Identifier  "aticonfig-Device[0]"
>>  >>  >>         Driver      "radeonhd"
>>  >>  >>         Option      "monitor-VGA_1"     "VGA_1"
>>  >>  >>         Option      "monitor-PANEL"     "PANEL"
>>  >>  >>  EndSection
>>  >>  >>
>>  >>  >>  Section "Screen"
>>  >>  >>         Identifier "aticonfig-Screen[0]"
>>  >>  >>         Device     "aticonfig-Device[0]"
>>  >>  >>         Monitor    "PANEL"
>>  >>  >>         DefaultDepth     24
>>  >>  >>         SubSection "Display"
>>  >>  >>                 Virtual 3500  1800
>>  >>  >>                 Depth     24
>>  >>  >>         EndSubSection
>>  >>  >>  EndSection
>>  >>  >>
>>  >>  >>  #Section "Extensions"
>>  >>  >>  #       Option      "Composite" "0"
>>  >>  >>  #EndSection
>>  >>  >>
>>  >>  >>
>>  >>  >>
>>  >>  >>
>>  >>  --
>>  >>  The linux-thinkpad mailing list home page is at:
>>  >>  http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>>  >>
>>  >>
>>  --
>>  The linux-thinkpad mailing list home page is at:
>>  http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>>
>>