Re: Bug #400919: Bug affecting Kino (and Cinelerra) on PowerPC, any ideas?
Hi, On Sun, Jan 07, 2007 at 03:47:56PM +0100, Michael Schmitz wrote: So we need to convince the kino maintainer to use it - and ask Guido for details. Please keep in mind that we need the altivec optimized ffmpeg code ... The ffmpeg and mplayer packages I provided were based on the packages from Christian Marillat (debian-multimedia.org). I sent all the necessary modifications back to him. I no longer build the packages myself - Christian autobuilds these now like on the other architectures. The ffmpeg binaries and libavcodec libs on debian-multimedia.org are (or at least were the last time I looked at) altivec optimized [1]. Building kino against it should give reasonable performance. Holger, could you try that as a first step? Once we have that we need two versions of ffmeg (altivec optimized and not and select the correct one during runtime) - probably using glibc capabilities like openssl does for i386. Cheers, -- Guido [1] we have a not altivec optimized ffmpeg in the mplayer-powerpc package, the mplayer-g4 package uses the altivec optmized shared lib. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Bug #400919: Bug affecting Kino (and Cinelerra) on PowerPC, any ideas?
On Sun, Jan 07, 2007 at 06:04:12PM +0100, Holger Levsen wrote: Hi, On Sunday 07 January 2007 16:59, Guido Guenther wrote: The ffmpeg and mplayer packages I provided were based on the packages from Christian Marillat (debian-multimedia.org). I sent all the necessary modifications back to him. I no longer build the packages myself - Christian autobuilds these now like on the other architectures. The ffmpeg binaries and libavcodec libs on debian-multimedia.org are (or at least were the last time I looked at) altivec optimized [1]. Building kino against it should give reasonable performance. Holger, could you try that as a first step? Once we have that we need two versions of ffmeg (altivec optimized and not and select the correct one during runtime) - probably using glibc capabilities like openssl does for i386. actually it's about kino and ffmpeg in debian-main which should not have altivec optimations, because if it does, it doesnt run on all ppc-hardware, like my imac g3. Correct. This is why I asked you to test kino with the altivec optimized ffmpeg _first_. Once this works we can look into getting this into Debian (selecting the altivec optmitzed ffmpeg during runtime on G4s). Unfortunatly I dont have time to build and test now, as I will leave tomorrow and be away from my imac the next weeks :( Would be nice to know if this works in a few weeks anyways ;) Cheers, -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: External video on a Powerbook G4.
On Sun, Dec 17, 2006 at 02:35:52PM +0100, Filippo Giunchedi wrote: On Sat, Dec 16, 2006 at 02:40:11PM +0100, Guido Guenther wrote: On Fri, Dec 15, 2006 at 07:34:01PM -0500, Matthew Gracie wrote: Does anyone know if it's possible to get external video from a 12 Powerbook G4/867 with an nVidia Geforce-to-go chipset? I don't need multihead, but I need to be able to do mirroring. For mirroring I use this xorg.conf: Section Device Identifier NVIDIA Corporation NV17 [GeForce4 440 Go 64M] Driver nv Option CrtcNumber0 Option FlatPanel 0 EndSection I then suspend to disk, attach the cable and resume. No need for a full reboot. with the above configuration you are able to mirror screens? that is, having both functional? Last time I tried only the external output worked, with the LCD showing garbage. (I have a GeForce FX Go5200 on a PB 6,2 though) Nope, only the external screen is working then. Fixing this up shouldn't is on my todo list since ages. -- Guido signature.asc Description: Digital signature
Re: External video on a Powerbook G4.
On Fri, Dec 15, 2006 at 07:34:01PM -0500, Matthew Gracie wrote: Does anyone know if it's possible to get external video from a 12 Powerbook G4/867 with an nVidia Geforce-to-go chipset? I don't need multihead, but I need to be able to do mirroring. For mirroring I use this xorg.conf: Section Device Identifier NVIDIA Corporation NV17 [GeForce4 440 Go 64M] Driver nv Option CrtcNumber0 Option FlatPanel 0 EndSection I then suspend to disk, attach the cable and resume. No need for a full reboot. Cheers, -- Guido signature.asc Description: Digital signature
Re: xorg nv options
On Wed, Jul 19, 2006 at 10:11:21PM +0200, Filippo Giunchedi wrote: I can't confirm that _every_ version between .13 and .17 didn't work, however for .1{5,6} I'm sure, but still it works now so I'm happy :) I just switched back from nvidiafb to rivafb and fixed it up to work with 2.6.18-rc2 (patch attached), now suspend and resume works fine again. Will have check what breaks nvidiafb on the second resume somewhen. Cheers, -- Guido diff --git a/drivers/video/aty/radeon_base.c b/drivers/video/aty/radeon_base.c diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c index 9f2066f..eae291e 100644 --- a/drivers/video/nvidia/nvidia.c +++ b/drivers/video/nvidia/nvidia.c @@ -1303,20 +1303,19 @@ #endif /* CONFIG_MTRR */ nvidia_save_vga(par, par-SavedReg); + pci_set_drvdata(pd, info); + nvidia_bl_init(par); if (register_framebuffer(info) 0) { printk(KERN_ERR PFX error registering nVidia framebuffer\n); goto err_out_iounmap_fb; } - pci_set_drvdata(pd, info); printk(KERN_INFO PFX PCI nVidia %s framebuffer (%dMB @ 0x%lX)\n, info-fix.id, par-FbMapSize / (1024 * 1024), info-fix.smem_start); - nvidia_bl_init(par); - NVTRACE_LEAVE(); return 0; diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c index 33dddba..43aa8be 100644 --- a/drivers/video/riva/fbdev.c +++ b/drivers/video/riva/fbdev.c @@ -2132,6 +2132,9 @@ #endif /* CONFIG_MTRR */ fb_destroy_modedb(info-monspecs.modedb); info-monspecs.modedb = NULL; + + pci_set_drvdata(pd, info); + riva_bl_init(info-par); ret = register_framebuffer(info); if (ret 0) { printk(KERN_ERR PFX @@ -2139,8 +2142,6 @@ #endif /* CONFIG_MTRR */ goto err_iounmap_screen_base; } - pci_set_drvdata(pd, info); - printk(KERN_INFO PFX PCI nVidia %s framebuffer ver %s (%dMB @ 0x%lX)\n, info-fix.id, @@ -2148,8 +2149,6 @@ #endif /* CONFIG_MTRR */ info-fix.smem_len / (1024 * 1024), info-fix.smem_start); - riva_bl_init(info-par); - NVTRACE_LEAVE(); return 0;
Re: xorg nv options
On Sun, Jul 16, 2006 at 06:03:10PM +0200, Filippo Giunchedi wrote: On Sat, Jul 15, 2006 at 06:19:33PM -0400, Benjamin Herrenschmidt wrote: I haven't been able to use an external monitor/beamer with this laptop and xorg. Is it possible now (I have not tried it for a while). The nv driver doesn't support dual head. I think it's possible however to coerce it into using the external output instead of the internal flat panel but I don't know the details. Others on the list might. I can successfully use the external vga out, however the laptop LCD is not usable meanwhile. Note that you have to boot with the external vga adaptor plugged in. Actually suspending to disk is enough. This (at least in my case) is a lot faster then the complete reboot. Cheers, -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: xorg nv options
On Wed, Jul 19, 2006 at 09:07:02AM -0400, Guy Yasko wrote: On 19 Jul 2006, Guido Guenther said: On Sun, Jul 16, 2006 at 06:03:10PM +0200, Filippo Giunchedi wrote: On Sat, Jul 15, 2006 at 06:19:33PM -0400, Benjamin Herrenschmidt wrote: I can successfully use the external vga out, however the laptop LCD is not usable meanwhile. Note that you have to boot with the external vga adaptor plugged in. Actually suspending to disk is enough. This (at least in my case) is a lot faster then the complete reboot. That makes sense. However, I can only suspend-to-disk and wake up once. My G4 12 (it's the 2005.2 version, i.e., PB 6,8) will hang on the second wake up call. I have seen the same with 2.6.17 with my PB 6,1. The machine hangs on the second resume - didn't have any time to look into this yet, so I'm still running .16. Cheers, -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: xorg nv options
On Wed, Jul 19, 2006 at 10:21:13AM +0200, Filippo Giunchedi wrote: Hi Guido! On Wed, Jul 19, 2006 at 09:20:24AM +0200, Guido Guenther wrote: I can successfully use the external vga out, however the laptop LCD is not usable meanwhile. Note that you have to boot with the external vga adaptor plugged in. Actually suspending to disk is enough. This (at least in my case) is a lot faster then the complete reboot. good to know! I didn't tried because I had some weird problems with swsusp, the last with swsusp working for me was 2.6.13 and now again 2.6.17! joy! What powerbook is this exactly? -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: bcm43xx 2.6.17-rc5 problems
On Sat, May 27, 2006 at 02:20:59PM +0200, Bernhard Reiter wrote: Now that 2.6.17-rc5 is out I gave it a test run. Unfortunately the wireless driver bcm43xx does not work, it not been working with -rc3 either. Using the patches (softmac and all this) against 2.6.15.4 I got it to work a few times, and now I hoped that the integration into the kernel would have made stuff better, but it didn't. Any hints appreciated. What worked for me is associating with the access point manually, i.e., ifconfig the interface, do dhcp (you won't get an address) then: - iwlist scan - iwconfig wireless-interface ap mac-of-ap - rerun dhcp It seems there's something broken with the ap selection code, but I didn't get around to figure out what exactly. Cheers, -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: ppc mplayer debian packages archive key
On Tue, Mar 07, 2006 at 09:27:06AM +0100, Bin Zhang wrote: There is a patch wmv3-support-via-vc1.diff.gz in http://blog.linux.org.tw/~jserv/archives/001545.html for adding wmv3 support. I have just tested it (rebuild packages from mplayer-g4 source) and it works. But I don't understand well the license in this patch. Can somebody tell me if I can use it ? Any reason why this shouldn't be applied to mplayer upstream? Could you ask on mplayer-dev? Cheers, -- Guido signature.asc Description: Digital signature
Re: ppc mplayer debian packages archive key
On Wed, Mar 08, 2006 at 09:58:48AM +0100, Bin Zhang wrote: On 3/8/06, Guido Guenther [EMAIL PROTECTED] wrote: On Tue, Mar 07, 2006 at 09:27:06AM +0100, Bin Zhang wrote: There is a patch wmv3-support-via-vc1.diff.gz in http://blog.linux.org.tw/~jserv/archives/001545.html for adding wmv3 support. I have just tested it (rebuild packages from mplayer-g4 source) and it works. But I don't understand well the license in this patch. Can somebody tell me if I can use it ? Any reason why this shouldn't be applied to mplayer upstream? Could you ask on mplayer-dev? On his web site, the author said the patch may have problem for upstream (and he will discuss this later). [quote] patch 要進官方或許可能有問題 (稍後再談) [/quote] My English is not good for well understanding the license of libvc1 (used in the patch). I would like to be sure that it is legal for using this patch. I doubt that it can go into mplayer CVS with the current license but that's probably something the mplayer developers should discuss with the author of the patch, could you contact them? Cheers, -- Guido signature.asc Description: Digital signature
Re: mozilla-mplayer does not show video
On Sun, Mar 05, 2006 at 12:47:27PM -0500, Tamas K Papp wrote: [..snip..] Another issue: I have PowerBook5,4 which is supposed to have altivec. However, mplayer-g4 has problems (strange blocks in videos, etc) while mplayer-powerpc works fine. I am just curious why this happens... Which mplayer packages are you using? Which versions? Does lavdopts:idct=2 help? -- Guido signature.asc Description: Digital signature
ppc mplayer debian packages archive key
Hi, I've just updated the gpg key used to sign the mplayer ppc packages's release file at: deb http://honk.sigxcpu.org/linux-ppc/debian/ mplayer/ The new key (key-id 0x3F041553506A0744) is available from: https://honk.sigxcpu.org/misc/sigxcpu-archive-key.gpg Please update your keyring via apt-key. Cheers, -- Guido signature.asc Description: Digital signature
Re: MythTV PPC
On Wed, Dec 07, 2005 at 06:56:55AM +0100, Inge Eidem wrote: Hi everyone I have talk to alioth, and they have approved another project. So here it is! Ill talk to the project admins about including a PPC build. http://alioth.debian.org/projects/pkg-mythtv Sorry for being late on this but Christian Marillat already packaged this and I took about two lines of changes in debian/rules to get it to compile for ppc and sparc [1]. You can dowload it from the usual location [2]. Cheers, -- Guido [1] his packages would provide a very good base to get this into the main archive [2] deb http://honk.sigxcpu.org/linux-ppc/debian/ mplayer/ signature.asc Description: Digital signature
Re: iMac/nvidia sleep
On Fri, Feb 10, 2006 at 12:06:03PM -0800, Michael M. wrote: Guido Guenther wrote: On Fri, Feb 10, 2006 at 01:02:40PM +0100, Michael Schmitz wrote: The rivafb kernel support varies somewhat. Depending on the precise model, stuff like backlight control may work, or may break. Guido Guenther used to keep rivafb patches on the net, so you may want to google around. Sleep support with rivafb I doubt somewhat. Suspend to disk might work though. Rivafb is working quiet on NV17, NV3X although it's been mostly replaced by nvidiafb these days. Brightness Control should work with both drivers (only used rivafb so far though) and suspend to disks works out of the box with recent 2.6. kernels - suspend is a no go, as you said. What does lspci tell about the card, I can't seem to find a MX 400 in the kernel's current pci_ids. lspci - :00:10:00 vga compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (revb2) 00:10:00? I thought it was PCI:00:16:00 when I reconfigured either xorg or XF86. This is basically the bus Id, you can get the pci id of the device with lspci -n. Is 2.6.8 a recent enough kernel? The last rivafb fixes went into 2.6.11. Cheers, -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: iMac/nvidia sleep
On Fri, Feb 10, 2006 at 01:02:40PM +0100, Michael Schmitz wrote: The rivafb kernel support varies somewhat. Depending on the precise model, stuff like backlight control may work, or may break. Guido Guenther used to keep rivafb patches on the net, so you may want to google around. Sleep support with rivafb I doubt somewhat. Suspend to disk might work though. Rivafb is working quiet on NV17, NV3X although it's been mostly replaced by nvidiafb these days. Brightness Control should work with both drivers (only used rivafb so far though) and suspend to disks works out of the box with recent 2.6. kernels - suspend is a no go, as you said. What does lspci tell about the card, I can't seem to find a MX 400 in the kernel's current pci_ids. Cheers, -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to disable 'rivafb_pan_display START' at boot ?
On Sun, Jan 08, 2006 at 09:42:02AM +1300, Adam Felix Bogacki wrote: [xxx.xx] rivafb_pan_display START [xxx.xx] rivafb_pan_display START [xxx.xx] rivafb_pan_display END [xxx.xx] rivafb_pan_display END [xxx.xx] rivafb_pan_display START [xxx.xx] rivafb_pan_display START [xxx.xx] rivafb_pan_display END [xxx.xx] rivafb_pan_display END [xxx.xx] rivafb_pan_display START [xxx.xx] rivafb_pan_display START [xxx.xx] rivafb_pan_display END [xxx.xx] rivafb_pan_display END [xxx.xx] rivafb_pan_display START [xxx.xx] rivafb_pan_display START [xxx.xx] rivafb_pan_display END [xxx.xx] rivafb_pan_display END Disable CONFIG_RIVAFB_DEBUG in you kernel configuration and rebuild. -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: powerbook 12 freezes on MMU:EXIT, setup
On Mon, Jan 02, 2006 at 04:26:18PM +0100, Triverio M. wrote: Hello everybody, I'm Marco, this is the first time I write on this mailing list. Hope not to seem too stupid, I'm just a new user to Debian. I've been given the last Debian Etch Testing for PowerPC but when my PowerBook 12 (G4 1.5Ghz) boots the first cd it just freezes on: MMU: mapin MMU: setio MMU: exit setup_ Kernel should be 2.6.12. Do you have nvidiafb enabled? It's broken in 2.6.12, try rivafb. I think BenH fixed parts of nvidiafb recently, I haven't tried it though. Cheers, -- Guido
Re: powerbook 12 freezes on MMU:EXIT, setup
On Mon, Jan 02, 2006 at 09:51:18PM +0100, Triverio M. wrote: Thank you everybody. Unfortunately it is not fixed in 2.6.14: do you know wheter 2.6.15 is included in Debian Testing (etch) at the present time? What will I lose disabling nvidiafb? Brightness control, colorful fullscreen mol, You can try rivafb instead (video=rivafb). Do I have to recompile the kernel to disable it? (hope this does not sound too stupid) try passing video=offb on the kernel command line - this will use the openfirmware framebuffer which should work in any case. Cheers, -- Guido signature.asc Description: Digital signature
Re: Looking for ALSA specialist willing to support pbbuttonsd
On Fri, Dec 02, 2005 at 12:25:19PM +0100, Kasper Jordaens wrote: This seems a very good solution for the current problem. One thing I would add would be software suspend support. Alsa seems to have trouble resuming if the state is different from when it was suspended-to-disk, headphone detection seems to be wrong, volumes mixed up etc. Could you check if: http://honk.sigxcpu.org/linux-ppc/kernel/fix-dead-headphone-after-suspend-2.6.14.diff fixes the headphone detection after suspend to ram? This at least fixes it for suspend to disk, which is the same code patch. Cheers, -- Guido signature.asc Description: Digital signature
Re: MythTV PPC
On Mon, Nov 28, 2005 at 09:23:41AM +1100, Dean Hamstead wrote: the main attraction might be that intel(amd etc) hardware is generally cheaper. the ffmpeg codec also seems to perform better on x86. Ffmpeg does quiet well with altivec optimations, without that it's rather slow, but same is true for i386 without SSE or similar. Cheers, -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[patch] PowerBook 6,1: headphone not detected after suspend
Hi, ever since suspend to disk works I had the problem that headphone (un)plugging doesn't get detected properly anymore after the first resume. Reloading the module worked around this ever since, however the real cause of the problem was that after a resume the driver only got interrupts on unplug not on plug. Reactivating the headphone status interrupt in tumbler_resume fixes this. This shouldn't cause any trouble with software suspend, but it would be nice if somebody could confirm this: --- orig/linux-2.6.14/sound/ppc/tumbler.c 2005-10-28 02:02:08.0 +0200 +++ linux-2.6.14/sound/ppc/tumbler.c2005-11-14 12:01:13.0 +0100 @@ -1194,8 +1195,14 @@ tumbler_set_master_volume(mix); if (chip-update_automute) chip-update_automute(chip, 0); - if (mix-headphone_irq = 0) + if (mix-headphone_irq = 0) { + unsigned char val; + enable_irq(mix-headphone_irq); + /* activate headphone status interrupts */ + val = do_gpio_read(mix-hp_detect); + do_gpio_write(mix-hp_detect, val | 0x80); + } if (mix-lineout_irq = 0) enable_irq(mix-lineout_irq); } Signed-off-by: Guido Guenther [EMAIL PROTECTED] Cheers, -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: pbbuttonsd vs. mouseemu
On Wed, Nov 02, 2005 at 09:58:16AM +0100, Michael Schmitz wrote: I thought this was strictly event device availability - we need to make both mouseemu and pbbuttonsd report details about the device scan. I have mouseemu starting before pbbuttonsd with no ill effects. I recall I added event devices up to event11 to work around this. Waiting for Guido to report back on this before I try any further hacks I've attached the contents of /proc/input/devices. Adding more devices doesn't help (as only 6 are being used). I'm using udev on 2.6.14. pbbuttonsd is 0.7.2-1 and mouseemu 0.15-2. Are you using autorescan? These same versions work for me just fine (no udev; see Matthias' remark about udev being slow to set up the devices). Need to try 2.6.14 yet, though. Autorescan fixes the problem. Thanks, -- Guido signature.asc Description: Digital signature
Re: 2.6.14-rc5 uploaded to experimental available at http://people.debian.org/~luther/2.6.14-rc5
On Mon, Oct 31, 2005 at 01:52:04PM +0100, Sven Luther wrote: On Mon, Oct 31, 2005 at 01:39:21PM +0100, Leonardo Lanzi wrote: Surely I'm doing some stupid error, but on a PBG4 12 Al, it stops as follow (I installed the image from a working 2.6.13-2 compiled from vanilla): Known problem, nvidiafb seems broken, benh has patches, and said he would send them to me, in the meantime use offb (video=ofonly ?). rivafb should work too. Cheers, -- Guido signature.asc Description: Digital signature
Re: mplayer debs no GPG available
On Mon, Oct 31, 2005 at 06:42:54PM +0100, Peter Plessas wrote: this might have been discussed before, but as i update the apt cache, i get an error/warning: W: GPG error honk.physik.uni-konstanz.de /mplayer Release The following signatures could not be verified because the public key is not available: NO_PUBKEY BDCE3370C88CEDF6 Key is here: http://honk.sigxcpu.org/misc/sigxcpu-archive-key.gpg Cheers, -- Guido signature.asc Description: Digital signature
Re: pbbuttonsd vs. mouseemu
On Mon, Oct 31, 2005 at 11:18:08AM +0100, Michael Schmitz wrote: during bootup mouseemu starts before pbbuttonsd. After that pbbuttonsd doesn't care about _any_ keyboard events. Brightness/Volume control, etc. doesn't work. Restarting pbbuttonsd fixes this. Restarting mouseemu breaks it again. Anybody else seen this? This is fairly old (USB 1.1) 12 PB. This is probably Bug #304734. Sorry, but as my PowerBook got stolen, I'm currently unable to work on this. I just ordered a new one and will hopefully find some time to work on mouseemu when it arrives. In the meantime feel free to fix and NMU. The problem is to find a solution, that does not break mouseemu (as does not reintroduce to passthrough of the mouse button hotkeys). I thought this was strictly event device availability - we need to make both mouseemu and pbbuttonsd report details about the device scan. I have mouseemu starting before pbbuttonsd with no ill effects. I recall I added event devices up to event11 to work around this. Waiting for Guido to report back on this before I try any further hacks I've attached the contents of /proc/input/devices. Adding more devices doesn't help (as only 6 are being used). I'm using udev on 2.6.14. pbbuttonsd is 0.7.2-1 and mouseemu 0.15-2. Cheers, -- Guido I: Bus=0017 Vendor=0001 Product=0001 Version=0100 N: Name=Macintosh mouse button emulation P: Phys= H: Handlers=mouse0 event0 B: EV=7 B: KEY=7 0 0 0 0 0 0 0 0 B: REL=3 I: Bus=0017 Vendor=0001 Product=22c4 Version=0200 N: Name=ADB keyboard P: Phys=adb2:2.c4/input H: Handlers=kbd event1 B: EV=120003 B: KEY=feb0ffdf 3cf fffe B: LED=7 I: Bus=0017 Vendor=0001 Product=771f Version=0100 N: Name=ADB Powerbook buttons P: Phys=adb7:7.1f/input H: Handlers=kbd event2 B: EV=13 B: KEY=7b 0 2 0 e 0 0 0 I: Bus=0017 Vendor=0001 Product=3301 Version=0100 N: Name=ADB mouse P: Phys=adb3:3.01/input H: Handlers=mouse1 event3 B: EV=7 B: KEY=7 0 0 0 0 0 0 0 0 B: REL=3 I: Bus= Vendor=001f Product=001f Version= N: Name=Mouseemu virtual keyboard P: Phys= H: Handlers=kbd event5 B: EV=13 B: KEY=1 I: Bus= Vendor=001f Product=001e Version= N: Name=Mouseemu virtual mouse P: Phys= H: Handlers=mouse2 event6 B: EV=7 B: KEY=7 0 0 0 0 0 0 0 0 B: REL=103 I: Bus=0017 Vendor=001f Product=0001 Version=0100 N: Name=PowerMac Beep P: Phys=powermac/beep H: Handlers=kbd event4 B: EV=40001 B: SND=6
pbbuttonsd vs. mouseemu
Hi, during bootup mouseemu starts before pbbuttonsd. After that pbbuttonsd doesn't care about _any_ keyboard events. Brightness/Volume control, etc. doesn't work. Restarting pbbuttonsd fixes this. Restarting mouseemu breaks it again. Anybody else seen this? This is fairly old (USB 1.1) 12 PB. Cheers, -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: apt-get/aptitude: public key is not available
On Sat, Sep 24, 2005 at 12:41:33PM +0200, Wolfram Quester wrote: Guido stores the archive key for his repository at http://www.sigxcpu.org/misc/sigxcpu-archive-key-2005-2.asc www.sigxcpu.org is an alias for honk.physik.uni-konstanz.de. To incorporate this key you can do a wget http://www.sigxcpu.org/misc/sigxcpu-archive-key-2005-2.asc sudo apt-key add sigxcpu-archive-key-2005-2.asc Thanks for the update Wolfi! I moved things slightly to make everything consistent. The URL is: http://honk.sigxcpu.org/linux-ppc/debian/mplayer/ which gives: deb http://honk.sigxcpu.org/linux-ppc/debian/ mplayer/ deb-src http://honk.sigxcpu.org/linux-ppc/debian/ mplayer/ and the key is here: http://honk.sigxcpu.org/misc/sigxcpu-archive-key.gpg The old URLs should still work as expected, although apt-get might complain about the signature. Cheers, -- Guido signature.asc Description: Digital signature
Re: /usr/lib/libavcodec-cvs.so relocation error
On Fri, May 27, 2005 at 10:10:47AM +0200, Stefano Zacchiroli wrote: Hi all, I used to get mplayer-g4 from the following apt repository: deb http://honk.physik.uni-konstanz.de/~agx/linux-ppc/debian/ mplayer/ Since some months I get the following error trying to run mplayer: $ mplayer mplayer: error while loading shared libraries: /usr/lib/libavcodec-cvs.so: R_PPC_REL24 relocation at 0x0fcc900c for symbol `memset' out of range Did you use prelink? Anyone experiencing the same behaviour has solved it? Try to upgrade to the latest version and unprelink your system. Cheers, -- Guido I tried to get the sources from the very same repository but there seems to be none for libavcodec-cvs. I don't know how to get in touch with the repository maintainer either. TIA, Cheers. -- Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy [EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/ If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. -!- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Powerbook 12 Debian Sarge Sleep
On Wed, May 18, 2005 at 12:54:26AM +0200, Federico 'Pain' Pistono wrote: Hi all, I successfully installed Debian GNU/Linux sarge in my powerboook 12 aluminium, using the netinstaller. I do have a doubt, though. Google told me that there is no way still to make the 3dacceleration to work (grrr bad nvidia!), as well as the airport extreme; but I am still doubtful about the sleep function. I found this: http://www.formorer.de/view.php/page/Suspend%20to%20RAM Did anybody try it? Do you think that I sould just recompilre the patched kernel and it'll work? With http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/2.6.11.6-agx0.diff and kernel 2.6.11.X you'll be able to suspend to disk. No suspend to ram due to the nVidia Chip. Cheers, -- Guido signature.asc Description: Digital signature
Re: Bug#303551: Help with inkscape bug #303551
On Thu, May 12, 2005 at 02:24:40PM +0200, Wolfram Quester wrote: Hi Lee, hi Michel, On Thu, May 12, 2005 at 10:32:06AM +0100, Lee Braiden wrote: On Thursday 12 May 2005 04:30, Michel Dänzer wrote: On Wed, 2005-05-11 at 21:16 +0200, Wolfram Quester wrote: In bug #303551 it was reported that inkscape segfaults on startup. strace output and a core file are attached to the bugreport. ltrace outputs nothing and never finishes. gdb however gives or has an idea how to debug this? I recently encountered similarly mysterious crashes in some applications. None of my debugging attempts seemed to make much sense, so I ended up going through all the dependencies and reinstalling them one at a time. Lo and behold, the crashes vanished after reinstalling one of the library packages. So apparently the library had somehow got corrupted on the filesystem. No idea if this is a similar issue, but it's definitely something worth trying I think. Yes, it seems to have been similar. Made a little script that reinstalled each dependency, then tried to launch inkscape. After a while of running in the background, inkscape popped up, and the output was: Setting up libgtkmm-2.4-1 (2.4.11-1) ... libgtkmm-2.4-1 fixed it :) I'm still not sure what the problem was, but I guess it's been fixed now, whatever it was :) It's nice to know it works for you now. I'll close the bug then and I hope you have fun with inkscape ;-) Since several people are seeing this there seems to be still a bug somewhere, maybe in unprelinking? Now that we now the library that had the problem, it would be nice to see what a prelink/unprelink cycle of that library shows. Cheers, -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: status of software suspend on PPC
On Sat, May 07, 2005 at 12:13:12PM +0200, Marco Bertorello wrote: Hi all, I'm tring to patch my kernel (2.6.11-8) with swsusp2 [1] pacth on an Ibook G4 1.1 I've encoutered some problems and I googled this [2] page. I edited the arch/ppc/Kconfig file and commented the first source kernel/power/Kconfig line, but make-kpkg kernel-image doesn' t work. Someone use this patch succesfully? Try: http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/2.6.11.6-agx0.diff It's swsusp (originally written by BenH) not swsusp2 but works very well since about 2.6.5. Someone merged parts of this into 2.6.12-rcX, but it's completely borked there atm. Cheers, -- Guido [1] http://www.suspend2.net/ [2]http://lists.suspend2.net/lurker/message/20050413.213154.78c65335.en.html P.S. Sorry for my orrible english -- Marco Bertorello System Administrator Linux Registered User #319921 signature.asc Description: Digital signature
Re: smartmontools on external hdd
On Mon, Apr 11, 2005 at 01:17:23PM +0200, Björn Schöpe wrote: unable to fetch IEC (SMART) mode page [unsupported field in scsi command] A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. Did you try -T permissive? -- Guido signature.asc Description: Digital signature
Re: Sound drivers for newer machines: need help
On Sat, Apr 09, 2005 at 10:31:14AM +1000, Benjamin Herrenschmidt wrote: Hi ! If you have a newer machine, that is a machine released on or after 2002, can you please send me the output of: echo `cat /proc/device-tree/model` PowerBook6,1 and for i in `find /proc/device-tree -name layout-id -print`; do echo $i hexdump -n4 $i; done nothing. Cheers, -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: /sys/devices/temperatures and suspend to disk
On Mon, Mar 07, 2005 at 07:35:06PM +0100, Matthias Schulz wrote: Hi, when i am booting the 2.6.11 kernel, i am missing the /sys/devices/temperature entry. Does anybody know, whether the feature is missing in 2.6.11 or have i simply forgotten to enable the feature in the kernel-config? Which option is it? 2nd problem: I tried to enable suspend to disk using the patch http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/2.6.11-rc4-agx1.diff. When i remove all modules and do /etc/init.d/hotplug stop echo disk /sys/power/state Please try: echo -n disk /sys/power/state Cheers, -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Problems Playing Videos (audio track is choppy) (PB5,4)
On Wed, Mar 02, 2005 at 11:02:08PM +0100, Moritz Armingeon wrote: On 20:58 Wed 02 Mar , Matthew T. Atkinson wrote: I have always had similar problems playing video, with all video players. The audio is choppy and video goes out of sync with it after a pause/resume. Also, it seems to take up a lot of CPU time to simply play vidoes, which I am surprised about. In my .mplayer/config: vo=sdl #ao=oss lavdopts:idct=2 ^^^ not needed since we build ffmpeg with gcc-3.4 now. -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Problems Playing Videos (audio track is choppy) (PB5,4)
On Wed, Mar 02, 2005 at 08:58:43PM +, Matthew T. Atkinson wrote: [EMAIL PROTECTED]:~$ mplayer mplayer: error while loading shared libraries: /usr/lib/libavcodec-cvs.so: R_PPC_REL24 relocation at 0x0fe9d7fc for symbol `fprintf' out of range [EMAIL PROTECTED]:~$ Unprelink and turn prelink off. Cheers, -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Problems Playing Videos (audio track is choppy) (PB5,4)
On Wed, Mar 02, 2005 at 08:58:43PM +, Matthew T. Atkinson wrote: [EMAIL PROTECTED]:~$ mplayer mplayer: error while loading shared libraries: /usr/lib/libavcodec-cvs.so: R_PPC_REL24 relocation at 0x0fe9d7fc for symbol `fprintf' out of range [EMAIL PROTECTED]:~$ Could you try the latest libavcodec/mplayer, even with prelink enabled? We pass -fPIC explicitly now which should help. -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Powerbook 12 and vga-out
On Thu, Mar 03, 2005 at 01:07:35PM +, Wee-Jin Goh wrote: On Thu, 2005-03-03 at 12:53 +0100, Guido Guenther wrote: On Thu, Mar 03, 2005 at 10:55:33AM +, Wee-Jin Goh wrote: Is there anyway to get the nv driver to work with the vga-out on my Powerbook 12 with a fx5200? I've tried playing around with the CrtcNumber option but it doesn't seem to do anything and instead, I get a blank screen on both monitor and LCD. Did you try: http://honk.physik.uni-konstanz.de/~agx/linux-ppc/xfree86/external-monitor-on-12%22-pbook.txt Cheers, -- Guido Thanks, that sort of works. I get a display the CRT, but now my LCD goes completely bonkers and displays some weird output. There's little you can do about that. -- Guido signature.asc Description: Digital signature
Re: backlight control and debian kernel 2.6.10
On Tue, Mar 01, 2005 at 05:51:15PM +0100, Sven Luther wrote: On Tue, Mar 01, 2005 at 05:56:44PM +0100, Guido Guenther wrote: On Tue, Mar 01, 2005 at 05:33:49PM +0100, Djoume SALVETTI wrote: Le mardi 03/01/05 Sven Luther [EMAIL PROTECTED] a écrit : I suppose this means i need to rebuild 2.6.8-11 with rivafb builtin ? I dont think everything is included in 2.6.8 for backlight control, Guido patch for 2.6.10 doesn't apply cleanly on it and I don't have the skill to port it. Well, backlight support is in rivafb since quiet some time but only 2.6.10 has everything to get rivafb to work at all on newer powerbooks (NV30 based). The backport would basically be to use the drivers/video/rivafb/ directory from 2.6.10, everything else make little sense. This in fact shouldn't be very painfull... Cheers, I would be happy to apply that patch if you do and test it for me. I'd be happy to do so, but I don't have any NV30 hardware and am very short on time at the moment, sorry. Cheers, -- Guido signature.asc Description: Digital signature
Re: backlight control and debian kernel 2.6.10
On Tue, Mar 01, 2005 at 11:22:55AM +0100, Djoume SALVETTI wrote: Le mardi 03/01/05 Guido Guenther [EMAIL PROTECTED] a écrit : Hi Djoume, On Tue, Mar 01, 2005 at 09:28:50AM +0100, Djoume SALVETTI wrote: I've notice that despite kernel image 2.6.10 include and activate (CONFIG_PMAC_BACKLIGHT=y) Guido Guenther backlight control patch, I'm not able to control it while using this kernel (I've append=video=rivafb:[EMAIL PROTECTED] in my yaboot.conf). Could you use 'strace fblevel value' to see what error code the kernel actually returns? sure : gotan:/home/djoume# fblevel 10 ioctl PMU_IOC_SET_BACKLIGHT: No such device O.k. you're using offb instead of rivafb then. fbset -i will tell you for sure. I assume passing video=rivafb doesn't help, since rivafb can't take over from offb, right? Compiling in both definitely works. Could you check how radeonfb is being handled in the debian kernels? Cheers, -- Guido signature.asc Description: Digital signature
Re: anyone having problems with latest mplayer/libavcodec-upate?
On Fri, Jan 07, 2005 at 12:11:22PM +0100, Sebastian Henschel wrote: yesterday, some mplayer-related packages had been updated and today i tried to watch a movie: Runs fine here of course. Can you dump the video somewhere for me to have a look? # mplayer video.avi mplayer: error while loading shared libraries: /usr/lib/libavcodec-cvs.so: R_PPC_REL24 relocation at 0x0f31f354 for symbol `faacEncOpen' out of range Are you using preling? If so, please don't, I hat several issues with it on ppc. There might also be a problem with a library not using -fPIC correctly. Cheers, -- Guido signature.asc Description: Digital signature
Re: anyone having problems with latest mplayer/libavcodec-upate?
On Fri, Jan 07, 2005 at 05:01:40PM +0100, Sebastian Henschel wrote: re... * Guido Guenther [EMAIL PROTECTED] [2005-01-07 13:59 +0100]: On Fri, Jan 07, 2005 at 12:11:22PM +0100, Sebastian Henschel wrote: yesterday, some mplayer-related packages had been updated and today i tried to watch a movie: Runs fine here of course. Can you dump the video somewhere for me to have a look? for instance: http://kodeaffe.de/rahim-tux-tiny.avi (5 MB) Plays fine here. yes, i am using prelink and never had a problem before. totem/xine play that video just fine. I had lots of audio synchronisation issues with xine and the last time I tried it, but maybe that's solved now. Furthermore mplayer played many more formats than any other player when I last checked but it seems gstreamer0.8-misc has now almost anything ffmpeg/libavcodec has. Is there altivec detection available? how many and which libraries/applications would i have to re-install without prelinking? sounds like quite a hassle to me to find out on which mplayer and its direct libs depend indirectly. well, perhaps i will do that or perhaps use totem only. You can automagically unprelink via /etc/default/prelink. Have a look at the comments. Cheers, -- Guido signature.asc Description: Digital signature
Re: New xfce4 packages
On Thu, Dec 30, 2004 at 12:52:34PM +0100, Elimar Riesebieter wrote: On Sun, 26 Dec 2004 the mental interface of Guido Guenther told: On Sat, Dec 25, 2004 at 08:18:50PM +0100, Elimar Riesebieter wrote: On Sat, 25 Dec 2004 the mental interface of Guido Guenther told: On Fri, Dec 24, 2004 at 05:54:56PM +0100, Elimar Riesebieter wrote: Hi all, xfce4.2-RC3 and rox-filer packages for ppc now available at http://www.lxtec.de/debarchiv. Cool. Are there any plans to upload these to debian.org anytime soon, maybe to experimental? We have to ask the xfce4 maintainer Martin Loschwitz to do that, Xfce4 is being maintained by several people, not only Martin. otherwise to fork the maintanance of xfce4 ;-) Well, this is exactly what my quistion is about. Why don't you work with the debian package maintainers of xfce4. Having just another package repository for packages that should (and can) be in the main archive is just a bad idea. http://www.os-cillation.de/cgi-bin/yabb/YaBB.cgi?board=deb-news;action=display;num=1104334203 Did anybody try to ping Daniel or Sam yet? Its unlikely the maintainers will just pickup the packages as they are, but I'm almost sure they're glad to accept patches against the current packages. -- Guido
Re: New xfce4 packages
On Sat, Dec 25, 2004 at 08:18:50PM +0100, Elimar Riesebieter wrote: On Sat, 25 Dec 2004 the mental interface of Guido Guenther told: On Fri, Dec 24, 2004 at 05:54:56PM +0100, Elimar Riesebieter wrote: Hi all, xfce4.2-RC3 and rox-filer packages for ppc now available at http://www.lxtec.de/debarchiv. Cool. Are there any plans to upload these to debian.org anytime soon, maybe to experimental? We have to ask the xfce4 maintainer Martin Loschwitz to do that, Xfce4 is being maintained by several people, not only Martin. otherwise to fork the maintanance of xfce4 ;-) Well, this is exactly what my quistion is about. Why don't you work with the debian package maintainers of xfce4. Having just another package repository for packages that should (and can) be in the main archive is just a bad idea. Cheers, -- Guido
Re: New xfce4 packages
On Fri, Dec 24, 2004 at 05:54:56PM +0100, Elimar Riesebieter wrote: Hi all, xfce4.2-RC3 and rox-filer packages for ppc now available at http://www.lxtec.de/debarchiv. Cool. Are there any plans to upload these to debian.org anytime soon, maybe to experimental? Cheers, -- Guido
Re: build transcode for powerpc
On Tue, Dec 07, 2004 at 04:41:13PM -0600, Michael Heldebrant wrote: On Tue, 2004-11-30 at 13:41 +0100, Guido Guenther wrote: On Thu, Oct 14, 2004 at 05:09:19PM +0200, Pander wrote: Hi all, Building transcode for powerpc from source doesn't work. Can anyone tell me how to build transcode with debian on a powerpc? I have uploaded transcode and avifile packages to: http://honk.physik.uni-konstanz.de/~agx/linux-ppc/debian/mplayer/ it's pretty much untested so far, but feedback is certainly welcome. Cheers, -- Guido Other than the library dependencies not being listed in the transcode .deb, after installing missing libraries one at a time as they Thinko in the dependencies line. I'll fix that with the next upload. complained, it appears to work just fine doing .vob - 2-pass xvid. A little slow on my G3 ibook but bearable. Nice. Thanks a lot for testing. -- Guido
swsusp for 2.6.10-rc3
Hi, I've put a newer version of the ppc swsusp patches up at: http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/2.6.10-rc3-agx0.diff The patch contains some other small goodies such as a selectable HZ value (default is 1000, 100 saves some battery) and some alsa and cpufreq fixes. Please note that this patch still conflicts with suspend to ram, so you won't be able to use both. Cheers, -- Guido
Re: Go5200 and external VGA status?
On Wed, Dec 01, 2004 at 12:29:07PM +0100, Djoume SALVETTI wrote: First, when I start two X servers on the LCD, the second one is unusable due to a lot of garbage on the screen. I don't know if this is a known bug. Does anybody with an NVidia chip is able to have two X servers running simultaneously? Running multiple X servers is not problem here (X.org 6.8, rivafb 2.6.10-rc2). -- Guido
Re: build transcode for powerpc
On Thu, Oct 14, 2004 at 05:09:19PM +0200, Pander wrote: Hi all, Building transcode for powerpc from source doesn't work. Can anyone tell me how to build transcode with debian on a powerpc? I have uploaded transcode and avifile packages to: http://honk.physik.uni-konstanz.de/~agx/linux-ppc/debian/mplayer/ it's pretty much untested so far, but feedback is certainly welcome. Cheers, -- Guido
Re: Go5200 and external VGA status?
On Tue, Nov 30, 2004 at 06:04:25PM +0100, Djoume SALVETTI wrote: Le dimanche 11/28/04 Guido Guenther [EMAIL PROTECTED] a écrit : System: PowerBook 1.33GHz G4 12 nVIDIA Go5200 64MB From the list archives, I gather VGA out (with the DVI port + adapter) for this system is not supported under Linux. This is currently the only roadblock for me running Debian on this machine for regular use. After some initial enthusiasm over everything I needed working under Linux, I am currently back to OS X. Plug in the adapter cable on boot (or when resuming from disk), no need to have the screen connected yet. Later after you attached the external display use: Option CrtcNumber0 Option FlatPanel 0 in your X configs device section. Works fine on NV17 and NV32 with X.org 6.8.0 but should also work with recent XFree86. You then have the console's on the pbooks LCD and X on the external screen. Not perfect, but... Very nice! :-) It works with Debian unstable xfree86. Is it only a problem of sync frequencies with the LCD? When X is running on the external monitor the LCD seems to display the same picture but only with a bad frequency. Is there any XF86Config options I can tweak? You mean the internal LCD? Nope, we don't know how to fix that. We'd need to know how the internal and externl connectors are wired together for that. nVidia unfortunately forgot to tell us that ;) -- Guido
Re: Go5200 and external VGA status?
On Tue, Nov 30, 2004 at 07:23:58PM +0100, Djoume SALVETTI wrote: Le mardi 11/30/04 Guido Guenther [EMAIL PROTECTED] a écrit : Is it only a problem of sync frequencies with the LCD? When X is running on the external monitor the LCD seems to display the same picture but only with a bad frequency. Is there any XF86Config options I can tweak? You mean the internal LCD? Nope, we don't know how to fix that. We'd need to know how the internal and externl connectors are wired together for that. nVidia unfortunately forgot to tell us that ;) Yes I mean the internal LCD, is it possible and is there any danger to blindly tweak this in XFree86 source code? Actually there might be a danger leaving it in the state it currently is ;) Honestly dunno, nVidia forgot to tell us that too. I'm working on things that turn of the internal LCD completely when switching to the external screen (though mirror mode would be much nicer), but this might be some time. Cheers, -- Guido
Re: Go5200 and external VGA status?
On Tue, Nov 30, 2004 at 07:43:53PM +0100, Joerg Maier wrote: Is my awful view on the pbook TFT due to the X11 version and does this change after upgrading to x.org? Or did i miss the reconfiguration? i Do you use rivafb in the kernel? -- Guido
Re: Go5200 and external VGA status?
On Sun, Nov 28, 2004 at 01:38:11AM -0600, dircha wrote: System: PowerBook 1.33GHz G4 12 nVIDIA Go5200 64MB From the list archives, I gather VGA out (with the DVI port + adapter) for this system is not supported under Linux. This is currently the only roadblock for me running Debian on this machine for regular use. After some initial enthusiasm over everything I needed working under Linux, I am currently back to OS X. Plug in the adapter cable on boot (or when resuming from disk), no need to have the screen connected yet. Later after you attached the external display use: Option CrtcNumber0 Option FlatPanel 0 in your X configs device section. Works fine on NV17 and NV32 with X.org 6.8.0 but should also work with recent XFree86. You then have the console's on the pbooks LCD and X on the external screen. Not perfect, but... -- Guido
Re: TEST: Sleep patch #4
On Mon, Nov 22, 2004 at 06:36:02PM +, Sean Neakums wrote: Keith Conger [EMAIL PROTECTED] writes: Works great here also (15 1GHz PB). One issue which may be unrelated I have some sound issues. For instance one a sound is played it sounds fine but if a sound is played right after its volume is extremely low. But with headphones this doesn't occur. I have a similar problem post-resume -- sound from the speakers is very quiet (although it seems to be louder at the very beginning) and I had to plug and re-plug the headphones to get sound from them. I tried unloading and reloading snd_powermac, to no avail. Could you check if: http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/alsa-2.6.9-rc2-revert.diff helps? -- Guido
Re: PowerBook G4 config for 2.6.8.1
On Thu, Nov 18, 2004 at 10:05:20AM -0500, Orion Montoya wrote: Except that I'm back to a problem similar to I had when I first got this Powerbook: when I try to shutdown (which I must do often since I can't sleep), once it logs out of Gnome the screen goes dead but the power stays on, and it doesn't shut down. Yesterday from a Gnome session I tried alt-F1 to switch to the console and again the screen went dead: so the real problem is that I can't go back to the console, No, the real problem is that you can't set new video modes due to a big in rivafb. Use 2.6.9 + http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/rivafb-2.6.9-fix-mode-switch-and-nv30.diff or 2.6.10-rc2. Cheers, -- Guido
Re: PowerBook G4 config for 2.6.8.1
On Fri, Nov 19, 2004 at 09:50:54AM +0100, Jaume Sabater wrote: Guido Guenther wrote: No, the real problem is that you can't set new video modes due to a big in rivafb. Use 2.6.9 + http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/rivafb-2.6.9-fix-mode-switch-and-nv30.diff or 2.6.10-rc2. I cannot compile a vanilla 2.6.10-rc2 kernel using make-kpkg clean make-kpkg kernel-image in an up to date Debian Sid. I get this error: You're missing: http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/mediabay-2.6.10-rc2.diff or the swsusp-2.6.10-rc2 patch, whatever you prefer most. Cheers, -- Guido
Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)
On Fri, Nov 19, 2004 at 12:25:32PM +0100, Nivox wrote: Alle 09:20, venerdì 19 novembre 2004, Benjamin Herrenschmidt ha scritto: [CUT] Ok, I already found a bug, occasional lockups on boot and when setting the backlight. I uploaded a new version at: http://gate.crashing.org/~benh/albook-ibookg4-sleep-2.diff I tried the patch. Everything goes fine. The machine suspend resume without problem. I first tried to apply the patch in a kernel with swsusp patch from Guido but it hangs, so I tried with a vanilla 2.6.9. Please don't use the swsusp patch if you want to suspend to ram, there's currently now nice way to distinguish between suspend to disk and suspend to ram, so thinks do break. Cheers, -- Guido
Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)
On Fri, Nov 19, 2004 at 04:26:08PM +0100, Guido Guenther wrote: On Fri, Nov 19, 2004 at 12:25:32PM +0100, Nivox wrote: Alle 09:20, venerdì 19 novembre 2004, Benjamin Herrenschmidt ha scritto: [CUT] Ok, I already found a bug, occasional lockups on boot and when setting the backlight. I uploaded a new version at: http://gate.crashing.org/~benh/albook-ibookg4-sleep-2.diff I tried the patch. Everything goes fine. The machine suspend resume without problem. I first tried to apply the patch in a kernel with swsusp patch from Guido but it hangs, so I tried with a vanilla 2.6.9. Please don't use the swsusp patch if you want to suspend to ram, there's currently now nice way to distinguish between suspend to disk and s/now/no/g suspend to ram, so thinks do break. s/thinks/things/ sorry, -- Guido
Re: True state of support for 12 iBook G4
On Wed, Nov 10, 2004 at 10:54:10AM +0100, Matthias Kirschner wrote: * Jérôme Marant [EMAIL PROTECTED] [2004-10-31 10:48:54 +0100]: sucks. Does not work on lynx. Flash sucks but I need it. Some people do it as well. Have you tried swf-player? Unfortunately there is still no lynx plugin I think development on swf-player has mostly stopped. Would be great if someonen would pick it up. -- Guido availible ;)
Re: PowerBook 12'' some troubles
On Mon, Nov 08, 2004 at 02:32:57PM +1100, Benjamin Herrenschmidt wrote: On Sun, 2004-11-07 at 10:21 +0100, Davide Bertola wrote: I use cpu scaling and powersave governor trought cpufreqd configured manually to save the maximum power i can. My battery keeps on for about 3 hours.. (osx does nearly 5 hours) [..snip..] Also, more imortantly, I think it has access to some advanced power management features of the video chip that we don't have access to. I have that on my todo list. Shutting down bluetooth might help too, did anybody look into this yet? -- Guido
Re: swsusp and cpufreq
On Tue, Nov 02, 2004 at 09:08:27PM +0100, Djoumé SALVETTI wrote: Le lundi 11/01/04 Djoumé SALVETTI [EMAIL PROTECTED] a écrit : Is there any compatibility problem between your swsusp patch and cpufreq? I have experience some resume failure (most of the resume work, but sometime, they fail without any visible reason) with 2.6.9 patch with swsusp and rivax-fb on my 12 powerbook. I have take a picture of the kernel oops : http://www.taket.org/~djoume/pwbk/100_1674.JPG USB problem. I stop hotplug and remove the USB modules on suspend. The cpufreq problem is another one and can be worked around by another patch which can be found at the same site you got the swsusp patch from. Hi, I have apply pmac-cpufreq patch and stop hotplug before sleep but I still have some resume failure : http://www.taket.org/~djoume/pwbk/100_1675.JPG I have suspend-to-disk the computeur with the following script : #!/bin/sh #rmmod therm_adt746x rmmod ohci1394 rmmod eth1394 rmmod ieee1394 rmmod hci_usb /etc/init.d/hotplug stop echo disk /sys/power/state You still have the ohci_hcd module loaded or compiled in, remove that. -- Guido
Re: I got flash on PPC!
On Mon, Nov 01, 2004 at 12:53:03AM +0100, Frank Murphy wrote: On Sunday 31 October 2004 7:03, Wolfgang Pfeiffer wrote: I'm not sure whether I got you: I've installed Shockwave flash since long, IIRC: apt-get install swf-player ... Are we talking about different things? What did I miss ??? :) The swf-player is LGPLed, but it doesn't support all of Flash. Getting the official player should play all parts of all files. Unfortunately the LGPLed swf player doesn't seem to be actively developed these days. Question is if we could put some effort into reviving the project. Is there anybody around who knows a bit about flash programming? Would be really nice to improve the library a bit... Cheers, -- Guido
Re: True state of support for 12 iBook G4
On Mon, Nov 01, 2004 at 05:30:01PM +0100, Jérôme Marant wrote: Guido Guenther [EMAIL PROTECTED] writes: On Mon, Nov 01, 2004 at 01:21:57PM +0100, Jérôme Marant wrote: Guido Guenther [EMAIL PROTECTED] writes: On Sun, Oct 31, 2004 at 10:48:54AM +0100, Jérôme Marant wrote: And non-free sucks even more. It is like admiting that close source drivers for ATI cards are good enough. Then they dont work on your iBook and people complain. Non-free sucks. But non-free drivers is better than no driver at all. Depends pretty much on your point of view. Yes, but only prior to buying hardware. Nope even afterwards. What is the worth of a binary driver that only works on kernel 2.4 (like the modem driver for the pbooks). This really affects you _after_ buying the hardware. Of course. But what point of view are you talking about? That a non-free driver is better than none at all. It's simply not true in many cases. See the above example. -- Guido
Re: True state of support for 12 iBook G4
On Mon, Nov 01, 2004 at 05:28:56PM +0100, Jérôme Marant wrote: Now, why do some manufacturers refuse to rebuild their non-free drivers for powerpc at all (Nvidia)? I suspect Apple asked them not to do so; it can't be for technical reasons ... It can. You don't know how i386 centric their drivers are, endianess, signedness of char, ... Cheers, -- Guido
Re: powerbook 12 and sleep
On Mon, Nov 01, 2004 at 06:17:49PM +0100, Djoumé SALVETTI wrote: Le lundi 11/01/04 Guido Guenther [EMAIL PROTECTED] a écrit : What is the pbook-12-fake-sleep-2.6.diff for? Can it avoid the Not needed anymore. powerbook to silently shutdown after some time when running on battery with the lid closed? Sure. Have a look at /etc/pbbuttonsd.conf On my pdduttonsd.conf I have : onBattery_policy= powersave onBattery_sleep = no onBattery_coversleep= no onBattery_Tsleep= 30; time in 1/10s onBattery_Tdim = 1000 ; time in 1/10s But even with this, my powerbook shutdown after some time (~5 mins) when the lid is closed. Might be a bug in pbbuttonsd then or a heat problem? -- Guido
Re: True state of support for 12 iBook G4
On Sun, Oct 31, 2004 at 10:48:54AM +0100, Jérôme Marant wrote: And non-free sucks even more. It is like admiting that close source drivers for ATI cards are good enough. Then they dont work on your iBook and people complain. Non-free sucks. But non-free drivers is better than no driver at all. Depends pretty much on your point of view. -- Guido
Re: Brightness control on PowerBook G4 1.33GHz, 12, GeForce FX Go5200
On Fri, Oct 29, 2004 at 11:35:33PM +0200, Djoumé SALVETTI wrote: Le vendredi 10/29/04 Joerg Maier [EMAIL PROTECTED] a écrit : yes, this will do it, in my case the fbdevice is running fine now, Works fine here also. thank you guido for your time and fb skills. Many thanks Guido! Thank also Benjamin Herrenschmidt, it's his 2.4 tree where I picked up most of this patch. Hope this will be included in the mainstream kernel. Most of this is already in current bitkeeper, just some minor pieces are missing. -- Guido
Re: Brightness control on PowerBook G4 1.33GHz, 12, GeForce FX Go5200
On Wed, Oct 27, 2004 at 10:30:20AM +0200, Guido Guenther wrote: On Wed, Oct 27, 2004 at 09:56:36AM +0200, Jens Schmalzing wrote: Hi, Guido Guenther writes: fullscreen mol, although that currently has some problems ;) Namely? It fails to setup the video mode correctly on rivafb, I don't think this is a mol but a rivafb problem though. Sorry if for the confusion. The problem is fixed by this patch against 2.6.9: http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/rivafb-fix-mode-switch-and-nv30.diff It also fixes rivafb for the newer 12 pbooks (NV30). Many thanks to Wolfi and Joerg for testing! Cheers, -- Guido
Re: Brightness control on PowerBook G4 1.33GHz, 12, GeForce FX Go5200
On Fri, Oct 29, 2004 at 08:56:32PM +0200, Djoumé SALVETTI wrote: Le vendredi 10/29/04 Guido Guenther [EMAIL PROTECTED] a écrit : The problem is fixed by this patch against 2.6.9: http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/rivafb-fix-mode-switch-and-nv30.diff It also fixes rivafb for the newer 12 pbooks (NV30). Many thanks to Wolfi and Joerg for testing! I think the correct url is : http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/rivafb-2.6.9-fix-mode-and-nv30.diff I have patch a vanilla 2.6.9 kernel with it but then it fails compiling : drivers/video/riva/fbdev.c:195: error: `PCI_DEVICE_ID_NVIDIA_GEFORCE_FX_GO_5200' undeclared here (not in a function) I supposed it's only a #define that is missing in include/linux/pci_ids.h Oh yes missed that one since it's in a separate patch set (attached). -- Guido --- linux-2.6.9.orig/include/linux/pci_ids.h2004-10-18 23:55:36.0 +0200 +++ linux-2.6.9/include/linux/pci_ids.h 2004-10-24 18:00:16.149569880 +0200 @@ -1138,6 +1138,7 @@ #define PCI_DEVICE_ID_NVIDIA_QUADRO4_900XGL0x0258 #define PCI_DEVICE_ID_NVIDIA_QUADRO4_750XGL0x0259 #define PCI_DEVICE_ID_NVIDIA_QUADRO4_700XGL0x025B +#define PCI_DEVICE_ID_NVIDIA_GEFORCE_FX_GO_52000x0329 #define PCI_VENDOR_ID_IMS 0x10e0 #define PCI_DEVICE_ID_IMS_8849 0x8849
Re: Brightness control on PowerBook G4 1.33GHz, 12, GeForce FX Go5200
On Wed, Oct 27, 2004 at 12:01:50AM +0200, Joerg Maier wrote: next thing i will do is try the of patch for brightness control. if anybody got brightness control on a 12 g4 with my vga controller it would be very nice to see the kernel param as well as the .config file if it is special in any way (and the patches applied to make all that possible as well). how smart is that, brightness control works fine for me now with open firmware framebuffer device. i used the patch send in thread 'best config file for powerbook 12 ...' i hope this will go into mainline kernel in future. I hope it won't. The brightness adjustment is not optimal (BenH said that it might even damage the hardware) and it really belongs into rivafb, where it has already been merged, has the correct brightness values and gives you fullscreen mol, although that currently has some problems ;) Offb is limited to 8bpp, btw. Rivafb works quiet well on NV17 now, it still has problems on NV30 though. Cheers, -- Guido
Re: best kernel config on PowerBook G4 12 1.33GHz
On Tue, Oct 26, 2004 at 07:43:56PM +0200, intrigeri wrote: Guido Guenther [EMAIL PROTECTED] writes: On Thu, Oct 21, 2004 at 02:12:32PM +0200, intrigeri wrote: Djoumé SALVETTI [EMAIL PROTECTED] writes: Le mercredi 10/20/04 Basile STARYNKEVITCH [EMAIL PROTECTED] a écrit : have the LCD back light be turned off when the cover is closed AFAIK there is still troubles with nvidia driver, I used offb with a dirty patch (see attached) to make it working. Here is, attached, the same patch modified so that it applies cleanly on 2.6.9. The brightness adjustance is suboptimal, have a look at the nv driver in 2.6.9. But the riva fb driver does not work for me (PowerBook6,2) : after having loaded the kernel, the display does not initialize correctly and stays stucked to these lines : What is the PCIID of your card? Do you use any rivafb patches? Cheers, -- Guido
Re: [Linux-fbdev-users] (2.6.9-rc4|2.6.9|2.6.10-rc1) black
On Wed, Oct 27, 2004 at 09:09:43AM +0800, Antonino A. Daplas wrote: On Wednesday 27 October 2004 08:40, Petr Vandrovec wrote: On 27 Oct 04 at 8:24, Antonino A. Daplas wrote: --- a/drivers/video/console/fbcon.c 2004-10-26 23:49:13 +08:00 +++ b/drivers/video/console/fbcon.c 2004-10-27 08:17:19 +08:00 @@ -1012,7 +1012,9 @@ static void fbcon_putc(struct vc_data *vc, int c, int ypos, int xpos) { - fbcon_putcs(vc, (const unsigned short *) c, 1, ypos, xpos); + unsigned short chr = c; I think that you must use scr_write(c, chr) to get it right. Indeed. Thanks. Cool. Works here on rivafb! -- Guido
Re: Brightness control on PowerBook G4 1.33GHz, 12, GeForce FX Go5200
On Wed, Oct 27, 2004 at 09:56:36AM +0200, Jens Schmalzing wrote: Hi, Guido Guenther writes: fullscreen mol, although that currently has some problems ;) Namely? It fails to setup the video mode correctly on rivafb, I don't think this is a mol but a rivafb problem though. Sorry if for the confusion. -- Guido
Re: [Linux-fbdev-users] (2.6.9-rc4|2.6.9|2.6.10-rc1) black cursor on console [ppc platform]
On Tue, Oct 26, 2004 at 04:09:44AM +0800, Antonino A. Daplas wrote: On Tuesday 26 October 2004 02:49, Elimar Riesebieter wrote: On Mon, 25 Oct 2004 the mental interface of Antonino A. Daplas told: On Sunday 24 October 2004 17:25, Elimar Riesebieter wrote: Hi all, I am running 2.6.10-rc1 on my Apple AlBG4. gpm is started at boottime. The mousecursor is black colored on vt's and can be used as a brush to darken the screen. $ /usr/sbin/fbset mode 1280x854-60 # D: 79.815 MHz, H: 51.963 kHz, V: 60.003 Hz geometry 1280 854 1280 854 8 timings 12529 128 16 8 1 112 3 rgba 8/0,8/0,8/0,0/0 endmode $ cat /proc/fb 0 ATI Radeon NP The bootlogo isn`t shown. The same kernel on a i386 box with radeonfb (Radeon 9000) works fine. Any hints to get back a white mousecursor and a shown bootlogo as in 2.6.8? See my other mail for the mousecursor. Can you try booting with video=radeonfb:noaccel? I'm not sure if this has already been mentionend outside of the debian-ppc list: this also happens with at least rivafb and offb too. -- Guido
Re: irda-usb * kernel 2.6 * powerpc = 0 ?
On Sun, Oct 24, 2004 at 09:21:31PM +0200, Mario Frasca wrote: Hi everybody, I have a Sweex irda dongle, I have tested it under kernel 2.4 and all tests succeeded, I did not really syncronize my old IBM WorkPad c3 from there, but looking at the irdadump, I could recognize some data from the PDA as it was being transmitted. now on kernel 2.6 if I follow the updated instructions on http://www.hpl.hp.com/personal/Jean_Tourrilhes/IrDA/IrDA.html and I can't get much further than the removal of the ir-usb module. the problem is that on 2.4 I do have a irda-usb.o module, while on 2.6 debian powerpc I don't find it (and also no .ko)... I've seen that those missing files are present -at least- in the 386 'port'. was the module left behind for some concrete reasons? is wasn't just forgotten, was it? or it's me who can't find things, as I sometimes can't, expecially for things which are too much in sight... irda-usb works fine here under 2.6, just enable it in the kernel config. -- Guido
Re: XMMS, ALSA on a G4 iBook
On Mon, Oct 25, 2004 at 01:24:55AM +0100, Sam Halliday wrote: i have had ALSA working fine on my G4 iBook since the initial install, but lately i have been noticing in XMMS that if the machine is doing something CPU intensive which causes a delay in the sound output of XMMS... then the sounds just dies there; it doesn't ever pick up where it left off. does anyone else experience the same? this doesn't happen on my x86 machine and it is incredibly annoying, as i will have to manually restart a playlist. Same happens here, 12 albook. -- Guido
Re: PBG4 2.6.9 sound module config
On Mon, Oct 25, 2004 at 06:15:38PM +0200, Pander wrote: The sound on my PowerBook G4 was working quit oke until I upgraded to from 2.6.8.1 to 2.6.9. Think there is something wrong with the loading of the modules. What exactly is the problem. Can you try: diff -ubw --exclude='*.orig' --exclude='*.o' --exclude='*.ko' --exclude='*.cmd' --exclude='*.o' --exclude=CVS/ --exclude=.svn -Naur linux-2.6.9-rc2.orig/sound/ppc/pmac.c linux-2.6.9-rc2/sound/ppc/pmac.c --- linux-2.6.9-rc2.orig/sound/ppc/pmac.c 2004-09-15 09:24:29.0 +0200 +++ linux-2.6.9-rc2/sound/ppc/pmac.c2004-09-21 16:58:38.966902040 +0200 @@ -50,8 +50,8 @@ 44100, 29400, 22050, 17640, 14700, 11025, 8820, 7350 }; /* fixed frequency table for tumbler */ -static int tumbler_freqs[1] = { - 44100 +static int tumbler_freqs[2] = { + 48000, 44100 }; /* @@ -488,12 +488,14 @@ snd_pcm_runtime_t *runtime = subs-runtime; int i, j, fflags; static int typical_freqs[] = { + 48000, 44100, 22050, 11025, 0, }; static int typical_freq_flags[] = { + SNDRV_PCM_RATE_48000, SNDRV_PCM_RATE_44100, SNDRV_PCM_RATE_22050, SNDRV_PCM_RATE_11025, @@ -647,7 +649,7 @@ pcm-private_data = chip; pcm-private_free = pmac_pcm_free; - pcm-info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; + pcm-info_flags = 0; strcpy(pcm-name, chip-card-shortname); chip-pcm = pcm; diff -ubw --exclude='*.orig' --exclude='*.o' --exclude='*.ko' --exclude='*.cmd' --exclude='*.o' --exclude=CVS/ --exclude=.svn -Naur linux-2.6.9-rc2.orig/sound/ppc/tumbler.c linux-2.6.9-rc2/sound/ppc/tumbler.c --- linux-2.6.9-rc2.orig/sound/ppc/tumbler.c2004-09-15 09:24:29.0 +0200 +++ linux-2.6.9-rc2/sound/ppc/tumbler.c 2004-09-21 16:58:38.970901432 +0200 @@ -762,6 +762,12 @@ DEFINE_MONO(Tone Control - Treble, treble), DEFINE_MONO(PCM Playback Volume, pcm), { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, + .name = DRC Switch, + .info = snd_pmac_boolean_mono_info, + .get = tumbler_get_drc_switch, + .put = tumbler_put_drc_switch + }, + { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = DRC Range, .info = tumbler_info_drc_value, .get = tumbler_get_drc_value, @@ -788,6 +794,12 @@ DEFINE_SNAPPER_MONO(Tone Control - Bass, bass), DEFINE_SNAPPER_MONO(Tone Control - Treble, treble), { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, + .name = DRC Switch, + .info = snd_pmac_boolean_mono_info, + .get = tumbler_get_drc_switch, + .put = tumbler_put_drc_switch + }, + { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = DRC Range, .info = tumbler_info_drc_value, .get = tumbler_get_drc_value, @@ -817,14 +829,6 @@ .put = tumbler_put_mute_switch, .private_value = TUMBLER_MUTE_AMP, }; -static snd_kcontrol_new_t tumbler_drc_sw __initdata = { - .iface = SNDRV_CTL_ELEM_IFACE_MIXER, - .name = DRC Switch, - .info = snd_pmac_boolean_mono_info, - .get = tumbler_get_drc_switch, - .put = tumbler_put_drc_switch -}; - #ifdef PMAC_SUPPORT_AUTOMUTE /* @@ -846,29 +850,6 @@ } } -static struct work_struct device_change; - -static void -device_change_handler(void *self) -{ - pmac_t *chip = (pmac_t*) self; - pmac_tumbler_t *mix; - - if (!chip) - return; - - mix = chip-mixer_data; - - /* first set the DRC so the speaker do not explode -ReneR */ - if (chip-model == PMAC_TUMBLER) - tumbler_set_drc(mix); - else - snapper_set_drc(mix); - - /* reset the master volume so the correct amplification is applied */ - tumbler_set_master_volume(mix); -} - static void tumbler_update_automute(pmac_t *chip, int do_notify) { if (chip-auto_mute) { @@ -878,25 +859,14 @@ /* mute speaker */ check_mute(chip, mix-amp_mute, 1, do_notify, chip-speaker_sw_ctl); check_mute(chip, mix-hp_mute, 0, do_notify, chip-master_sw_ctl); - mix-drc_enable = 0; - } else { /* unmute speaker */ check_mute(chip, mix-amp_mute, 0, do_notify, chip-speaker_sw_ctl); check_mute(chip, mix-hp_mute, 1, do_notify, chip-master_sw_ctl); - mix-drc_enable = 1; } - if (do_notify) { + if (do_notify) snd_ctl_notify(chip-card, SNDRV_CTL_EVENT_MASK_VALUE, chip-hp_detect_ctl-id); - snd_ctl_notify(chip-card, SNDRV_CTL_EVENT_MASK_VALUE, - chip-drc_sw_ctl-id); -
Re: Brightness control on PowerBook G4 1.33GHz, 12, GeForce FX Go5200
On Mon, Sep 27, 2004 at 04:51:51PM +0200, Guido Guenther wrote: On Mon, Sep 27, 2004 at 02:08:51PM +0200, Djoumé SALVETTI wrote: Le lundi 09/27/04 Jens Schmalzing [EMAIL PROTECTED] a écrit : Once offb has been started, you cannot get rid of it anymore. In order to use rivafb, you must build your own kernel and build rivafb into it. But beware, last time I tried the rivafb driver it crashed my machine. I use a patch to control backlight with offb (attached). AFAIK, backlight control with rivafb is not yet included in vanilla or debian kernels. It included in mainline and works. Problem is that the machine freezes when using rivafb when switching from X to the console. I'm looking into that now. ...and here's the fix. Sorry it took so long, i've been busy with other things...rivafb is still flacky, but console switching and backlight control works on NV17, NV30 untested, reports welcome. Cheers, -- Guido Only in linux-2.6.9/drivers/video/riva/: built-in.o Only in linux-2.6.9/drivers/video/riva/: .built-in.o.cmd diff -ubw linux-2.6.9.orig/drivers/video/riva/fbdev.c linux-2.6.9/drivers/video/riva/fbdev.c --- linux-2.6.9.orig/drivers/video/riva/fbdev.c 2004-10-18 23:54:39.0 +0200 +++ linux-2.6.9/drivers/video/riva/fbdev.c 2004-10-24 17:57:53.092317888 +0200 @@ -192,6 +192,8 @@ PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_QUADRO4_700XGL, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, + { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_GEFORCE_FX_GO_5200, + PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, { 0, } /* terminate list */ }; MODULE_DEVICE_TABLE(pci, rivafb_pci_tbl); @@ -1008,7 +1010,6 @@ par-state.flags |= VGA_SAVE_CMAP; save_vga(par-state); #endif - riva_common_setup(par); RivaGetConfig(par-riva, par-Chipset); /* vgaHWunlock() + riva unlock (0x7F) */ CRTCout(par, 0x11, 0xFF); @@ -1157,8 +1158,6 @@ struct riva_par *par = (struct riva_par *) info-par; NVTRACE_ENTER(); - riva_common_setup(par); - RivaGetConfig(par-riva, par-Chipset); /* vgaHWunlock() + riva unlock (0x7F) */ CRTCout(par, 0x11, 0xFF); par-riva.LockUnlock(par-riva, 0); @@ -2016,6 +2020,7 @@ RIVAFB_VERSION, info-fix.smem_len / (1024 * 1024), info-fix.smem_start); + #ifdef CONFIG_PMAC_BACKLIGHT if (default_par-FlatPanel _machine == _MACH_Pmac) register_backlight_controller(riva_backlight_controller, diff -ubw linux-2.6.9.orig/drivers/video/riva/nv_driver.c linux-2.6.9/drivers/video/riva/nv_driver.c --- linux-2.6.9.orig/drivers/video/riva/nv_driver.c 2004-10-18 23:54:55.0 +0200 +++ linux-2.6.9/drivers/video/riva/nv_driver.c 2004-10-24 16:51:01.0 +0200 @@ -105,11 +105,32 @@ { if (par-FlatPanel == 1) { switch(par-Chipset) { - case NV_CHIP_GEFORCE4_440_GO: - case NV_CHIP_GEFORCE4_440_GO_M64: - case NV_CHIP_GEFORCE4_420_GO: - case NV_CHIP_GEFORCE4_420_GO_M32: - case NV_CHIP_QUADRO4_500_GOGL: + case 0x0174: + case 0x0175: + case 0x0176: + case 0x0177: + case 0x0179: + case 0x017C: + case 0x017D: + case 0x0186: + case 0x0187: + /* this might not be a good default for the chips below */ + case 0x0286: + case 0x028C: + case 0x0316: + case 0x0317: + case 0x031A: + case 0x031B: + case 0x031C: + case 0x031D: + case 0x031E: + case 0x031F: + case 0x0324: + case 0x0325: + case 0x0328: + case 0x0329: + case 0x032C: + case 0x032D: par-SecondCRTC = TRUE; break; default: @@ -309,12 +330,32 @@ if (par-FlatPanel == -1) { switch (par-Chipset) { - case NV_CHIP_GEFORCE4_440_GO: - case NV_CHIP_GEFORCE4_440_GO_M64: - case NV_CHIP_GEFORCE4_420_GO: - case NV_CHIP_GEFORCE4_420_GO_M32: - case NV_CHIP_QUADRO4_500_GOGL: - case NV_CHIP_GEFORCE2_GO: + case 0x0112: /* known laptop chips */ + case 0x0174: + case 0x0175: + case 0x0176: + case 0x0177: + case 0x0179: + case 0x017C: + case 0x017D: + case 0x0186: + case 0x0187: + case 0x0286: + case 0x028C: + case 0x0316: + case 0x0317: + case 0x031A
Re: MPlayer on G3
On Thu, Oct 21, 2004 at 09:34:51AM -0400, Jeffrey Matt wrote: Thanks for the quick response Guido. In trying to stream a real media audio stream (which is really what I use it for, no video stuff on this machine), I'm getting these errors: Trying to force audio codec driver family libmad... Requested audio codec family [ffwmav2] (afm=ffmpeg) not available. Enable it at compilation. Requested audio codec family [wmadmo] (afm=dmo) not available. Enable it at compilation. Requested audio codec family [divx] (afm=acm) not available. Enable it at compilation. Cannot find codec for audio format 0x161. which seems to make sense given that the libavcodec is being disabled. Any ideas? I don't know enough about how mplayer is structured to know if this is a setup issue. (I guess I can just compile the library myself). No need to (and in fact it will even complicate things due to mplayer preferring the internal libavcodec). I properly reenabled a non-altivec libavcodec, please test. again. -- Guido signature.asc Description: Digital signature
Re: MPlayer on G3
On Fri, Oct 22, 2004 at 09:12:58AM -0400, Jeffrey Matt wrote: Tried it out this morning and everything is working beautifully. Thanks Guido. Thanks for testing! -- Guido
Re: suspend to disk for 2.6.9
On Wed, Oct 20, 2004 at 07:01:20PM +0200, Michael Schmitz wrote: The usual site - search the list archives (Guido Guenther maintains the patch; it's a swsusp patch now, as pmdisk has been merged with swsusp). If you use it on a radeon chipset there's another little fix you may need to apply (unless Guido has updated the patch). The patch has (certainly ;) been updated, the latest verison is against 2.6.9-rc4. And that's what I used :-) Still had to patch radeon_pm.c with that version, though. You noticed that there's a swsusp-2.6.9-rc4.2.diff? -- Guido
Re: Powerbook G3 Pismo Keyboard
On Thu, Oct 21, 2004 at 12:19:30PM +0200, Michael Schmitz wrote: The second problem is... Well, it may sound as I'm stupid, buy I can't find mouseemu. It isn't in the offical repositories and apt-get.org package search shows 0 results... You can find it at http://honk.physik.uni-konstanz.de/~agx/linux-ppc/debian/mouseemu/ There is no official debian package of it currently. The best idea is probably to include it in an existing debian package like powerpc-utils. powerpc-utils currently only has tools to configure some stuff, no daemons like mouseemu. mouseemu should be added as a separate package IMHO. Guido has done all the packaging work so I'd feel a bit bad just stealing the package :-) OTOH, if no one else volunteers I'd adopt it. Please do. -- Guido
Re: best kernel config on PowerBook G4 12 1.33GHz
On Thu, Oct 21, 2004 at 02:12:32PM +0200, intrigeri wrote: Djoumé SALVETTI [EMAIL PROTECTED] writes: Le mercredi 10/20/04 Basile STARYNKEVITCH [EMAIL PROTECTED] a écrit : have the LCD back light be turned off when the cover is closed AFAIK there is still troubles with nvidia driver, I used offb with a dirty patch (see attached) to make it working. Here is, attached, the same patch modified so that it applies cleanly on 2.6.9. The brightness adjustance is suboptimal, have a look at the nv driver in 2.6.9. Cheers, -- Guido
Re: suspend to disk for 2.6.9
On Thu, Oct 21, 2004 at 04:16:24PM +0200, Vincent Bernat wrote: OoO En cette aube naissante du jeudi 21 octobre 2004, vers 07:54, Guido Guenther [EMAIL PROTECTED] disait: And that's what I used :-) Still had to patch radeon_pm.c with that version, though. You noticed that there's a swsusp-2.6.9-rc4.2.diff? I have just tried swsusp on my iBook 700. I use a 2.6.9 patched with the above patch. To avoid any problem, I have suspended my iBook from a console but the X server was running. The suspend succeeded, as well as resuming. However, the display was freezed when I tried to switch back to the X server. I am using radeonfb and xserver-dri-trunk. Any idea ? I wish people would search the list archives. You have to disable DRI. Cheers, -- Guido
Re: 2.6.9-rc4 black cursor
On Tue, Oct 19, 2004 at 02:53:12PM +0200, Michael Schmitz wrote: I am running 2.6.9-rc4 on my AlbG4. gpm is started at boottime. The mousecursor is black colored on vt's and can be used as a brush to darken the screen. Any hints to get back a white mousecursor as in 2.6.8? no hint, just a confirmation: also happens with 2.6.9-rc2 on my AlbG4 (5,2). The only difference I see between 2.6.8 and 2.6.9-rc4 is the removal of radeonfb_{read,write} from the fb_ops struct. Should be easy enough to reverse. This happens with offb and rivafb too, seems to be generic code. -- Guido signature.asc Description: Digital signature
Re: MPlayer on G3
On Wed, Oct 20, 2004 at 09:02:27AM -0400, Jeffrey Matt wrote: Hi, Is anyone else having problems with the mplayer-powerpc from http://honk.physik.uni-konstanz.de? These builds have been working perfectly for me for a while now. There was an update yesterday that I've installed and now I'm getting this error: MPlayer interrupted by signal 4 in module: init_audio_codec The external libavcodec is build with altivec optimations. I made sure the -powerpc version doesn't use it. I just uploaded a new version, please test it. -- Guido signature.asc Description: Digital signature
Re: suspend to disk for 2.6.9
On Wed, Oct 20, 2004 at 10:48:05AM +0200, Michael Schmitz wrote: Is there a pmdisk patch for 2.6.9? If yes - where can i find it ? The usual site - search the list archives (Guido Guenther maintains the patch; it's a swsusp patch now, as pmdisk has been merged with swsusp). If you use it on a radeon chipset there's another little fix you may need to apply (unless Guido has updated the patch). The patch has (certainly ;) been updated, the latest verison is against 2.6.9-rc4. -- Guido signature.asc Description: Digital signature
Re: Software Suspend
On Wed, Oct 13, 2004 at 04:11:19PM +0200, Michael Schmitz wrote: Can anyone suggest a good source for information on setting up swsusp on a PowerBook G4? swsusp seems pretty broken to me in the latest Linus kernels. Shoehorning Guido's patch for -rc3 onto recent -rc4 just makes my Powerbook stop tasks, free memory and freeze with the display turned off. Nothing ever gets written to swap. I've uploaded a patch against -rc4 earlier today which already survived a bunch of suspend resume cycles. -- Guido signature.asc Description: Digital signature
Re: Software Suspend
On Wed, Oct 13, 2004 at 04:49:02PM +0200, Sebastian Henschel wrote: 2.6.9-rc2 writes to swap here with a G4 AlBook from 2003. so Erik might try that older prepatch. unfortunately, the system feels a wee bit slower after resume which is also shown by bogomips which shows about half of the value calculated from a pristine boot. so i do not use it at the moment. Could you try: http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/pmac-cpufreq-2.6.9-rc2.diff Cheers, -- Guido signature.asc Description: Digital signature
Re: pmdisk 2.6.8.1
On Sun, Oct 10, 2004 at 08:34:06PM +0200, Maciej Jan Broniarz wrote: On Sun, Oct 10, 2004 at 05:13:18PM +0200, Djoumé SALVETTI wrote: Platform options-Power Management support-Suspend-to-Disk Support. Thats funny. No power management. Any idea ? You did apply the pmdisk/swsusp patch, did you? -- Guido
Re: pmdisk 2.6.8.1
On Mon, Oct 11, 2004 at 10:10:03AM +0200, Maciej Jan Broniarz wrote: On Mon, Oct 11, 2004 at 09:51:48AM +0200, Guido Guenther wrote: You did apply the pmdisk/swsusp patch, did you? I was told that it is already in vanilla 2.6.8.1 ? Where can i download the latest version ? This is the latest one after the swsusp/pmdisk merge in mainline: http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/swsusp-2.6.9-rc3.diff -- Guido
Re: Ubuntu
On Tue, Oct 05, 2004 at 12:12:13PM +1000, Rob Weir wrote: It's not working for me again :-/. Suspend takes many many minutes and it always oopses on resume. I'll recompile with the patch again and write the oops down properly when I have time... Please check the mailing list archives about kernel modules to unload, etc. first. Cheers, -- Guido
Re: Ubuntu
On Sat, Oct 02, 2004 at 08:44:50PM +1000, Rob Weir wrote: On Thu, Sep 30, 2004 at 09:35:22PM +0200, Kjetil Ørbekk said Know it's a little of-topic, but i wonder if any of you have tried Ubuntu on a powerpc (did I hear iBook g4)? It works great on my ibook g4. I have Gentoo on mine now, to try if it worked better with suspend etc., but Gentoo truly sucks :-( It's gonna be either Ubuntu or back to Debian. I might even switch back to OS X because of suspend issues :( Suspend and lack of usable internal wireless are about my only two complaints about an otherwise beautiful machine :-/ Why not simply suspend to disk? Not as nice as having both suspend to ram and to disk, but far better than nothing. -- Guido
Re: Ubuntu
On Sun, Oct 03, 2004 at 07:49:31PM +0200, Arne Caspari wrote: I can not suspend to disk with the latest kernel versions anymore. The 'eth1394' module can not be unloaded ( rmmod just blocks ). I don't load it anyways, since I don't need it (see /etc/hotplug/blacklist.d) -- Guido
Re: Brightness control on PowerBook G4 1.33GHz, 12, GeForce FX Go5200
On Mon, Sep 27, 2004 at 02:08:51PM +0200, Djoumé SALVETTI wrote: Le lundi 09/27/04 Jens Schmalzing [EMAIL PROTECTED] a écrit : Once offb has been started, you cannot get rid of it anymore. In order to use rivafb, you must build your own kernel and build rivafb into it. But beware, last time I tried the rivafb driver it crashed my machine. I use a patch to control backlight with offb (attached). AFAIK, backlight control with rivafb is not yet included in vanilla or debian kernels. It included in mainline and works. Problem is that the machine freezes when using rivafb when switching from X to the console. I'm looking into that now. -- Guido + tmp_pmc |= (1 31); // backlight bit + switch(level) { + case 15: + tmp_pmc |= 0x0534; break; + default: + tmp_pmc |= (341 + (level * 53)) 16; + } + } else { I'd rather use the table from the nvdriver to get more accurate brightness controls. Cheers, -- Guido
Re: Laptop Mode
Hi Kiko, On Thu, Sep 16, 2004 at 09:47:31AM +0200, Kiko Piris wrote: On 16/09/2004 at 08:54 +0200, Guido Guenther wrote: On Wed, Sep 15, 2004 at 09:56:17PM +0200, Kiko Piris wrote: On 15/09/2004 at 20:04 +0200, Matthias Grimm wrote: But I didn't mean to be rude or anything close to that (that's why I put a smiley there :-). Saw that one ;) Laptop_mode is _no_ daemon that checks for ac power or not periodically. I also know that, the daemon I was referring to, was pbbutonsd (that's the one I use on my iBook). I don't want it to touch my laptop-mode settings. The nice thing about the newer pbbuttonsd versions is that they use scripts, just delete the symlink to the laptop script from /etc/power/events.d and pbbuttonsd won't touch it anymore. The default configuration should have this on though, since it's usefull for most of the laptop users. I want it running *all the time* (regardless if I'm on battery or on AC adapter) because I use it to lower a bit the temperature of the hard disk. But it decreases the lifetime of your hard disks servos due to frequent spin ups and spin downs. I also know this, I've fine tuned all the daemons so that they don't make superfluous (cache-miss) reads that cause too frequent spin-ups. Care to post this fine tuning? Cheers, -- Guido
snapper breackage in 2.6.9-rc2
Hi Rene, I have to revert the following parts of your recent PPC Alsa updates to get sound working again an a 12 pbook. Without that patch headphone detection is broken (it only works exactly one time) and volume adjustment is broken also, it's always _very_ quiet. This is no minimal patch, but maybe it's obvious to you what broke. Cheers, -- Guido diff -ubw --exclude='*.orig' --exclude='*.o' --exclude='*.ko' --exclude='*.cmd' --exclude='*.o' --exclude=CVS/ --exclude=.svn -Naur linux-2.6.9-rc2.orig/sound/ppc/pmac.c linux-2.6.9-rc2/sound/ppc/pmac.c --- linux-2.6.9-rc2.orig/sound/ppc/pmac.c 2004-09-15 09:24:29.0 +0200 +++ linux-2.6.9-rc2/sound/ppc/pmac.c2004-09-21 16:58:38.966902040 +0200 @@ -50,8 +50,8 @@ 44100, 29400, 22050, 17640, 14700, 11025, 8820, 7350 }; /* fixed frequency table for tumbler */ -static int tumbler_freqs[1] = { - 44100 +static int tumbler_freqs[2] = { + 48000, 44100 }; /* @@ -488,12 +488,14 @@ snd_pcm_runtime_t *runtime = subs-runtime; int i, j, fflags; static int typical_freqs[] = { + 48000, 44100, 22050, 11025, 0, }; static int typical_freq_flags[] = { + SNDRV_PCM_RATE_48000, SNDRV_PCM_RATE_44100, SNDRV_PCM_RATE_22050, SNDRV_PCM_RATE_11025, @@ -647,7 +649,7 @@ pcm-private_data = chip; pcm-private_free = pmac_pcm_free; - pcm-info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; + pcm-info_flags = 0; strcpy(pcm-name, chip-card-shortname); chip-pcm = pcm; diff -ubw --exclude='*.orig' --exclude='*.o' --exclude='*.ko' --exclude='*.cmd' --exclude='*.o' --exclude=CVS/ --exclude=.svn -Naur linux-2.6.9-rc2.orig/sound/ppc/tumbler.c linux-2.6.9-rc2/sound/ppc/tumbler.c --- linux-2.6.9-rc2.orig/sound/ppc/tumbler.c2004-09-15 09:24:29.0 +0200 +++ linux-2.6.9-rc2/sound/ppc/tumbler.c 2004-09-21 16:58:38.970901432 +0200 @@ -762,6 +762,12 @@ DEFINE_MONO(Tone Control - Treble, treble), DEFINE_MONO(PCM Playback Volume, pcm), { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, + .name = DRC Switch, + .info = snd_pmac_boolean_mono_info, + .get = tumbler_get_drc_switch, + .put = tumbler_put_drc_switch + }, + { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = DRC Range, .info = tumbler_info_drc_value, .get = tumbler_get_drc_value, @@ -788,6 +794,12 @@ DEFINE_SNAPPER_MONO(Tone Control - Bass, bass), DEFINE_SNAPPER_MONO(Tone Control - Treble, treble), { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, + .name = DRC Switch, + .info = snd_pmac_boolean_mono_info, + .get = tumbler_get_drc_switch, + .put = tumbler_put_drc_switch + }, + { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = DRC Range, .info = tumbler_info_drc_value, .get = tumbler_get_drc_value, @@ -817,14 +829,6 @@ .put = tumbler_put_mute_switch, .private_value = TUMBLER_MUTE_AMP, }; -static snd_kcontrol_new_t tumbler_drc_sw __initdata = { - .iface = SNDRV_CTL_ELEM_IFACE_MIXER, - .name = DRC Switch, - .info = snd_pmac_boolean_mono_info, - .get = tumbler_get_drc_switch, - .put = tumbler_put_drc_switch -}; - #ifdef PMAC_SUPPORT_AUTOMUTE /* @@ -846,29 +850,6 @@ } } -static struct work_struct device_change; - -static void -device_change_handler(void *self) -{ - pmac_t *chip = (pmac_t*) self; - pmac_tumbler_t *mix; - - if (!chip) - return; - - mix = chip-mixer_data; - - /* first set the DRC so the speaker do not explode -ReneR */ - if (chip-model == PMAC_TUMBLER) - tumbler_set_drc(mix); - else - snapper_set_drc(mix); - - /* reset the master volume so the correct amplification is applied */ - tumbler_set_master_volume(mix); -} - static void tumbler_update_automute(pmac_t *chip, int do_notify) { if (chip-auto_mute) { @@ -878,25 +859,14 @@ /* mute speaker */ check_mute(chip, mix-amp_mute, 1, do_notify, chip-speaker_sw_ctl); check_mute(chip, mix-hp_mute, 0, do_notify, chip-master_sw_ctl); - mix-drc_enable = 0; - } else { /* unmute speaker */ check_mute(chip, mix-amp_mute, 0, do_notify, chip-speaker_sw_ctl); check_mute(chip, mix-hp_mute, 1, do_notify, chip-master_sw_ctl); - mix-drc_enable = 1; } - if (do_notify) { + if (do_notify) snd_ctl_notify(chip-card, SNDRV_CTL_EVENT_MASK_VALUE, chip-hp_detect_ctl-id); -
Re: Laptop Mode
On Wed, Sep 15, 2004 at 09:56:17PM +0200, Kiko Piris wrote: On 15/09/2004 at 20:04 +0200, Matthias Grimm wrote: IMHO laptop-mode is a dynamic option that must adapt to changing conditions. This can only be done in conjunction with a power management daemon. You're right. Anything else doesn't make much sense. Nope, this is not true (at least for me :-). Matthias _is_ right, you need a power management daemon to tell laptop_mode when it turn it on or not. Laptop_mode is _no_ daemon that checks for ac power or not periodically. Your case with LAPTOP_MODE_ALWAYS_ON is special. I use laptop-mode on my iBook and I start it with a /etc/init.d script. I want it running *all the time* (regardless if I'm on battery or on AC adapter) because I use it to lower a bit the temperature of the hard disk. But it decreases the lifetime of your hard disks servos due to frequent spin ups and spin downs. So, I don't want any daemon of any kind to play with my laptop-mode settings. There's no other sensible way, you can always delete the script that handles laptop mode from pbbuttonsd, it won't reappear on upgrades since it's a conf file. Cheers, -- Guido signature.asc Description: Digital signature
Re: iBook G4 + pmdisk + pmud
On Wed, Sep 15, 2004 at 10:02:57AM -0500, Bryan Forbes wrote: 1. When I resume, the clock is set to the time I suspended at. Is there a fix for this? I know this is because the image that is saved to swap contains the Linux system time and on resume that time gets put back rather than read in from the computer's clock. I was thinking you could tell the time to save to the computer's clock just before suspend and then grab that from the computer after resume. Have a look at: http://honk.physik.uni-konstanz.de/~agx/linux-ppc/pwrctl-local especially the hwclock part. 2. I've had some issues with Alsa and Esound on resume (like sounds no playing). Is this a known issue? Is there a workaround? Make esound release the sound/mixer device on suspend, so you can safely resume. There's another bug where 'headphone detection' doesn't work right after suspend and you have to unload the snd_powermac module once. It's very infrequent, so I didn't bother to look into this. Cheers, -- Guido signature.asc Description: Digital signature