DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th October 2017
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 113
Default Screen goes dark while watching videos

Hi,

While watching videos on Youtube or any streaming site my screen goes dark after some minutes. I tried searching the menus but didn't find any screensaver.

How can I disable this behaviour ?
__________________
OpenBSD 6.2
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
  #2   (View Single Post)  
Old 11th October 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,937
Default

I use these two lines in my .xsession/.xinitrc scripts. See the xset(1) man page for further information and to adjust settings to your own requirements.
Code:
xset s off
xset -dpms
Reply With Quote
  #3   (View Single Post)  
Old 11th October 2017
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 113
Default

Quote:
Originally Posted by jggimi View Post
I use these two lines in my .xsession/.xinitrc scripts. See the xset(1) man page for further information and to adjust settings to your own requirements.
Code:
xset s off
xset -dpms
I searched in my home dir but didn't find .xsession or .xinitrc.

Should I create one ? If yes which one ? .xsession or .xinitrc ?
__________________
OpenBSD 6.2
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
  #4   (View Single Post)  
Old 11th October 2017
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 113
Default

I just created a script and made it executable.

Code:
#!/bin/sh
xset s off
xset -dpms
Then went to Applications>Settings>Session and startup>application autostart>add>link to script.

Is this method acceptable ?
__________________
OpenBSD 6.2
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
  #5   (View Single Post)  
Old 11th October 2017
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Mostly Harmless
 
Join Date: Dec 2015
Location: London
Posts: 73
Default

That should work fine for XFCE (is that what you are using?), you should find a .desktop file in ~/.config/autostart that runs your script.

If you are using xenodm(1) (or xdm(1)) to log in then you could add the `xset` commands to ~/.xsession instead.

Just to note that `xset` options can be combined:
Code:
xset s off -dpms
__________________
Linux is for people who hate Windows. BSD is for people who love UNIX.

Last edited by Head_on_a_Stick; 11th October 2017 at 06:31 AM. Reason: error correction
Reply With Quote
  #6   (View Single Post)  
Old 11th October 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,937
Default

Quote:
Originally Posted by bsd007 View Post
I searched in my home dir but didn't find .xsession or .xinitrc.
$HOME/.xsession is used by the X Display Managers, such as xenodm(1), or KDM, or GDM. $HOME/.xinitrc is used by startx(1)/xinit(1).
Quote:
Should I create one ? If yes which one ? .xsession or .xinitrc ?
You are using a third mechanism, which is an "autostart" script available to you in XFCE.
Quote:
Originally Posted by Head_on_a_Stick View Post
If you are using xenodm(1) (or xdm(1)) ...
The xdm() Display Manager was removed for OpenBSD 6.1, replaced by xenodm().
Reply With Quote
  #7   (View Single Post)  
Old 11th October 2017
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 113
Default

Just tested. Using the autostart option is working.
__________________
OpenBSD 6.2
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox in OpenBSD 6.0 supports YouTube videos bsd-keith OpenBSD Packages and Ports 1 3rd September 2016 03:01 PM
EuroBSDCon 2014 Videos Online J65nko News 0 22nd October 2015 02:37 PM
Mpv is lagging when watching movies e1-531g OpenBSD Packages and Ports 8 27th September 2015 07:24 PM
how to watch youtube videos on OpenBSD? lucas34 OpenBSD Packages and Ports 28 11th March 2014 06:34 PM
Dark Mailer dm.cgi rtwingfield FreeBSD Security 0 6th June 2009 10:55 PM


All times are GMT. The time now is 04:51 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick