Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Wine - Half life 2 - Ubuntu Menu Showing

  1. #1
    Join Date
    Jun 2006
    Beans
    471

    Wine - Half life 2 - Ubuntu Menu Showing

    HI,

    I have Half Life 2 running under wine but whenever it starts the ubuntu menu is on top of it (I am running it in fullscreen mode) and I can't get it to go away! I've tried every setting in winecfg but with no luck.

    Any advice would be appreciated.

  2. #2
    Join Date
    Jul 2006
    Beans
    809

    Re: Wine - Half life 2 - Ununtu Menu Showing

    Have you tried making a launcher script for it so that it runs in its own X session? There's instructions in a thread around this forum somewhere that describes how to do that, it's called something like "what I've learned about wine" or some such.

  3. #3
    Join Date
    Aug 2005
    Beans
    Hidden!

    Re: Wine - Half life 2 - Ununtu Menu Showing

    Are you running with desktop effects/compiz/beryl ?. I find that the gnome bars will stay on top of any full screen apps - wine / mythtv / compiz / virtualbox, if compiz is running.

    If that's the problem then either switch back to metacity by hand, or use a script to stop then restart compiz when you run these apps.

  4. #4
    Join Date
    Jun 2006
    Beans
    471

    Re: Wine - Half life 2 - Ubuntu Menu Showing

    Yes I am running Compiz Fusion.

    How can I trun off Compiz before running it and then restart it?

  5. #5
    Join Date
    Feb 2006
    Beans
    143

    Re: Wine - Half life 2 - Ubuntu Menu Showing

    You might want to take a look at my wrapper script here - it does exactly what salamba describes.

    Start it like this:
    Code:
    winefix -w metacity /path/to/HL2.exe

  6. #6
    Join Date
    Jun 2006
    Beans
    471

    Re: Wine - Half life 2 - Ubuntu Menu Showing

    Thanks, that's got the menu working!

    However, one of the times it crashed when I was trying to exit wine and it messed up my desktop resolution or font or something (see picture).



    Now I can't get it to change back! I have restarted and tried changing resolution. Do oyu know how to put it back?

  7. #7
    Join Date
    Jun 2006
    Beans
    471

    Re: Wine - Half life 2 - Ubuntu Menu Showing

    OK my resolution must have been 12809x1024 not 1024x768. I don't know why it looks so awful but the higher resolution look OK.

  8. #8
    Join Date
    Jun 2006
    Beans
    471

    Re: Wine - Half life 2 - Ubuntu Menu Showing

    OK. While I can get into Half Life 2 with Wine now and it runs fairly well whenever I exit it throws me out in 1024x786 mode.

    Is there any way to avoid or counteract this?

  9. #9
    Join Date
    Feb 2006
    Beans
    143

    Re: Wine - Half life 2 - Ubuntu Menu Showing

    Hold on, I should be able to fix that...

    edit:
    I just uploaded a new version of the script that makes sure the correct resolution gets restored when a game exits. Let me know if it clears things up.
    Last edited by deadlydeathcone; September 17th, 2007 at 02:14 AM.

  10. #10
    Join Date
    Jun 2006
    Beans
    471

    Re: Wine - Half life 2 - Ubuntu Menu Showing

    Not working I'm afraid.

    The script isn't finding a resolution for the old and new resolutions.

    I tried breaking it down to see what it was doing and the output of this bit seemed a little weird.


    Code:
    $ echo `xrandr` | tr " " "\n"
    SZ:
    Pixels
    Physical
    Refresh
    *0
    1280
    x
    1024
    (
    342mm
    x
    270mm
    )
    50
    *54
    1
    1024
    x
    768
    (
    273mm
    x
    203mm
    )
    51
    59
    60
    ....
    And this gives you:

    Code:
    $ echo `xrandr` | tr " " "\n" | grep -B 1 ".*\*" 
    Refresh
    *0
    --
    50
    *54
    So the next bit can't find an 'x'.

Page 1 of 2 12 LastLast

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
  •