LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-08-2019, 02:35 PM   #1
VolumetricSteve
Member
 
Registered: Mar 2011
Posts: 90

Rep: Reputation: 7
Building better X applications


I'm trying to get an application (Quake2) to run without a window manager.

Curiously, the way it's built now, I can run it like:

startx ./quake2

and the video and sound works, but I get no mouse or keyboard events.

On the same system, I've also compiled from source QuakeSpasm and DarkPlaces SDL, which, when loaded the same way, work perfectly.

These were all built on the same system, with the same drivers, same libraries, same compiler, one right after another. The results are consistent from day to day.

this leads me to think there must be some hook in the code itself that's having an effect on how X is handing control over to the application at launch time.

I'm at the point of reading through the source code of both QuakeSpasm and DarkPlaces (several other applications work perfectly too, these are just the most relevant examples) just to see what they do and see if I can graft that behavior onto Quake 2....but I would hope there's a "right way" to do it, for which there might just be documentation.


Thoughts?
 
Old 04-08-2019, 03:23 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
for mouse to be active in the tty

What is gpm? click here
 
Old 04-08-2019, 04:43 PM   #3
VolumetricSteve
Member
 
Registered: Mar 2011
Posts: 90

Original Poster
Rep: Reputation: 7
I'm confused by the line "What is gpm?"

but....if the other two engines are working, mustn't it also be the case that my system - down to tty is already configured to work correctly?

I'll have to take a look at the link when I get home, but thank you for the suggestion.
 
Old 04-08-2019, 06:19 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
Maybe give Yamagi Quake2, vkQuake2, or another source port a try?

Last edited by dugan; 04-08-2019 at 06:25 PM.
 
Old 04-08-2019, 06:34 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
gpm, gives you a mouse on the tty before startx, thought it might give you access to a mouse in the game.
 
Old 04-08-2019, 07:13 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Interesting read here. ftp://ftp.wayne.edu/ldp/en/Quake-HOWTO/Quake-HOWTO.txt
 
Old 04-09-2019, 11:53 AM   #7
VolumetricSteve
Member
 
Registered: Mar 2011
Posts: 90

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by jefro View Post
That is an interesting read, for sure. Ear marking that for future use, but I think I know most of what's already in it.

Quote:
Originally Posted by dugan View Post
Maybe give Yamagi Quake2, vkQuake2, or another source port a try?
I'm actually working primarily with Yamagi Quake 2 and have spoken with Yamagi about exactly this. He and the other dev were as confused as I am, so my hope was to fork YQ2 and try to sift out whatever weirdness is causing this issue.

I've not heard of vkQuake2, I'll have to give that a shot.



All of this has me wondering if there's not anything special that should be done in the code to make a program work without a window manager. Many applications seem to do it by accident!

With only the utmost respect for Yamagi's work, I wonder if something is being done /wrong/ as opposed to not at all, like I had thought.

Maybe there's not "a way" to write or build applications that work without a window manager...I'm slowly getting the impression that's simply how they should work by default provided they're linked against Xorg and OpenGL where necessary.

I'd be curious to hear from an Xorg dev....or maybe there's an Xorg forum I should visit?


Thanks again for the suggestions and responses thus far!
 
Old 04-09-2019, 12:31 PM   #8
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
A window manager (x based window managers - are there any other kind?) cannot run without xorg so it's a catch 22.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Become a Better Open Source Advocate by Becoming a Better Human Being LXer Syndicated Linux News 0 08-01-2016 08:27 PM
LXer: Release 4.14 - KDE Applications get better and better LXer Syndicated Linux News 0 08-20-2014 10:31 PM
LXer: Non-Linux FOSS: Notepad++ Is Better Better LXer Syndicated Linux News 5 09-18-2013 09:34 PM
Better wireless or better graphics? anax93 Linux - General 1 06-05-2007 11:10 AM
better drivers for better speed? lukeprog Linux - Hardware 1 03-23-2006 06:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration