You are viewing hughsient

Technical Blog of Richard Hughes - My day off and kernel hacking.

Richard Hughes
Date: 2007-05-28 17:21
Subject: My day off and kernel hacking.
Security: Public
I've just posted a patch to fix the toshiba_acpi kernel driver to emit INPUT events when the fn hotkeys are pressed. This means that the hardware works out of the box, and integrates nicely with KDE and GNOME without using oddball uinput-injecting system daemons such as FnFX to do the userspace polling. This also obsoletes my hal addon to do basically the same thing.

This is part of the "Unf*ck my keyboard" initiative, and allows us to kill lots of userspace bodges aquired over the years.

Hopefully the patch will get merged in the next merge window, and then that will be Toshiba sorted. My initial IBM patch should be merged soon, and then I can work on the NVRAM mixer interactions with thinkpad_acpi once again. I think Lennart is working on ASUS, and so that will be a good few laptops "just working" sometime soon.
Post A Comment | 5 Comments | Add to Memories | Share | Link



Jeff Bailey
User: jbailey
Date: 2007-05-28 19:28 (UTC)
Subject: (no subject)
I thought Daniel Silverstone did that a year or so ago? I remember that was when the toshiba buttons on a bunch of my laptops started working.
Reply | Thread | Link



Richard Hughes
User: hughsient
Date: 2007-05-28 19:34 (UTC)
Subject: (no subject)
Yes, he did the initial patch - but his approach emmitted ACPI events rather than INPUT events - and so had to be translated using HAL or some other daemon. This is how ubuntu currently do it, using hotkeys.

To be fair to Daniel, at the time he wrote the patch the ACPI guys didn't want to use INPUT, so he did the best he could.
Reply | Parent | Thread | Link



Jeff Bailey
User: jbailey
Date: 2007-05-28 19:41 (UTC)
Subject: (no subject)
Ah cool. It would've been sad if that work had gotten lost and had to be reimplemented. My current surfboard^Wlaptop is a Toshiba, so thanks for this! =)
Reply | Parent | Thread | Link



không nên đùa bỡn với tình yêu
User: swix
Date: 2007-06-10 08:32 (UTC)
Subject: Question
Hello, Richard. Thank you for your time in dealing with that toshiba_acpi. Great job, really. I got a little question here. Do you know, by chance, if your patch can affect Toshiba Satellite A100-712...?
I've been trying to make toshiba_acpi work in my system, but never succeeded with current F7 kernel (2.6.21-1.3194.fc7).

# modprobe toshiba_acpi
FATAL: Error inserting toshiba_acpi (/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/acpi/toshiba_acpi.ko): No such device

Presumably, everything is supposed to work well since this laptop is neither really old nor brand new one... Thank you in advance for your reply.
Reply | Thread | Link



Richard Hughes
User: hughsient
Date: 2007-06-11 09:20 (UTC)
Subject: Re: Question
Have you tried using the out-of-tree omnibook driver?
Reply | Parent | Thread | Link



browse
my journal
April 2008