Bug #20

hotkeys, ubuntu 9.10, model H80CH

Added by Anonymous about 2 years ago. Updated 10 months ago.

Status:Closed Start date:01/28/2010
Priority:Normal Due date:
Assignee:Corentin Chary % Done:

0%

Category:asus-laptop
Target version:-

Description

Hello,

First and foremost, thanks for the wonderful work. I've been toiling with hotkeys (Fn+FX combinations) with this model, which is branded in Brazil Philco PHN 10103. I'm using the stock asus_laptop driver bundled with Ubuntu Netbook Remix 9.10. Only Fn+F1 is recognized as code 0x8a. Here's the information requested by http://dev.iksaif.net/projects/acpi4asus/wiki/Asus-laptop_Support:

  1. dmesg | grep asus
    [ 15.148154] asus_laptop: Asus Laptop Support version 0.42
    [ 15.212387] asus_laptop: H80CH model detected
  1. cat /sys/devices/platform/asus_laptop/infos
    Asus Laptop Support 0.42
    Model reference : H80CH
    SFUN value : 0x0007
    DSDT length : 17978
    DSDT checksum : 237
    DSDT revision : 1
    OEM id : Pegaco
    OEM table id : H80CH
    OEM revision : 0x1
    ASL comp vendor id : MSFT
    ASL comp revision : 0x3000001

There are no acpi events generated by the Fn+FX key combinations.

dsdt.gz (6.9 kB) Anonymous, 01/28/2010 11:14 pm


Add

CC Addresses

  • none

History

Updated by Corentin Chary about 2 years ago

Comment

Hi,
Thanks for the report.
What tool did you use to check acpi events ? acpi_listen ? There is no output even for Fn+F1 ? Fn+F1 is the "Sleep" key ?

Could you try that git branch ? http://git.iksaif.net/?p=acpi4asus.git;a=shortlog;h=refs/heads/asus-laptop-refactor
It may fix some problems, because your model define the ATK device as SB.HOTK, and on all other models it's defined as SB.ATKD.

Updated by Corentin Chary almost 2 years ago

  • Status changed from New to Feedback

Updated by Luis Fernando Planella Gonzalez almost 2 years ago

Comment

Corentin Chary wrote:

Hi,
Thanks for the report.
What tool did you use to check acpi events ? acpi_listen ? There is no output even for Fn+F1 ? Fn+F1 is the "Sleep" key ?

Could you try that git branch ? http://git.iksaif.net/?p=acpi4asus.git;a=shortlog;h=refs/heads/asus-laptop-refactor
It may fix some problems, because your model define the ATK device as SB.HOTK, and on all other models it's defined as SB.ATKD.

I have the same netbook, and I'm also interested to help.
I've used acpi_listen and had no output for any Fn+F1-F12. And yes, Fn+F1 is sleep. However, acpi_listen reports constantly:
thermal_zone TZ0 00000081 00000000
thermal_zone TZ0 00000081 00000000
thermal_zone TZ0 00000081 00000000
...
Don't know if this is result of something being misunderstood by the kernel or a problem in the netbook?

Another thing: I'm using ubuntu lucid beta, and I'm not so self-confident to compile the module.
Here's what I did:
git clone git://git.iksaif.net/acpi4asus.git
make menuconfig (just saved and exited)
make

However, I had no idea that a whole kernel is being compiled! So, sorry, I don't know exactly what to do.
Any pointers?

Updated by Corentin Chary almost 2 years ago

Comment

Luis Fernando Planella Gonzalez wrote:

Corentin Chary wrote:

Hi,
Thanks for the report.
What tool did you use to check acpi events ? acpi_listen ? There is no output even for Fn+F1 ? Fn+F1 is the "Sleep" key ?

Could you try that git branch ? http://git.iksaif.net/?p=acpi4asus.git;a=shortlog;h=refs/heads/asus-laptop-refactor
It may fix some problems, because your model define the ATK device as SB.HOTK, and on all other models it's defined as SB.ATKD.

I have the same netbook, and I'm also interested to help.
I've used acpi_listen and had no output for any Fn+F1-F12. And yes, Fn+F1 is sleep. However, acpi_listen reports constantly:
thermal_zone TZ0 00000081 00000000
thermal_zone TZ0 00000081 00000000
thermal_zone TZ0 00000081 00000000
...
Don't know if this is result of something being misunderstood by the kernel or a problem in the netbook?

Another thing: I'm using ubuntu lucid beta, and I'm not so self-confident to compile the module.
Here's what I did:
git clone git://git.iksaif.net/acpi4asus.git
make menuconfig (just saved and exited)
make

However, I had no idea that a whole kernel is being compiled! So, sorry, I don't know exactly what to do.
Any pointers?

Check this page: http://dev.iksaif.net/projects/acpi4asus/wiki/Backport_module

And try to use the acpi4asus.py script like that:

python acpi4asus.py asus-laptop acpi4asus

Updated by Luis Fernando Planella Gonzalez almost 2 years ago

Comment

Corentin Chary wrote:

Check this page: http://dev.iksaif.net/projects/acpi4asus/wiki/Backport_module

And try to use the acpi4asus.py script like that:
[...]

Tried it but there was a compile error (sorry, my system is in portuguese):

luis@luis-netbook:~/acpi4asus$ python acpi4asus.py asus-laptop acpi4asus
Module: asus-laptop
Release: acpi4asus
Local Kernel: 2.6.32-17-generic
Downloading: http://git.iksaif.net/?p=acpi4asus.git;a=blob_plain;f=drivers/platform/x86/asus-laptop.c;hb=acpi4asus
To build the module, run make
luis@luis-netbook:~/acpi4asus$ make
make -C /lib/modules/2.6.32-17-generic/build SUBDIRS=/home/luis/acpi4asus asus-laptop.ko
make1: Entrando no diretório `/usr/src/linux-headers-2.6.32-17-generic'
CC [M] /home/luis/acpi4asus/asus-laptop.o
/home/luis/acpi4asus/asus-laptop.c:50:39: error: linux/input/sparse-keymap.h: Arquivo ou diretório não encontrado
/home/luis/acpi4asus/asus-laptop.c:241: error: array type has incomplete element type
/home/luis/acpi4asus/asus-laptop.c:243: error: ‘KE_KEY’ undeclared here (not in a function)
/home/luis/acpi4asus/asus-laptop.c:280: error: ‘KE_END’ undeclared here (not in a function)
/home/luis/acpi4asus/asus-laptop.c: In function ‘asus_input_notify’:
/home/luis/acpi4asus/asus-laptop.c:1111: error: implicit declaration of function ‘sparse_keymap_report_event’
/home/luis/acpi4asus/asus-laptop.c: In function ‘asus_input_init’:
/home/luis/acpi4asus/asus-laptop.c:1130: error: implicit declaration of function ‘sparse_keymap_setup’
/home/luis/acpi4asus/asus-laptop.c:1145: error: implicit declaration of function ‘sparse_keymap_free’
make2: * [/home/luis/acpi4asus/asus-laptop.o] Erro 1
make1: *
[asus-laptop.ko] Erro 2
make1: Saindo do diretório `/usr/src/linux-headers-2.6.32-17-generic'
make: ** [default] Erro 2

Updated by Corentin Chary almost 2 years ago

Comment

Hum, the driver needs sparse-keymap, and it is only available in 2.6.33 ...
I'll backport the driver to 2.6.32 next week so you can use it.

Updated by Anonymous almost 2 years ago

Comment

Corentin Chary wrote:

Hum, the driver needs sparse-keymap, and it is only available in 2.6.33 ...
I'll backport the driver to 2.6.32 next week so you can use it.

Thanks a lot.

Another question: the monitor brightness is not working either:

# cat /proc/acpi/video/IGD/LCD/brightness
<not supported>
# cat /proc/acpi/video/IGD/LCD/EDID
<not supported>

Does this have relation to this kernel module as well?

Updated by Luis Fernando Planella Gonzalez almost 2 years ago

Comment

Anonymous wrote:

Another question: the monitor brightness is not working either:
[...]

Does this have relation to this kernel module as well?

Ooops, was not logged in...

Updated by Corentin Chary almost 2 years ago

Comment

Anonymous wrote:

Corentin Chary wrote:

Hum, the driver needs sparse-keymap, and it is only available in 2.6.33 ...
I'll backport the driver to 2.6.32 next week so you can use it.

Thanks a lot.

Another question: the monitor brightness is not working either:
[...]

Does this have relation to this kernel module as well?

Not really. You can control the backlight using the generic video.ko module OR the asus-laptop.ko module, the prefered way is yo use video.ko, but sometime the bios is buggy, and the standard interface to control the backlight is not implemented. Do you have some files under /sys/class/backlight ?

Updated by Luis Fernando Planella Gonzalez almost 2 years ago

Comment

Corentin Chary wrote:

Does this have relation to this kernel module as well?

Not really. You can control the backlight using the generic video.ko module OR the asus-laptop.ko module, the prefered way is yo use video.ko, but sometime the bios is buggy, and the standard interface to control the backlight is not implemented. Do you have some files under /sys/class/backlight ?

No, the /sys/class/backlight directory is empty... :-(

Updated by Corentin Chary over 1 year ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF