A few questions from an iMac G5 user...
Hi all, I have a few questions about running Debian PPC on my iMac G5 (rev A). I have recently switched from Ubuntu after learning that their ppc distro was in question and I'm settling in fine, but have a few queries: 1) Is it possible to enable either sleep or suspend functions for the iMac G5? I am currently running the 2.6.19 kernel, but I don't have the slightest clue how to enable suspend or sleep. These functions never worked in Ubuntu. Is this possible? 2) Is it a good idea to enable ESD? I was having a few system freezes when using multiple multimedia players (Totem Xine, Rhythmbox and VLC), and have since enabled esd (and installed gstreamer-esd and vlc-esd). Things seem to be fine, but I'm not really sure what is an ideal sound setup. 3) How do I install java for running, eg. internet java applets? In Ubuntu we had to download from an IBM site. Currently, that site requires registration and even then told me that export laws (or something) would mean the download would be reviewed and I'd be notified when it was available. Of course, this never happened. So how else do ppc users get java installed? Alternatively, how long will it be before we see Adobe's recently released source code making its way into sid? 4) Is it possible to brighten the screen on an iMac G5. It looks darker and duller than OS X, but besides altering the gamma settings, there seems no way to brighten the screen. Cheers, Torrance
Re: A few questions from an iMac G5 user...
Hi Ben (and Charles), Thanks for your replies! There is currently no sleep support for G5s Suspend To Disk should be doable without too much pain though I didn't have time to do anything about it, I remember some patches were posted at one point doing at least part of the job. These are patches to the kernel? Do you know where I could find those? 2) Is it a good idea to enable ESD? I was having a few system freezes when using multiple multimedia players (Totem Xine, Rhythmbox and VLC), and have since enabled esd (and installed gstreamer-esd and vlc-esd). Things seem to be fine, but I'm not really sure what is an ideal sound setup. System freeze ? Or just application blocking because another one is using the driver ? Well, not quite a system freeze. The music would continue playing, and the mouse would move, but no windows would be selectable, and no keyboard commands would do anything. Forcing-quitting x-windows was non-responsive, and I couldn't shift into another terminal space either. This problem was repeatable, but not consistently so. In any case, ESD hasn't done this to me yet (but I haven't pushed it too far either), but I still am unsure what the best sound setup is, and whether I should be letting sound go straight through to ALSA and (presumably) hardware mixing. Yes, there is a magic register and indeed, it looks like the value set in there by nvidiafb might be slightly lower than what OS X does on this machine Great! So I'm not crazy! ;) Is this user-configurable? Which conf file should I be editing? Weird, they might have changes something... I had no problem last time I d/l the IBM Java. That's the best option at the moment. Now that Sun Java is GPL, there is hope to have more options available though. I know, it is weird. Last time I checked the US hadn't put any trade sanctions on New Zealand!! Thanks, Torrance On 3/12/2006, at 12:26 AM, Benjamin Herrenschmidt wrote: 1) Is it possible to enable either sleep or suspend functions for the iMac G5? I am currently running the 2.6.19 kernel, but I don't have the slightest clue how to enable suspend or sleep. These functions never worked in Ubuntu. Is this possible? There is currently no sleep support for G5s Suspend To Disk should be doable without too much pain though I didn't have time to do anything about it, I remember some patches were posted at one point doing at least part of the job. As for Suspend To RAM... well... the iMac G5 is an SMU based machines. I _think_ I know what command can be sent to the SMU to instruct it to put the machine to sleep, though I haven't really tried doing it. The main problem is that sleep will shut down the video chip and we currently can't bring an nVIdia chip back. It might be possiblea after a good deal of reverse engineering, or help from nVidia (don't hold your breath on that), but not at the moment. 2) Is it a good idea to enable ESD? I was having a few system freezes when using multiple multimedia players (Totem Xine, Rhythmbox and VLC), and have since enabled esd (and installed gstreamer-esd and vlc-esd). Things seem to be fine, but I'm not really sure what is an ideal sound setup. System freeze ? Or just application blocking because another one is using the driver ? 3) How do I install java for running, eg. internet java applets? In Ubuntu we had to download from an IBM site. Currently, that site requires registration and even then told me that export laws (or something) would mean the download would be reviewed and I'd be notified when it was available. Of course, this never happened. So how else do ppc users get java installed? Alternatively, how long will it be before we see Adobe's recently released source code making its way into sid? You can also use gij/gcj but they can't run quite as much things as the IBM JVM can (at least IBM own internal expense report system :-) Though I've been told they can run Eclipse. There's also Kaffe but that's pretty outdated... 4) Is it possible to brighten the screen on an iMac G5. It looks darker and duller than OS X, but besides altering the gamma settings, there seems no way to brighten the screen. Yes, there is a magic register and indeed, it looks like the value set in there by nvidiafb might be slightly lower than what OS X does on this machine The problem is that there are several machine models with similar nVidia chips and they seem to require differnent "max" values there, though we haven't quite figured how to properly identify which model needs what, so we are stuck right now with what we think is a "safe" value (ie. won't damage the display). I have some contacts at nVidia that were supposed to enquire about that but I had no reply over the past few monthes, I'll try to ask again. Ben.
iMac G5 Bugs and new wiki
Hi all, A few of us iMac G5 users who have recently switched from Ubuntu to Debian (testing) have been writing up a wiki with all the little hacks to get things sorted, and also with those that we still don't know how to fix. The new wiki is here: http://wiki.debian.org/iMacG5 In case anybody knows the answers to our remaining problems, I thought I'd ask them here: 1) Fan control and sound do not work 'out of the box.' We know how to fix these through a simple kernel recompile, but we were wondering if these will be fixed when Etch goes stable? 2) Hibernate does not work. So far, no patches or hacks have allowed us to suspend-to-disk. We are aware that standby (suspend-to-ram) is very unlikely to be able to work, but hibernate should. 3) Switch User Freeze. The option in the Gnome menu that appears when logging out, called "Switch User", results in a total system freeze. The screen becomes a total mess of coloured pixels, and no kill-xserver command saves us. We are forced to hard-reboot. 4) Screen too dim. The default backlight brightness in Debian is noticably dimmer than in MacOS X. So far, we have not been able to work out how to fix this. 5) Screen cannot be turned off. SImilar to above: no command allows us to put the display to sleep, and turn off the backlight. At the moment, the screen goes black but the backlight remains on, resulting in no power saving and potentially damaging the screen. None of these issues have been filed as bugs; the Debian bug system is too difficult for us newbies to understand as it requires us to know the packages we are filing the bugs under. Thanks in advance, Torrance
Re: iMac G5 Bugs and new wiki
Hi Michel, We've discovered the problem lies with the kernel configuration: the standard Debian 2.6.18 kernel Switches Users fine. Our custom kernels however, do not. Unfortunately, I'm not sure what exactly isn't configured properly. My kernel is essentially a standard g5_defconfig, plus firewall support. I've attached the config file, and would be most interested if anyone can spot the problem. Torrance On 12/12/06, Michel Dänzer <[EMAIL PROTECTED]> wrote: On Sun, 2006-12-10 at 15:03 +1300, Torrance wrote: > > 3) Switch User Freeze. The option in the Gnome menu that appears when > logging out, called "Switch User", results in a total system freeze. > The screen becomes a total mess of coloured pixels, and no > kill-xserver command saves us. We are forced to hard-reboot. There's probably an issue with starting the second X server. At least the full X config and log files are required for diagnosing this. -- Earthling Michel Dänzer | http://tungstengraphics.com Libre software enthusiast | Debian, X and DRI developer config-2.6.19-g5_defconfig Description: Binary data
Re: Default I/O Scheduler for Etch
Hi Brian, Yes, this is the case. Check out the kernel config file in /boot and you'll see the kernel has been compiled with CFQ as default. Torrance On 15/12/2006, at 12:06 AM, Brian wrote: Can anyone tell me if the default scheduler for Etch (specifically Etch-Testing) is CFQ? I took a look at my /sys/block/sda/queue/scheduler file, and it looks like this: noop anticipatory deadline [cfq] Do the brackets around [cfq] indicate that it is the default scheduler? I'm just wondering because the faqs on http://www.linux1394.org suggest that cfq is good for firewire (among other things) Thanks! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] GnuPG / PGP Encrypted mail welcome. Public key ID: F708102A
Constantly Switching Gnome Theme on Fresh Install
Hi, I've just done a fresh install of Debian Etch from a daily build net- install cd image on an iMac DV SE (g3, graphite), and everything is working fine except that the gnome theme is constantly changing between the one I have it set to and and old-looking theme. It looks as though there is some conflict between theme settings. After a while, I received this error: There was an error starting the GNOME Settings Daemon. Some things, such as themes, sounds, or background settings may not work correctly. The Settings Daemon restarted too many times. The last error message was: System exception: IDL:Bonobo/GeneralError:1.0 : Child process did not give an error message, unknown failure occurred GNOME will still try to restart the Settings Daemon next time you log in. __ So what's going on? It's bringing my system to a halt. Not sure if its a ppc-specific issue or not. Torrance -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Constantly Switching Gnome Theme on Fresh Install
Wow, yes, that worked! And such a quick reply. :) Thanks very much, Torrance On 3/5/07, Ananda Samaddar <[EMAIL PROTECTED]> wrote: There is a known bug in Gstreamer that only affects non-Altivec PowerPC machines. You need to get upgraded libvisual packages from here: http://people.debian.org/~sjoerd/libvisual/ This worked for me. regards, Ananda On Mon, 5 Mar 2007 18:14:17 +1300 Torrance <[EMAIL PROTECTED]> wrote: > Hi, > > I've just done a fresh install of Debian Etch from a daily build net- > install cd image on an iMac DV SE (g3, graphite), and everything is > working fine except that the gnome theme is constantly changing > between the one I have it set to and and old-looking theme. It looks > as though there is some conflict between theme settings. > > After a while, I received this error: > > > There was an error starting the GNOME Settings Daemon. > > Some things, such as themes, sounds, or background settings may not > work correctly. > > The Settings Daemon restarted too many times. > > The last error message was: > > System exception: IDL:Bonobo/GeneralError:1.0 : Child process did not > give an error message, unknown failure occurred > > GNOME will still try to restart the Settings Daemon next time you log > in. > __ > > So what's going on? It's bringing my system to a halt. Not sure if > its a ppc-specific issue or not. > > Torrance > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [FYI] hibernate on G5
Hi Jonhannes (or anyone else), Are you talking about the vanilla 2.6.22 kernel? I have 2.6.22-rc2 from kernel.org but I can't find the option to enable your patches. I'm using menuconfig to configure the kernel - could you tell me where your patch(es) are and how they should be enabled? I'm interested to test out the suspend-to-disk functionality! I have EXPERIMENTAL=y already set. Thanks, Torrance On 5/18/07, Johannes Berg <[EMAIL PROTECTED]> wrote: Hi, Recently, I wrote some patches to allow hibernate (aka suspend-to-disk) to work on G5 machines and at one point posted references to them in some thread here. These patches are available with the kernel as of 2.6.22-rc1 when compiled with EXPERIMENTAL=y. johannes
Re: [FYI] hibernate on G5
Also, assuming the kernel is compiled correctly, how does one run the new suspend-to-disk scripts? I tried using hibernate which failed, complaining there were no known methods available. However, this could also simply be a result of not properly compiling the kernel. Torrance On 5/20/07, Torrance <[EMAIL PROTECTED]> wrote: Hi Jonhannes (or anyone else), Are you talking about the vanilla 2.6.22 kernel? I have 2.6.22-rc2 from kernel.org but I can't find the option to enable your patches. I'm using menuconfig to configure the kernel - could you tell me where your patch(es) are and how they should be enabled? I'm interested to test out the suspend-to-disk functionality! I have EXPERIMENTAL=y already set. Thanks, Torrance On 5/18/07, Johannes Berg <[EMAIL PROTECTED] > wrote: > > Hi, > > Recently, I wrote some patches to allow hibernate (aka suspend-to-disk) > to work on G5 machines and at one point posted references to them in > some thread here. These patches are available with the kernel as of > 2.6.22-rc1 when compiled with EXPERIMENTAL=y. > > johannes > >
Re: [FYI] hibernate on G5
On 5/20/07, Johannes Berg <[EMAIL PROTECTED]> wrote: Well, the regular applies. If you have SMP then you need to enable CPU_HOTPLUG, and then you should be able to enable SOFTWARE_SUSPEND. Ah, thank you. Except now when I attempt to suspend-to-disk the screen gets messed up with colours, the system freezes, and after a short while the fans spin up to full speed. Here's the verbose output of a dry run (I can't make sense of it): [EMAIL PROTECTED]:~$ sudo hibernate -v4 --dry-run hibernate: Trying method in suspend2.conf... hibernate: Trying method in disk.conf... hibernate: Trying method in ususpend-disk.conf... hibernate: Including configuration from common.conf hibernate: Trying method in sysfs-disk.conf... hibernate: Including configuration from common.conf + date + echo Starting suspend at Sun May 20 21:35:05 NZST 2007 + tee -a -i /var/log/hibernate.log + EXIT_CODE=0 + [ tee -a -i /var/log/hibernate.log = cat ] + [ -n ] + trap INT + exec + exec + DoWork + trap ctrlc_handler INT HUP + local ret + local CHAIN_UP_TO + local bit + CHAIN_UP_TO=0 + SortSuspendBits + /bin/echo -ne 91ModulesUnloadBlacklist\n99DoSysfsPowerStateSuspend\n10EnsureSysfsPowerStateCapable\n95XHacksSuspendHook2\n11XHacksSuspendHook1\n91ModulesUnloadBlacklist\n59RemountXFSBootRO\n01NewKernelFileCheck\n89SaveKernelModprobe\n98CheckRunlevel\n01CheckRunlevel\n01CheckLastResume\n01LockFileGet\n + tee -a -i /var/log/hibernate.log + sort -n + local new_CHAIN_UP_TO + awk BEGIN{print substr("01CheckLastResume", 1, 2)} + new_CHAIN_UP_TO=01 + [ -n 01 ] + CHAIN_UP_TO=01 + bit=CheckLastResume + vecho 1 hibernate: [01] Executing CheckLastResume ... + local v + v=1 + shift + [ x = x1 ] + [ 1 -le 4 ] + echo hibernate: [01] Executing CheckLastResume ... + [ -n 1 ] + continue + local new_CHAIN_UP_TO + awk BEGIN{print substr("01CheckRunlevel", 1, 2)} + new_CHAIN_UP_TO=01 + [ -n 01 ] + CHAIN_UP_TO=01 + bit=CheckRunlevel + vecho 1 hibernate: [01] Executing CheckRunlevel ... + local v + v=1 + shift + [ x = x1 ] + [ 1 -le 4 ] + echo hibernate: [01] Executing CheckRunlevel ... + [ -n 1 ] + continue + local new_CHAIN_UP_TO + awk BEGIN{print substr("01LockFileGet", 1, 2)} + new_CHAIN_UP_TO=01 + [ -n 01 ] + CHAIN_UP_TO=01 + bit=LockFileGet + vecho 1 hibernate: [01] Executing LockFileGet ... + local v + v=1 + shift + [ x = x1 ] + [ 1 -le 4 ] + echo hibernate: [01] Executing LockFileGet ... + [ -n 1 ] + continue + local new_CHAIN_UP_TO + awk BEGIN{print substr("01NewKernelFileCheck", 1, 2)} + new_CHAIN_UP_TO=01 + [ -n 01 ] + CHAIN_UP_TO=01 + bit=NewKernelFileCheck + vecho 1 hibernate: [01] Executing NewKernelFileCheck ... + local v + v=1 + shift + [ x = x1 ] + [ 1 -le 4 ] + echo hibernate: [01] Executing NewKernelFileCheck ... + [ -n 1 ] + continue + local new_CHAIN_UP_TO + awk BEGIN{print substr("10EnsureSysfsPowerStateCapable", 1, 2)} + new_CHAIN_UP_TO=10 + [ -n 10 ] + CHAIN_UP_TO=10 + bit=EnsureSysfsPowerStateCapable + vecho 1 hibernate: [10] Executing EnsureSysfsPowerStateCapable ... + local v + v=1 + shift + [ x = x1 ] + [ 1 -le 4 ] + echo hibernate: [10] Executing EnsureSysfsPowerStateCapable ... + [ -n 1 ] + continue + local new_CHAIN_UP_TO + awk BEGIN{print substr("11XHacksSuspendHook1", 1, 2)} + new_CHAIN_UP_TO=11 + [ -n 11 ] + CHAIN_UP_TO=11 + bit=XHacksSuspendHook1 + vecho 1 hibernate: [11] Executing XHacksSuspendHook1 ... + local v + v=1 + shift + [ x = x1 ] + [ 1 -le 4 ] + echo hibernate: [11] Executing XHacksSuspendHook1 ... + [ -n 1 ] + continue + local new_CHAIN_UP_TO + awk BEGIN{print substr("59RemountXFSBootRO", 1, 2)} + new_CHAIN_UP_TO=59 + [ -n 59 ] + CHAIN_UP_TO=59 + bit=RemountXFSBootRO + vecho 1 hibernate: [59] Executing RemountXFSBootRO ... + local v + v=1 + shift + [ x = x1 ] + [ 1 -le 4 ] + echo hibernate: [59] Executing RemountXFSBootRO ... + [ -n 1 ] + continue + local new_CHAIN_UP_TO + awk BEGIN{print substr("89SaveKernelModprobe", 1, 2)} + new_CHAIN_UP_TO=89 + [ -n 89 ] + CHAIN_UP_TO=89 + bit=SaveKernelModprobe + vecho 1 hibernate: [89] Executing SaveKernelModprobe ... + local v + v=1 + shift + [ x = x1 ] + [ 1 -le 4 ] + echo hibernate: [89] Executing SaveKernelModprobe ... + [ -n 1 ] + continue + local new_CHAIN_UP_TO + awk BEGIN{print substr("91ModulesUnloadBlacklist", 1, 2)} + new_CHAIN_UP_TO=91 + [ -n 91 ] + CHAIN_UP_TO=91 + bit=ModulesUnloadBlacklist + vecho 1 hibernate: [91] Executing ModulesUnloadBlacklist ... + local v + v=1 + shift + [ x = x1 ] + [ 1 -le 4 ] + echo hibernate: [91] Executing ModulesUnloadBlacklist ... + [ -n 1 ] + continue + local new_CHAIN_UP_TO + awk BEGIN{print substr("91ModulesUnloadBlacklist", 1, 2)} + new_CHAIN_UP_TO=91 + [ -n 91 ] + CHAIN_UP_TO=91 + bit=ModulesUnloadBlacklist + vecho 1 hibernate: [91] Executing ModulesUnloadBlacklist ... + local v + v=1 + shift + [ x = x1 ] + [ 1 -le 4 ] + echo hibernate: [91] Executing ModulesUnloadBlacklist ... + [ -n 1 ] + continue + local new_CHAIN_UP_TO + awk BEGIN{print substr("95XHacksSuspendHook2", 1, 2)} + new_CHAIN_UP_TO=95 + [ -n 95 ] + CHAIN_UP_TO
Re: [FYI] hibernate on G5
The messed up screen seems to be partly an error with the nv driver or nvidiafb. Issuing the command "echo disk > /sys/power/state" with xserver running results in the same error. However, with xserver stopped I get this response from the hibernate command: Stopping task... done Shrinking memory... done (0 pages free) Freed 0 kbytes in 0.06 seconds (0.00MB/s) Suspending console(s) Unfortunately at this point the system locks up, the text above remains on the screen, and after a short while the fans spin up to full speed. I'm not sure what's going on. :( Torrance On 20/05/2007, at 9:46 PM, Johannes Berg wrote: On Sun, 2007-05-20 at 21:44 +1200, Torrance wrote: On 5/20/07, Johannes Berg <[EMAIL PROTECTED]> wrote: Well, the regular applies. If you have SMP then you need to enable CPU_HOTPLUG, and then you should be able to enable SOFTWARE_SUSPEND. Ah, thank you. Except now when I attempt to suspend-to-disk the screen gets messed up with colours, the system freezes, and after a short while the fans spin up to full speed. Here's the verbose output of a dry run (I can't make sense of it): Neither can I. Have you tried just "echo disk > /sys/power/state"? And have you turned off nvidiafb? johannes GnuPG / PGP Encrypted mail welcome. Public key ID: F708102A PGP.sig Description: This is a digitally signed message part
Re: PowerBook G4 screen in Debian not as bright as Mac OS X or OpenBSD
Hi Amit, I'm not sure what the graphics card is in your powerbook, but I noticed a reduction in brightness compared to OSX when using Debian on my iMac G5 (revA) which has an nvidia device. When I put the question to this list, this is the response I got back: On Sun, Dec 10, 2006 at 03:03:29PM +1300, Torrance wrote: 4) Screen too dim. The default backlight brightness in Debian is noticably dimmer than in MacOS X. So far, we have not been able to work out how to fix this. What kind of graphics chip do you have? You should be able to upload a new backlight curve if you're using Linux 2.6.18 or higher. Also, for NVidia chips, we haven't yet found out for sure how to detect the maximum value allowed (I was the one rewriting the backlight infrastructure in 2.6.18). Hence it might be that, when using an NVidia chipset, the display is not that bright as in Mac OS X. And anyway, this is in no way distribution specific. Greets, Michael Unfortunately, I had no idea how to play with the brightness curve so I had to stick with the brightness I was given. Torrance GnuPG / PGP Encrypted mail welcome. Public key ID: F708102A
Re: fonts in xorg
Hi Gustav, It may be related to this problem: http://wiki.debian.org/iMacG5 (scroll down to "Minor Font Fix" section) It's not a problem with your font rendering, as far as I can tell, but just with the specific rendering of Helvetica on specific sites that force its use. And yeah, it's not powerpc specific. Torrance On 1/09/2007, at 1:19 AM, Gustav Gepard wrote: Hi I'm trying to get better font resolutions on websites that I visit. Many fonts seem hard and pixilated, such as on Debian's home page. How can I optimise xorg for better font rendering? cheers Gustav Alt i én. Få Yahoo! Mail med adressekartotek, kalender og notisblokk. GnuPG / PGP Encrypted mail welcome. Public key ID: F708102A On 1/09/2007, at 1:19 AM, Gustav Gepard wrote: Hi I'm trying to get better font resolutions on websites that I visit. Many fonts seem hard and pixilated, such as on Debian's home page. How can I optimise xorg for better font rendering? cheers Gustav Alt i én. Få Yahoo! Mail med adressekartotek, kalender og notisblokk. GnuPG / PGP Encrypted mail welcome. Public key ID: F708102A
CD Drive Issue Installing on iMac G5
Hiya everyone, I'm a total newbie to Linux/Debian and I'm trying to install Sarge on my iMac G5. I'm getting past the initial installer screens, setting the language, country, keyboard, etc. HOWEVER, just before it attempts to run the rest of the installer of the CD it comes up with an error claiming it cannot locate the CD drive. It asks me to locate the driver (I think) but I wouldn't know where to point it. I have no idea what to do - but this must be a common problem with hardware that is as generic as Apple's. Can anyone help? These are my computer specs in brief: Hardware Overview: Machine Name: iMac G5 Machine Model:PowerMac8,1 CPU Type: PowerPC G5 (3.0) Number Of CPUs: 1 CPU Speed:1.8 GHz L2 Cache (per CPU): 512 KB Memory: 1.5 GB Bus Speed:600 MHz Boot ROM Version: 5.2.2f4 And this the CD drive specs in detail: MATSHITA DVD-R UJ-825: Firmware Revision:DBN7 Interconnect: ATAPI Burn Support: Yes (Apple Shipped/Supported) Cache:2048 KB Reads DVD:Yes CD-Write: -R, -RW DVD-Write:-R, -RW, +R, +RW Burn Underrun Protection CD: Yes Burn Underrun Protection DVD: Yes Write Strategies: CD-TAO, CD-SAO, DVD-DAO Media: Media Type: CD-ROM Blank:No Erasable: No Overwritable: No Appendable: No