• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Android » Android forum » Configuring BeagleBoard's S1 User Button as Home Button in Android
Share
Android
  • Forum
Options
  • Subscribe via RSS

Forums

Configuring BeagleBoard's S1 User Button as Home Button in Android

This question is answered
M.Fatih INANC
Posted by M.Fatih INANC
on Mar 13 2012 05:05 AM
Intellectual610 points

Hello,

I am using BeagleBoard C4 and Android 2.3.4 GingerBread.

And I have an 4.3" OLED for GUI. Both of them works fine. But I want to ask a question.

How can I configure S1 User Button (on BeagleBoard C4) as Home Button in Android ?

I always have to use a mouse for browsing menu.

Thanks.

Best.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • steve won86774
    Posted by steve won86774
    on Mar 13 2012 05:46 AM
    Prodigy150 points

    Hi,

    You can try to use adb tu simulate keyboard, with the command "input keyevent".

    Take a look here:

    http://groups.google.com/group/android-developers/browse_thread/thread/a4705c3f62414f90?pli=1

    BR,

    Steve.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Faisal Hassan
    Posted by Faisal Hassan
    on Mar 13 2012 08:18 AM
    Verified Answer
    Verified by M.Fatih INANC
    Intellectual255 points

    Hi,

    You can modify the key code specified to user button as KEY_HOME in board specific file..

    Edit the kernel/arch/arm/mach-omap2/board-omap3beagle.c file and Modify the user button entry in structure static struct gpio_keys_button gpio_buttons[]. In user button entry change the .code variable to KEY_HOME. Rebuild the kernel and use it.

    Thanks,

    Faisal H

    Beagle Board beagleboard button userbutton user
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Satish Patel
    Posted by Satish Patel
    on Mar 13 2012 08:31 AM
    Expert4350 points

    Hi,

    This might help you

    http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_PortingGuides#How_to_designate_a_POWER_key

    BR,

    satish

    Kindly click the verify answer button on this post if it answer your question.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • M.Fatih INANC
    Posted by M.Fatih INANC
    on Mar 13 2012 13:06 PM
    Intellectual610 points

    Thanks for answers. Faisal's method is works great. 

    Faisal , Where can I find the character codes(KEY_HOME, KEY_MENU etc.) ?

    I know only KEY_HOME and KEY_BACK. And tested both of them.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Faisal Hassan
    Posted by Faisal Hassan
    on Mar 14 2012 00:34 AM
    Verified Answer
    Verified by M.Fatih INANC
    Intellectual255 points

    Hi,

    Check this header file <android-source>/bionic/libc/kernel/common/linux/input.h line no 87 for more key codes.

    Thanks,

    Faisal H

    Beagle Board OMAP beagleboard button userbutton keycode
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • M.Fatih INANC
    Posted by M.Fatih INANC
    on Mar 15 2012 06:47 AM
    Intellectual610 points

    Hi Faisal,

    Thanks for all your help. It was very helpful.

    I am planning to add HOME and BACK button using Expansion GPIO header. 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use