Re: function key usage switched

2007-06-26 Thread Elimar Riesebieter
retitle 429267 "usbhid module parameter moved, please update to version 0.8.0" severity 429267 important -- On Mon, 25 Jun 2007 the mental interface of Matthias Grimm told: > On Sat, 16 Jun 2007 19:37:14 +0200 > "Bin Zhang" <[EMAIL PROTECTED]> wrote: > > > > > You are right. > > > > In pbbutto

Re: function key usage switched

2007-06-25 Thread Matthias Grimm
On Sat, 16 Jun 2007 19:37:14 +0200 "Bin Zhang" <[EMAIL PROTECTED]> wrote: > > > You are right. > > > In pbbuttonsd-0.7.9's src/module_pmac, > > > #define PATH_FNMODE "/sys/module/usbhid/parameters/pb_fnmode" > > > > > > It should be /sys/module/hid/parameters/pb_fnmode for 2.6.21. > >

Re: function key usage switched

2007-06-16 Thread Bin Zhang
On 6/16/07, Elimar Riesebieter <[EMAIL PROTECTED]> wrote: On Sat, 16 Jun 2007 the mental interface of Bin Zhang told: > On 6/16/07, Johannes Berg <[EMAIL PROTECTED]> wrote: [...] >> I see it has already been solved in the thread, but just wanted to chime >> in that the problem is that the module

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

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

Re: function key usage switched

2007-06-16 Thread Elimar Riesebieter
On Sat, 16 Jun 2007 the mental interface of Bin Zhang told: > On 6/16/07, Johannes Berg <[EMAIL PROTECTED]> wrote: [...] >> I see it has already been solved in the thread, but just wanted to chime >> in that the problem is that the module parameter moved to a new module, >> hence some tools are no

Re: function key usage switched

2007-06-16 Thread Bin Zhang
On 6/16/07, Johannes Berg <[EMAIL PROTECTED]> wrote: On Fri, 2007-06-15 at 20:27 +0200, Gerfried Fuchs wrote: > I recently update from 2.6.18-4-powerpc to 2.6.21-1-powerpc and > everything worked pretty well -- except for the function keys. When I > press f1 and f2 it switches the brightness o

Re: function key usage switched

2007-06-16 Thread Johannes Berg
On Fri, 2007-06-15 at 20:27 +0200, Gerfried Fuchs wrote: > I recently update from 2.6.18-4-powerpc to 2.6.21-1-powerpc and > everything worked pretty well -- except for the function keys. When I > press f1 and f2 it switches the brightness of my screen, f3 to f5 > address sound value, and so on.

Re: function key usage switched

2007-06-16 Thread Bin Zhang
On 6/16/07, Gerfried Fuchs <[EMAIL PROTECTED]> wrote: On Fri, Jun 15, 2007 at 11:50:29PM +0200, Bin Zhang wrote: > On 6/15/07, Elimar Riesebieter <[EMAIL PROTECTED]> wrote: > >I am booting with append="hid.pb_fnmode=2" I did put that into /etc/yaboot.conf - am I expected to call anything after

Re: function key usage switched

2007-06-16 Thread Marko Kaiser
Hello Rhonda, if you change the yaboot.conf you have to invoke ybin -v afterwards. Kind regards, Marko Kaiser -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: function key usage switched

2007-06-16 Thread Gerfried Fuchs
On Fri, Jun 15, 2007 at 11:50:29PM +0200, Bin Zhang wrote: > On 6/15/07, Elimar Riesebieter <[EMAIL PROTECTED]> wrote: > >I am booting with append="hid.pb_fnmode=2" I did put that into /etc/yaboot.conf - am I expected to call anything after it? Never changed anything in there so am not familar w

Re: function key usage switched

2007-06-15 Thread Elimar Riesebieter
On Fri, 15 Jun 2007 the mental interface of Bin Zhang told: > On 6/15/07, Elimar Riesebieter <[EMAIL PROTECTED]> wrote: [...] >> I am booting with append="hid.pb_fnmode=2" >> > > I use key F1 as real F1. > But I have 1 in my /sys/module/hid/parameters/pb_fnmode, not 2. > Why ? Hmm, $ egrep -r "hi

Re: function key usage switched

2007-06-15 Thread Bin Zhang
On 6/15/07, Elimar Riesebieter <[EMAIL PROTECTED]> wrote: On Fri, 15 Jun 2007 the mental interface of Bin Zhang told: > On 6/15/07, Gerfried Fuchs <[EMAIL PROTECTED]> wrote: >> Hi! >> >> I recently update from 2.6.18-4-powerpc to 2.6.21-1-powerpc and >> everything worked pretty well --

Re: function key usage switched

2007-06-15 Thread Gerfried Fuchs
On Fri, Jun 15, 2007 at 09:31:21PM +0200, Bin Zhang wrote: > On 6/15/07, Gerfried Fuchs <[EMAIL PROTECTED]> wrote: > > With 2.6.18 this was the other way round: pressing f1 got through as a > >real f1, and fn-f1 changed the brightness. > > pbbuttonsd can set this for you. > In /etc/pbbuttonsd.conf

Re: function key usage switched

2007-06-15 Thread Elimar Riesebieter
On Fri, 15 Jun 2007 the mental interface of Bin Zhang told: > On 6/15/07, Gerfried Fuchs <[EMAIL PROTECTED]> wrote: >> Hi! >> >> I recently update from 2.6.18-4-powerpc to 2.6.21-1-powerpc and >> everything worked pretty well -- except for the function keys. When I >> press f1 and f2 it

Re: function key usage switched

2007-06-15 Thread Bin Zhang
On 6/15/07, Gerfried Fuchs <[EMAIL PROTECTED]> wrote: Hi! I recently update from 2.6.18-4-powerpc to 2.6.21-1-powerpc and everything worked pretty well -- except for the function keys. When I press f1 and f2 it switches the brightness of my screen, f3 to f5 address sound value, and so

function key usage switched

2007-06-15 Thread Gerfried Fuchs
Hi! I recently update from 2.6.18-4-powerpc to 2.6.21-1-powerpc and everything worked pretty well -- except for the function keys. When I press f1 and f2 it switches the brightness of my screen, f3 to f5 address sound value, and so on. If I want to use a real f1 I now have to press fn-f