Export to GitHub

xmonad - issue #333

mplayer doesn't go fullscreen


Posted on Nov 10, 2009 by Grumpy Dog

What steps will reproduce the problem? 1. install ubuntu 9.10 2. cabal install xmonad 3. mplayer somevideo 4. press F

What is the expected output? What do you see instead?

Nothing happens. This doesn't occur with other WM (metacity).

Are you using an xmonad.hs? Please attach it and the output of "xmonad --recompile".

I'm using a customized xmonad.hs but the problem occurs with Config.hs found in he distribution.

Comment #1

Posted on Nov 10, 2009 by Happy Elephant

I'm keeping my fingers crossed that this gets marked as a "won't fix". The fact that xmonad ignores windows' size requests is one of the reasons I use it.

If you want mplayer to go fullscreen, use one of the many solutions available in xmonad-core and xmonad-contrib: the doFullFloat manage hook, the Full layout, the JumpToLayout extension, and so on.

Comment #2

Posted on Nov 10, 2009 by Grumpy Dog

Ok. So this (not) working was a bug of xmonad 0.8.x ?

Comment #3

Posted on Nov 10, 2009 by Massive Lion

I am unable to reproduce this with default xmonad.hs (Config.hs settings not overriden) using mplayer that installs with ubuntu-9.10. (Neither with xmonad-0.9 or current darcs). It also worked fine for me in the past on xmonad-0.8.* The default xmonad manageHook floats class "MPlayer" which allows f or 'mplayer -fs 'to work correctly so far as I can tell.

polux2001 please try again with xmonad defaults. If you still find mplayer gives problems, please use xprop to check the WM_CLASS(STRING) and post that output if className differs from the typical default: `"this resource one varies other is className", "MPlayer"'

For those who don't want to float mplayer:

On the mailing list is a modified isFullscreen hook which allows toggling mplayer to and from fullscreen and tiled status. With more testing and comment perhaps that hook can get added to xmonad-contrib to give even more mplayer options.

Comment #4

Posted on Nov 10, 2009 by Swift Camel

I'm running ubuntu 9.04 with xmonad from the repo and facing a similar issue with another player; Movie Player (GNOME). I think the way fullscreen works isn't correct.
So far I've only been able to get rid of the red line around the window, but I still see the panel at the top. It's very annoying watching anything with the panel at the top. I need the panel so removing it isn't an option.

Comment #5

Posted on Nov 10, 2009 by Swift Camel

config attached.

Attachments

Comment #6

Posted on Nov 11, 2009 by Swift Elephant

Hi I have the same problem. My mplayer works properly in other WM, and it worked properly in xmonad before.

The mplayer is floated but it doens't get corrent screen size (I have two screens, 1960x1080 and 1280x800). Here's the xprop output:

09:45:~/.xmonad$ xprop
WM_STATE(WM_STATE): window state: Normal icon window: 0x0 WM_NORMAL_HINTS(WM_SIZE_HINTS): program specified location: 560, 240 program specified size: 800 by 600 program specified minimum size: 4 by 4 program specified minimum aspect ratio: 800/600 program specified maximum aspect ratio: 800/600 program specified base size: 0 by 0 window gravity: Static WM_ICON_NAME(STRING) = "MPlayer" WM_NAME(STRING) = "MPlayer" _NET_WM_PID(CARDINAL) = 1835 WM_CLASS(STRING) = "xv", "MPlayer" WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW

Attached my xmonad.hs.

Attachments

Comment #7

Posted on Nov 11, 2009 by Swift Elephant

I'm running archlinux, xmonad is installed by compiling code in darcs (xmonad core Num Patches: 1078, xmonad contrib Num Patches: 2048).

Comment #8

Posted on Nov 11, 2009 by Grumpy Dog

The WM_CLASS(STRING) value is : "xv", "MPlayer" as expected.

My config extends the default one, which floats class MPlayer, and indeed, mplayer windows are floating, but their size doesn't change when pressing F.

Comment #9

Posted on Nov 11, 2009 by Massive Lion

Found a reference that might be relavent here. http://tigerdyr.wheel.dk/ctwm-archive/2146.html

Suggests using -fstype=none in command line. If this works for you guys, you could put it in ~/.mplayer/config as

fstype=none

The alexeyFullscreen manageHook query I referred to is at http://code.google.com/p/xmonad/issues/detail?id=313

Please see if either of these enable fullscreening mplayer.

FWIW the mplayer version that works for me without extra configuration is

2:1.0~rc3+svn20090426-1ubuntu10 (karmic)

Comment #10

Posted on Nov 12, 2009 by Swift Elephant

Thanks wirtwolff, your trick works :-)

Comment #11

Posted on Nov 12, 2009 by Grumpy Dog

fstype=none works for me too. thanks !

Comment #12

Posted on Nov 15, 2009 by Massive Lion

Moved Movie Player report (totem player) to

http://code.google.com/p/xmonad/issues/detail?id=339

Closing this one as invalid since xmonad defaults are sane and mplayer issues were solved with mplayer configuration changes.

Comment #13

Posted on Jul 28, 2010 by Happy Panda

Thank you wirtwolf!

fstype=none works great on ubuntu lucid with xmonad 0.9.1

Status: Invalid

Labels:
Type-Enhancement