Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Command ignored from .xinitrc
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2326
Location: Bretagne

PostPosted: Wed Nov 06, 2024 8:50 am    Post subject: [Solved] Command ignored from .xinitrc Reply with quote

Dear gentooers,

I added this line in my .xinitrc in order to not to have my screen shutting down:
Code:

xset -dpms


But after switching graphic drivers from nouveau to nvidia-drivers, this does not work anymore either if this line is in my .xinitrc or if I just launch it in a terminal.

Instead, this seems to do the trick, typing in a terminal:
Code:
$ xset s off


But unfortunately it won't work from .xinitrc .... :/

I'm using LXDE as desktop environment btw.

Do you guys have a clue how I could work it out, or better, of which command I could use to have the screen shutting down after, let's say: 30mn ?

Thank you for your attention.


Last edited by Adrien on Mon Nov 11, 2024 7:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3977

PostPosted: Wed Nov 06, 2024 9:08 am    Post subject: Reply with quote

Been using LXDE for years:

Been tweaking these settings many times for such a cancellation.

Currently "xset dpms force off" in lxsession-default-apps.

Not 100% that is enough.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
nicop
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2014
Posts: 103

PostPosted: Wed Nov 06, 2024 9:09 am    Post subject: Reply with quote

To force, I will use the Xorg configuration instead.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3977

PostPosted: Wed Nov 06, 2024 9:27 am    Post subject: Reply with quote

lxde has a specific internal that sets display off after 10 mn IIRC.
So yeah, a general X configuration could fix.
A more fine grained solution could be desirable.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2326
Location: Bretagne

PostPosted: Wed Nov 06, 2024 10:20 am    Post subject: Reply with quote

CaptainBlood wrote:
A more fine grained solution could be desirable.

Definitely!
Thanks for the tips to both of you :)
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2326
Location: Bretagne

PostPosted: Mon Nov 11, 2024 7:36 pm    Post subject: Reply with quote

CaptainBlood wrote:

Currently "xset dpms force off" in lxsession-default-apps.


Worked with:
Code:
@xset -dpms
@xset s off
in lxsession-default-apps

Not working in .xinitrc

Thanks again Captain! :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum