← Back to team overview

sony-vaio-z-series team mailing list archive

Re: FN-F5 not working with sony-laptop v0.9np7 on 2.6.35.4 / intel brightness

 


Dear Mr. Preining,

It is really strange...

This appears in syslog when I press Fn+F6:
Sep 17 18:48:41 [acpid] received input layer event "button/fnf6 FNF6 00000080 00000000"_
Sep 17 18:48:41 [acpid] rule from /etc/acpi/events/default matched_
Sep 17 18:48:41 [acpid] executing action "/etc/acpi/default.sh button/fnf6 FNF6 00000080 00000000"_ Sep 17 18:48:41 [kernel] [30248.964759] sony-laptop: sony_nc_notify, event: 0x11 Sep 17 18:48:41 [kernel] [30248.964764] sony-laptop: acpi_bus_generate_proc_event({sony/hotkey,SNC}, 1, 11);
Sep 17 18:48:41 [acpid] action exited with status 1_
Sep 17 18:48:41 [acpid] 1 total rule matched_
Sep 17 18:48:41 [acpid] completed input layer event "button/fnf6 FNF6 00000080 00000000"_ Sep 17 18:48:41 [kernel] [30249.031244] sony-laptop: sony_nc_notify, event: 0x3b Sep 17 18:48:41 [kernel] [30249.031249] sony-laptop: acpi_bus_generate_proc_event({sony/hotkey,SNC}, 1, 3b);


/1st/:
And if I "rmmod sony_laptop" and press again, I see NOTHING - so the "button/fnf6" acpi event lines seem to be related to the "sony-laptop" module!?


/2nd/:
The second "sony-laptop: acpi_bus_generate_proc_event(..." line comes from my modifications (e.g. to make sure the right module is loaded ;).

There I print the:
	->pnp.device_class	== "sony/hotkey"
and the:
	->pnp.bus_id		== "SNC"
So the function acpi_bus_generate_proc_event4 from /usr/src/linux/drivers/acpi/bus.c gets called... but seemingly my acpid never receives any "sony/hotkey" events. Why could this be?


Please let me know if you need anything else.

Thanks a lot!

Knuth

---

On 17/09/10 17:32, João Oliveirinha wrote:
I am having the same problem.

Actualy if I do "restart acpid" then acpi_listen will detect both keys:
sony/hotkey SNC 00000001 00000010
sony/hotkey SNC 00000001 0000003b
sony/hotkey SNC 00000001 00000011
sony/hotkey SNC 00000001 0000003b

but if I do acpid -l and then acpi_listen it will only detect one key
and with different codes

sony/hotkey SNC 00000001 00000010
sony/hotkey SNC 00000001 0000003b

I am running Ubuntu maverick.

Anyway .. I made a scipt similar to Tobias (my acpi file for brightness
has a different path.. /proc/acpi/video/OVGA/LCD/brightness) but the
system never calls the file.. maybe because the wrong event code is send.

Any update on this would be appreciated.
Thanks.

On Fri, Sep 17, 2010 at 3:19 PM, K. Posern <quickhelp@xxxxxxxxx
<mailto:quickhelp@xxxxxxxxx>> wrote:

    Thanks!

    But any idea why:


     >> When pressing FN+F6 I see this in the acpid log.
     >> But FN+F5 does nothing.

    So I turned on event logging for my acpid (with -l) and in syslog I
    only see fnf6, but /not/ fnf5 (if pressed)?!

    Thanks again!!

    Knuth

    ---


    On 17/09/10 01:39, Tobias Oetiker wrote:

        Hi Knuth

        I did the following:

        cat /etc/acpi/events/sony-brightness-up
        event=sony/hotkey SNC 00000001 00000011
        action=/etc/acpi/sony-brightness.sh up

        cat /etc/acpi/events/sony-brightness-down
        event=sony/hotkey SNC 00000001 00000010
        action=/etc/acpi/sony-brightness.sh down

        cat /etc/acpi/sony-brightness.sh
        #!/usr/bin/perl -w
        use strict;
        open (my $x, "</proc/acpi/video/GFX0/LCD/brightness");
        my @levels;
        my $level;
        while(<$x>){
            chomp;
            s/^levels:\s+//&&  do {
                 @levels = split /\s+/;
            };
            s/^current:\s+//&&  do {
                 $level = $_;
            };
        }
        close $x;
        for (my $i=0;$i<= $#levels; $i++){
             if ($level == $levels[$i]){
                 my $val;
                 if ($ARGV[0] eq 'up'){
                     $i++
                 }
                 else {
                     $i--
                 }
                 if ($i>= 0 and $i<= $#levels){
                    open (my $y, ">/proc/acpi/video/GFX0/LCD/brightness");
                    print $y $levels[$i];
                    close $y;
                 }
                 last;
             }
        }

        Yesterday K. Posern wrote:

            Hi,

            I am sure I miss something obvious here, but don't know what:

            I keep reading that the Brightness with Intel works out of
            the box.
            But not for me.

            When pressing FN+F6 I see this in the acpid log.
            But FN+F5 does nothing.

            Also: What program will actually increase / decrease the
            intel brightness?

            The sony laptop module only passes on / generates the acpi
            button events, or?
            -->
            What should happen to increase decrease the brightness?


            Thanks!!

            Knuth






    _______________________________________________
    Mailing list: https://launchpad.net/~sony-vaio-z-series
    Post to     : sony-vaio-z-series@xxxxxxxxxxxxxxxxxxx
    <mailto:sony-vaio-z-series@xxxxxxxxxxxxxxxxxxx>
    Unsubscribe : https://launchpad.net/~sony-vaio-z-series
    More help   : https://help.launchpad.net/ListHelp




Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Follow ups

References