* How to use fujitsu-laptop for keyboard lights?
@ 2009-04-16 10:52 Hannu Vuolasaho
2009-04-16 12:30 ` Tony Vroon
0 siblings, 1 reply; 4+ messages in thread
From: Hannu Vuolasaho @ 2009-04-16 10:52 UTC (permalink / raw)
To: linux-acpi
Hello!
I have been running 2.6.25 with Jules' patch in Loox u50x/v and now I
noticed that 2.6.29.1 had it implemented and the architechture is
different. Now comes the stupid part. How does it work? How to togle
lights? Or where this information is hidden?
Hannu Vuolasaho
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to use fujitsu-laptop for keyboard lights?
2009-04-16 10:52 How to use fujitsu-laptop for keyboard lights? Hannu Vuolasaho
@ 2009-04-16 12:30 ` Tony Vroon
[not found] ` <Pine.LNX.4.53.0904170329110.32703@hyvin.nukku.net>
0 siblings, 1 reply; 4+ messages in thread
From: Tony Vroon @ 2009-04-16 12:30 UTC (permalink / raw)
To: Hannu Vuolasaho; +Cc: linux-acpi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 16 Apr 2009 13:52:50 +0300 (EEST)
Hannu Vuolasaho <vuokko@nukku.net> wrote:
> I have been running 2.6.25 with Jules' patch in Loox u50x/v and now I
> noticed that 2.6.29.1 had it implemented and the architechture is
> different. Now comes the stupid part. How does it work? How to togle
> lights? Or where this information is hidden?
You need to enable support for the LED class in the linux kernel:
CONFIG_LEDS_CLASS=y
Once you have done that, the fujitsu-laptop driver will register a LED
that you can toggle on & off. If this does not work, could you load the
driver with full debugging:
modprobe fujitsu-laptop debug=0xffff
Also, please attach the following file to your e-mail:
/sys/firmware/acpi/tables/DSDT
(You can decompile it using iasl -d)
Obviously I hope it'll Just Work(TM) for you, but if not, I can
probably help :)
> Hannu Vuolasaho
Regards,
Tony V.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
iEYEARECAAYFAknnJQYACgkQp5vW4rUFj5p8UgCeJ0grFdoQ45cYf1mmjdIZ1Xbx
UnMAnRqAUZ5rVSmNtP/6oLA0cued6FAX
=bvYc
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to use fujitsu-laptop for keyboard lights?
[not found] ` <Pine.LNX.4.53.0904170329110.32703@hyvin.nukku.net>
@ 2009-04-17 12:30 ` Tony Vroon
2009-04-17 15:05 ` Hannu Vuolasaho
0 siblings, 1 reply; 4+ messages in thread
From: Tony Vroon @ 2009-04-17 12:30 UTC (permalink / raw)
To: Hannu Vuolasaho; +Cc: linux-acpi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 17 Apr 2009 14:59:37 +0300 (EEST)
Hannu Vuolasaho <vuokko@nukku.net> wrote:
> Well it was a module, but it's there. lsmod says
> it's needed sdhci and ath5k but not fujitsu. Apparently it needs to be
> compiled in. Can fujitsu-laptop support it as module?
Provided you load it in the right order, yes. The led class will need
to be loaded *before* fujitsu-laptop.
> Now I have /sys/devices/platform/leds/fujitsu\:\:kblamps/brightness
> which doesn't bring the lights on when I say echo 255 or anything
> else. I try to do it wrong I believe.
It is odd that you get duplicate LED devices. It does appear to be a
phantom device.
> Instead I can get them on saying
> echo 255>/sys/class/leds/fujitsu\:\:kblamps/brightness.
Especially as that one works.
> part of kernel.log where I try to use platform brightness with no
> success and dsdt.dsl if it helps to make this driver better. I didn't
> get any log when using class brightness.
So you get no log entries for the "wrong" platform device, but you do
get entries for the second, working device? (It wouldn't make sense to
me if the LED state changes without log entries being made, as it takes
a FUNC callback to do it)
> And this machine is F-S biblo loox u50x/v Small Japanese netbook. (My
> first portable computer. Fits in pocket.)
The DSDT looks good, the keyboard LED is presented as the driver
expects. Seems very similar to the U810.
Regards,
Tony V.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
iEYEARECAAYFAknodk8ACgkQp5vW4rUFj5qrqACfWqPc2PbiobIpxSa+i1hn+AdB
XCIAnR5Y1q76ajhBGu7WIyff9oVBTMrU
=vydg
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to use fujitsu-laptop for keyboard lights?
2009-04-17 12:30 ` Tony Vroon
@ 2009-04-17 15:05 ` Hannu Vuolasaho
0 siblings, 0 replies; 4+ messages in thread
From: Hannu Vuolasaho @ 2009-04-17 15:05 UTC (permalink / raw)
To: Tony Vroon; +Cc: linux-acpi
On Fri, 17 Apr 2009, Tony Vroon wrote:
> Provided you load it in the right order, yes. The led class will need
> to be loaded *before* fujitsu-laptop.
No. That's not working. Since I first tried option index=2 as in alsa
drivers to put /etc/modprobe.conf which make fujitsu-laptop to fail and
after that I edited modprobe.conf again and loaded fujitsu-laptop. Result
was no kblamps anywhere.
Also led_class wasn't used by fujitsu-laptop. Second try was put in
/etc/rc.conf MODULES=(led_class fujitsu_laptop) same thing. No kblamps
anywhere.
I even blacklisted fujitsu-laptop and manually loaded it and even then
lights didn't work. seems that I can't get fujitsu-laptop to work with
led-class module.
Stupid to ask but because led-class is used with ath5k and sdhci, can
fujitsu-laptop still register its led? I believe it would be stupid if I
couldn't plug my led blinker USB-dongle and get led device for it.
>
> > Now I have /sys/devices/platform/leds/fujitsu\:\:kblamps/brightness
> > which doesn't bring the lights on when I say echo 255 or anything
> > else. I try to do it wrong I believe.
>
> It is odd that you get duplicate LED devices. It does appear to be a
> phantom device.
>
> > Instead I can get them on saying
> > echo 255>/sys/class/leds/fujitsu\:\:kblamps/brightness.
>
> Especially as that one works.
Well not any more. I wondered why I was'n able to put lights on. It
appears that echo 255 > works echo 255>doesn't. So I knew it I was doing
it wrong :) Both devices work. They are just duplicates.
> So you get no log entries for the "wrong" platform device, but you do
> get entries for the second, working device? (It wouldn't make sense to
> me if the LED state changes without log entries being made, as it takes
> a FUNC callback to do it)
Now they both work and create log entries as I know how to say echo :)
I propably messed with my echo dmesg echo commands. Sorry. I'm not
perfect.
Is it possible to put kblamp in heartbeat mode? Kind of cool idea if
lights would go off-> HB-> on ->HB -> off by pressing / quickkey
>
> > And this machine is F-S biblo loox u50x/v Small Japanese netbook. (My
> > first portable computer. Fits in pocket.)
>
> The DSDT looks good, the keyboard LED is presented as the driver
> expects. Seems very similar to the U810.
Yes. instead of having webcam I have Japanese digital TV receiver and
weird keyboard.
Hannu Vuolasaho
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-17 15:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16 10:52 How to use fujitsu-laptop for keyboard lights? Hannu Vuolasaho
2009-04-16 12:30 ` Tony Vroon
[not found] ` <Pine.LNX.4.53.0904170329110.32703@hyvin.nukku.net>
2009-04-17 12:30 ` Tony Vroon
2009-04-17 15:05 ` Hannu Vuolasaho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox