Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Wine
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Wine
This is the place for questions about using Windows programs under Linux using Wine, including productivity software, games, and anything else.

 
Thread Tools Display Modes
Old June 28th, 2008   #1
javbuntu
First Cup of Ubuntu
 
Join Date: Jun 2008
Beans: 3
Wine - keyboard input not working on virtual desktop

Wine: 0.9.59 (from Ubuntu's repository)
Linux: Ubuntu 8.0.4
Keyboard: HP , PS/2 . I never had to install any special driver on Windows or Linux. It is recognized automatically always except by Wine Virtual Desktop.



My keyboard doesn't work within the Wine Virtual Desktop but it works on other Linux consoles/apps. I have been going through the forums and trying different workarounds, but nothing works for me yet... any ideas?


If I don't configure the Virtual Desktop, my keyboard works fine with the Wine applications.
javbuntu is offline   Reply With Quote
Old November 18th, 2008   #2
yevgeni
First Cup of Ubuntu
 
Join Date: May 2008
Beans: 3
Re: Wine - keyboard input not working on virtual desktop

I have to second that. When using virtual desktop and trying to type... no dice.
yevgeni is offline   Reply With Quote
Old November 21st, 2008   #3
jyaan
A Carafe of Ubuntu
 
Join Date: Jan 2008
Location: USA.
Beans: 124
Ubuntu 8.10 Intrepid Ibex
Send a message via AIM to jyaan Send a message via MSN to jyaan
Re: Wine - keyboard input not working on virtual desktop

I have had this problem for quite some time as well, and haven't seen any solutions anywhere. Keyboard input works fine without virtual desktop enabled. Once enabled, the title bars do not seem to focus (stays grey, noticed it turned blue when I tried clicking "About WINE", but input is still not working) no matter where I click, and even when there is a text input box with flashing cursor in it.

I am generally able to enter a single character, and then I can't enter anything else. If it is in a game, the single key I entered appears to be held down (maybe a key up event is failing??), so a character would continue moving forward if I pressed the up arrow key. I use dvorak keyboard layout with a simple qwerty usb keyboard (Logitech Classic), and I change to Qwerty layout for certain games with setxkbmap. I have compiz enabled, but disabling it didn't seem to change anything.

Considering that enabling a virtual desktop is one of the ways to make many apps work with WINE, this is a rather large handicap to not be able to use it at all.
jyaan is offline   Reply With Quote
Old November 21st, 2008   #4
jyaan
A Carafe of Ubuntu
 
Join Date: Jan 2008
Location: USA.
Beans: 124
Ubuntu 8.10 Intrepid Ibex
Send a message via AIM to jyaan Send a message via MSN to jyaan
Re: Wine - keyboard input not working on virtual desktop

Good news -- I believe I have found a solution. Hopefully you are all using SCIM, and this is why the input does not work. The workaround for this is to simply set the XMODIFIERS variable to '' when launching WINE.

Code:
XMODIFIERS='' wine myapp.exe
For .desktop application launcher files, you should edit them as follows, using the 'Properties' menu by right clicking and editing the 'Command' section:

Code:
env XMODIFIERS='' WINEPREFIX="/home/jyaan/.wine" wine "C:\DeusEx\System\DeusEx.exe"
I hope this works for you guys. Good luck.

Last edited by jyaan; November 21st, 2008 at 06:30 PM..
jyaan is offline   Reply With Quote
Old January 17th, 2009   #5
louskrad
First Cup of Ubuntu
 
Join Date: Jan 2009
Beans: 1
Re: Wine - keyboard input not working on virtual desktop

Quote:
Originally Posted by jyaan View Post
Good news -- I believe I have found a solution. Hopefully you are all using SCIM, and this is why the input does not work. The workaround for this is to simply set the XMODIFIERS variable to '' when launching WINE.

Code:
XMODIFIERS='' wine myapp.exe
For .desktop application launcher files, you should edit them as follows, using the 'Properties' menu by right clicking and editing the 'Command' section:

Code:
env XMODIFIERS='' WINEPREFIX="/home/jyaan/.wine" wine "C:\DeusEx\System\DeusEx.exe"
I hope this works for you guys. Good luck.
Thanks jyaan, I was having the same problem and browsing the forums saw your solution. It works perfectly.
louskrad is offline   Reply With Quote
Old January 23rd, 2009   #6
sumwonyuno
5 Cups of Ubuntu
 
sumwonyuno's Avatar
 
Join Date: Dec 2007
Location: Honolulu, Hawaii, USA
Beans: 15
Ubuntu 8.10 Intrepid Ibex
Re: Wine - keyboard input not working on virtual desktop

Thank you very much, I've been looking for an answer for this problem for months.
sumwonyuno is offline   Reply With Quote
Old March 12th, 2009   #7
lamborghiniwang
A Carafe of Ubuntu
 
lamborghiniwang's Avatar
 
Join Date: Oct 2006
Beans: 112
Re: Wine - keyboard input not working on virtual desktop

Quote:
Originally Posted by jyaan View Post
Good news -- I believe I have found a solution. Hopefully you are all using SCIM, and this is why the input does not work. The workaround for this is to simply set the XMODIFIERS variable to '' when launching WINE.

Code:
XMODIFIERS='' wine myapp.exe
For .desktop application launcher files, you should edit them as follows, using the 'Properties' menu by right clicking and editing the 'Command' section:

Code:
env XMODIFIERS='' WINEPREFIX="/home/jyaan/.wine" wine "C:\DeusEx\System\DeusEx.exe"
I hope this works for you guys. Good luck.
Thanks for posting this work around. It works fine for me, except that it means I can no longer input Chinese/Japanese character in Wine. Unfortunately I am playing Koei's Romance of the three kingdom series, and without the Chinese/Japanese input, I am stuck at a certain point.

Any one knows a better solution?
__________________
Visit my homepage at MyRicci.com
lamborghiniwang is offline   Reply With Quote
Old June 22nd, 2009   #8
zamajama
First Cup of Ubuntu
 
Join Date: Nov 2007
Beans: 1
Re: Wine - keyboard input not working on virtual desktop

WINE can be such a pain sometimes.

I also tried it with double quotes and no space in between them like this:

Code:
env XMODIFIERS="" WINEPREFIX="/home/theuser/.wine" wine "C:\Program Files\Raven\SOF\sof.exe" +set console 1
(yes that is good 'ole Soldier of Fortune in the code) - I also modified my Rosetta Stone desktop icon accordingly.

Thanks for finding the solution jyaan!!
zamajama is offline   Reply With Quote

Bookmarks

Tags
ubuntu wine, wine keyboard

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:28 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry