Re: new appletouch alpha version

2007-06-28 Thread Michael Hanselmann
On Thu, Jun 28, 2007 at 01:28:38PM +0200, Johannes Berg wrote: The modifier bit injection sucks. Remove it completely and figure out how to use inputd. Just one thing here: Synaptics isn't compatible with inputd because Synaptics doesn't do input device grabbing as it should. At least when I

Re: new appletouch alpha version

2007-06-28 Thread Michael Hanselmann
On Thu, Jun 28, 2007 at 01:36:00PM +0200, Johannes Berg wrote: Cute. That sucks. What do you mean with doesn't do input device grabbing as it should though? For me it grabs the input device when you go into X and releases it when you switch to a console or such. It doesn't use the return value

Re: new appletouch alpha version

2007-06-28 Thread Michael Hanselmann
On Thu, Jun 28, 2007 at 01:54:43PM +0200, Johannes Berg wrote: Ah. That should be easy to fix though. Feel free to do it and send patches. :-) Greets, Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

Re: new appletouch alpha version

2007-06-28 Thread Michael Hanselmann
On Thu, Jun 28, 2007 at 01:14:46PM +0200, Soeren Sonnenburg wrote: +#define ATP_YFACT 43 // 86 +#define palm_left_nomi palm_region[0] // default: 4 C++/C99 comments aren't allowed according to Documentation/CodingStyle. Next time, please put the patch inline. Greets, Michael -- To

Re: function key usage switched

2007-06-16 Thread Michael Hanselmann
On Sat, Jun 16, 2007 at 06:28:21PM +0200, Elimar Riesebieter wrote: File a bug against pbbuttonsd then. #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,20) #define PATH_FNMODE /sys/module/hid/parameters/pb_fnmode #else #define PATH_FNMODE /sys/module/usbhid/parameters/pb_fnmode … which would

Re: function key usage switched

2007-06-16 Thread Michael Hanselmann
On Sat, Jun 16, 2007 at 07:18:17PM +0200, Michael Hanselmann wrote: if (stat(/sys/module/usbhid/parameters/pb_fnmode, st) == 0) { […] fd = open(path, O_RDONLY); I just noticed the race condition there. A better way: fd = open(/sys/module/usbhid/parameters/pb_fnmode, O_RDWR); if (fd 0

Re: no way to boot from mobile firewire hdd?

2007-01-05 Thread Michael Hanselmann
Hello On Thu, Jan 04, 2007 at 01:33:28PM +0900, 2g wrote: then there's no way to boot debain from this external HDD? even if i could nothing like yaboot oriented dual(choosing with only one key) thing available? http://hansmi.ch/articles/boot-linux-from-firewire If you search the web,

Re: iMac G5 Bugs and new wiki

2006-12-11 Thread Michael Hanselmann
Hello Torrance On Mon, Dec 11, 2006 at 12:48:25PM +1300, Torrance wrote: But now I am a little confused: to get a brighter screen, is the issue with the drivers/video/nvidia/nv_backlight.c property, or with the bl_curve property? It's the #define in nv_backlight.c. If its the former, then

Re: iBook and batteries

2006-08-26 Thread Michael Hanselmann
Hi Jack On Sat, Aug 26, 2006 at 06:34:00AM +, Jack Malmostoso wrote: I have now found out that only 69% of my battery is still alive after *only* 167 charge cycles. Have you tried to recalibrate the battery? http://docs.info.apple.com/article.html?artnum=86284 Greets, Michael -- Gentoo

Re: Powerbook5,8: FN key mode

2006-01-22 Thread Michael Hanselmann
Hello Matthias On Sat, Jan 21, 2006 at 11:52:12PM +0100, Matthias Grimm wrote: It would be nice if you could test this feature and tell me the results. It didn't work from the start, but the patch below fixes it. After applying the patch, it works. Btw.: The illumination patch I wrote was

Re: Powerbook5,8: function keys not working

2006-01-20 Thread Michael Hanselmann
Hello Mich On Fri, Jan 20, 2006 at 12:57:04AM +0100, Mich Lanners wrote: Are you sure the patch I'm using already does that? I use the older one (patchwork.ozlabs.org/linuxppc/patch?id=3856). Please try 2.6.16-rc1. It has the latest patch. What is the KEY_FN code? 0x1d0? Yes. What is the

Re: Powerbook5,8: function keys not working

2006-01-20 Thread Michael Hanselmann
Hello Matthias On Fri, Jan 20, 2006 at 07:30:12PM +0100, Matthias Grimm wrote: Where do you set pb_mode=1? Is it a module parameter? Yes. You can change it during runtime trough /sys/modules/usbhid/parameters/pb_fnmode (that's what pbbuttonsd might have to do). Greets, Michael -- Gentoo

Re: Powerbook5,8: function keys not working

2006-01-19 Thread Michael Hanselmann
Hello Mich On Fri, Jan 20, 2006 at 12:06:31AM +0100, Mich Lanners wrote: Fn + cursor keys do produce the expected acion, i.e page up/down and home/end. Okay, so you don't have a keyboard the patch/driver doesn't know about. In default config, Fn+Fx (eg. Fn+F1) do produce different keycodes.

Re: Keyboard-Layout

2006-01-13 Thread Michael Hanselmann
Hello On Fri, Jan 13, 2006 at 10:52:13AM +0100, Keywan Najafi Tonekaboni wrote: my iBook was in repair and they exchanged the mainboard. Now the keys for ^/° and / are switched. On OS X they keys works normal. Any idea how to fix this? You can fix it using this Xmodmap: keycode 49 = less

Re: quickcam express and ppc

2006-01-05 Thread Michael Hanselmann
Hello On Wed, Jan 04, 2006 at 11:30:46PM +0100, Antonio-Miguel Corbi Bellot wrote: Under powerpc the module 'quickcam' gets built and modprobed ok (kernel has support for v4L), the camera is recognized by the kernel and by programs like xawtv and gnomemeeting, but... xawtv shows a black screen

Re: ALSA driver for the PowerBook5,8?

2006-01-02 Thread Michael Hanselmann
Hello Andy On Tue, Jan 03, 2006 at 10:17:00AM +1100, Andy Botting wrote: Has anybody heard anything about an ALSA driver for the new 15 PowerBooks? There's none yet. Benjamin Herrenschmidt is planning to write one. Greets, Michael -- Gentoo Linux Developer using m0n0wall | http://hansmi.ch/

Re: PowerBook5,8 - TrackPad update

2005-12-09 Thread Michael Hanselmann
]) + * Copyright (C) 2005 Michael Hanselmann ([EMAIL PROTECTED]) * * Thanks to Alex Harper [EMAIL PROTECTED] for his inputs. * + * Nov 2005 - Parag Warudkar + * o Added ability to export data via relayfs + * + * Nov 2005 - Michael Hanselmann + * o Compile relayfs support only if enabled

Re: PowerBook5,8 - TrackPad update

2005-12-06 Thread Michael Hanselmann
Hello Andy On Tue, Dec 06, 2005 at 02:38:36PM +1100, Andy Botting wrote: I managed to get this working on my 15 PowerBook, but the USB id for my Thanks for testing. Keyboard/Trackpad is 0x0214 as opposed to the 0x0215 you have in the patch. Are you going to add 0x0214 (and any others?) to

Re: PowerBook5,8 - TrackPad update

2005-12-04 Thread Michael Hanselmann
([EMAIL PROTECTED]) * Copyright (C) 2005 Frank Arnold ([EMAIL PROTECTED]) * Copyright (C) 2005 Peter Osterlund ([EMAIL PROTECTED]) + * Copyright (C) 2005 Parag Warudkar ([EMAIL PROTECTED]) + * Copyright (C) 2005 Michael Hanselmann ([EMAIL PROTECTED]) * * Thanks to Alex Harper

Re: kernel ppc 2.6 with root over usb harddisk , root=/dev/sda2

2005-12-02 Thread Michael Hanselmann
Hello Sven booting from an usb device needs an initrd with an extra delay to let the usb disk be mounted before trying to continue. There's a rootdelay=nn option since 2.6.12 or .13. Therefore, an initrd is no longer required. This works for sure with IEEE1394 (Firewire) disks, but should also

Re: PowerBook5,8 - TrackPad update

2005-11-30 Thread Michael Hanselmann
([EMAIL PROTECTED]) + * Copyright (C) 2005 Parag Warudkar ([EMAIL PROTECTED]) + * Copyright (C) 2005 Michael hanselmann ([EMAIL PROTECTED]) * * Thanks to Alex Harper [EMAIL PROTECTED] for his inputs. * + * Nov 2005 - Parag Warudkar + * o Added ability to export data via relayfs

Re: PowerBook5,8 - TrackPad update

2005-11-30 Thread Michael Hanselmann
On Wed, Nov 30, 2005 at 11:39:17PM +0100, Michael Hanselmann wrote: The patch is attached for easier use. There was a mistake in it due to which the mouse button wouldn't work. Fixed in the now attached patch. --- linux-2.6.15-rc3/drivers/usb/input/appletouch.c.orig2005-11-29 21:30

Re: PowerBook5,8 - TrackPad update

2005-11-28 Thread Michael Hanselmann
Hello Parag Attached is the code which takes care of above 3 - tested but it should be considered half baked for obvious reasons and I hacked your code some more to make it work on my October 2005 PowerBook 1.67 GHz. The product ID I have, 0x0215, was in none of the available drivers and the

Re: PowerBook5,8 - TrackPad update

2005-11-28 Thread Michael Hanselmann
Hello Parag On Tue, Nov 29, 2005 at 01:11:00AM -0500, Parag Warudkar wrote: Is yours the 15 model or the 17? Mine is 15 and the product id is 0x0214. It's the 15 one. I haven't looked at your changes completely yet but are you saying it works? Meaning mouse moves properly? The mouse