Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
my brand spanking new ibook with gentoo linux,
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
dcstimm
Guru
Guru


Joined: 19 Jun 2002
Posts: 321

PostPosted: Wed Jan 01, 2003 1:50 am    Post subject: my brand spanking new ibook with gentoo linux, Reply with quote

hey guys, i just got my new ibook on friday 12/27/02 and I love it, i just have a couple questions, I just installed gentoo and its working perfectly using the new iso and the g3 stage 3, my biggest question is which is the easiest way to get dri to work? I have the new moblity radeon 7500 m7. Also im having problems getting f11 and f12 to work as right click and middle click, I followed the directions and still didnt work. and third I was wondering why the right arrow button on my keyboard doesnt work. If I fix these 3 issues I will have the perfect ibook:)... Thanks!
Back to top
View user's profile Send private message
andersv
n00b
n00b


Joined: 30 Dec 2002
Posts: 2

PostPosted: Wed Jan 01, 2003 3:03 am    Post subject: Reply with quote

I think the new iBook is cool :-) love it! have just bought a 12" iBook.

I have same problems as u - have done some searching about dri. and as far as I can tell from that there isnt any solution yet. the people at yellowdog seems to have same problem. I guess we just have to wait or start learning to debug... (sigh)

Regarding the f11 and f12 havent come to that yet, since i have a Swedish keyboard i have had enough struggle to get that to work....
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Jan 01, 2003 3:22 am    Post subject: Reply with quote

do the ati linux drivers work ?
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
DaveMc
n00b
n00b


Joined: 26 Dec 2002
Posts: 8

PostPosted: Wed Jan 01, 2003 3:30 am    Post subject: Reply with quote

DRI doesn't work yet on the iBook. The right arrow problem is a bug in the version of X you are using. According to a previous post you need to remove ~ppc from your ACCEPT_KEYWORDS and rebuild.

You may also have problems with the machine not waking up from sleep. I can't get that to work on mine.

Dave
Back to top
View user's profile Send private message
axxackall
l33t
l33t


Joined: 06 Nov 2002
Posts: 651
Location: Toronto, Ontario, 3rd Rock From Sun

PostPosted: Wed Jan 01, 2003 3:43 am    Post subject: Reply with quote

I have Powerbook Pismo with AtI Rage 128. Accordingly, aty128, DRI and agpgart drivers are on in the kernel. Xeasyconf found it and loaded aty rage 128 driver (with Option "UseFBDev") along with DRI module. The X log file has several DRI and DRM successfull messages and no error message. X starts and works well: stable and fast (compare to Mac os x). Particularly on Pismo all OpenGL screensavers work fine (on grey-G4 mini-tower with slightly different minor version number of Rage 128 chipset some of OpenGL screensavers may lock XFree86).

I am not sure if this info is useful for modern radeon chipset users, but I have a question from myself: does it mean that DRI works? Are there any tests I can do with Gentoo to make sure that DRI works?
Back to top
View user's profile Send private message
dcstimm
Guru
Guru


Joined: 19 Jun 2002
Posts: 321

PostPosted: Wed Jan 01, 2003 4:40 am    Post subject: Reply with quote

DaveMc wrote:
DRI doesn't work yet on the iBook. The right arrow problem is a bug in the version of X you are using. According to a previous post you need to remove ~ppc from your ACCEPT_KEYWORDS and rebuild.

You may also have problems with the machine not waking up from sleep. I can't get that to work on mine.

Dave


yeah im having that problem, X and the framebuffer crashes when using pmud, this is a ati radeon problem with pmud. Hopefully it gets fixed ASAP!

Other than that, im so happy with Gentoo on my ibook!
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Jan 01, 2003 4:51 am    Post subject: Reply with quote

you can't use most games right ? what games do work ?

and can't use crossover stuff, wine or vmware, yeah ?

I was gonna get a powerbook, but for these things :(

how does the speed compare to your ix86 box ?
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
dcstimm
Guru
Guru


Joined: 19 Jun 2002
Posts: 321

PostPosted: Wed Jan 01, 2003 4:56 am    Post subject: Reply with quote

taskara wrote:
you can't use most games right ? what games do work ?

and can't use crossover stuff, wine or vmware, yeah ?

I was gonna get a powerbook, but for these things :(

how does the speed compare to your ix86 box ?



linux for ppc has MacOnLinux, MOL for short, its kinda like vmware for x86 linux but it boots your macosx boot rom. So u can do your stuff in that. Mplayer now can play quicktime files perfectly, and there is a way to intergrate that into mozilla. Wine is unneeded because you dont need to run windows programs on a mac. But as for speed its faster IMHO, my ibook 800mhz g3 is faster than my p3 800mhz system.
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Jan 01, 2003 5:11 am    Post subject: Reply with quote

cool...
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Wed Jan 01, 2003 5:47 pm    Post subject: Re: my brand spanking new ibook with gentoo linux, Reply with quote

for f11 and f12, there is an option in the kernel config you must turn on. then you have to

Code:

echo "1" > /proc/sys/dev/mac_hid/mouse_button_emulation
echo "87" > /proc/sys/dev/mac_hid/mouse_button2_keycode
echo "88" >/proc/sys/dev/mac_hid/mouse_button3_keycode


also with pbbuttonsd there is an option which determines wether pressing an f key acts like a function key or has the special meaning or if you have to press the 'fn' key with it.
Back to top
View user's profile Send private message
homar
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 94

PostPosted: Wed Jan 01, 2003 7:47 pm    Post subject: Reply with quote

Hi

I've gotten DRI working on the newest iBooks and have written a (very hacked together) ebuild.

Code:

IUSE=""

P=`echo ${P} | sed s/trunk-/trunk_/`
DESCRIPTION="DRI updates for ibooks"
SRC_URI="http://people.debian.org/~daenzer/dri-trunk/${P}.orig.tar.gz
         http://people.debian.org/~daenzer/dri-trunk/${P}-3.diff.gz"
HOMEPAGE="http://people.debian.org/~daenzer/dri-trunk"

LICENSE="X11"
KEYWORDS="-x86 ~ppc"
SLOT="0"

RDEPEND="virtual/x11"

DEPEND="$RDEPEND"

src_unpack() {
    unpack ${A}

    patch -p0 < ${P}-3.diff

    P=`echo ${P} | sed s/trunk_/trunk-/`
    cd ${P}/upstream/archives
    # FIXME: is there a variable to get just version no instead of hardcoding?
    tar xfvz xc.2002.12.05.tar.gz

    patch -p0 < ../../debian/patches/020_radeon_pll_ddc.diff
    patch -p0 < ../../debian/patches/023_radeon_reinit.diff
    patch -p0 < ../../debian/patches/030_drm_ioremapagp.diff
    patch -p0 < ../../debian/patches/110_host.def.diff
    patch -p0 < ../../debian/patches/111_linux.cf.diff
}

src_compile() {
    S=`echo ${S} | sed s/trunk_/trunk-/`
    cd ${S}/upstream/archives/xc

    emake World || die "Make failed"

    # FIXME: need to move opengl-update libs, how?
}

src_install() {
    S=`echo ${S} | sed s/trunk_/trunk-/`
    cd ${S}/upstream/archives/xc
    einstall || die "Installation falied"

    cd ${S}/upstream/archives/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel

    make -f Makefile.linux radeon.o

    local kerneldir

    kerneldrmdir="/lib/modules/`uname -r`/kernel/drivers/char/drm"

    mv ${kerneldrmdir}/radeon.o ${kerneldrmdir}/radeon.o.old

    cp radeon.o ${kerneldrmdir}
   
    # Warn about the problems
    einfo "Load \"freetype\" in XF86Config will crash X on startup"
    einfo "Use xfs instead"
    einfo "Change ModulePath in XF86Config to:"
    einfo "/usr/X11R6/lib/modules-dri-trunk"
    einfo "Move /usr/lib/opengl so X picks up the correct GL libs"
   
    # FIXME: emerge -b doesn't work
    #cd ${PKGDIR}/All
    #tar chvfpj dri-trunk-2002.12.05-kernel.tbz2 ${S}/upstream/archives/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel
}


Put in /usr/local/portage/x11-base/dri-trunk/dri-trunk-2002.12.05.ebuild

There are a couple of problems detailed in the ebuild. I get roughly 1020 FPS with glxgears.
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Thu Jan 02, 2003 1:56 am    Post subject: Reply with quote

"you can't use most games right ? what games do work ?"
Some games have Mac counterparts. Warcraft III for example.
My advice: Play games on a desktop!

"and can't use crossover stuff, wine or vmware, yeah ?"
G4 != P4;

"I was gonna get a powerbook, but for these things :("
Powerbook (n.) Apple's new 1 inch G4 laptops with titanium casing, 15" 3:2 LCD and a DVD burner in the high end models. Warning, may put you in debt for a long time.

"how does the speed compare to your ix86 box ?"
Vector processing is what the G4 is designed for. Expect to see gigaflop performance. I have seen someone work on a 1024x768 image in the GIMP with 20+ layers, and it was still quite snappy.
Back to top
View user's profile Send private message
nikai
Apprentice
Apprentice


Joined: 02 Oct 2002
Posts: 270
Location: Kitzbühel, Austria

PostPosted: Thu Jan 02, 2003 11:58 am    Post subject: Reply with quote

homar wrote:

I've gotten DRI working on the newest iBooks and have written a (very hacked together) ebuild.

Looks nice! At least, it says it loaded and doesn't crash at my place, but
homar wrote:

Code:

    # FIXME: need to move opengl-update libs, how?
(..)
    einfo "Move /usr/lib/opengl so X picks up the correct GL libs"

Uhm, I'm a probably looking in the wrong places. What exactly should I move where?
Back to top
View user's profile Send private message
homar
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 94

PostPosted: Thu Jan 02, 2003 5:01 pm    Post subject: Reply with quote

I just meant to rename the opengl directory (to whatever you want), so the opengl libs in /usr/lib get used instead.
Back to top
View user's profile Send private message
herel
n00b
n00b


Joined: 26 Dec 2002
Posts: 5

PostPosted: Fri Jan 03, 2003 12:22 pm    Post subject: dri-trunk Reply with quote

Could you also please post your XF86Config file?
Back to top
View user's profile Send private message
homar
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 94

PostPosted: Fri Jan 03, 2003 3:41 pm    Post subject: Reply with quote

Code:

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

Section "Files"
    RgbPath     "/usr/X11R6/lib/X11/rgb"
    ModulePath  "/usr/X11R6/lib/modules-dri-trunk"
    FontPath    "unix/:-1"

#    FontPath    "/usr/X11R6/lib/X11/fonts/misc/"
#    FontPath    "/usr/X11R6/lib/X11/fonts/Speedo/"
#    FontPath    "/usr/X11R6/lib/X11/fonts/Type1/"
#    FontPath    "/usr/X11R6/lib/X11/fonts/CID/"
#    FontPath    "/usr/X11R6/lib/X11/fonts/75dpi/"
#    FontPath    "/usr/X11R6/lib/X11/fonts/100dpi/"
#    FontPath    "/usr/X11R6/lib/X11/fonts/truetype"
EndSection

Section "Module"
    Load    "extmod"
    Load    "dri"
    Load    "dbe"
    Load    "record"
    Load    "xtrap"
    Load    "glx"
    Load    "speedo"
    Load    "type1"
#    Load    "freetype"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "keyboard"
    Option      "XkbRules"      "xfree86"
    Option      "XkbModel"      "macintosh"
    Option      "XkbLayout"     "gb"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol"      "IMPS/2"
    Option      "ZAxisMapping"  "4 5"
    Option      "Device"        "/dev/input/mice"
EndSection

Section "Monitor"
    Identifier      "Monitor0"
    VendorName      "Monitor Vendor"
    ModelName       "Monitor Model"
    HorizSync       30-70
    VertRefresh     50-160
    Option          "DPMS"
EndSection

Section "Device"
    ### Available Driver options are:-
    ### Values: &lt;i&gt;: integer, &lt;f&gt;: float, &lt;bool&gt;: "True"/"False",
    ### &lt;string&gt;: "String", &lt;freq&gt;: "&lt;f&gt; Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option     "NoAccel"               # [&lt;bool&gt;]
    #Option     "SWcursor"              # [&lt;bool&gt;]
    #Option     "Dac6Bit"               # [&lt;bool&gt;]
    #Option     "Dac8Bit"               # [&lt;bool&gt;]
    #Option     "ForcePCIMode"          # [&lt;bool&gt;]
    #Option     "CPPIOMode"             # [&lt;bool&gt;]
    #Option     "CPusecTimeout"         # &lt;i&gt;
    #Option     "AGPMode"               # &lt;i&gt;
    #Option     "AGPSize"               # &lt;i&gt;
    #Option     "RingSize"              # &lt;i&gt;
    #Option     "BufferSize"            # &lt;i&gt;
    #Option     "EnableDepthMoves"      # [&lt;bool&gt;]
    #Option     "CrtScreen"             # [&lt;bool&gt;]
    #Option     "PanelSize"             # [&lt;str&gt;]
    #Option     "UseFBDev"              # [&lt;bool&gt;]

    Identifier  "Card0"
    VendorName  "ATI"
    BoardName   "Radeon Mobility M7 LW"
    BusID       "PCI:0:16:0"

    Driver      "ati"
    Option      "UseFBDev"
    Option      "AGPMode"     "2"
EndSection

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

    SubSection "Display"
        Depth 16
        Modes   "1024x768" "800x600" "640x480"
    EndSubSection

    SubSection "Display"
        Depth 24
        Modes   "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "DRI"
    Mode 0666
EndSection
Back to top
View user's profile Send private message
gordin
Guru
Guru


Joined: 11 Oct 2002
Posts: 300
Location: Germany/WI

PostPosted: Tue Jan 07, 2003 7:01 pm    Post subject: Only about 350 FPS with DRI-Trunk Reply with quote

Hi,

I just installed dri-trunk. It seems to work.
From 55 FPS before now about 350 FPS in glxgears.

homar says he got 1020 FPS.

Is this because I have a Radeon Mobility M6 LY not
a M7 (like homar)?
Or is there somewhere else I can speed up 3D performance?

Gordin
Back to top
View user's profile Send private message
nikai
Apprentice
Apprentice


Joined: 02 Oct 2002
Posts: 270
Location: Kitzbühel, Austria

PostPosted: Sat Jan 11, 2003 1:34 am    Post subject: Re: Only about 350 FPS with DRI-Trunk Reply with quote

gordin wrote:
Hi,
From 55 FPS before now about 350 FPS in glxgears.

Is this because I have a Radeon Mobility M6 LY


I've got the M6 LY as well on my iBook2/700, and I'm getting 600 FPS in glxgears.
But this is in an "empty" fluxbox. When I start adding idesk and some wm-applets, glxgears goes down to about 570 FPS.

It's masked at the moment, but I just played some app-games/chromium, it's running very nicely, only without sound (sounds like some endian problem). I installed with USE="-qt" as I don't want any qt2. At 1024x768 I seldomly get less than 40 FPS.

PS: Oh, and chromium needs to get started with
Code:
CHROMIUM_DATA="/usr/share/games/chromium" chromium
Back to top
View user's profile Send private message
preemi
n00b
n00b


Joined: 10 Feb 2003
Posts: 24

PostPosted: Sat Feb 22, 2003 4:06 pm    Post subject: Reply with quote

i have a question regarding the button2_keycode files....when i add the 1, 87, and 88, x works fine but upon reboot they are back to original values...i guess i could just make a shell script to do it each time but i was wondering if there is a way to set it into stone.

thanks kevin
Back to top
View user's profile Send private message
homar
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 94

PostPosted: Sat Feb 22, 2003 5:21 pm    Post subject: Reply with quote

I've put them in /etc/sysctl.conf:

dev.mac_hid.mouse_button_emulation = 1
# F11
dev.mac_hid.mouse_button2_keycode = 87
# F12
dev.mac_hid.mouse_button3_keycode = 88
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