Re: iBook internal speakers volume

2003-08-12 Thread Michael Heldebrant
On Tue, 2003-08-12 at 07:21, Thomas Otto wrote:
> > I have an iBook 900 Mhz on which I have recently installed Debian sid. 
> > I have 
> > a little trouble with the internal speakers : they do work, but the sound 
> > is 
> > extremely low. 
> > Changing the volume in aumix has no effect. I have read that the 
> > speaker 
> > volume is mapped to the "Spkr" channel of aumix, so I checked and found out 
> > that the "Spkr" channel is at maximum and cannot be moved (I cannot lower 
> > its 
> > value, while all other channels can be tuned noramlly).
> > I use the ALSA modules on a 2.4.21-ben2 kernel
> > 
> > Has anyone ran into this issue before, or has an idea of what might be 
> > the 
> > problem ?
> 
> Any mixer I tried didn't work here either, but if you install pbbuttonsd 
> the keys from F3 to F5 (with the speaker symbol) will allow you to 
> increase or decrease the volume, maybe it somehow circumvents the 
> /dev/mixer device.

I found that unloading and reloading the i2c-keywest module after the
snd-powermac module is loaded fixes the problem.  It allows me to use
the mixer to set the volume at a useful level after twiddling the volume
up and down (alsa-mixer or pbbuttonsd) to set it properly.  However,
this also must be done after a sleep and wake cycle or otherwise the
speaker goes either very quiet or insanely loud.  To make this work
automagically I did a few things.

I added:

post-install snd-powermac rmmod i2c-keywest && modprobe i2c-keywest

to /etc/modutils/local and reran update-modules to fix the mixer at boot
time.  When pbbuttonsd starts it sets the mixer so you don't need to
play with the volume.  However, sleep and wake needs to have the voume
twiddled before it comes back to normal.

I added the file /etc/power/pwrctl-local as (someone with more
experience is free to make the script more intelligent, it at the
current moment unloads and loads at sleep and again at wake but it works
for me):

#!/bin/bash
rmmod i2c-keywest && modprobe i2c-keywest


I also had to add/fix the /etc/pbbuttonsd.conf with this line

Script_Prof_Changed = "/etc/power/pwrctl-local"

so that it calls the power script at sleep and wake which pmud should
use by default if you don't use pbbuttonsd to replace pmud.

--mike



Re: can't adjust bright

2003-08-23 Thread Michael Heldebrant
On Fri, 2003-08-22 at 07:35, Manu wrote:
> I also have tried with powerprefs, and i have the same problem, so i
> don't think the problems is the keyboard layout (only).
> 
> 
> 
> El mi? 20-08-2003 a las 07:11, J. Javier Maestro escribió:
> 
> > Although I (suspect you do too :-) have a spanish laptop, I use an
> > american key layout coz I am more used to it and I find it more
> > comfortable :-) In any case, there are a couple of threads in the list
> > talking about keymaps, etc for X windows... they can probably help you
> > better! ;-) Just try the american keyboard layout... if everything works
> > fine for such a keyboard, then it must be that the actual layout you are
> > using is slightly wrong...
> > 
> > Also, FYI, my /etc/console/boottime.kmap.gz is one of the
> > /usr/share/keymaps/mac/ keymaps, so perhaps you would like to
> > investigate around there :-? I just saw some mac-es.kmap.gz that might
> > work? :-? 

Check to see if the evdev module is loaded.  I had the same problems
until I loaded it at boot time by listing it in /etc/modules.  For some
reason I noticed ikeyd autoloaded the module but pbbuttonsd or
powerprefs didn't.

--mike



Re: Playing DVDs on Debian

2004-07-07 Thread Michael Heldebrant
On Wed, 2004-07-07 at 00:31, Adam wrote:
> I have been trying for the past couple of years trying to play DVDs on
> my Linux box and every time I run into some road blocks.  i have
> studied what other people have asked in the archives with a search of
> DVD in the subject and body and also in the users.debian lists also. 
> I have read and tried the many suggestions and can not figure why I 
> am having some issues.  
> 
> These are my recent steps I  have taken lately.

<--SNIP-->

> 2.  When I run gxine I get this output on the terminal

<--SNIP-->

> libdvdnav: Using dvdnav version 1-rc4a from http://xine.sf.net
> libdvdread: Encrypted DVD support unavailable.

<--SNIP-->

Do you have libdvdcss2 installed?  Then you can read the CSS encrypted
DVD and then it should probably work.

You can download it:

http://honk.physik.uni-konstanz.de/~agx/linux-ppc/debian/mplayer/libdvdcss2_1.2.8-0.0_powerpc.deb

and install it as sudo/root with:

dpkg -i libdvdcss2_1.2.8-0.0_powerpc.deb


Or you can download the source from the marillat unofficial repository
and build it yourself:

http://hpisi.nerim.net/

Specifically you can add the source line into your /etc/apt/sources.list
(don't forget the main repository too)

deb-src ftp://ftp.nerim.net/debian-marillat/ unstable main

deb-src http://ftp.us.debian.org/debian/ unstable main non-free contrib

deb-src http://non-us.debian.org/debian-non-US unstable/non-US main contrib 
non-free

Then move to a nice clean directory somewhere and do as sudo/root:

apt-get build-dep libdvdcss2

apt-get -b source libdvdcss2

This gets the dev packages needed for compiling installed and anything
else for building debs needed and then builds the package for you.  

Assuming no errors there should be a nice .deb file there for powerpc/or
whatever architecture you compiled on to install with dpkg -i
libdvdcss2_*.deb

--mike



Re: Playing DVDs on Debian

2004-07-07 Thread Michael Heldebrant
On Wed, 2004-07-07 at 12:35, Michael Heldebrant wrote:
> On Wed, 2004-07-07 at 00:31, Adam wrote:
> > I have been trying for the past couple of years trying to play DVDs on
> > my Linux box and every time I run into some road blocks.  i have
> > studied what other people have asked in the archives with a search of
> > DVD in the subject and body and also in the users.debian lists also. 
> > I have read and tried the many suggestions and can not figure why I 
> > am having some issues.  
> > 
> > These are my recent steps I  have taken lately.
> 
> <--SNIP-->
> 
> > 2.  When I run gxine I get this output on the terminal
> 
> <--SNIP-->
> 
> > libdvdnav: Using dvdnav version 1-rc4a from http://xine.sf.net
> > libdvdread: Encrypted DVD support unavailable.
> 
> <--SNIP-->
> 
> Do you have libdvdcss2 installed?  Then you can read the CSS encrypted
> DVD and then it should probably work.
> 
> You can download it:
> 
> http://honk.physik.uni-konstanz.de/~agx/linux-ppc/debian/mplayer/libdvdcss2_1.2.8-0.0_powerpc.deb
> 
> and install it as sudo/root with:
> 
> dpkg -i libdvdcss2_1.2.8-0.0_powerpc.deb
> 

I just tried xine with libdvdnav4, libdvdread3 and libdvdcss2 1.2.8 and
it crashed as you described.  Using totem instead (based on the
underlying xine libs at the moment) did not crash though it did output
the same errors.

--mike



Re: Playing DVDs on Debian

2004-07-07 Thread Michael Heldebrant
On Wed, 2004-07-07 at 13:30, Adam Done wrote:
> On Wed, 2004-07-07 at 10:16, Guido Guenther wrote: 
> > On Wed, Jul 07, 2004 at 09:57:19AM -0700, Adam wrote:
> > > I installed the mplayer-G4 version.  It works but is very very choppy
> > > and sounds has a repeating nick to the sound.  Now I can also use ogle
> > > but it too is very choppy.  Is there a way to watch without the
> > > jerkyness?
> > I'm playing DVDs without problem with that package, what kind of machine
> > is that, again? You're using oss for ao? Did you add autosync=30 to your
> > mplayer configuration? Are you using xv as vo?
> > Cheers,
> >  -- Guido
> 
> 
> I am using a 400mHz G4 with a 800mHz processor on a 22" Apple orignal
> flatpanel monitor.
> 
> vo=x11  
> 
> I tried other vo settings but this was the only one which does not
> freez up mplayer
> 
> ao=alsa1x
> 
> I also put autosync=38 and still it acts the same... it is like it is
> playing s slow
> 

Do you have dri working on this computer?  Check with glxinfo (Should
say in the third line)  If DRI is not on that could explain why it's
very choppy.

Is liba52-0.7.4 installed to handle the 5.2/5.1 sound?

--mike




Re: pbbuttonsd new problems

2004-07-07 Thread Michael Heldebrant
On Wed, 2004-07-07 at 12:23, Matthias Grimm wrote:
> Am Mittwoch, 7. Juli 2004 09:52 schrieb Stefano Zacchiroli:
> 
> > BTW the most annoying fact about this pbbuttonsd is that when pbbuttonsd
> > crashes there's no way to get it up and running again without rebooting
> > the machine. "/etc/init.d/pbbuttonsd stop" doesn't work and after
> > manually -9-killing pbbuttonsd there's no way to start it again since it
> > complaints that another daemong is running even it that's not the case,
> > are there any hiddent pid/lock files I'm not aware of?
> 
> Pbbuttonsd installs an message queue which it can't clean up if kicked off 
> with kill -9. Use 'ipcs' (as root) to check the message queue id and after 
> that remove it with 'ipcrm msg '. After that procedure pbbuttonsd will 
> start again without reboot.

Would it be possible to have this added to the /etc/init.d/pbbuttonsd
script within the force-reload option?  Looks like if the old
/var/run/pbbuttonsd.pid file is there the pid of the message que should
be easy to get.  My quick and dirty 5 second hack was:

ipcrm msg `ipcs -q -p |grep -f /var/run/pbbuttonsd.pid |awk '{ print
$1}'`

This would make it automagic to less google savvy users for the future.

> 
> It seems that the new problems occour in conjunction with kernel 2.6.7. Most 
> of you use it. I never saw those problems with kernel 2.4, so I have to 
> install kernel 2.6.7 and have a closer look. 
> 
> There have been a lot of changes since pbbuttons 0.5.9 but the sleep code 
> didn't change, so I have no explanation for the failures yet. I'm thankful 
> for every hint how this behaviour can be deterministically reproduced.
> 

pbbuttonsd became unstable after upgrading the unstable debian package
and then trying to blank screen "sleep" the computer by pressing the
power button on AC.  It never made it to launching all of the
appropriate scripts.

I had to reboot my ibook g3 900 dual usb (kernel 2.4.24) after I
upgraded, but after that it works perfectly.  I like the new event.d and
scripts.d features.

 
>   Best Regrads
> Matthias
> 

--mike



Re: Playing DVDs on Debian

2004-07-07 Thread Michael Heldebrant
On Wed, 2004-07-07 at 14:49, Adam wrote:
> On Wed, 2004-07-07 at 11:42, Michael Heldebrant wrote: 
> > On Wed, 2004-07-07 at 13:30, Adam Done wrote:
> > > On Wed, 2004-07-07 at 10:16, Guido Guenther wrote: 
> > > > On Wed, Jul 07, 2004 at 09:57:19AM -0700, Adam wrote:

> > Do you have dri working on this computer?  Check with glxinfo (Should
> > say in the third line)  If DRI is not on that could explain why it's
> > very choppy.
> > 
> > Is liba52-0.7.4 installed to handle the 5.2/5.1 sound?
> 
> This is my output. I also have dri enabled for the x server
> 
> $ glxinfo
> name of display: :2.0
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
> 
> display: :2  screen: 0
> direct rendering: No
> server glx vendor string: SGI

<-SNIP->

It says that DRI dDirect rendering) is not enabled.  What kernel vresion
are you running?  Please provide the output of:

uname -a

cat /proc/modules

lspci

dpkg -l kernel\* |grep ii

include your XF86Config-4 as an attachment please.

Hopefully this is the case:
For 2.4 series (not sure for 2.6) you need the danzer dri trunk packages
for dri.

If this is the case put this in your sources list:

deb http://people.debian.org/~daenzer/dri-trunk-sid ./

apt-get update and apt-get install xlibmesa-gl1-dri-trunk
xserver-xfree86-dri-trunk drm-trunk-module-src

go to /usr/src and tar -xvf drm-trunk.tar.gz

Go into your kernel-source directory (if you don't have one we can work
around this)

if you have kernel-package installed you should be able to:

make-kpkg modules_image

to get an installable drm-modules deb appropriate for your kernel.

Then make sure that agpgart and radeon (or whatever your cards module
is) are loaded, in that order and restart x.  Hopefully this will get
dri working.

--mike



Re: Playing DVDs on Debian

2004-07-08 Thread Michael Heldebrant
On Thu, 2004-07-08 at 00:40, Adam wrote:
> > 
> > > include your XF86Config-4 as an attachment please.
> > > 
> > > Hopefully this is the case:
> > > For 2.4 series (not sure for 2.6) you need the danzer dri trunk packages
> > > for dri.
> > > 
> > > If this is the case put this in your sources list:
> > > 
> > > deb http://people.debian.org/~daenzer/dri-trunk-sid ./
> > > 
> > > apt-get update and apt-get install xlibmesa-gl1-dri-trunk
> > > xserver-xfree86-dri-trunk drm-trunk-module-src
> > > 
> > > go to /usr/src and tar -xvf drm-trunk.tar.gz
> > > 
> > > Go into your kernel-source directory (if you don't have one we can work
> > > around this)
> > > 
> > > if you have kernel-package installed you should be able to:
> > > 
> > > make-kpkg modules_image
> > > 
> > > to get an installable drm-modules deb appropriate for your kernel.
> > > 
> > > Then make sure that agpgart and radeon (or whatever your cards module
> > > is) are loaded, in that order and restart x.  Hopefully this will get
> > > dri working.
> > 
> > 
> > Ok.. I installed the module package and then inmod mga and r128.. now.. I 
> > can't even restart the xserver.. I tried changing my drivers in XFree86-4 
> > config file and now it is unworkable.  I will look over what I have done 
> > but so far.. i have unloaded the mga r128 modules and fiddled with my 
> > xserver drivers.  Nothing yet. I wonder if after all this time I have been 
> > working with an unaccelerated xserver.
> 
> 
> XFree86 errors
> (==) Using config file: "/etc/X11/XF86Config-4"
> Skipping
> "/usr/X11R6/lib/modules-dri-trunk/extensions/libGLcore.a:m_debug_clip.o": No 
> symbols found
> Skipping
> "/usr/X11R6/lib/modules-dri-trunk/extensions/libGLcore.a:m_debug_norm.o":  No 
> symbols found
> Skipping
> "/usr/X11R6/lib/modules-dri-trunk/extensions/libGLcore.a:m_debug_xform.o":  
> No symbols found
> Skipping
> "/usr/X11R6/lib/modules-dri-trunk/fonts/libspeedo.a:spencode.o":  No
> symbols found
> (EE) Failed to load module "fbdev" (module does not exist, 0)
> (EE) No drivers available.
> 
> 
> This is the same output if i use r128 driver and witheach _drm and _dri
> appeneded to each driver.
> 
> 

You built the drm-trunk modules for your 2.4.25 kernel right?

Try just using "ati" in the XF86Config-4 file for the driver.  I believe
that autodetects what it needs to load and takes care of it for you.

Kernel wise, you should have the (uninorth support in the kernel config)
agpgart module loaded or compiled into the kernel.  Have the r128 module
loaded.  Give X another shot and let us know what happens.

Just to double check one more thing please show us your yaboot.conf
file.  Some quick googling suggests video=atyfb128 as an option to try
as well.

--mike



Re: Playing DVDs on Debian

2004-07-08 Thread Michael Heldebrant
On Thu, 2004-07-08 at 18:25, Adam wrote:
> On Thu, 2004-07-08 at 10:47, Michael Heldebrant wrote: 
> > On Thu, 2004-07-08 at 00:40, Adam wrote:


<--SNIP-->

> > 
> > You built the drm-trunk modules for your 2.4.25 kernel right?
> Yes.  Wtih the trunk packages and modules installed I could not start x
> even with the fbdev driver.  So I took them back out and tried using ati
> as the driver in XF86Config-4 file and that still did not work but with
> the fbdev driver I can start x back up.  I have never been able to use
> the proper xdrivers. :(  I have included also my .config file for my
> kernel version. 
> 
> I have reinstalled the trunk packages and modules but no matter what
> driver I use, I still can't get x to start.
> 
> > Try just using "ati" in the XF86Config-4 file for the driver.  I believe
> > that autodetects what it needs to load and takes care of it for you.
> > 
> 
> Xoutput errors
> 
> XFree86 Version 4.3.99.12 (DRI trunk)
> Release Date: 10 September 2003
> X Protocol Version 11, Revision 0, Release 6.6
> Build Operating System: Linux 2.6.3-ben1 ppc [ELF]
> Current Operating System: Linux asterix 2.4.25-ben1.asterix3 #1 Sun Jun 27 
> 10:34:57 PDT 2004 ppc
> Build Date: 05 March 2004
> Changelog Date: 10 September 2003
> Before reporting problems, check http://www.XFree86.Org/
> to make sure that you have the latest version.
> Module Loader present
> Markers: (--) probed, (**) from config file, (==) default setting,
> (++) from command line, (!!) notice, (II) informational,
> (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (==) Log file: "/var/log/XFree86.0.log", Time: Thu Jul  8 15:56:15 2004
> (==) Using config file: "/etc/X11/XF86Config-4"
> Skipping 
> "/usr/X11R6/lib/modules-dri-trunk/extensions/libGLcore.a:m_debug_clip.o":  No 
> symbols found
> Skipping 
> "/usr/X11R6/lib/modules-dri-trunk/extensions/libGLcore.a:m_debug_norm.o":  No 
> symbols found
> Skipping 
> "/usr/X11R6/lib/modules-dri-trunk/extensions/libGLcore.a:m_debug_xform.o":  
> No symbols found
> Skipping "/usr/X11R6/lib/modules-dri-trunk/fonts/libspeedo.a:spencode.o":  No 
> symbols found
> (EE) R128(0): Cannot read V_BIOS (5)
> (EE) R128(0): No DFP detected
> 
>*** If unresolved symbols were reported above, they might not
>*** be the reason for the server aborting.
> 
> Fatal server error:
> Caught signal 7.  Server aborting
> 
> 
> 
> > Kernel wise, you should have the (uninorth support in the kernel config)
> > agpgart module loaded or compiled into the kernel.  Have the r128 module
> > loaded.  Give X another shot and let us know what happens.
> I have each of those compiled into the kernel
> 
> > Just to double check one more thing please show us your yaboot.conf
> > file.  Some quick googling suggests video=atyfb128 as an option to try
> > as well.
> 
> 
> -adam

It looks like you've done everything according to what is known to
work.  You even have the right framebuffer loading from yaboot.  The
only thing I can think of is that you can try the agpart and r128 as
modules instead of compiled into the kernel.

If that doesn't work it looks like it's time for you to file a bug
report and see what the developers need to start fixing things.

--mike



Re: pbbuttonsd new problems

2004-07-12 Thread Michael Heldebrant
On Sat, 2004-07-10 at 12:37, Matthias Grimm wrote:
> Am Mittwoch, 7. Juli 2004 20:44 schrieb Michael Heldebrant:
> > > Pbbuttonsd installs an message queue which it can't clean up if kicked
> > > off with kill -9. Use 'ipcs' (as root) to check the message queue id and
> > > after that remove it with 'ipcrm msg '. After that procedure
> > > pbbuttonsd will start again without reboot.
> >
> > Would it be possible to have this added to the /etc/init.d/pbbuttonsd
> > script within the force-reload option?  Looks like if the old
> > /var/run/pbbuttonsd.pid file is there the pid of the message que should
> > be easy to get.  My quick and dirty 5 second hack was:
> 
> This seems a goog idea for me. I will see what we can do with this.
> 
> > pbbuttonsd became unstable after upgrading the unstable debian package
> > and then trying to blank screen "sleep" the computer by pressing the
> > power button on AC.  It never made it to launching all of the
> > appropriate scripts.
> 
> What do you mean with "It never made it"? Don't you use scripts at all or 
> doesn't pbbuttonsd execute all scripts sucessfully?
> 

I'm not quite sure actually.  The syslog never stated that it finished
the scripts (as it has before) and the machine wouldn't listen to button
presses or lid close events.  Had to kill pbbuttonsd with a kill -9, it
was unresponsive to a regular kill.  I rebooted and the problem went
away.  If I'd known about the msg que thing I probably wouldn't have
needed the reboot.


> In case of the second: Pbbuttonsd will terminate a script if it lasts too 
> long. The timeout time could be set in the configuration file. This is a 
> security feature so that no single script could block pbbuttonsd. Maybee a 
> short timeout value is the cause of some of your problems.
> 

All my personal scripts finish very quickly.  I never found out what it
was.

> I used kernel 2.6.7 and pbbuttonsd 0.6.2 now for a couple of days on a G3 
> Pismo without any problems.
> 
>   Best Regards
>  Matthias
> 

It works great now.  I have no complaints or bugs.

--mike



Re: build transcode for powerpc

2004-12-07 Thread Michael Heldebrant
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
complained, it appears to work just fine doing .vob -> 2-pass xvid.  A
little slow on my G3 ibook but bearable.

Libraries I installed by hand:

avifile-xvid-plugin
lame
libavc1394-0
libavcodeccvs
libavifile-0.7c102
libdv4
libfaac0
libimlib2
liblame0
libquicktime1
libraw1394-5
libtheora0
libungif4g
libxvidcore4

-- 
Michael Heldebrant <[EMAIL PROTECTED]>



Anyone using kterm/kinput2?

2004-01-21 Thread Michael Heldebrant
I'm trying to figure out why I can't actually get kinput2 working right
on my ibook2.2.  I have it working on 2 other i386 machines currently,
hence the powerpc posting.  

I've got the locales built (ja_JP), canna, kinput2 and kterm installed
along with xfonts-intl-japanese.  I can get the shift-space kanji input
window to open but the cursor won't actually input text into it.  The
kanji window moves to the right as I'm trying to type in the romanji
fills in from the left.  It doesn't do this on i386 for some reason.

Man kterm or something gives an invalid character set error (but some
Japanese is displayed as well) and doing a CNTRL-Right Click in the
kterm window causes a segfault.  Running xjdic does crazy things.

I've googled around and found nothing at the moment.  Anyone have any
suggestions?

-mike




Re: Anyone using kterm/kinput2?

2004-01-25 Thread Michael Heldebrant
On Sat, 2004-01-24 at 10:43, Colin Watson wrote:
> On Sun, Jan 25, 2004 at 12:57:39AM +0900, GOTO Masanori wrote:
> > At Wed, 21 Jan 2004 14:25:43 -0600,
> > Michael Heldebrant wrote:
> > > Man kterm or something gives an invalid character set error (but some
> > > Japanese is displayed as well)
> > 
> > Do you use woody or older?  If so, Japanese-support man-db is needed.
> > If you use sid, you just need to use "lv" or "jless" instead of
> > "less".
> 
> You need to use lv or jless on woody or older too, of course; it's less
> that gives the "invalid character set" error.
> 

I'm using unstable.  You're right about man, it bombs on i386 too with
the standard less.  Does anyone have kinput2-canna and canna working on
powerpc?  Someone said privately that he couldn't get canna working and
went to freewnn instead and that worked.

--mike