(no subject)
Jul. 31st, 2004 01:51 amI got Wine running Starcraft with decent interactive performance. I spent a long time trying to work around the direct graphics access problem by some fairly bizarre means, but this was really a bit of a red herring: the reason that the mouse and keyboard didn't work as root was because DGA was available as root but that wine's support for it had a bug which prevented the mouse and keyboard working at all. Having found someone's patch for this latter problem under a rock, it didn't take long before it was all running relatively smoothly.
Tomorrow I try to get Brood War working too, and if that doesn't take too long see about getting network play working too.
The first attempt at "bizarre means" was to try to use Linux's capabilities support to allow Wine access to /dev/mem (which is what DGA needs). (File permissions aren't enough, you need CAP_SYS_RAWIO too.) Unfortunately the actual support for this feature is poorly documented and has bits missing that I had to bodge up, and in the end I couldn't make it behave like I wanted even then. I did't think this was a "bizarre means" when I started but I've revised this opinion.
The second attempt was to use a setuid helper and and LD_PRELOADed wrapper for open() to smuggle in a root-opened file descriptor onto /dev/mem. People who've previously noticed my fondness for LD_PRELOAD might reasonably wonder why I only tried this second. This worked fine but since it brought up the mouse/keyboard problem again was what made me realize that the problem was nothing to do with root and all to do with DGA. (So trying to fix the wrong problem can be helpful after all, if it leads you to the right problem.)
(no subject)
Date: 2004-07-30 06:29 pm (UTC)10 years ago I would have been doing this sort of hacking myself. Today I'm lucky if I ever delve beyond shell/perl scripts.
I'm living on 15 years of experience at Unix administration and algorithm design. One day that won't be enough.
*sigh*
(no subject)
Date: 2004-08-01 08:37 am (UTC)There have, actually, only been two techies in their forties in my department the whole time (four years) I've been there. I take comfort in the fact the department hasn't existed for much longer than that (nor the field much longer either), and the stayers in the department are all aging at, funnily enough, exactly the same rate as me (and I'm not the oldest of them).
(no subject)
Date: 2004-07-31 01:43 am (UTC)(no subject)
Date: 2004-07-31 04:38 am (UTC)Wine
Date: 2004-08-01 08:29 am (UTC)Re: Wine
Date: 2004-08-01 09:59 am (UTC)Britannica never used to work well for me in Wine but I just tried it again and it got much further than usual, the obviously critical error being:
...despite the relevant file being available in at least two ways; but I have no idea what CDX: is.
I'd rather figure out how the article files are packed, though, to be entirely free of their interface.