Results 1 to 4 of 4

Thread: Cannot open keyboard: Permission denied

  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Cannot open keyboard: Permission denied

    I finally had time to give Qtopia a try. To my disappointment, I encountered some problems while trying to run applications, for example any demo provided in the installation package..

    I have downloaded and installed qtopia-core-opensource-src-4.1.3 on my Kubuntu Dapper. I followed the instructions for Installing Qtopia Core. Framebuffer test passes fine and everything seems ok to me.

    The next step i took was trying launching an example to see everything works as expected. Again, I followed the instructions provided.

    jp@jaber:~$ cd /usr/local/Trolltech/QtopiaCore-4.1.3/demos/textedit/
    jp@jaber:/usr/local/Trolltech/QtopiaCore-4.1.3/demos/textedit$ ./textedit -qws
    Creating mouse "Auto"
    Cannot open keyboard: Permission denied

    jp@jaber:/usr/local/Trolltech/QtopiaCore-4.1.3/demos/textedit$ sudo ./textedit -qws
    Password:
    Qtopia Core data directory is not owned by user 0
    jp@jaber:/usr/local/Trolltech/QtopiaCore-4.1.3/demos/textedit$
    The problem seems to be same than for example this:
    Keyboard and mouse problem with Qtopia-Core-4.1.0

    I haven't been able to find any answers to this, am I doing something wrong?
    J-P Nurmi

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot open keyboard: Permission denied

    I'm not 100% sure, but I belive that the keyboard is a device (in the /dev directory) that Qtopia is attempting to open. Somehow the file access rights does not allow that.

  3. #3
    Join Date
    Jan 2006
    Location
    Gold Coast, Australia
    Posts
    36
    Thanked 5 Times in 5 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Cannot open keyboard: Permission denied

    Its possible it cant find the keboard dev.
    Try
    Qt Code:
    1. export QWS_KEYBOARD=tty
    To copy to clipboard, switch view to plain text mode 
    by default, that opens /dev/tty0, you can specify the device like this:
    Qt Code:
    1. export QWS_KEYBOARD=tty:/dev/input/event1
    To copy to clipboard, switch view to plain text mode 
    or whatever it may be.
    if its a USB keyboard, try:
    Qt Code:
    1. export QWS_KEYBOARD=usb
    To copy to clipboard, switch view to plain text mode 
    Freelance Senior Software Engineer

  4. The following user says thank you to lpotter for this useful post:

    jpn (19th June 2006)

  5. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Cannot open keyboard: Permission denied

    The problem seemed to be something else than I thought. I was thinking that the keyboard error prevented application from starting (I had nothing visible on the screen before). I managed to get the application visible after changing the console resolution, though. After setting the QWS_KEYBOARD environment variable properly I got also the keyboard working.
    J-P Nurmi

Similar Threads

  1. Permission denied error during linking
    By bashamehboob in forum Newbie
    Replies: 2
    Last Post: 15th April 2006, 13:02

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.