VLC and the screensaver on LMDE

Questions about applications and software
Forum rules
Before you post please read this

VLC and the screensaver on LMDE

Postby gotjazz on Wed Sep 22, 2010 9:15 am

Now I know this used to be a common problem with older VLC versions but since 1.1.0 VLC has been able to deactivate the gnome screensaver while playing back videos. Somehow this seems not to be true on lmde.
Is that a regression in VLC, an lmde problem or maybe just an issue with the rights my user account has?
Any ideas?

Thankfully I sit pretty close to the screen so it's not a big problem to wiggle the mouse a little when I see the screen darkening but it is kind of annoying....
Image
User avatar
gotjazz
Level 4
Level 4
 
Posts: 386
Joined: Fri May 28, 2010 11:38 am
Location: Vienna, Austria

Linux Mint is funded by ads and donations.
 

Re: VLC and the screensaver on LMDE

Postby gotjazz on Mon Sep 27, 2010 5:24 pm

bump?
Image
User avatar
gotjazz
Level 4
Level 4
 
Posts: 386
Joined: Fri May 28, 2010 11:38 am
Location: Vienna, Austria

Re: VLC and the screensaver on LMDE

Postby BabyLaptop on Tue Sep 28, 2010 8:14 am

I would love to see solution for this too. Thanks in advance.
BabyLaptop
Level 1
Level 1
 
Posts: 1
Joined: Sat Sep 18, 2010 4:02 pm

Re: VLC and the screensaver on LMDE

Postby beep_gr on Thu Dec 16, 2010 5:48 am

BabyLaptop wrote:I would love to see solution for this too. Thanks in advance.


One simple solution is to add the "inhibit applet" from the panels. By this, your power manager and screen saver will be disabled...

I hope the developers will fix that bug...
beep_gr
Level 1
Level 1
 
Posts: 29
Joined: Sun Aug 17, 2008 5:21 am

Re: VLC and the screensaver on LMDE

Postby mzsade on Thu Dec 16, 2010 6:24 am

Inhibit applet does the trick, thanks for the info, wouldn't have occurred to me otherwise.

Edit: Nope, doesn't work when playing with VLC.
Last edited by mzsade on Thu Dec 16, 2010 1:40 pm, edited 1 time in total.
Linux User #481272 Reg: 15th Sept., 2008
mzsade
Level 5
Level 5
 
Posts: 616
Joined: Sun Jul 19, 2009 4:36 am

Re: VLC and the screensaver on LMDE

Postby dbkblk on Thu Dec 16, 2010 11:04 am

Inhibit Applet is needed, because fullscreen flash videos have the same behavior !

I tried to report the bug a few weeks ago but someone already did. VLC 1.1.5 fix the bug, it is actually in the experimental repository. I think it will be pushed to squeeze, just be patient.

I'm also new to Debian (but i'm using Sid).

I don't know if adobe will ever fix that bug, i don't know where to report that one ?
dbkblk
Level 1
Level 1
 
Posts: 32
Joined: Thu Dec 16, 2010 10:31 am

Re: VLC and the screensaver on LMDE

Postby kwevej on Mon Dec 20, 2010 2:56 pm

for mplayer
put into your ~/.mplayer/config:
stop-xscreensaver=true

VLC, dunno
User avatar
kwevej
Level 5
Level 5
 
Posts: 624
Joined: Mon Mar 22, 2010 3:35 pm
Location: Delft / Prague [@ LMDE]

Re: VLC and the screensaver on LMDE

Postby terdon on Tue Dec 28, 2010 9:50 pm

No dice... This line from ~/.config/vlc/vlc has no effect:
Code: Select all
disable-screensaver=1
User avatar
terdon
Level 4
Level 4
 
Posts: 276
Joined: Tue Jan 13, 2009 2:52 pm
Location: Marseille

Re: VLC and the screensaver on LMDE

Postby gotjazz on Tue Dec 28, 2010 10:01 pm

well I've settled for https://launchpad.net/caffeine until the vlc devs get this handled again - you can set it to automatically disable the screensaver when certain processes are running. Just add vlc or whatever else you need it for to the list and you're good. It's not ideal but it works.
Image
User avatar
gotjazz
Level 4
Level 4
 
Posts: 386
Joined: Fri May 28, 2010 11:38 am
Location: Vienna, Austria

Re: VLC and the screensaver on LMDE

Postby terdon on Tue Dec 28, 2010 10:49 pm

A simpler workaround is to inhibit gnome screensaver when vlc is playing. Add this line to your ~/.xsessionrc file (create it if it does not exist):
Code: Select all
gnome-screensaver-command -i -n vlc -r "playing video" &


This way the inhibit command will be run just once on starting an X session.
Last edited by terdon on Fri Dec 31, 2010 11:25 am, edited 1 time in total.
User avatar
terdon
Level 4
Level 4
 
Posts: 276
Joined: Tue Jan 13, 2009 2:52 pm
Location: Marseille

Re: VLC and the screensaver on LMDE

Postby mzsade on Wed Dec 29, 2010 10:59 am

If this is an upstream issue, i would harp on this there..if only somebody would tell me. :| @terdon And doesn't the Inhibit Applet do/is supposed to do, exactly what that code in ~/.bashrc file does?
Linux User #481272 Reg: 15th Sept., 2008
mzsade
Level 5
Level 5
 
Posts: 616
Joined: Sun Jul 19, 2009 4:36 am

Re: VLC and the screensaver on LMDE

Postby Scorpio_Snake on Wed Dec 29, 2010 11:10 am

terdon wrote:
EDIT: Even better, add this line to your ~/.xsessionrc file :
Code: Select all
gnome-screensaver-command -i -n vlc -r "playing video" &




I don't seem to have a ~/.xsessionrc file. Do I just create a new one?
Scorpio_Snake
Level 1
Level 1
 
Posts: 33
Joined: Sun Oct 31, 2010 10:22 am

Re: VLC and the screensaver on LMDE

Postby terdon on Wed Dec 29, 2010 11:43 am

Yes, just create it and paste that line. $HOME/.xsessionrc (or ~/.xsessionrc) is the successor to the old .xsession. Any commands in that file will be run when you start a new graphical user session (X session).
User avatar
terdon
Level 4
Level 4
 
Posts: 276
Joined: Tue Jan 13, 2009 2:52 pm
Location: Marseille

Re: VLC and the screensaver on LMDE

Postby asymmetros on Wed Dec 29, 2010 4:43 pm

This problem confuses me too. For a certain period of time i was experiencing this problem, then i hadn't that problem at all, now again vlc and screensaver are trying my patience :)

I have tried a few things, disabling screensaver and power mangager with different ways (via terminal, not starting in login etc) but those attempts didnt seem to have any connection with the above mentioned observations.

In any case, i am using a laptop and a "long-cabled" mouse. The odd thing is that i have never faced this problem when i am booting in xfce. A bit strange, so right now, my instinct tells me to follow the "inhibit applet" solution from gnome-panel.
Sid Mint Xfce -32, Openbox, KDE, Enlightenment, Liquorix Kernel
HP Compaq Presario cq71, Intel Core 2 Duo T4400 @ 2.2 GHz, 3 GB DDR2 RAM, Nvidia Geforce G 103M
asymmetros
Level 4
Level 4
 
Posts: 310
Joined: Tue Jun 01, 2010 5:34 pm
Location: athens

Re: VLC and the screensaver on LMDE

Postby paro1991 on Wed Dec 29, 2010 8:49 pm

i've been using inhibit applet for a while now for flash videos and now gotta use it for vlc too. will upgrade to experimental to see if it disables screensavers.
paro1991
Level 1
Level 1
 
Posts: 13
Joined: Fri Sep 17, 2010 10:41 am

Re: VLC and the screensaver on LMDE

Postby bobcollard on Wed Dec 29, 2010 10:53 pm

terdon wrote:A simpler workaround is to inhibit gnome screensaver when vlc is playing. Add this line to your ~/.bashrc file:
Code: Select all
alias vlc='gnome-screensaver-command -i -n vlc -r "playing video" &  vlc'


Adapted from http://forum.videolan.org/viewtopic.php?f=13&t=76977&p=255844&hilit=gnome+screensaver#p255844

EDIT: Even better, add this line to your ~/.xsessionrc file :
Code: Select all
gnome-screensaver-command -i -n vlc -r "playing video" &


This way the inhibit command will be run just once on starting an X session.

I used both and it works in VLC on LMDE x86_64, Thanks.
Robert Collard, Springfield, IL
Dell Inspiron 1545 Laptop, Intel Duo T3400 CPUs @2.16 Ghz. 4GB RAM
Linux Mint Debian Edition, Xfce 4.6.2 Desktop, 2.6.37-0.dmz.6-liquorix-amd64
User avatar
bobcollard
Level 5
Level 5
 
Posts: 717
Joined: Thu Oct 22, 2009 4:44 pm
Location: Springfield, IL

Re: VLC and the screensaver on LMDE

Postby terdon on Thu Dec 30, 2010 12:08 am

mzsade wrote:If this is an upstream issue, i would harp on this there..if only somebody would tell me. :| @terdon And doesn't the Inhibit Applet do/is supposed to do, exactly what that code in ~/.bashrc file does?



Not really. If I understand correctly, one has to manually activate the applet every time. With the .xsessionrc line this happens once, automatically and you can completely forget it.
User avatar
terdon
Level 4
Level 4
 
Posts: 276
Joined: Tue Jan 13, 2009 2:52 pm
Location: Marseille

Re: VLC and the screensaver on LMDE

Postby terdon on Fri Dec 31, 2010 10:45 am

@bobcollard: I would not use both. That would result in many instances of gnome-screensaver-command being launched. Use only the .xsessionrc method. I have edited my previous post to avoid confusion.

@assymetre: The issue here is that gnome-screensaver has changed its API. The method that vlc uses to turn the screensaver off no longer works. The vlc devs do not want to fix it (see https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/428884 and http://forum.videolan.org/viewtopic.php?f=13&t=76977&p=253153&hilit=gnome+screensaver#p253153 ) However, using the command I gave before in .xsessionrc works perfectly and requires no active input from the user.
User avatar
terdon
Level 4
Level 4
 
Posts: 276
Joined: Tue Jan 13, 2009 2:52 pm
Location: Marseille

Re: VLC and the screensaver on LMDE

Postby bobcollard on Fri Dec 31, 2010 11:18 am

terdon wrote:@bobcollard: I would not use both. That would result in many instances of gnome-screensaver-command being launched. Use only the .xsessionrc method. I have edited my previous post to avoid confusion.

@assymetre: The issue here is that gnome-screensaver has changed its API. The method that vlc uses to turn the screensaver off no longer works. The vlc devs do not want to fix it (see https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/428884 and http://forum.videolan.org/viewtopic.php?f=13&t=76977&p=253153&hilit=gnome+screensaver#p253153 ) However, using the command I gave before in .xsessionrc works perfectly and requires no active input from the user.

Thanks, removed the line from ~/.bashrc
Robert Collard, Springfield, IL
Dell Inspiron 1545 Laptop, Intel Duo T3400 CPUs @2.16 Ghz. 4GB RAM
Linux Mint Debian Edition, Xfce 4.6.2 Desktop, 2.6.37-0.dmz.6-liquorix-amd64
User avatar
bobcollard
Level 5
Level 5
 
Posts: 717
Joined: Thu Oct 22, 2009 4:44 pm
Location: Springfield, IL

Re: VLC and the screensaver on LMDE

Postby mzsade on Wed Jan 05, 2011 4:55 am

I have a ~/.xsession-errors and ~/.xsession-errors.old but no ~/.xsessionrc..
Linux User #481272 Reg: 15th Sept., 2008
mzsade
Level 5
Level 5
 
Posts: 616
Joined: Sun Jul 19, 2009 4:36 am

Linux Mint is funded by ads and donations.
 
Next

Return to Software & Applications

Who is online

Users browsing this forum: Google [Bot] and 5 guests