Page 19 of 49 FirstFirst ... 9171819202129 ... LastLast
Results 181 to 190 of 481

Thread: Asus K52 / Asus A52

  1. #181
    Join Date
    Nov 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Asus K52 / Asus A52

    The same happens to me when using acpi_fakekey $KEY_CALC. I have to press a second key before gcalctool starts

    BTW, the problem you have with sound when using hp-laptop is probably that you are using a kernel version below 2.6.35.5 (ubuntu kernel 2.6.35-22 is based on 2.6.35.4)
    Last edited by jsevi83; October 22nd, 2010 at 06:16 PM.

  2. #182
    Join Date
    Oct 2010
    Beans
    16
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Asus K52 / Asus A52

    Quote Originally Posted by jsevi83 View Post
    BTW, the problem you have with sound when using hp-laptop is probably that you are using a kernel version below 2.6.35.5 (ubuntu kernel 2.6.35-22 is based on 2.6.35.4)
    I have the same problem with kernel 2.6.35-02063505-generic, isn't this based on 2.6.35.5

    The same happens to me when using acpi_fakekey $KEY_CALC. I have to press a second key before gcalctool starts
    With xev I discovered that all the FN+something keys generates a "request MappingKeyboard" event, all but FN+KP_ENTER. Any X hacker can explain this?? In the configuration file /usr/share/X11/xkb/keycodes I can't notice any difference between KEYCALC and the other FN+something keys

  3. #183
    Join Date
    Oct 2010
    Beans
    16
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Asus K52 / Asus A52

    Ok, I discovered that the problem is acpi_fakekey. It correctly generates the keycode assigned (140 for the calculator), but forgets to generate a synchronization event. With the following patched version everything works fine on my system.
    Attached Files Attached Files

  4. #184
    Join Date
    Oct 2010
    Beans
    16
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Asus K52 / Asus A52

    Quote Originally Posted by jsevi83 View Post
    4) SUSPEND: you need to create a new file with this commands:

    sudo gedit /etc/pm/sleep.d/20_custom-ehci_hcd

    Code:
    #!/bin/sh
    # File: "/etc/pm/sleep.d/20_custom-ehci_hcd".
    case "${1}" in
            hibernate|suspend)
                  # Unbind ehci_hcd for first device 0000:00:1a.0:
                   echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
                  # Unbind ehci_hcd for second device 0000:00:1d.0:
                   echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
            ;;
            resume|thaw)
                  # Bind ehci_hcd for first device 0000:00:1a.0:
                  echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
                  # Bind ehci_hcd for second device 0000:00:1d.0:
                  echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
            ;;
    esac
    sudo chmod +x /etc/pm/sleep.d/20_custom-ehci_hcd

    How have you discovered that this was the solution for SUSPEND?

  5. #185
    Join Date
    Nov 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Asus K52 / Asus A52

    Quote Originally Posted by stefano.facchini View Post
    How have you discovered that this was the solution for SUSPEND?
    I found it in some other thread about asus laptops, but I don't remember where.

    How do we apply the patch of acpi_fakekey? Could you provide some instructions? Do we need to compile?
    Last edited by jsevi83; October 23rd, 2010 at 06:45 PM.

  6. #186
    Join Date
    Oct 2010
    Beans
    16
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Asus K52 / Asus A52

    Quote Originally Posted by jsevi83 View Post
    I found it in some other thread about asus laptops, but I don't remember where.

    How do we apply the patch of acpi_fakekey? Could you provide some instructions? Do we need to compile?
    Yes compile it with
    Code:
    $ gcc -o acpi_fakekey-patch acpi_fakekey-patch.c
    then put the compiled file in /usr/local/bin (or elsewhere in your PATH). Now, instead of using acpi_fakekey in your scripts you can use acpi_fakekey-patch, for example in calc.sh
    Code:
    #!/bin/sh
    . /usr/share/acpi-support/key-constants
    acpi_fakekey-patch $KEY_CALC
    Last edited by stefano.facchini; October 23rd, 2010 at 07:15 PM.

  7. #187
    Join Date
    Nov 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Asus K52 / Asus A52

    It works! Thanks a lot.

  8. #188
    Join Date
    Oct 2010
    Beans
    16
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Asus K52 / Asus A52

    Quote Originally Posted by jsevi83 View Post
    It works! Thanks a lot.
    Glad that it helped!

    BTW have you tried the hibernation (I mean to DISK, not suspension) after upgrading to Maverick? On my system it was broken and I had to create a file /etc/pm/config.d/hibernate_mode with the following content
    Code:
    HIBERNATE_MODE="shutdown"

  9. #189
    Join Date
    Nov 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Asus K52 / Asus A52

    I don't use hibernation, I don't even have a swap partition, so I cannot check it. Hope it helps other users.

  10. #190
    Join Date
    Dec 2006
    Location
    Poland
    Beans
    26
    Distro
    Kubuntu 11.04 Natty Narwhal

    Re: Asus K52 / Asus A52

    Quote Originally Posted by stefano.facchini View Post
    How have you discovered that this was the solution for SUSPEND?
    Read post #64 in this thread

Page 19 of 49 FirstFirst ... 9171819202129 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •