Re: qemu and skype

2005-10-02 Thread Luca Bigliardi
On Sun, Oct 02, 2005 at 10:59 AM, Jack Malmostoso wrote:

> [EMAIL PROTECTED]:~/downloads/skype-1.2.0.17$ sudo ln -s /lib/ld-2.3.5.so 
> /lib/ld-linux.so.2

qemu wants the i386 one.

You should get qemu-gnemul from Bellard's page, put it in /usr/gnemul
and then copy missing libraries from debian-x86 (remember to set the
right parameters to x86 ldconfig, or you'll break your entire linuxbox).


> Apart from Skype that will never work properly

I've tried one year ago (or more) and skype didn't work, i was able to
run only acroread (but i've never used it :) ).


luca


-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: how to play .mkv files?

2005-10-15 Thread Luca Bigliardi
On Sun, Oct 16, 2005 at 12:25 AM, William Xu wrote:

> Any way to play .mkv and .wmv files?

mkv is matroska and mplayer should support it, the same for wmv.
However these are only "containers", you should look at the video/audio
codec of the file to see if it's supported by mplayer.


luca


-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Mouse movements not identified as activity (sleep in 2.6.12)

2005-10-30 Thread Luca Bigliardi
On Sun, Oct 30, 2005 at 04:44 PM, Eddy Petri?or wrote:

> Why is this happening?

Maybe it doesn't know about your usb-mouse.
Plug your mouse and then try to reload/restart pbbuttonsd: during evdev
scanning now it should see also your usb-mouse.


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: touchpad iBook G4 trubles

2005-11-03 Thread Luca Bigliardi
On Thu, Nov 03, 2005 at 09:15 PM, Alessandro De Zorzi wrote:

> My touchpad do not works :-(

usb or adb ?

luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: touchpad iBook G4 trubles

2005-11-05 Thread Luca Bigliardi
On Fri, Nov 04, 2005 at 08:16 AM, Alessandro De Zorzi wrote:

> I: Bus=0003 Vendor=05ac Product=1000 Version=1965
> N: Name="05ac:1000"
> P: Phys=usb-0001:10:1a.0-1/input1
> H: Handlers=mouse1 event4
> B: EV=7
> B: KEY=1f 0 0 0 0 0 0 0 0
> B: REL=3

AFAIK it's the usb one.
Try standard mouse configuration in xorg.conf, not the synaptics one.


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Synaptics driver and the new iBooks

2005-11-13 Thread Luca Bigliardi
On Sun, Nov 13, 2005 at 05:01 PM, Saladino wrote:

>   I've been trying to install the synaptics driver to disable the
> tapping of the touchpad.

your trackpad is adb or usb? /proc/bus/input/devices should help

> if i have 2 devices, touchpad and usb mouse, why only one
> logical device?(/dev/input/mice)

mousedev handles every mice, and its output come from such device..

> I would like to have different
> preffs, for example to disconnect touchpad when usb mouse is plugged,
> or simply to disable the touchpads tapping click, only using the
> button for click.

if you have an usb-based trackpad you should contact usb-people and ask
if your device is compatible with synaptics drivers


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Under PPC debain, is there any app like iScroll2?

2005-11-21 Thread Luca Bigliardi
On Tue, Nov 15, 2005 at 07:59 PM, Jack Malmostoso wrote:

> On Tue, 15 Nov 2005 19:20:40 +0100, Tsai Dung-Bang wrote:
> 
> > which patch you apply, thanks...
> 
> http://www.artha.org/shammash/ppc/adb_syn/

glad to hear :)

If you're insterested: BenH replied to my feedback request (many thanks!)
I've to export some config options to sysfs and then, probably, the patch
will go to mainstream.


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: pbbuttonsd and NoTapTyping option?

2005-11-21 Thread Luca Bigliardi
On Sun, Nov 20, 2005 at 12:30 PM, Michael Schmitz wrote:

> > does anybody use the NoTapTyping function of pbbuttonsd with success?
> > How much would you pay to keep it? ;-)
> 
> I don't use that function - at least not in pbbuttonsd. moussemu takes
> care of that for me.

Also synaptics xorg driver has a similar feature: syndaemon.



luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Under PPC debain, is there any app like iScroll2?

2005-11-21 Thread Luca Bigliardi
On Mon, Nov 21, 2005 at 09:39 PM, Jack Malmostoso wrote:

> Anyway, i find quite annoying the synaptics behaviour of the automatic
> selection of icons and windows if I stop moving the cursor for a second (I
> hope you understand what I mean...).

Not exactly, i don't use icons..
I've tried with windows but i cannot reproduce your error.

> Which option should I modify? I am using your default options as found on
> the README, and honestly I didn't play with it a lot... thanks for help!

Witch patch version are you using?
Are you using my config or the one from xorg.conf_bigo (suggested) ?

Maybe there's a kind of involuntary click when you "leave" the trackpad
with the finger.


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



synaptics compatibility patch for 2.6.15

2006-01-05 Thread Luca Bigliardi
Hi all,
i've just updated the patch for synaptics xfree/xorg support on adb
based trackpads.

http://www.artha.org/shammash/ppc/adb_syn/

please test and let me know if it works.

tia

luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: synaptics compatibility patch for 2.6.15

2006-01-05 Thread Luca Bigliardi
On Fri, Jan 06, 2006 at 09:59 AM, Benjamin Herrenschmidt wrote:

> As I said previously, you should look into not making that a config
> option but rather a runtime option.

I know, i've also quoted your mail in the readme file as a reminder.
This is only an update written in a couple of minutes because i've
updated the kernel on my ibook.

I haven't much time to spend on this patch now, so i haven't still found
a good solution; i've only studied a little sysfs and kobjects.
I'd like really much to receive some ideas and suggestions!

thanks

luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: synaptics compatibility patch for 2.6.15

2006-01-06 Thread Luca Bigliardi
On Fri, Jan 06, 2006 at 01:25 PM, Benjamin Herrenschmidt wrote:

> Can the driver be informed when synaptics takes control of it btw ?

Not currently.

On x86 absolute mode is set on psmouse-base module initialization.
There's no config option here, if you build the kernel with psmouse and
you have a synaptics touchpad you can use it only in absolute mode
(mousedev takes care of a proper absolute to relative conversion).

X driver opens event interface and check for ABS_X, ABS_Y, ABS_PRESSURE
and BTN_TOOL_FINGER bits with an ioctl. If success it hooks the device
with another ioctl to evdev.


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: synaptics compatibility patch for 2.6.15

2006-01-06 Thread Luca Bigliardi
On Sat, Jan 07, 2006 at 08:37 AM, Benjamin Herrenschmidt wrote:

> Maybe it's time to suggest adding a specific one for switching..

Ok, i've contacted Peter Osterlund, the author of synaptics support in
kernelspace and userspace. Waiting for its reply.


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: therm_adm103x: inquiry

2006-01-12 Thread Luca Bigliardi
On Thu, Jan 12, 2006 at 07:49 AM, Cedric Pradalier wrote:

> I'd like to know if there is still people using this module,

I've used it for a while:
http://lists.debian.org/debian-powerpc/2005/01/msg00453.html

Now i'm living without thermal control.
The logic board of my ibook has been substituted two times, but i don't
know if this is somehow correlated with the lack of thermal control:
my laptop is in the "Repair Extension Program".

> if these users would like to see this module included an
> official kernel

Yes, of course (but, IIRC, BenH didn't like degrees symbol).

> if, knowing that lm_sensors should be able to read this
> chip, you still need the therm_adm103x module (I think so
> since I believe lm_sensor does not provide control over
> the chip, or does it?).

So you can say that therm_adm103x is definitively better than lm_sensors?


> Thanks for you answers.

Thank to you for your work.


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: therm_adm103x: inquiry

2006-01-12 Thread Luca Bigliardi
On Thu, Jan 12, 2006 at 10:49 PM, Cedric Pradalier wrote:

> I would really like to know if someone managed to use it,
> and if so, gives a comparative evaluation of both modules.

I remember that there were some problems with fan startup using
lm_sensors (but i don't know now). I think you should try by yourself,
your tests will be surely more accurate!

IMHO you should go on with your module and, at most, write a little note
in Kconfig help about a '(nearly?) working lm_sensors support'.


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: User Mode Linux does not work

2006-02-18 Thread Luca Bigliardi
On Sat, Feb 18, 2006 at 07:53 PM, Dieter Schuster wrote:

> does anyone of you run user mode linux on PPC? 

it doesn't work

> Where do I get the file Kconfig.ppc (Kconfig.arch is a link to it), or
> waht do I have to write to it?

there's a lot of work to do..


luca

-- 
What's the best thing you could be working on, and why aren't you?
Paul Graham, Good and Bad Procrastination

http://shammash.homelinux.org/ - http://www.artha.org/ - http://www.yue.it/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: User Mode Linux does not work

2006-02-23 Thread Luca Bigliardi
On Thu, Feb 23, 2006 at 11:04 AM, Marco Giusti wrote:

> is there an alternative for UML? i must test the comunication between
> three computers using ethereal, iptables, ecc. in x86 i lanch three
> instances of uml, but in ppc?

Try qemu.
It seems you can also use MOL to get LOL (linux on linux), but i don't know
if it can run multiple instances.


AFAIK now ppc is not a good choice if you need virtualization software
working.


luca

-- 
What's the best thing you could be working on, and why aren't you?
Paul Graham, Good and Bad Procrastination

http://shammash.homelinux.org/ - http://www.artha.org/ - http://www.yue.it/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: XEN...if ever?

2006-04-11 Thread Luca Bigliardi
On Tue, Apr 11, 2006 at 01:05 PM, Rich Johnson wrote:

> Anyone know when we'll see xen (http://packages.debian.org/unstable/ 
> misc/xen) or equivalent on the powerpc architecture?

xen uses 3 cpu rings so, afaik, it will never run on ppc


luca

-- 
What's the best thing you could be working on, and why aren't you?
Paul Graham, Good and Bad Procrastination

http://shammash.homelinux.org/ - http://www.artha.org/ - http://www.yue.it/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: pbbuttonsd, synaptics and sleep on lid close

2005-08-13 Thread Luca Bigliardi
On Sat, Aug 13, 2005 at 10:25 PM, Matthias Grimm wrote:

> "mouse" (according the pdf document you posted to the list). To
> differentiate the apple and the synaptics trackpad the first four bytes
> would be sufficient. Why do you check for the device class too?

Because it's different for trackpads in relative (0x03) or absolute
(0x00) mode.

> This could only mean you have a standard Apple ABD trackpad and use a
> different kernel driver for it which emulates a synaptic trackpad. How
> close got I with this?

It's right, but it's not an emulation: trackpads on adb bus of every
quite recent ibook/pbook are from Synaptics. The adbhid driver uses
tpad in relative mode, this[1] kernel patch simply initialize and
manage tpad in absolute mode. In this way you can use synaptics_drv in
XFree/Xorg.


[1] http://www.artha.org/shammash/ppc/adb_syn/adb_synaptics_0.1.diff



luca


-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: pbbuttonsd, synaptics and sleep on lid close

2005-08-13 Thread Luca Bigliardi
On Sat, Aug 13, 2005 at 10:09 PM, Matthias Grimm wrote:

> Patch is in CVS.

Thank's a lot!


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



scrolling with trackpad and other features, update

2005-08-17 Thread Luca Bigliardi
Hi all,
I've solved the "involuntary click" problem reported by some users,
new version is always here:
http://www.artha.org/shammash/ppc/adb_syn/


Thank you again for testing!


luca


-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



ibook2.2's thermal control dilemma

2005-01-16 Thread Luca Bigliardi - shammash
hi guys,
i own an ibook2.2 witch has adm1030 thermal control chip.

i've used for a while the kernel module written by cedric pradalier, but
now he suggest to use lm-sensors.

However i2c-keywest does not support lm-sensors, a little patch is needed:

--- i2c-keywest.c.orig 2004-07-24 22:39:04.0 +0200
+++ i2c-keywest.c  2004-08-17 21:03:23.0 +0200
@@ -618,6 +618,8 @@
chan->iface = iface;
chan->chan_no = i;
chan->adapter.id = I2C_ALGO_SMBUS;
+   if (i==1)
+   chan->adapter.class = I2C_CLASS_HWMON;
chan->adapter.algo = &keywest_algorithm;
chan->adapter.algo_data = NULL;
chan->adapter.client_register = NULL;


Ben does not like this patch. He also has explained why but i didn't
understood (the problem is my little tech skill :) ).


So, what i have to do?
- Patch every kernel with unsupported cedric's patch?
- Patch every kernel with unwelcome i2c-keywest patch?
- Live without thermal control?

The third way could be dangerous also for my not-so-hot machine?

TIA
Luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

Linux Registered User # 286841


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#292974: fonts and remeber workspace not working on ppc

2005-01-31 Thread Luca Bigliardi - shammash
Package: fluxbox
Version: 0.9.11-1
Severity: normal
Tag: sid


I've upgraded fluxbox from 0.9.9-1 to 0.9.11-1;
as i've logged out and restarted with new fluxbox the fonts
are invisible and the remember workspace does not work.
I'm not investigating for further bugs since i've downgraded
to 0.9.9-1. On i386 the same upgrade works perfectly.

Dependencies:
menu2.1.21
libc6   2.3.2.ds1-20
libfontconfig1  2.2.3-4
libfreetype62.1.7-2.3
libgcc1 1:3.4.3-7
libstdc++5  1:3.3.5-6
libxft2 2.1.2-6
libxrender1 0.8.3-7
zlibg1  1:1.2.2-4
xlibs   4.3.0.dfsg.1-10




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: QEmu and Wine

2005-01-31 Thread Luca Bigliardi - shammash
On Mon, Jan 31, 2005 at 04:39 PM, Vincent Bernat wrote:

> > Cool! That is what I need, I think. Could you please tell me how to do 
> > this? Thanks.
> 
> Look at this URL :
>  http://forums.gentoo.org/viewtopic.php?t=117774&highlight=qemu+flash>

I've tried that solution and it's really far away from the x86 flash
plugin.

I think it's better to help swfdec guys at http://www.schleef.org/swfdec/
with tests and bug reports.


Luca


-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

Linux Registered User # 286841


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



user mode linux on ppc32

2005-02-04 Thread Luca Bigliardi - shammash
Hi all,
some days ago lynuxworks.com guys made an announcement about their port
of uml on ppc32; after that Jeff Dike has received this work,
you can read his article on usermodelinux.org (there's also a patch
for uml on ppc64).

As you can see in Jeff's article the code he has received is a 28MB
tarball, i've downloaded it and tried to compile it "as is" without
success.

According to Jeff i've started to "diff" the whole code;
i've sent him a patch, you can find it there:
http://www.artha.org/shammash/ppc/uml-2.6.0-test9_x86_ppc.diff

Since there was an amount of history files (file.c~), .orig, .patched,
strange symlinks outside the source tree, great cuts of non i386/ppc code
and also looping links, i hope to have understood correctly their work
(if someone wants to check, i appreciate that)

Now, next step is splitting up the uml code from lynxos code (their RTOS)
and make it compiling somehow.

If you are interested in coding/testing it you can ask Jeff.
I think that he'll need an account on a ppc machine; perhaps Ben can send
him his new macmini :)


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

Linux Registered User # 286841


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: OOo crash on startup

2005-02-15 Thread Luca Bigliardi - shammash
On Tue, Feb 15, 2005 at 09:53 PM, Niklaus Giger wrote:

> > Has anyone else had this error with OpenOffice?

debian package version ?

> > but recently it just dies every time I try to start it.

have you updated/modified anything ?

> On my system openoffice.org-bin 1.1.3-1 is installed, which should be the 
> latest release in testing. And it works okay on my PowerBook Alu G4.

here 1.1.3-4 from unstable works pretty well on ibook 2.2



luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Approaches to enabling scanning for AirPort (not Extreme)

2005-02-24 Thread Luca Bigliardi - shammash
On Thu, Feb 24, 2005 at 01:14 PM, Eric Gaumer wrote:

> Or I can send you the patch if you'd like to build your own kernel.

You can find the original work here:
http://www.kismetwireless.net/download.shtml

The patch for the vanilla kernel is under "Orinoco Driver Patches for
2.6.9 & 2.6.10 & 2.6.8.1-mdk" section.

I'm using the patch for the CVS version of the drivers and is seems
good.



luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Approaches to enabling scanning for AirPort (not Extreme)

2005-02-27 Thread Luca Bigliardi - shammash
On Fri, Feb 25, 2005 at 04:38 PM, Barry Hawkins wrote:

> I applied this patch, and kismet seems to work now, but after using
> kismet my wifi card sometimes goes into a seizure.  During the kernel
> build, I noticed some warnings when the wireless drive was being
> compiled; the lines are attached to the end of this message.

I think that these are not airport-related problems, i've tried another
orinoco-based pcmcia card on my old i386 laptop and it suffered the same
problems. You can see that it's also impossible to stop channel hopping.

There are strange behaviors also without dragorn patch: sometimes i have
to set the Managed mode to connect to an Ad-Hoc network.

If you want to play seriously with wireless i think you should buy
another card based on a better supported chip.

> The
> PowerBook won't even shut down, it just closes X and goes to console
> mode printing a message I failed to write down message endlessly.  The
> next time it happens I'll write it down.

Try also to see if you have a process in uninterruptible sleep: i had
the same problem with kernel 2.6.10 + debian patches revision 2, but it
was totally unrelated from wireless.

> Also, I noticed that (prior to running kismet and the wifi freaking out)
> iwlist scanning does not work:
> 
> $ sudo iwlist eth1 scanning
> eth1  Interface doesn't support scanning : Operation not supported

IIRC this should be solved in CVS drivers.


luca


-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: 1.67GHz PowerPC G4 Trackpad

2005-02-27 Thread Luca Bigliardi - shammash
On Mon, Feb 28, 2005 at 09:28 AM, Benjamin Herrenschmidt wrote:

> It doesn't appear to be a standard USB HID device, but rather an Apple
> home made stuff.

Do you know if it's still synaptics-based? You have investigated on
hardware or you have read about somewhere?


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Airport Extreme via QEmu

2005-03-05 Thread Luca Bigliardi - shammash
On Sat, Mar 05, 2005 at 06:12 PM, Maximilian Gerlach wrote:

> So - the only thing left is to find someone familiar with qemu, kernel
> developing, too much time and an Airport Extreme ;)

Don't you think that it's easier start writing a wrapper for darwin's
KEXTs ? Maybe you could also have some support from gnudarwin people.


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Debian unstable, blackdown j2re1.3 and Mozilla

2004-07-05 Thread Luca Bigliardi - shammash
On Sat, Jul 03, 2004 at 05:29 PM, Ivo Marino wrote:

> Any more specific informations regarding this topic?

there was a previous discussion, you can find the more
interesting message of that thread here:

http://lists.debian.org/debian-powerpc/2003/11/msg00162.html


Luca

-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



therm_adm103x

2004-07-06 Thread Luca Bigliardi - shammash
hi,
i'm successfully controlling my ibook2.2' fan
using Cedric Pradalier's patch on kernel 2.6.7 vanilla.

Does anybody knows if that patch will become part of
the official kernel tree ?

TIA
Luca

-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



Re: javaplugin mozilla

2004-07-16 Thread Luca Bigliardi - shammash
On Fri, Jul 16, 2004 at 10:25 PM, Elimar Riesebieter wrote:

> I can't get the javaplugin to work with mozilla.

> Any hints?

read this message and the following thread:
http://lists.debian.org/debian-powerpc/2003/11/msg00153.html


Luca

-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



bad shading with eterm debianized

2004-07-28 Thread Luca Bigliardi - shammash
hi,
i've installed Eterm 0.9.2-8 and the shading works bad:
the background is shaded in a bad way fading to blue.

then i've tried to recompile eterm 0.9.2 downloaded from
eterm.org and now everything is fine, but i haven't understood
where the problem is. An "E" guy told me something about
incompatibility between some versions of libpng.


Luca


-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



Re: "Debian Within a Darwin System"

2004-08-04 Thread Luca Bigliardi - shammash
On Wed, Aug 04, 2004 at 12:41 AM, Derrik Pates wrote:

> making virtualization solutions like VMware not work.

this guy has booted opendarwin with vmware, but it has
troubles with the network interface:

http://www.opendarwin.org/pipermail/hackers/2004-July/004491.html


you can find the list of supported i386 hardware on opendarwin's site:
http://www.opendarwin.org/hardware/


Luca

-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



hwclock

2004-08-08 Thread Luca Bigliardi - shammash
hi guys,
i cannot get working hwclock on my ibook 2.2 with 2.6.7.

i've seen some threads in the archives from 1999 to 2003 saying
different things:

- hwclock doesn't work, try clock form powerpc-utils
- clock is obsolete it should be useful have hwclock support
- on 2.4 there is a /dev/rtc compatible with hwclock

so, what's up now? what kind of configuration i'have to follow?

thank's a lot


Luca

-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



libsensors keywest configuration

2004-08-17 Thread Luca Bigliardi - shammash
hi guys,
i'm trying to configure lm-sensors over an ibook 2.2 .

sensors-detect find successfully ADM1030 device over
uni-n 1 bus, but i cannot find any doc about configuration
of this bus in "sensors.conf".

has anyone already configured lm-sensors on such bus?


thank's a lot

Luca


-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



Re: libsensors keywest configuration

2004-08-20 Thread Luca Bigliardi - shammash
On Tue, Aug 17, 2004 at 02:06 PM, Luca Bigliardi - shammash wrote:

> sensors-detect find successfully ADM1030 device over
> uni-n 1 bus, but i cannot find any doc about configuration
> of this bus in "sensors.conf".

i've found the solution (thanks to lm-sensors guys!):

the problem is that in 2.6.8.1 uni-n is not seen as sensors bus,
the solution is this patch:

--- linux-2.6.8.1/drivers/i2c/busses/i2c-keywest.c.orig 2004-07-24 
22:39:04.0 +0200
+++ linux-2.6.8.1/drivers/i2c/busses/i2c-keywest.c  2004-08-17 
21:03:23.0 +0200
@@ -618,6 +618,8 @@
chan->iface = iface;
chan->chan_no = i;
chan->adapter.id = I2C_ALGO_SMBUS;
+   if (i==1)
+   chan->adapter.class = I2C_CLASS_HWMON;
chan->adapter.algo = &keywest_algorithm;
chan->adapter.algo_data = NULL;
chan->adapter.client_register = NULL;


ciao
Luca

-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



installing debian on mol

2004-09-08 Thread Luca Bigliardi - shammash
hi,
does anyone has installed debian on mol ?

I've tried with Branden's instructions
(installing debian without using any physical media)
and also with the iso of woody-powerpc (not burned).

In the first case i've added these pseudofiles:
pseudofile:"yaboot" /home/shammash/mol/firstboot/yaboot
pseudofile:"yaboot.conf" /home/shammash/mol/firstboot/yaboot.conf
pseudofile:"vmlinux" /home/shammash/mol/firstboot/linux.bin
pseudofile:"root.bin" /home/shammash/mol/firstboot/root.bin

But i cannot start the kernel (yaboot says "not a valid elf image").
In the second case i've added the iso as blkdev
in "/etc/mol/molrc.linux" but mol doesn't boot from.

Hints ?

Luca


-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



cracks on xmms

2004-09-15 Thread Luca Bigliardi - shammash
hi,
i've the latest xmms from unstable running on ibook 2.2 .
Sound is configured with alsa and oss-emulation.
When i play an mp3/ogg/wav with xmms i ear some "cracks".
Cracks are more frequent with alsa plugin than with oss plugin.
Tuning a few plugin options reduce the cracks, but the don't disappear.

Hints?


Luca

-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



Re: hwclock can't access /dev/rtc: solved

2004-12-01 Thread Luca Bigliardi - shammash
On Wed, Dec 01, 2004 at 11:39 AM, peter plessas wrote:

> Well, after a boot into OSX and back to debian the time is correct now!

I don't think that this is a good_solution(tm),
it's better to modify your scripts that load/store the time using
/sbin/clock from powerpc-utils instead of hwclock.

Maybe this could be added also in powerpc-utils package.


HTH
Luca

-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



clock and hwclock (was: Re: hwclock can't access /dev/rtc: solved)

2004-12-03 Thread Luca Bigliardi - shammash
On Thu, Dec 02, 2004 at 02:47 PM, Joerg Sommer wrote:

> This script is named hwclock.sh, which is part of util-linux. I think
> it's not easy possible to remove hwclock from util-linux or replace it on
> ppc by clock.

a possible solution could be done starting from this old thread:
http://lists.debian.org/debian-powerpc/1999/09/threads.html#00254
http://lists.debian.org/debian-powerpc/1999/10/threads.html#0

> Where are the differences between hwclock and clock?

IIRC hwclock uses rtc, while clock uses adb.

Maybe this problem can also be solved patching hwclock making it
adb-compatible or creating a kind of rtc-emulator in kernel space,
but i don't know if this second way is possible.

In the W-E i'll try to catch more information.

Luca


-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



Re: clock and hwclock (was: Re: hwclock can't access /dev/rtc: solved)

2004-12-05 Thread Luca Bigliardi - shammash
On Sat, Dec 04, 2004 at 08:18 PM, Joerg Sommer wrote:

> > a possible solution could be done starting from this old thread:
> > http://lists.debian.org/debian-powerpc/1999/09/threads.html#00254
> > http://lists.debian.org/debian-powerpc/1999/10/threads.html#0
> 
> Interessting, especially that is problem exists at least since 1999. ;-)

I think that i was wrong: since apple 2 weeks ago changed my ibook's motherboard
i've no more got this problem. Now hwclock (2.12) works well!


Luca


-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



Re: clock and hwclock (was: Re: hwclock can't access /dev/rtc: solved)

2004-12-10 Thread Luca Bigliardi - shammash
On Mon, Dec 06, 2004 at 11:20 AM, Joerg Sommer wrote:

> Is clock now deprecated? Can it be removed from powerpc-utils?

I don't know if it's deprecated, I can only say that hwclock
seems to do the same work (here in mac newworld).

luca

-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



ibook 2.2 doesn't use whole battery

2004-12-16 Thread Luca Bigliardi - shammash
hi all,
i've a problem with the battery of my ibook 2.2 :

In battery mode every time the charge percentage reaches
35-38 % the level falls to 0% (and pbbuttonsd suspend the machine).
I've seen the same behaviour in the battery leds (they pass from 2 leds
to 1 when you check).

Do you think it's an hardware problem (bad battery) or a configuration
error?


TIA
Luca

-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



Re: XMMS and alsa output on sid (goes too fast)

2004-12-20 Thread Luca Bigliardi - shammash
On Sun, Dec 19, 2004 at 02:12 PM, Bobby Holley wrote:

> did anyone ever find a solution to this problem? I'm having the same issue 
> (command line mp3 players like mpg321 work fine but xmms 1.2.10 with alsa 
> plugin 1.2.10 sounds crackly and is too fast).

Try disabling preemption from your kernel (CONFIG_PREEMPT).


luca

-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



Re: Skype & qemu || mol

2004-12-23 Thread Luca Bigliardi - shammash
On Fri, Dec 24, 2004 at 12:06 AM, Cristo Saulo Bolaños Trujillo wrote:

> has any one tried to emulate skype for linux i386 under ppc ?

i've tried one or two month ago with qemu-i386 , i've got lots of segfaults.

maybe it works emulating a whole i386..


luca


-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841



ibook2.2's thermal control dilemma

2005-01-16 Thread Luca Bigliardi - shammash
hi guys,
i own an ibook2.2 witch has adm1030 thermal control chip.

i've used for a while the kernel module written by cedric pradalier, but
now he suggest to use lm-sensors.

However i2c-keywest does not support lm-sensors, a little patch is needed:

--- i2c-keywest.c.orig 2004-07-24 22:39:04.0 +0200
+++ i2c-keywest.c  2004-08-17 21:03:23.0 +0200
@@ -618,6 +618,8 @@
chan->iface = iface;
chan->chan_no = i;
chan->adapter.id = I2C_ALGO_SMBUS;
+   if (i==1)
+   chan->adapter.class = I2C_CLASS_HWMON;
chan->adapter.algo = &keywest_algorithm;
chan->adapter.algo_data = NULL;
chan->adapter.client_register = NULL;


Ben does not like this patch. He also has explained why but i didn't
understood (the problem is my little tech skill :) ).


So, what i have to do?
- Patch every kernel with unsupported cedric's patch?
- Patch every kernel with unwelcome i2c-keywest patch?
- Live without thermal control?

The third way could be dangerous also for my not-so-hot machine?

TIA
Luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

Linux Registered User # 286841



[patch] adbmouse && synaptics

2005-07-28 Thread Luca Bigliardi - shammash
Hi,
i've written a little patch to have synaptics xfree/xorg driver running
with adb touchpads.

It's working on my ibook2.2, please let me know if it work also for you.


The patch is for 2.6.12-rc4, but should apply to any recent kernel.
http://www.artha.org/shammash/ppc/adb_syn/adb_synaptics_0.1.diff

You have to set CONFIG_ADB_TRACKPAD_ABSOLUTE=y and then recompile;
then pick latest synaptics xfree/xorg driver (now it's 0.14.3)
build and install it.

Before reboot be sure to set dev_ADB = "/dev/null" in
/etc/pbbuttonsd.conf.

Here you can find an example of configuration for X, i suppose that
you'll have to play a lot with synclient to fine-tune touchpad options.
There are two mouses so you can still use emumousebuttons with keyboard.
http://www.artha.org/shammash/ppc/adb_syn/xorg_mouse.conf


TIA
Luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [patch] adbmouse && synaptics

2005-07-29 Thread Luca Bigliardi - shammash
On Fri, Jul 29, 2005 at 07:51 PM, micron wrote:

> I'm using an ibook G4 (cat /proc/cpuinfo says PowerBook6,3) with kernel
> 2.6.12-3.
> I've successfully applied your patch, installed latest synaptic version from
> apt-get and followed your instructions.
> 
> But I'm unable to start XFree because:
> unknown protocol "auto-dev"

have you configured the event interface in the kernel?
CONFIG_INPUT_EVDEV=y


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [patch] adbmouse && synaptics

2005-07-30 Thread Luca Bigliardi - shammash
On Sat, Jul 30, 2005 at 08:54 AM, micron wrote:

> Yes, it's configured. I was using it also before applying your patch.

can you send me the output of "cat /proc/bus/input/devices" ?



luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [patch] adbmouse && synaptics

2005-07-30 Thread Luca Bigliardi - shammash
On Sat, Jul 30, 2005 at 07:38 AM, Bin Zhang wrote:

> I tested it following your instructions. It works on my ibook g4
> 1.2Ghz with debian_kernel_source_2.6.12 and xfree86-driver-synaptics
> package

> (but not very well, I think I should change some touchpad options.).

Yes, you have to play a lot with them.

> But the sleep does not work any more.

This is strange, what kind of error are you getting?
Are you using xfree or xorg? Have you tried using the patch and the
standard mouse driver in x?

> A question : The mouse drive works already fine for me. Which is the
> advantage using your patch ?

Well, i've written this patch to be able to control easily mouse
speed/acceleration and also to have the wheel on the right side of the
pad. If you want a list of features that synaptics drivers cat provide
go here: http://web.telia.com/~u89404340/touchpad/ .
Please note that some features are unavailable because apple synaptics
mouses do not send all the informations x86 do.


luca


-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [patch] adbmouse && synaptics

2005-07-30 Thread Luca Bigliardi - shammash
On Sat, Jul 30, 2005 at 04:09 PM, Bin Zhang wrote:

> > Yes, you have to play a lot with them.
> > 
> Yes. But it is not easy to find the best options. :)

i know, try first using synclient in a couple of remote shells

> No error. The power_button does the sleep, but close the ibook does not.

I think that this behaviour is for dev_ADB = /dev/null in pbbuttons'
configuration. If the patch works well and is appreciated i can write
Matthias in order to solve the problem in the best way.

> Can I use /dev/input/mice instead of /dev/input/mouse0 ?

it should work


luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



pbbuttonsd, synaptics and sleep on lid close

2005-08-07 Thread Luca Bigliardi - shammash

Hi,
below you can find a little patch for pbbuttonsd that partially solve
the incompatibility with mouses (in absolute mode)
managed by synaptics x module.

With this patch you don't need anymore to change "/dev/adb" in
"/dev/null" in pbbuttonsd.conf


Now i'll try to know why mouse movements are ignored by pbbuttonsd:
sometimes you have to press a key on the keyboard or it performs the
timer action.


luca


-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/
--- module_pmac.c_ORIG  2005-08-07 14:58:48.0 +0200
+++ module_pmac.c   2005-08-07 15:00:00.0 +0200
@@ -1069,7 +1069,8 @@
if ((ADBBuffer[2] == 0x74) &&
 (ADBBuffer[3] == 0x70) &&  /* 'tpad' */
 (ADBBuffer[4] == 0x61) &&
-(ADBBuffer[5] == 0x64)) {
+(ADBBuffer[5] == 0x64) &&
+(ADBBuffer[8] == 0x03)) {
return n;
}
}


Re: pbbuttonsd, synaptics and sleep on lid close

2005-08-10 Thread Luca Bigliardi - shammash
On Tue, Aug 09, 2005 at 10:58 PM, Johannes Berg wrote:

> > But if reading /dev/adb couldn't find the device, what would Luca's patch
> > change?
> 
> Hmmm. Maybe Luca doesn't have a new model with USB actually, and I just
> thought so.

Yes, my previous (kernel) patch was for touchpads on the adb bus, they
are from synaptics too. If you are interested:
http://www.synaptics.com/decaf/utilities/ACF126.pdf



luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: pbbuttonsd, synaptics and sleep on lid close

2005-08-10 Thread Luca Bigliardi - shammash
On Tue, Aug 09, 2005 at 08:35 PM, Johannes Berg wrote:

> On Tue, 2005-08-09 at 19:33 +0200, Matthias Grimm wrote:
> 
> > Have a look at event_handler() in input_manager.c. You will see that
> > only keyboard events and relative mouse events are processed. Any
> > other event will be ignored.
> 
> That's obviously the problem. For synaptics compatibility, the
> appletouch driver reports absolute events.
> 
> Could you change the code to also reset the timer on absolute mouse
> events? (What is the reason for not resetting the timer on them?)

This is not so simple: when synaptics x driver starts it grabs the event
device using EVIOCGRAB. In this way data from input device don't leak
to /dev/input/mice and, as a side effect, no one else can read events
from event device.
If you are using synaptics X driver you can see this by simply "cat"
your mouse evdev with X turned on and then off: you'll see garbage in
the latter case, but not in the former.



luca

-- 
Beware of programmers who carry screwdrivers.
-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



mol modules and 2.6.9

2004-10-21 Thread Luca Bigliardi - shammash
mol-modules-source 0.9.70-8 does not compile for 2.6.9,
i've attached a little patch that fix the problem.

HTH
Luca

-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841
diff -Naurp src/netdriver/sheep.c src_ORIG/netdriver/sheep.c
--- src/netdriver/sheep.c   2004-10-21 20:00:51.422903944 +0200
+++ src_ORIG/netdriver/sheep.c  2004-09-11 22:04:35.0 +0200
@@ -153,7 +153,7 @@ demasquerade( struct sk_buff *skb, struc
 static int 
 sheep_net_receiver( struct sk_buff *skb, struct net_device *dev, struct 
packet_type *pt )
 {
-   int multicast = (eth_hdr(skb)->h_dest[0] & ETH_ADDR_MULTICAST);
+   int multicast = (skb->mac.ethernet->h_dest[0] & ETH_ADDR_MULTICAST);
const char *laddr = dev->dev_addr;
struct sk_buff *skb2;
struct SheepVars *v = (struct SheepVars*)pt;
@@ -167,7 +167,7 @@ sheep_net_receiver( struct sk_buff *skb,
 
if( !multicast ) {
// Drop, unless this is a localhost -> MOL transmission 
*/
-   if( addrcmp((char*)ð_hdr(skb)->h_dest, v->fake_addr) 
)
+   if( addrcmp((char*)&skb->mac.ethernet->h_dest, 
v->fake_addr) )
goto drop;
 
/* XXX: If it were possible, we would prevent the 
packet from beeing sent out
@@ -178,16 +178,16 @@ sheep_net_receiver( struct sk_buff *skb,
 * the controller. This way, the packet ought to be 
discarded by
 * switches.
 */
-   cpyaddr( ð_hdr(skb)->h_dest[0], laddr );
+   cpyaddr( &skb->mac.ethernet->h_dest[0], laddr );
}
} else {
// is this a packet to the local host from MOL?
-   if( !addrcmp((char*)ð_hdr(skb)->h_source, v->fake_addr) )
+   if( !addrcmp((char*)&skb->mac.ethernet->h_source, v->fake_addr) 
)
goto drop;

if( !multicast ) {
// if the packet is not meant for this host, discard it
-   if( addrcmp((char*)ð_hdr(skb)->h_dest, laddr) )
+   if( addrcmp((char*)&skb->mac.ethernet->h_dest, laddr) )
goto drop;
 
// filter IP-traffic
@@ -215,7 +215,7 @@ sheep_net_receiver( struct sk_buff *skb,
skb = skb2;
 
if( !multicast )
-   cpyaddr( ð_hdr(skb)->h_dest[0], v->fake_addr );
+   cpyaddr( &skb->mac.ethernet->h_dest[0], v->fake_addr );
 
// We also want the Ethernet header
skb_push( skb, skb->data - skb->mac.raw );
@@ -396,7 +396,7 @@ sheep_net_writev( struct file *f, const 
skb->mac.raw = skb->data;
 
// Base the IP-filter on the IP address of outgoing ARPs
-   if( eth_hdr(skb)->h_proto == htons(ETH_P_ARP) ) {
+   if( skb->mac.ethernet->h_proto == htons(ETH_P_ARP) ) {
char *s = &skb->data[14+14];/* source IP-address */
int n[4];
if( *(long*)s != v->ipfilter ) {


Re: PBG4 2.6.9 sound module config

2004-10-27 Thread Luca Bigliardi - shammash
On Mon, Oct 25, 2004 at 08:11 PM, Guido Guenther wrote:

> It reverts some of the recent changes which broke volume adjustment on
> my pbook.

hi,
i've got an ibook 2.2 with PowerMac Snapper (Dev 24) and i'm getting nearly
the same problem. I'm going to try your patch, however i'd like to know if
anyone has encountered this kernel oops:

Oops: kernel access of bad area, sig: 11 [#1]
NIP: 0148 LR: C018FED8 SP: E16AFDB0 REGS: e16afd00 TRAP: 0400Not tainted
MSR: 40009032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
TASK = e4f76440[3104] 'gtkpbbuttons' THREAD: e16ae000Last syscall: 4 
GPR00: 014B E16AFDB0 E4F76440 E9035000 0BE7   E907A000 
GPR08: E9035000 E907A000 0001  0001 10022714 1001 100C 
GPR16:  0F8CD420 4002 0019 014B 0200 E39D3280 E39D3420 
GPR24:  0BE8   E609F80C E609F7F0 E609F780 0200 
NIP [0148] 0x148
LR [c018fed8] rate_transfer+0x80/0x88
Call trace:
 [c018fed8] rate_transfer+0x80/0x88
 [c018cdb0] snd_pcm_plug_write_transfer+0xd4/0x14c
 [c0187df4] snd_pcm_oss_write2+0xb0/0x128
 [c0188048] snd_pcm_oss_write1+0x1dc/0x20c
 [c018a860] snd_pcm_oss_write+0x64/0xb4
 [c0056ffc] vfs_write+0xdc/0x128
 [c005712c] sys_write+0x50/0x94
 [c0005b40] ret_from_syscall+0x0/0x44


I see this oops when gtkpbbuttons tries to "beep" (e.g. low battery alarm);
of course after this everything alsa/audio-related doesn't work.

TIA
Luca

-- 
BOFH excuse #372:
Forced to support NT servers; sysadmins quit.

Linux Registered User # 286841