Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X trouble: "Failed to open framebuffer device"on a PowerBook
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
kakwa
n00b
n00b


Joined: 24 Oct 2009
Posts: 9

PostPosted: Sat Oct 24, 2009 12:26 pm    Post subject: X trouble: "Failed to open framebuffer device"on a Reply with quote

hello

It's my first post on this forum. :D

I have some troubles with X, and I don't know how to solve them. :(

My hardware is special: PowerBook G3 pismo (400Mhz) with an ati Rage 128:

Here is my xorg.conf (generated with xac, "Xorg -configure" stops on "Fatal server error: Caught signal 7"):

Code:
### This file was generated by xac v0.6_pre3

Section "ServerLayout"
   Identifier   "XAC Configured"
   Screen      0 "Screen0" 0 0
   InputDevice   "Mouse0"   "CorePointer"
   InputDevice   "Keyboard0"   "CoreKeyboard"
EndSection

Section "Files"
   ### Multiple FontPath entries are allowed (which are concatenated
   ### together as well as specifying multiple comma-separated
   ### entries in one FontPath command (or both methods)
   ###
   ### For X Font Server support, uncomment this and comment the
   ### other FontPaths. (This is not required for most configurations)
   # FontPath   "unix/:-1"
   
   FontPath   "/usr/share/fonts/default/ghostscript"
EndSection

Section "Module"
   Load      "extmod"
   Load      "dbe"
   Load      "record"
   Load      "glx"
   Load      "dri"
EndSection

Section "ServerFlags"
   Option      "blank time"   "10"   # 10 Minutes
   Option      "standby time"   "20"   # 20 Minutes
   Option      "suspend time"   "30"   # 30Minutes
   Option      "off time"   "60"   # 60Minutes
   ### Uncomment so X doesn't fail when no mouse is available
   # Option      "AllowMouseOpenFail"   "true"
   ### Enable this option if X should not change resolutions
   ### This is useful if mode changing corrupts the X Server
   # Option      "DisableVidModeExtensions"   "true"
EndSection

Section "InputDevice"
   Identifier   "Keyboard0"
   Driver      "kbd"
   ### Check /usr/share/X11/xkb/rules/xorg.lst for available models
   Option      "XkbdModel"      "pc105"
   ### Check /usr/share/X11/xkb/symbols/ for available layouts
   Option      "XkbLayout"      "us"
   Option      "XkbOptions"      "compose:rwin"
EndSection

Section "InputDevice"
   Identifier   "Mouse0"
   Driver      "mouse"
   Option      "Device"      "/dev/input/mice"
   Option      "Protocol"      "auto"
   
   ### Set driver options:
   ### No options set!
   
   ### Unset driver options:
   ### No options unset!
EndSection

Section "Device"
   Identifier   "Card0"
   Driver      "ati"
   ### Configured ATY Rage128 at PCI Bus ID:
    BusID      "PCI:00:16:0"
   
   ### Set driver options:
   #Option      "DMAForXv   "true"   # Uses DMA for smoother playback, but could be unstable
   
   ### Unchanged, default driver options:
   # Option      "Display"   "FP"   # Set the display type: FP, CRT or Mirror
   # Option      "NoAccel"   "false"   # Disables ALL hardware acceleration
   # Option      "SWcursor"   "false"   
    Option      "UseFBDev"   "true"   # Try disabling this if it does not work
     #  Option      "VGAAccess"   "false"   
   ### See "man r128" for more information and options
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   UseModes   "Modes0"
   ModelName   "ATY Rage128"
   Option      "DPMS"
   HorizSync   30-70
   VertRefresh   50-160
EndSection

Section "Modes"
   Identifier   "Modes0"
   ### Framebuffer   D: 64.99415 MHz, H: 48.35874 kHz, V: 59.99844 Hz
   Modeline   "1024x768" 64.994 1024 1064 1200 1344   768 771 777 806 -HSync -VSync
EndSection

Section "Screen"
   Identifier   "Screen0"
   Device      "Card0"
   Monitor      "Monitor0"
   DefaultDepth   0

   SubSection "Display"
      Depth   8
      Virtual   1024 768
      Modes   
   EndSubSection

   SubSection "Display"
      Depth   16
      Virtual   1024 768
      Modes   
   EndSubSection

   SubSection "Display"
      Depth   24
      Virtual   1024 768
      Modes   
   EndSubSection

EndSection

Section "DRI"
   Group 0
   Mode 0666
EndSection


part of Xorg.0.log:
Code:
(II) R128(0): PCI bus 0 card 16 func 0
(==) R128(0): Depth 24, (--) framebuffer bpp 32
(II) R128(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
(==) R128(0): Default visual is TrueColor
(**) R128(0): Option "UseFBDev" "true"
(II) R128(0): VGAAccess option set to FALSE, VGA module load skipped
(==) R128(0): RGB weight 888
(II) R128(0): Using 8 bits per RGB (8 bit DAC)
(**) R128(0): Using framebuffer device
(II) Loading sub module "fbdevhw"
(II) LoadModule: "fbdevhw"
(II) Loading /usr/lib/xorg/modules/linux//libfbdevhw.so
(II) Module fbdevhw: vendor="X.Org Foundation"
   compiled for 1.6.3.901, module version = 0.0.2
   ABI class: X.Org Video Driver, version 5.0
(WW) open /dev/fb1: No such file or directory
(WW) open /dev/fb2: No such file or directoryfirst post on th
(WW) open /dev/fb3: No such file or directory
(WW) open /dev/fb4: No such file or directory
(WW) open /dev/fb5: No such file or directory
(WW) open /dev/fb6: No such file or directory
(WW) open /dev/fb7: No such file or directory
(EE) Unable to find a valid framebuffer device
(EE) R128(0): Failed to open framebuffer device, consult warnings and/or errors above for possible reasons
   (you may have to look at the server log to see warnings)
(II) UnloadModule: "r128"
(II) UnloadModule: "fbdevhw"
(II) Unloading /usr/lib/xorg/modules/linux//libfbdevhw.so
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found


lspci:
Code:
0000:00:0b.0 Host bridge: Apple Computer Inc. UniNorth AGP
0000:00:10.0 VGA compatible controller: ATI Technologies Inc Rage Mobility M3 AGP 2x (rev 02)
0001:10:0b.0 Host bridge: Apple Computer Inc. UniNorth PCI
0001:10:17.0 Class ff00: Apple Computer Inc. KeyLargo Mac I/O (rev 03)
0001:10:18.0 USB Controller: Apple Computer Inc. KeyLargo USB
0001:10:19.0 USB Controller: Apple Computer Inc. KeyLargo USB
0001:10:1a.0 CardBus bridge: Texas Instruments PCI1211
0002:24:0b.0 Host bridge: Apple Computer Inc. UniNorth Internal PCI
0002:24:0e.0 FireWire (IEEE 1394): Apple Computer Inc. UniNorth FireWire (rev 01)
0002:24:0f.0 Ethernet controller: Apple Computer Inc. UniNorth GMAC (Sun GEM) (rev 01)


I followed http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml#xorg

I have also tried to create symbolic links for /dev/fb[1-7] (pointing /dev/fb0), I tried to modificate xorg.conf (desactivate UseFBDev, change BusID etc...) with no results

The only way to get a X server is to use the driver fbdev which didn't provide hardware acceleration.
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1609
Location: U.S.A.

PostPosted: Sun Oct 25, 2009 8:41 am    Post subject: Reply with quote

If a moderator would kindly move this to the ppc forum, I think he will have better luck getting a proper answer there.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Oct 25, 2009 5:08 pm    Post subject: Reply with quote

Moved from Desktop Environments to Gentoo on PPC.

Make sure you have the right framebuffer device driver in your kernel.
Code:
    Device Drivers  --->
        Graphics support  --->
            <*> Support for frame buffer devices  --->
                <*>   ATI Rage128 display support

_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
racepres
n00b
n00b


Joined: 25 Oct 2009
Posts: 1
Location: Central Michigan

PostPosted: Mon Oct 26, 2009 12:51 am    Post subject: Re: X trouble: "Failed to open framebuffer device" Reply with quote

kakwa wrote:


The only way to get a X server is to use the driver fbdev which didn't provide hardware acceleration.


Note: I am anything But Expert.
However, I can't get my old g3 Wallstreet to run X in anything But fbdev..
Just the way of it with the Wallstreet, which is an old world ROM machine. If you get the Pismo [New World ROM I hear] to run w/o fbdev, pls post back, as I will try the Wallstreet "just cause"
RP
Back to top
View user's profile Send private message
kakwa
n00b
n00b


Joined: 24 Oct 2009
Posts: 9

PostPosted: Mon Oct 26, 2009 3:52 pm    Post subject: Reply with quote

sorry for the bad section, I'm a n00b in this forum :oops:

nixnut->I already have this option in my kernel.

racepres-> If I found something I will :)
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Tue Oct 27, 2009 9:43 am    Post subject: Reply with quote

Did you compile the aty128fb framebuffer driver or are you using then OF framebuffer? What's the result of
Code:
cat /proc/fb
?
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Tue Oct 27, 2009 11:16 am    Post subject: Reply with quote

if you have your framebuffer support in place, could it maybe be because of :

Code:
    Option      "UseFBDev"   "true"   # Try disabling this if it does not work


?

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
kakwa
n00b
n00b


Joined: 24 Oct 2009
Posts: 9

PostPosted: Tue Oct 27, 2009 7:16 pm    Post subject: Reply with quote

gringo wrote:
if you have your framebuffer support in place, could it maybe be because of :

Code:
    Option      "UseFBDev"   "true"   # Try disabling this if it does not work


?

cheers


I also tried with false.
And without this line.

no effects

DirtyHairy wrote:
Did you compile the aty128fb framebuffer driver or are you using then OF framebuffer? What's the result of
Code:
cat /proc/fb
?


the output is;

Code:
0 ATY Rage128
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Tue Oct 27, 2009 9:56 pm    Post subject: Reply with quote

Hmmm, that's weird. I was using a G4 with an Rage 128 at some point, and X was working nicely (but I have swapped the card about two years ago, so this was with an older Xorg stack). Have you tried switching to another version of X?
Back to top
View user's profile Send private message
kakwa
n00b
n00b


Joined: 24 Oct 2009
Posts: 9

PostPosted: Wed Oct 28, 2009 2:08 am    Post subject: Reply with quote

I will finish by trying that (and on the driver too), but I would prefere to have an up to date system :?
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Wed Oct 28, 2009 2:14 am    Post subject: Reply with quote

I haven't been able to get anything stable with recent xorg releases, except by using fbdev. Wrong resolution, constant freezes, hard locks. With fbdev at a depth of 15 it at least works. The system that I use has a radeon 9200 on a powermac G4. Worked well with xorg until kernel mode setting got in vogue. Now previous configurations don't work and I don't know what to do for the new ones.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum