You are not logged in.

#1 2010-06-11 21:26:07

TheCycoONE
Member
From: Hamilton, Ontario, Canada
Registered: 2009-12-21
Posts: 31

[Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

Hello,

I have a media center set up, but rather than deal with the hassle of xbmc-launcher I'd like to just add an entry to .xinitrc for my different emulators and run them from SLiM, however I just get a little window in the corner with no way to expand it and no mouse/keyboard.

How could I get SLiM to launch the app full screen with input.  As is I can run gnome and run it from there, but that's a lot of steps.

Last edited by TheCycoONE (2010-06-13 12:42:04)

Offline

#2 2010-06-12 02:44:47

ceuric
Member
Registered: 2006-08-23
Posts: 14

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

I used to launch nwn from startx  by editing my .xinitrc file to just include "exec nwn" I think with slim to start different sessions you need to use a case statement. http://wiki.archlinux.org/index.php/Sli … vironments

Offline

#3 2010-06-12 03:12:50

TheCycoONE
Member
From: Hamilton, Ontario, Canada
Registered: 2009-12-21
Posts: 31

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

currently I'm doing exec snes9x-gtk;.  The problem is that it starts a little window in the corner of the screen, and I have no input.

Offline

#4 2010-06-12 04:50:29

LinuxFreak
Member
Registered: 2010-04-17
Posts: 5

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

You can change the following options in ~/.snes9x/snes9x.xml to your resolution:

  <option name="window_width" value="400"/>
  <option name="window_height" value="400"/>

Offline

#5 2010-06-12 16:02:56

TheCycoONE
Member
From: Hamilton, Ontario, Canada
Registered: 2009-12-21
Posts: 31

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

Thanks LinuxFreak, the window_width and window_height did it for full screen!

Now I just have the problem of no mouse cursor/keyboard input.

Offline

#6 2010-06-12 16:35:22

LinuxFreak
Member
Registered: 2010-04-17
Posts: 5

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

Do you have hal starting at boot? The DAEMONS variable in /etc/rc.conf should have hal enabled.

For example:

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond hal)

If you do not see 'hal' as one of the arguments in the variable, try adding it. Also, hal must be installed before enabling the hal daemon to start in /etc/rc.conf.

Offline

#7 2010-06-12 17:17:39

TheCycoONE
Member
From: Hamilton, Ontario, Canada
Registered: 2009-12-21
Posts: 31

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

Yes I do,

DAEMONS=(syslog-ng network rpcbind nfs-common nfs-server netfs crond hal cpufreq sshd samba alsa lircq)

Offline

#8 2010-06-12 17:18:34

TheCycoONE
Member
From: Hamilton, Ontario, Canada
Registered: 2009-12-21
Posts: 31

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

Also I have input/cursor in xbmc and gnome.  In SLiM I have keyboard input but no cursor regardless of the hidecursor setting.

Offline

#9 2010-06-12 18:26:19

ceuric
Member
Registered: 2006-08-23
Posts: 14

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

whats the semi colon for?

TheCycoONE wrote:

exec snes9x-gtk;

Offline

#10 2010-06-12 19:11:47

TheCycoONE
Member
From: Hamilton, Ontario, Canada
Registered: 2009-12-21
Posts: 31

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

No particular reason, I'm just in the habit of ending lines in bash with semicolons.  I don't think it hurts?

Offline

#11 2010-06-12 22:00:04

ceuric
Member
Registered: 2006-08-23
Posts: 14

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

I don't think it would; I was just curious if it held a special meaning in this case.

Offline

#12 2010-06-13 03:17:01

TheCycoONE
Member
From: Hamilton, Ontario, Canada
Registered: 2009-12-21
Posts: 31

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

Still no luck... maybe this is a(n obscure) bug?

Offline

#13 2010-06-13 12:54:49

TheCycoONE
Member
From: Hamilton, Ontario, Canada
Registered: 2009-12-21
Posts: 31

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

The issue seems unique to snes9x-gtk.  I tested with vlc and tuxcmd, and for both I have the expected x cursor and input.

Offline

#14 2010-06-13 13:10:45

TheCycoONE
Member
From: Hamilton, Ontario, Canada
Registered: 2009-12-21
Posts: 31

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

I've filed a bug upstream: http://code.google.com/p/snes9x-gtk/issues/detail?id=50 if anyone else can duplicate my problem (or not) and have something to contribute.

Offline

#15 2010-06-13 15:58:17

ceuric
Member
Registered: 2006-08-23
Posts: 14

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

Hey Cyco,

I just installed snes9x-gtk, changed my $HOME/.xinitrc to:

#!/bin/bash
exec snes9x-gtk

and it worked mouse and cursor. I ran it again this time with the semicolon and it worked but the cursor was invisible. so I removed the semicolon and ran it again but still no cursor, however if I move the mouse to the top left of the screen I can click the File drop down menu. Then I tried adding "xsetroot -cursor_name let_ptr" before "exec snes9x-gtk" and still no cursor. I also noticed that the shortcut keys for menubar dont seem to work. If I tried to add a rom the cursor would appear once I got to the add rom dialogue.

Just out of curiosity have you thought about running snes9x directly using openbox and a pipemenu like obm-dir?

Offline

#16 2010-06-14 01:15:14

TheCycoONE
Member
From: Hamilton, Ontario, Canada
Registered: 2009-12-21
Posts: 31

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

I had thought about using openbox in some way.   I use it on my laptop and quite like it.  I was going to look into if there was an argument I could pass to pick a particular snes9x config, vs one I might set up in the future for another program.  One of my goals is that my family will be able to run it without asking me for help every time smile

Offline

#17 2010-06-14 01:18:42

TheCycoONE
Member
From: Hamilton, Ontario, Canada
Registered: 2009-12-21
Posts: 31

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

It's curious that you experienced so many different behaviours; I've never seen the cursor or had the menubar shortcut keys work.  Was it first boot that it worked?  One difference might be that I autolaunch into xbmc, you have to shutdown xbmc to get to SLiM.

Offline

#18 2010-06-14 01:54:00

ceuric
Member
Registered: 2006-08-23
Posts: 14

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

It wasnt launched from a cold boot. I had openbox running on X0 and i3 on X1, I forgot to mention that. I started emulator with "startx -- :2" The invisible cursor is pretty consitent so far, invisible but works and appears only after I get to the file selection dialogue. I'll try a cold boot next. Just to be clear the menu short cut keys in snes9x-gtk never worked for me either,not when running standalone but they do from openbox. I've been trying to find a way to launch roms from xmbc as well. I never could figure out the emu launcher script. I've been thinking about running xbmc from the autostart script in openbox and then using obm-dir pipemenu for my roms.

By the way:
snes9x --help
...
-conf <filename>                Use specified conf file (after standard files)

Offline

#19 2010-06-14 02:35:07

ceuric
Member
Registered: 2006-08-23
Posts: 14

Re: [Solved fullscreen] How do I run snes9x-gtk from SLiM? (no input)

Cold boot works the same as above

Offline

Board footer

Powered by FluxBB