Results 1 to 2 of 2

Thread: How do I use Xephyr correctly?

  1. #1
    Join Date
    Apr 2012
    Location
    Quebec, Canada
    Beans
    261
    Distro
    Ubuntu 12.04 Precise Pangolin

    Cool How do I use Xephyr correctly?

    Hi,


    I am attempting to run an older game using Wine, on Ubuntu 11.10. Since the program force the use of 256 colors, I have to run it in Xephyr, and it's the first time I'm running anything in Xephyr, so I'm not sure if I do it correctly.

    First, I installed Xephyr this way. That worked:

    Code:
    sudo apt-get install xserver-xephyr
    Next, I do this:

    Code:
    Xephyr :1 -ac -screen 640x480x8 &
    DISPLAY=:1 xterm
    I get a black windows. Did Xephyr include a command-line? I can't quite remember, I wonder if I messed up a setting?

    Then to run the game, I need to open another terminal, and type:

    Code:
    DISPLAY=:1
    cd ".PlayOnLinux/.../Forestia<etc>"
    playonlinux FORESTIA.EXE
    For some reason, the game has to be run with PlayOnLinux (Not with Wine only), otherwise, it produce at lot of random error messages...
    And then my game start (Wow, that was freaky. Never wondered running the game on PlayOnLinux rather than Wine would stop the errors messages from showing up! :O) in the Xephyr windows... With music, and even with sound (Wine start it without sound). The problem, is that the colors are complete crap! That's far from 256 colors, and that's the only thing that would make the game unplayable!

    Did I missed something? Should I start the EXE from Xephyr instead of another terminal (How?)?
    Is there an alternative solution?


    Thanks you!

  2. #2
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: How do I use Xephyr correctly?

    The problem, is that the colors are complete crap! That's far from 256 colors, and that's the only thing that would make the game unplayable!
    There appears to be a limitation in X when trying to run in 8 bit mode when your default mode is 24-bit (See: http://wiki.winehq.org/256ColorMode?...ColorIndexMode). Having just experimented a bit, you can pass Xephyr the cc parameter to specify different colourmaps. I find the following to be most satisfactory on my system (not perfect, but pretty good):
    Code:
    Xephyr :1 -ac -screen 640x480x8 -cc 4 &
    ...(valid cc choices appear to be 1 to 6)

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
  •