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 <[email protected]> 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 : [email protected] > Unsubscribe : https://launchpad.net/~sony-vaio-z-series > More help : https://help.launchpad.net/ListHelp > >
_______________________________________________ Mailing list: https://launchpad.net/~sony-vaio-z-series Post to : [email protected] Unsubscribe : https://launchpad.net/~sony-vaio-z-series More help : https://help.launchpad.net/ListHelp

