19

On the Acer Iconia A200, when you change the orientation of the screen, the function of the volume rocker flips. In landscape mode, with the volume rocker on the right side and at the top, you find that 'down' on the rocker turns down the volume.

Now, flip the device 90 degrees left to a portait orientation, with the volume rocker on the top left. Now the same press that was 'down' before is 'right' and it turns the volume UP.

In other words, the action of the volume rocker is sensitive to the orientation of the device.

I haven't found any way to control this yet in the settings - is there any way to change this behavior? I'll eventually get used to it, but for the moment it's driving me batty.

Added: After seeing Zuul's answer talking about the gpio_keys.kl file, AND getting a bluetooth keyboard, I did some experimenting. When using a bluetooth keyboard, the bluetooth vol up/down buttons are independent of tablet orientation. So either some bit of software checks where the key is coming from and remaps or not as appropriate, OR the swap is happening at some lower layer (i.e. before it becomes a key code).

0

3 Answers 3

2

How things currently work

The Android OS uses a file to map the volume buttons in order to know what to do when they get pressed:

The file:

/system/usr/keylayout/gpio-keys.kl

Contains two lines for the volume buttons:

key 115 VOLUME_UP WAKE_DROPPED
key 114 VOLUME_DOWN WAKE_DROPPED

They aren't "orientation sensitive", just like their physical position on the device.

The issue you're facing, many other tablet owners face, that has to do with the logical position on the action. If we press the down part of the button, the volume should go down, but depending on the orientation, the down part actually raises the volume.

I do believe that the device rotation should account for factors such as this, as to prevent users from having to "create" weird habits for a simple "lower the volume" action. But on the other hand, that's why the volume buttons on your tablet are punctuated by three raised dots for easy tactile recognition.


Possible solution for rooted devices

Since this buttons in order to be changed need to be altered at a "system level", the action must be performed with root privileges on the device.

While the following two solutions cannot deal with orientation-specific scenarios, they are useful to remap the buttons as to have them adjusted to the tablet orientation in which we get most confused about:

  1. Application: ButtonRemapper - Beta v0.2.4

    Tool to remap the hardware buttons. Or better: a generic tool to edit the key layout map file Android uses to map the keys.

    XDA Developers forum thread with extensive details by the author

    ButtonRemapper Screenshots


  2. Manual Edit of the file: gpio-keys.kl:

    1. With a root File Manager, travel to /system/usr/keylayout and long touch the file gpio-keys.kl;
    2. From the pop up menu, select "Properties";
    3. Change the file permissions to rw-rw-rw- in order to be able to alter its contents;
    4. After having the new permissions, open the file with a text editor;
    5. Search within the file for the following two lines:

      key 115 VOLUME_UP WAKE_DROPPED
      key 114 VOLUME_DOWN WAKE_DROPPED
      
    6. Update the lines by swapping the key numbers so it becomes:

      key 114 VOLUME_UP WAKE_DROPPED
      key 115 VOLUME_DOWN WAKE_DROPPED
      
    7. Save the changes and reboot your tablet.

    You should now have the actions of the volume up/down buttons toggled as they best fit your portrait orientation.

    To undo it, just reverse these directions.

    Credits for the file edit solution are attributed to user jbeige from thriveforums.org.


After reading your device manual, other tablet manuals and the specifications from the Android OS, this are the best solutions I was able find to work around your issue.

1
  • 1
    I think you've missed the question a bit. You see, on this device they ARE orientation sensitive. I have two buttons - '1' and '2'. When the tablet is in landscape mode with the buttons on top, '2' lowers the volume, and '1' raises it. When the tablet is in portrait mode, with the buttons on the right, '1' lowers the volume and '2' raises it. This orientation sensitivity is a SERIOUS pain in the neck because I have other devices that DON'T posses this feature, making it devilishly hard to change the volume when I switch devices. Also, see my edits about bluetooth keyboards. Commented Jan 23, 2013 at 3:35
1

This feature is cooked into the ROM, itself, so it will be entirely dependent on what the chef cooked into the ROM.

You can find ROMs such as CM9 and AOKP that have various options for the volume rocker--- but forcing the rockers to stay static on devices like this where it changes is not one I've ever seen.

1
  • 2
    Please don't call CM and AOKP cooked roms and it's developers chefs. Cooking a rom is modifying it with a zip tool - something that's trivial and looked down.
    – user13391
    Commented Jun 4, 2012 at 19:33
0

Button Savior is an application which will provide you on screen soft keys for all your device's hard keys. Though it requires rooted device, some features are claimed to be working with non-rooted devices. The paid version will allow you to customize the soft keys including its position. Please give a try.

1
  • Not the solution for me - I don't like adding extra on-screen controls. Commented Jul 6, 2012 at 12:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .